gns3-server/gns3server/static/web-ui/main.3903ccaada4e6da7.js
2022-12-27 13:17:12 +08:00

1 line
4.1 MiB

(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(qe,J,m){"use strict";m.d(J,{o:function(){return L}});var z=m(5671),Y=m(3144),S=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new S.X([]),this.itemUpdated=new U.xQ}return(0,Y.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(y){this.findIndex(y)>=0?this.update(y):(this.data.push(y),this.dataChange.next(this.data))}},{key:"set",value:function(y){var K=this;y.forEach(function(M){var O=K.findIndex(M);if(O>=0){var k=Object.assign(K.data[O],M);K.data[O]=k}else K.data.push(M)}),this.data.filter(function(M){return 0===y.filter(function(O){return K.getItemKey(O)===K.getItemKey(M)}).length}).forEach(function(M){return K.remove(M)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(M){return K.getItemKey(M)===y});if(F>=0)return this.data[F]}},{key:"update",value:function(y){var K=this.findIndex(y);if(K>=0){var F=Object.assign(this.data[K],y);this.data[K]=F,this.dataChange.next(this.data),this.itemUpdated.next(F)}}},{key:"remove",value:function(y){var K=this.findIndex(y);K>=0&&(this.data.splice(K,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(y){var K=this;return this.data.findIndex(function(F){return K.getItemKey(F)===K.getItemKey(y)})}}]),P}()},6215:function(qe,J,m){"use strict";m.d(J,{F:function(){return D}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(O){return O.link_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5366:function(qe,J,m){"use strict";m.d(J,{G:function(){return D}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(O){return O.node_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5542:function(qe,J,m){"use strict";m.d(J,{X:function(){return P}});var z=m(5671),Y=m(3144),S=m(4766),U=m(5e3),L=m(2437),P=function(){function D(y){(0,z.Z)(this,D),this.httpController=y}return(0,Y.Z)(D,[{key:"getComputes",value:function(K){return this.httpController.get(K,"/computes")}},{key:"getUploadPath",value:function(K,F,M){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(S.N.current_version,"/").concat(F,"/images/").concat(M)}},{key:"getStatistics",value:function(K){return this.httpController.get(K,"/statistics")}}]),D}();P.\u0275fac=function(y){return new(y||P)(U.LFG(L.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(qe,J,m){"use strict";m.d(J,{CJ:function(){return O},zw:function(){return k}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),M=function(I){(0,S.Z)(w,I);var T=(0,U.Z)(w);function w(x){return(0,z.Z)(this,w),T.call(this,x)}return(0,Y.Z)(w,null,[{key:"fromError",value:function(N,R){var W=new w(N);return W.originalError=R,W}}]),w}((0,L.Z)(Error)),O=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var x=w;return"HttpErrorResponse"===w.name&&0===w.status&&(x=M.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(x)}}]),I}();O.\u0275fac=function(T){return new(T||O)},O.\u0275prov=P.Yz7({token:O,factory:O.\u0275fac});var k=function(){function I(T,w){(0,z.Z)(this,I),this.http=T,this.errorHandler=w,this.requestsNotificationEmitter=new P.vpe}return(0,Y.Z)(I,[{key:"get",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getText",value:function(w,x,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(w,x,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"post",value:function(w,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,R);return this.requestsNotificationEmitter.emit("POST ".concat(W.url)),this.http.post(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"put",value:function(w,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,R);return this.requestsNotificationEmitter.emit("PUT ".concat(W.url)),this.http.put(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"delete",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.requestsNotificationEmitter.emit("DELETE ".concat(R.url)),this.http.delete(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"patch",value:function(w,x,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,x,R);return this.http.patch(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"head",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.http.head(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"options",value:function(w,x,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,x,N);return this.http.options(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(w){return w||{responseType:"json"}}},{key:"getTextOptions",value:function(w){return w||{responseType:"text"}}},{key:"getBlobOptions",value:function(w){return w||{responseType:"blob"}}},{key:"getOptionsForController",value:function(w,x,N){return w&&w.host&&w.port?(w.protocol||(w.protocol=location.protocol),x="".concat(w.protocol,"//").concat(w.host,":").concat(w.port,"/").concat(D.N.current_version).concat(x)):x="/".concat(D.N.current_version).concat(x),N.headers||(N.headers={}),w&&w.authToken&&!w.tokenExpired&&(N.headers.Authorization="Bearer ".concat(w.authToken)),{url:x,options:N}}}]),I}();k.\u0275fac=function(T){return new(T||k)(P.LFG(F.eN),P.LFG(O))},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac})},9971:function(qe,J,m){"use strict";m.d(J,{Y:function(){return K}});var z=m(5671),Y=m(3144),S=m(4766),U=m(8929),L=m(5e3),P=m(2437),D=m(9449),y=m(9740),K=function(){function F(M,O,k){(0,z.Z)(this,F),this.httpController=M,this.settingsService=O,this.recentlyOpenedProjectService=k,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new U.xQ,this.projectLockIconSubject=new U.xQ}return(0,Y.Z)(F,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(O,k){return this.httpController.getText(O,"/projects/".concat(k,"/files/README.txt"))}},{key:"postReadmeFile",value:function(O,k,I){return this.httpController.post(O,"/projects/".concat(k,"/files/README.txt"),I)}},{key:"get",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k))}},{key:"open",value:function(O,k){return this.httpController.post(O,"/projects/".concat(k,"/open"),{})}},{key:"close",value:function(O,k){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(O,"/projects/".concat(k,"/close"),{})}},{key:"list",value:function(O){return this.httpController.get(O,"/projects")}},{key:"nodes",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/nodes"))}},{key:"links",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/links"))}},{key:"drawings",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/drawings"))}},{key:"add",value:function(O,k,I){return this.httpController.post(O,"/projects",{name:k,project_id:I})}},{key:"update",value:function(O,k){return this.httpController.put(O,"/projects/".concat(k.project_id),{auto_close:k.auto_close,auto_open:k.auto_open,auto_start:k.auto_start,drawing_grid_size:k.drawing_grid_size,grid_size:k.grid_size,name:k.name,scene_width:k.scene_width,scene_height:k.scene_height,show_interface_labels:k.show_interface_labels})}},{key:"delete",value:function(O,k){return this.httpController.delete(O,"/projects/".concat(k))}},{key:"getUploadPath",value:function(O,k,I){return"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k,"/import?name=").concat(I)}},{key:"getExportPath",value:function(O,k){return"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k.project_id,"/export")}},{key:"export",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/export"))}},{key:"getStatistics",value:function(O,k){return this.httpController.get(O,"/projects/".concat(k,"/stats"))}},{key:"duplicate",value:function(O,k,I){return this.httpController.post(O,"/projects/".concat(k,"/duplicate"),{name:I})}},{key:"isReadOnly",value:function(O){return!!O.readonly&&O.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(O,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=I.compression_level&&""!=I.compression_level?"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&compression_level=").concat(I.compression_level,"&token=").concat(O.authToken):"".concat(O.protocol,"//").concat(O.host,":").concat(O.port,"/").concat(S.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&token=").concat(O.authToken)}},{key:"getProjectStatus",value:function(O,k){return this.get(O,"".concat(k,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),F}();K.\u0275fac=function(M){return new(M||K)(L.LFG(P.zw),L.LFG(D.g),L.LFG(y.p))},K.\u0275prov=L.Yz7({token:K,factory:K.\u0275fac})},9740:function(qe,J,m){"use strict";m.d(J,{p:function(){return U}});var z=m(5671),Y=m(3144),S=m(5e3),U=function(){function L(){(0,z.Z)(this,L)}return(0,Y.Z)(L,[{key:"setcontrollerId",value:function(D){this.controllerId=D}},{key:"setProjectId",value:function(D){this.projectId=D}},{key:"setcontrollerIdProjectList",value:function(D){this.controllerIdProjectList=D}},{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=""}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=S.Yz7({token:U,factory:U.\u0275fac})},9449:function(qe,J,m){"use strict";m.d(J,{g:function(){return U}});var z=m(5671),Y=m(3144),S=m(5e3),U=function(){function L(){(0,z.Z)(this,L),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,Y.Z)(L,[{key:"setReportsSettings",value:function(D){this.settings.crash_reports=D,this.removeItem(this.reportsSettings),D?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(D){this.settings.anonymous_statistics=D,this.removeItem(this.statisticsSettings),D?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(D){this.settings.console_command=D,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,D)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(D){localStorage.removeItem(D)}},{key:"setItem",value:function(D,y){localStorage.setItem(D,y)}},{key:"getItem",value:function(D){return localStorage.getItem(D)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(D){this.settings=D,this.setConsoleSettings(D.console_command),this.setReportsSettings(D.crash_reports),this.setStatisticsSettings(D.anonymous_statistics)}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=S.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(qe,J,m){"use strict";m.d(J,{f:function(){return L}});var z=m(5671),Y=m(3144),S=m(5e3),U=m(591),L=function(){function P(){(0,z.Z)(this,P),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new S.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,Y.Z)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(y){y?(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}();L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=S.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})},4766:function(qe,J,m){"use strict";m.d(J,{N:function(){return z}});var z={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},2427:function(qe,J,m){"use strict";var z={};m.r(z),m.d(z,{active:function(){return E1e},arc:function(){return hge},area:function(){return fQ},areaRadial:function(){return _Q},ascending:function(){return Nf},axisBottom:function(){return u8},axisLeft:function(){return c8},axisRight:function(){return l8},axisTop:function(){return s8},bisect:function(){return O_},bisectLeft:function(){return Y6},bisectRight:function(){return HM},bisector:function(){return U1},brush:function(){return xse},brushSelection:function(){return Ese},brushX:function(){return Mse},brushY:function(){return Sse},chord:function(){return Ase},clientPoint:function(){return m5},cluster:function(){return ide},color:function(){return JR},contourDensity:function(){return mle},contours:function(){return EY},create:function(){return F_e},creator:function(){return p5},cross:function(){return tl},csvFormat:function(){return Tle},csvFormatRows:function(){return Ele},csvParse:function(){return wle},csvParseRows:function(){return kle},cubehelix:function(){return kY},curveBasis:function(){return Pge},curveBasisClosed:function(){return Rge},curveBasisOpen:function(){return Lge},curveBundle:function(){return Zge},curveCardinal:function(){return Nge},curveCardinalClosed:function(){return Bge},curveCardinalOpen:function(){return Fge},curveCatmullRom:function(){return Uge},curveCatmullRomClosed:function(){return Hge},curveCatmullRomOpen:function(){return jge},curveLinear:function(){return v5},curveLinearClosed:function(){return zge},curveMonotoneX:function(){return Wge},curveMonotoneY:function(){return Vge},curveNatural:function(){return Yge},curveStep:function(){return Gge},curveStepAfter:function(){return Kge},curveStepBefore:function(){return qge},customEvent:function(){return R_e},descending:function(){return I_},deviation:function(){return X4},dispatch:function(){return Ff},drag:function(){return W_},dragDisable:function(){return jf},dragEnable:function(){return X1},dsvFormat:function(){return bU},easeBack:function(){return LY},easeBackIn:function(){return Qle},easeBackInOut:function(){return LY},easeBackOut:function(){return Xle},easeBounce:function(){return TS},easeBounceIn:function(){return Kle},easeBounceInOut:function(){return Jle},easeBounceOut:function(){return TS},easeCircle:function(){return RY},easeCircleIn:function(){return Fle},easeCircleInOut:function(){return RY},easeCircleOut:function(){return Ule},easeCubic:function(){return zR},easeCubicIn:function(){return hse},easeCubicInOut:function(){return zR},easeCubicOut:function(){return mse},easeElastic:function(){return ZY},easeElasticIn:function(){return $le},easeElasticInOut:function(){return eue},easeElasticOut:function(){return ZY},easeExp:function(){return PY},easeExpIn:function(){return Nle},easeExpInOut:function(){return PY},easeExpOut:function(){return Ble},easeLinear:function(){return Ale},easePoly:function(){return DY},easePolyIn:function(){return Ple},easePolyInOut:function(){return DY},easePolyOut:function(){return Rle},easeQuad:function(){return xY},easeQuadIn:function(){return Ole},easeQuadInOut:function(){return xY},easeQuadOut:function(){return Ile},easeSin:function(){return IY},easeSinIn:function(){return Lle},easeSinInOut:function(){return IY},easeSinOut:function(){return Zle},entries:function(){return Vse},event:function(){return Ih},extent:function(){return hh},forceCenter:function(){return tue},forceCollide:function(){return bue},forceLink:function(){return wue},forceManyBody:function(){return xue},forceRadial:function(){return Due},forceSimulation:function(){return Sue},forceX:function(){return Aue},forceY:function(){return Oue},format:function(){return YY},formatDefaultLocale:function(){return qY},formatLocale:function(){return VY},formatPrefix:function(){return GY},formatSpecifier:function(){return oL},geoAlbers:function(){return sq},geoAlbersUsa:function(){return Bce},geoArea:function(){return zue},geoAzimuthalEqualArea:function(){return Fce},geoAzimuthalEqualAreaRaw:function(){return d7},geoAzimuthalEquidistant:function(){return Uce},geoAzimuthalEquidistantRaw:function(){return f7},geoBounds:function(){return Gue},geoCentroid:function(){return $ue},geoCircle:function(){return ece},geoClipAntimeridian:function(){return WU},geoClipCircle:function(){return DG},geoClipExtent:function(){return sce},geoClipRectangle:function(){return DL},geoConicConformal:function(){return jce},geoConicConformalRaw:function(){return cq},geoConicEqualArea:function(){return UL},geoConicEqualAreaRaw:function(){return aq},geoConicEquidistant:function(){return Wce},geoConicEquidistantRaw:function(){return dq},geoContains:function(){return hce},geoDistance:function(){return AS},geoEquirectangular:function(){return zce},geoEquirectangularRaw:function(){return FS},geoGnomonic:function(){return Vce},geoGnomonicRaw:function(){return p7},geoGraticule:function(){return FG},geoGraticule10:function(){return mce},geoIdentity:function(){return Yce},geoInterpolate:function(){return _ce},geoLength:function(){return AG},geoMercator:function(){return Hce},geoMercatorRaw:function(){return BS},geoNaturalEarth1:function(){return Gce},geoNaturalEarth1Raw:function(){return h7},geoOrthographic:function(){return qce},geoOrthographicRaw:function(){return m7},geoPath:function(){return xce},geoProjection:function(){return Dh},geoProjectionMutator:function(){return u7},geoRotation:function(){return CG},geoStereographic:function(){return Kce},geoStereographicRaw:function(){return _7},geoStream:function(){return Nd},geoTransform:function(){return Dce},geoTransverseMercator:function(){return Jce},geoTransverseMercatorRaw:function(){return g7},hcl:function(){return vY},hierarchy:function(){return v7},histogram:function(){return t8},hsl:function(){return uY},interpolate:function(){return O7},interpolateArray:function(){return Hq},interpolateBasis:function(){return Nq},interpolateBasisClosed:function(){return Bq},interpolateBlues:function(){return tme},interpolateBrBG:function(){return Rhe},interpolateBuGn:function(){return zhe},interpolateBuPu:function(){return Whe},interpolateCool:function(){return fme},interpolateCubehelix:function(){return Cfe},interpolateCubehelixDefault:function(){return cme},interpolateCubehelixLong:function(){return wfe},interpolateDate:function(){return jq},interpolateGnBu:function(){return Vhe},interpolateGreens:function(){return nme},interpolateGreys:function(){return rme},interpolateHcl:function(){return vfe},interpolateHclLong:function(){return yfe},interpolateHsl:function(){return hfe},interpolateHslLong:function(){return mfe},interpolateInferno:function(){return _me},interpolateLab:function(){return gfe},interpolateMagma:function(){return mme},interpolateNumber:function(){return Xf},interpolateObject:function(){return zq},interpolateOrRd:function(){return Yhe},interpolateOranges:function(){return ame},interpolatePRGn:function(){return Lhe},interpolatePiYG:function(){return Zhe},interpolatePlasma:function(){return gme},interpolatePuBu:function(){return qhe},interpolatePuBuGn:function(){return Ghe},interpolatePuOr:function(){return Nhe},interpolatePuRd:function(){return Khe},interpolatePurples:function(){return ime},interpolateRainbow:function(){return pme},interpolateRdBu:function(){return Bhe},interpolateRdGy:function(){return Fhe},interpolateRdPu:function(){return Jhe},interpolateRdYlBu:function(){return Uhe},interpolateRdYlGn:function(){return Hhe},interpolateReds:function(){return ome},interpolateRgb:function(){return x7},interpolateRgbBasis:function(){return tfe},interpolateRgbBasisClosed:function(){return nfe},interpolateRound:function(){return ofe},interpolateSpectral:function(){return jhe},interpolateString:function(){return Wq},interpolateTransformCss:function(){return lfe},interpolateTransformSvg:function(){return ufe},interpolateViridis:function(){return hme},interpolateWarm:function(){return dme},interpolateYlGn:function(){return Xhe},interpolateYlGnBu:function(){return Qhe},interpolateYlOrBr:function(){return $he},interpolateYlOrRd:function(){return eme},interpolateZoom:function(){return pfe},interrupt:function(){return qX},interval:function(){return Uye},isoFormat:function(){return Zye},isoParse:function(){return Fye},keys:function(){return zse},lab:function(){return gY},line:function(){return y5},lineRadial:function(){return mQ},linkHorizontal:function(){return kge},linkRadial:function(){return Ege},linkVertical:function(){return Tge},local:function(){return lQ},map:function(){return j_},matcher:function(){return KJ},max:function(){return Q6},mean:function(){return WM},median:function(){return VM},merge:function(){return YM},min:function(){return X6},mouse:function(){return H_e},namespace:function(){return f9},namespaces:function(){return d9},nest:function(){return Fse},now:function(){return H_},pack:function(){return Dde},packEnclose:function(){return pq},packSiblings:function(){return Mde},pairs:function(){return G6},partition:function(){return Ade},path:function(){return Zd},permute:function(){return $6},pie:function(){return gge},pointRadial:function(){return sx},polygonArea:function(){return Tfe},polygonCentroid:function(){return Efe},polygonContains:function(){return Dfe},polygonHull:function(){return xfe},polygonLength:function(){return Afe},precisionFixed:function(){return Nue},precisionPrefix:function(){return Bue},precisionRound:function(){return Fue},quadtree:function(){return rL},quantile:function(){return L_},quantize:function(){return kfe},radialArea:function(){return _Q},radialLine:function(){return mQ},randomBates:function(){return Pfe},randomExponential:function(){return Rfe},randomIrwinHall:function(){return _K},randomLogNormal:function(){return Ife},randomNormal:function(){return mK},randomUniform:function(){return Ofe},range:function(){return Bl},rgb:function(){return sY},ribbon:function(){return Bse},scaleBand:function(){return G7},scaleIdentity:function(){return DK},scaleImplicit:function(){return V7},scaleLinear:function(){return xK},scaleLog:function(){return RK},scaleOrdinal:function(){return Y7},scalePoint:function(){return Lfe},scalePow:function(){return X7},scaleQuantile:function(){return LK},scaleQuantize:function(){return ZK},scaleSequential:function(){return hJ},scaleSqrt:function(){return npe},scaleThreshold:function(){return NK},scaleTime:function(){return bhe},scaleUtc:function(){return The},scan:function(){return eR},schemeAccent:function(){return Mhe},schemeBlues:function(){return ZJ},schemeBrBG:function(){return mJ},schemeBuGn:function(){return TJ},schemeBuPu:function(){return EJ},schemeCategory10:function(){return Ehe},schemeDark2:function(){return She},schemeGnBu:function(){return MJ},schemeGreens:function(){return NJ},schemeGreys:function(){return BJ},schemeOrRd:function(){return SJ},schemeOranges:function(){return HJ},schemePRGn:function(){return _J},schemePaired:function(){return xhe},schemePastel1:function(){return Dhe},schemePastel2:function(){return Ahe},schemePiYG:function(){return gJ},schemePuBu:function(){return DJ},schemePuBuGn:function(){return xJ},schemePuOr:function(){return vJ},schemePuRd:function(){return AJ},schemePurples:function(){return FJ},schemeRdBu:function(){return yJ},schemeRdGy:function(){return bJ},schemeRdPu:function(){return OJ},schemeRdYlBu:function(){return CJ},schemeRdYlGn:function(){return wJ},schemeReds:function(){return UJ},schemeSet1:function(){return Ohe},schemeSet2:function(){return Ihe},schemeSet3:function(){return Phe},schemeSpectral:function(){return kJ},schemeYlGn:function(){return PJ},schemeYlGnBu:function(){return IJ},schemeYlOrBr:function(){return RJ},schemeYlOrRd:function(){return LJ},select:function(){return sQ},selectAll:function(){return j_e},selection:function(){return B_e},selector:function(){return p9},selectorAll:function(){return GJ},set:function(){return jse},shuffle:function(){return tR},stack:function(){return Qge},stackOffsetDiverging:function(){return $ge},stackOffsetExpand:function(){return Xge},stackOffsetNone:function(){return IC},stackOffsetSilhouette:function(){return eve},stackOffsetWiggle:function(){return tve},stackOrderAscending:function(){return FQ},stackOrderDescending:function(){return nve},stackOrderInsideOut:function(){return rve},stackOrderNone:function(){return PC},stackOrderReverse:function(){return ive},stratify:function(){return Rde},style:function(){return XJ},sum:function(){return n8},symbol:function(){return Ige},symbolCircle:function(){return E9},symbolCross:function(){return gQ},symbolDiamond:function(){return yQ},symbolSquare:function(){return wQ},symbolStar:function(){return CQ},symbolTriangle:function(){return kQ},symbolWye:function(){return TQ},symbols:function(){return Oge},thresholdFreedmanDiaconis:function(){return W1},thresholdScott:function(){return J6},thresholdSturges:function(){return z1},tickIncrement:function(){return mh},tickStep:function(){return R_},ticks:function(){return P_},timeDay:function(){return uve},timeDays:function(){return cve},timeFormat:function(){return SX},timeFormatDefaultLocale:function(){return DX},timeFormatLocale:function(){return _X},timeFriday:function(){return tX},timeFridays:function(){return mve},timeHour:function(){return sve},timeHours:function(){return lve},timeInterval:function(){return xs},timeMillisecond:function(){return HQ},timeMilliseconds:function(){return jQ},timeMinute:function(){return ove},timeMinutes:function(){return ave},timeMonday:function(){return QQ},timeMondays:function(){return dve},timeMonth:function(){return gve},timeMonths:function(){return vve},timeParse:function(){return xX},timeSaturday:function(){return nX},timeSaturdays:function(){return _ve},timeSecond:function(){return YQ},timeSeconds:function(){return GQ},timeSunday:function(){return L9},timeSundays:function(){return rX},timeThursday:function(){return eX},timeThursdays:function(){return hve},timeTuesday:function(){return XQ},timeTuesdays:function(){return fve},timeWednesday:function(){return $Q},timeWednesdays:function(){return pve},timeWeek:function(){return L9},timeWeeks:function(){return rX},timeYear:function(){return yve},timeYears:function(){return bve},timeout:function(){return gS},timer:function(){return _S},timerFlush:function(){return OV},touch:function(){return z_e},touches:function(){return W_e},transition:function(){return m$},transpose:function(){return GM},tree:function(){return Ude},treemap:function(){return Hde},treemapBinary:function(){return jde},treemapDice:function(){return HS},treemapResquarify:function(){return Wde},treemapSlice:function(){return GL},treemapSliceDice:function(){return zde},treemapSquarify:function(){return Sq},tsvFormat:function(){return xle},tsvFormatRows:function(){return Dle},tsvParse:function(){return Mle},tsvParseRows:function(){return Sle},utcDay:function(){return Eve},utcDays:function(){return Mve},utcFormat:function(){return F9},utcFriday:function(){return fX},utcFridays:function(){return Ove},utcHour:function(){return kve},utcHours:function(){return Tve},utcMillisecond:function(){return HQ},utcMilliseconds:function(){return jQ},utcMinute:function(){return Cve},utcMinutes:function(){return wve},utcMonday:function(){return lX},utcMondays:function(){return Sve},utcMonth:function(){return Pve},utcMonths:function(){return Rve},utcParse:function(){return U9},utcSaturday:function(){return pX},utcSaturdays:function(){return Ive},utcSecond:function(){return YQ},utcSeconds:function(){return GQ},utcSunday:function(){return N9},utcSundays:function(){return hX},utcThursday:function(){return dX},utcThursdays:function(){return Ave},utcTuesday:function(){return uX},utcTuesdays:function(){return xve},utcWednesday:function(){return cX},utcWednesdays:function(){return Dve},utcWeek:function(){return N9},utcWeeks:function(){return hX},utcYear:function(){return Lve},utcYears:function(){return Zve},values:function(){return Wse},variance:function(){return q6},voronoi:function(){return W1e},window:function(){return h9},zip:function(){return r8},zoom:function(){return D$},zoomIdentity:function(){return H5},zoomTransform:function(){return S$}});var Y={};m.r(Y),m.d(Y,{safe:function(){return Kte},spec:function(){return WAe}});var S={};m.r(S),m.d(S,{getTrace:function(){return Zne},isKeyword:function(){return gIe},isProperty:function(){return _Ie},isType:function(){return mIe}});var U={};m.r(U),m.d(U,{generate:function(){return IIe},name:function(){return AIe},parse:function(){return Yne},structure:function(){return OIe}});var L={};m.r(L),m.d(L,{generate:function(){return NIe},name:function(){return RIe},parse:function(){return qne},structure:function(){return ZIe},walkContext:function(){return LIe}});var P={};m.r(P),m.d(P,{generate:function(){return HIe},name:function(){return BIe},parse:function(){return Kne},structure:function(){return UIe},walkContext:function(){return FIe}});var D={};m.r(D),m.d(D,{generate:function(){return KIe},name:function(){return GIe},parse:function(){return Qne},structure:function(){return qIe}});var y={};m.r(y),m.d(y,{generate:function(){return tPe},name:function(){return XIe},parse:function(){return ere},structure:function(){return ePe},walkContext:function(){return $Ie}});var K={};m.r(K),m.d(K,{generate:function(){return iPe},name:function(){return nPe},parse:function(){return tre},structure:function(){return rPe}});var F={};m.r(F),m.d(F,{generate:function(){return sPe},name:function(){return oPe},parse:function(){return nre},structure:function(){return aPe}});var M={};m.r(M),m.d(M,{generate:function(){return cPe},name:function(){return lPe},parse:function(){return rre},structure:function(){return uPe}});var O={};m.r(O),m.d(O,{generate:function(){return hPe},name:function(){return fPe},parse:function(){return ire},structure:function(){return pPe}});var k={};m.r(k),m.d(k,{generate:function(){return bPe},name:function(){return vPe},parse:function(){return are},structure:function(){return yPe}});var I={};m.r(I),m.d(I,{generate:function(){return EPe},name:function(){return kPe},parse:function(){return sre},structure:function(){return TPe}});var T={};m.r(T),m.d(T,{generate:function(){return NPe},name:function(){return RPe},parse:function(){return cre},structure:function(){return ZPe},walkContext:function(){return LPe}});var w={};m.r(w),m.d(w,{generate:function(){return zPe},name:function(){return HPe},parse:function(){return dre},structure:function(){return jPe}});var x={};m.r(x),m.d(x,{generate:function(){return YPe},name:function(){return WPe},parse:function(){return fre},structure:function(){return VPe}});var N={};m.r(N),m.d(N,{generate:function(){return JPe},name:function(){return GPe},parse:function(){return pre},structure:function(){return KPe},walkContext:function(){return qPe}});var R={};m.r(R),m.d(R,{generate:function(){return e3e},name:function(){return XPe},parse:function(){return hre},structure:function(){return $Pe},xxx:function(){return QPe}});var W={};m.r(W),m.d(W,{generate:function(){return r3e},name:function(){return t3e},parse:function(){return mre},structure:function(){return n3e}});var $={};m.r($),m.d($,{generate:function(){return a3e},name:function(){return i3e},parse:function(){return _re},structure:function(){return o3e}});var ce={};m.r(ce),m.d(ce,{generate:function(){return u3e},name:function(){return s3e},parse:function(){return gre},structure:function(){return l3e}});var se={};m.r(se),m.d(se,{generate:function(){return f3e},name:function(){return c3e},parse:function(){return vre},structure:function(){return d3e}});var te={};m.r(te),m.d(te,{generate:function(){return m3e},name:function(){return p3e},parse:function(){return yre},structure:function(){return h3e}});var oe={};m.r(oe),m.d(oe,{generate:function(){return v3e},name:function(){return _3e},parse:function(){return bre},structure:function(){return g3e}});var ve={};m.r(ve),m.d(ve,{generate:function(){return C3e},name:function(){return y3e},parse:function(){return Cre},structure:function(){return b3e}});var Oe={};m.r(Oe),m.d(Oe,{generate:function(){return T3e},name:function(){return w3e},parse:function(){return wre},structure:function(){return k3e}});var st={};m.r(st),m.d(st,{generate:function(){return S3e},name:function(){return E3e},parse:function(){return kre},structure:function(){return M3e}});var xe={};m.r(xe),m.d(xe,{generate:function(){return A3e},name:function(){return x3e},parse:function(){return Tre},structure:function(){return D3e}});var _e={};m.r(_e),m.d(_e,{generate:function(){return R3e},name:function(){return O3e},parse:function(){return Ere},structure:function(){return P3e},walkContext:function(){return I3e}});var ke={};m.r(ke),m.d(ke,{generate:function(){return B3e},name:function(){return L3e},parse:function(){return Mre},structure:function(){return N3e},walkContext:function(){return Z3e}});var Fe={};m.r(Fe),m.d(Fe,{generate:function(){return z3e},name:function(){return H3e},parse:function(){return xre},structure:function(){return j3e}});var ct={};m.r(ct),m.d(ct,{generate:function(){return G3e},name:function(){return V3e},parse:function(){return Dre},structure:function(){return Y3e}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return X3e},name:function(){return K3e},parse:function(){return Ore},structure:function(){return Q3e},walkContext:function(){return J3e}});var Nt={};m.r(Nt),m.d(Nt,{generate:function(){return t6e},name:function(){return $3e},parse:function(){return Ire},structure:function(){return e6e}});var Xt={};m.r(Xt),m.d(Xt,{generate:function(){return o6e},name:function(){return n6e},parse:function(){return Pre},structure:function(){return i6e},walkContext:function(){return r6e}});var en={};m.r(en),m.d(en,{generate:function(){return u6e},name:function(){return s6e},parse:function(){return Nre},structure:function(){return l6e}});var qt={};m.r(qt),m.d(qt,{generate:function(){return h6e},name:function(){return d6e},parse:function(){return Fre},structure:function(){return p6e},walkContext:function(){return f6e}});var Xe={};m.r(Xe),m.d(Xe,{generate:function(){return v6e},name:function(){return _6e},parse:function(){return Hre},structure:function(){return g6e}});var jt={};m.r(jt),m.d(jt,{generate:function(){return k6e},name:function(){return C6e},parse:function(){return Wre},structure:function(){return w6e}});var it={};m.r(it),m.d(it,{generate:function(){return I6e},name:function(){return A6e},parse:function(){return Yre},structure:function(){return O6e}});var vt={};m.r(vt),m.d(vt,{generate:function(){return L6e},name:function(){return P6e},parse:function(){return Gre},structure:function(){return R6e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return F6e},name:function(){return N6e},parse:function(){return qre},structure:function(){return B6e}});var Lt={};m.r(Lt),m.d(Lt,{AnPlusB:function(){return U},Atrule:function(){return L},AtrulePrelude:function(){return P},AttributeSelector:function(){return D},Block:function(){return y},Brackets:function(){return K},CDC:function(){return F},CDO:function(){return M},ClassSelector:function(){return O},Combinator:function(){return k},Comment:function(){return I},Declaration:function(){return T},DeclarationList:function(){return w},Dimension:function(){return x},Function:function(){return N},Hash:function(){return R},IdSelector:function(){return $},Identifier:function(){return W},MediaFeature:function(){return ce},MediaQuery:function(){return se},MediaQueryList:function(){return te},Nth:function(){return oe},Number:function(){return ve},Operator:function(){return Oe},Parentheses:function(){return st},Percentage:function(){return xe},PseudoClassSelector:function(){return _e},PseudoElementSelector:function(){return ke},Ratio:function(){return Fe},Raw:function(){return ct},Rule:function(){return Mt},Selector:function(){return Nt},SelectorList:function(){return Xt},String:function(){return en},StyleSheet:function(){return qt},TypeSelector:function(){return Xe},UnicodeRange:function(){return jt},Url:function(){return it},Value:function(){return vt},WhiteSpace:function(){return nt}});var It={};m.r(It),m.d(It,{AtrulePrelude:function(){return Y6e},Selector:function(){return nRe},Value:function(){return oRe}});var on={};m.r(on),m.d(on,{AnPlusB:function(){return Yne},Atrule:function(){return qne},AtrulePrelude:function(){return Kne},AttributeSelector:function(){return Qne},Block:function(){return ere},Brackets:function(){return tre},CDC:function(){return nre},CDO:function(){return rre},ClassSelector:function(){return ire},Combinator:function(){return are},Comment:function(){return sre},Declaration:function(){return cre},DeclarationList:function(){return dre},Dimension:function(){return fre},Function:function(){return pre},Hash:function(){return hre},IdSelector:function(){return _re},Identifier:function(){return mre},MediaFeature:function(){return gre},MediaQuery:function(){return vre},MediaQueryList:function(){return yre},Nth:function(){return bre},Number:function(){return Cre},Operator:function(){return wre},Parentheses:function(){return kre},Percentage:function(){return Tre},PseudoClassSelector:function(){return Ere},PseudoElementSelector:function(){return Mre},Ratio:function(){return xre},Raw:function(){return Dre},Rule:function(){return Ore},Selector:function(){return Ire},SelectorList:function(){return Pre},String:function(){return Nre},StyleSheet:function(){return Fre},TypeSelector:function(){return Hre},UnicodeRange:function(){return Wre},Url:function(){return Yre},Value:function(){return Gre},WhiteSpace:function(){return qre}});var _n={};m.r(_n),m.d(_n,{Lexer:function(){return Z0},Parser:function(){return N0},Renderer:function(){return mN},Slugger:function(){return Gj},TextRenderer:function(){return Yj},Tokenizer:function(){return hN},defaults:function(){return L0},getDefaults:function(){return Vj},lexer:function(){return OLe},marked:function(){return ii},options:function(){return TLe},parse:function(){return DLe},parseInline:function(){return xLe},parser:function(){return ALe},setOptions:function(){return ELe},use:function(){return MLe},walkTokens:function(){return SLe}});var wn,t,An=m(2313),Gt=m(245),Zt=m(4506),Et=m(5647),Ut=m(7685),Ht=m(3237),ln=m(1120),yt=m(136),mt=m(9388),cn=m(7762),$t=m(4902),j=m(5671),V=m(3144);function Jn(){Jn=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function Bt(t){if(":"!=t[0])return[null,t];var r=t.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(t,'" expecting ":namespace:name"'));return[t.slice(1,r),t.slice(r+1)]}function dt(t){return"ng-container"===Bt(t)[1]}function de(t){return"ng-content"===Bt(t)[1]}function ue(t){return null===t?null:Bt(t)[0]}function We(t,r){return t?":".concat(t,":").concat(r):r}(t=wn||(wn={}))[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA";var Dt,tn,lt=function(){function t(){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?wn.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,f=e.isVoid,h=void 0!==f&&f,v=e.ignoreFirstLf,C=void 0!==v&&v,B=e.preventNamespaceInheritance,G=void 0!==B&&B;(0,j.Z)(this,t),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=G}return(0,V.Z)(t,[{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}}]),t}();function Jt(t){var r,e;return tn||(Dt=new lt,tn={base:new lt({isVoid:!0}),meta:new lt({isVoid:!0}),area:new lt({isVoid:!0}),embed:new lt({isVoid:!0}),link:new lt({isVoid:!0}),img:new lt({isVoid:!0}),input:new lt({isVoid:!0}),param:new lt({isVoid:!0}),hr:new lt({isVoid:!0}),br:new lt({isVoid:!0}),source:new lt({isVoid:!0}),track:new lt({isVoid:!0}),wbr:new lt({isVoid:!0}),p:new lt({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 lt({closedByChildren:["tbody","tfoot"]}),tbody:new lt({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new lt({closedByChildren:["tbody"],closedByParent:!0}),tr:new lt({closedByChildren:["tr"],closedByParent:!0}),td:new lt({closedByChildren:["td","th"],closedByParent:!0}),th:new lt({closedByChildren:["td","th"],closedByParent:!0}),col:new lt({isVoid:!0}),svg:new lt({implicitNamespacePrefix:"svg"}),foreignObject:new lt({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new lt({implicitNamespacePrefix:"math"}),li:new lt({closedByChildren:["li"],closedByParent:!0}),dt:new lt({closedByChildren:["dt","dd"]}),dd:new lt({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new lt({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new lt({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new lt({closedByChildren:["optgroup"],closedByParent:!0}),option:new lt({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new lt({ignoreFirstLf:!0}),listing:new lt({ignoreFirstLf:!0}),style:new lt({contentType:wn.RAW_TEXT}),script:new lt({contentType:wn.RAW_TEXT}),title:new lt({contentType:{default:wn.ESCAPABLE_RAW_TEXT,svg:wn.PARSABLE_DATA}}),textarea:new lt({contentType:wn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=tn[t])&&void 0!==r?r:tn[t.toLowerCase()])&&void 0!==e?e:Dt}var jn,mn,nn=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),dn=function(){function t(){(0,j.Z)(this,t),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,V.Z)(t,[{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 Jt(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(B,G){G.notSelectors.length>0&&!G.element&&0==G.classNames.length&&0==G.attrs.length&&(G.element="*"),B.push(G)},a=new t,l=a,u=!1;for(nn.lastIndex=0;s=nn.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new t,a.notSelectors.push(l)}var f=s[2];if(f){var h=s[3];"#"===h?l.addAttribute("id",f.substr(1)):"."===h?l.addClassName(f.substr(1)):l.setElement(f)}var v=s[4];if(v&&l.addAttribute(l.unescapeAttribute(v),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 t}}return o(i,a),i}}]),t}();!function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(jn||(jn={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(mn||(mn={}));var tt,Ue,lr={name:"custom-elements"},Yn={name:"no-errors-schema"};function bt(t){var r=function Ee(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return[t.element&&"*"!==t.element?t.element:""].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r))}(t),e=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(function(i){return function He(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return t.element?[5,t.element].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.attrs.length?[3].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.classNames&&t.classNames.length?[9].concat((0,$t.Z)(t.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,$t.Z)(e))}function Yt(t){return t?dn.parse(t).map(bt):[]}!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(tt||(tt={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(Ue||(Ue={}));var rr=/-+([a-z0-9])/g;function ut(t,r){return Ae(t,":",r)}function Ae(t,r,e){var i=t.indexOf(r);return-1==i?e:[t.slice(0,i).trim(),t.slice(i+1).trim()]}function _t(t){throw new Error("Internal Error: ".concat(t))}function vn(t){for(var r=[],e=0;e<t.length;e++){var i=t.charCodeAt(e);if(i>=55296&&i<=56319&&t.length>e+1){var o=t.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 Ln(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ln).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var r=t.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var cr=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Rr="undefined"!=typeof window&&window,$r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Hi="undefined"!=typeof global&&global||Rr||$r;var Ja=function(){function t(r){(0,j.Z)(this,t),this.digits=r}return(0,V.Z)(t,[{key:"clone",value:function(){return new t(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 t([0])}},{key:"one",value:function(){return new t([1])}}]),t}(),Na=function(){function t(r){(0,j.Z)(this,t),this.powerOfTwos=[r]}return(0,V.Z)(t,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Ja.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]}}]),t}(),qo=function(){function t(r){(0,j.Z)(this,t),this.base=r,this.exponents=[new Na(Ja.one())]}return(0,V.Z)(t,[{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 Na(o)}return this.exponents[e]}}]),t}();function Ko(t){return function lo(t){var r=vn(t),e=function Jo(t,r){for(var e=t.length+3>>>2,i=[],o=0;o<e;o++)i[o]=bi(t,4*o,r);return i}(r,Wi.Big),i=8*r.length,o=function bo(t,r){for(var e=[],i=0;i<t;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,f=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 v=a,C=s,B=l,G=u,q=f,ae=0;ae<80;ae++){o[ae]=ae<16?e[h+ae]:Do(o[ae-3]^o[ae-8]^o[ae-14]^o[ae-16],1);var pe=uo(ae,s,l,u),Ve=pe[0],Me=pe[1],Be=[Do(a,5),Ve,f,Me,o[ae]].reduce(hr);f=u,u=l,l=Do(s,30),s=a,a=Be}a=hr(a,v),s=hr(s,C),l=hr(l,B),u=hr(u,G),f=hr(f,q)}return function oa(t){for(var r="",e=0;e<t.length;e++){var i=ga(t,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function Nr(t){return t.reduce(function(r,e){return r.concat(function ws(t){for(var r=[],e=0;e<4;e++)r.push(t>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,f]))}(function Pr(t){return t.map(function(r){return r.visit(or,null)})}(t.nodes).join("")+"[".concat(t.meaning,"]"))}function yi(t){return t.id||Qa(t)}function Qa(t){var r=new ci;return Bo(t.nodes.map(function(i){return i.visit(r,null)}).join(""),t.meaning)}var zi=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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>")}}]),t}(),or=new zi;var Wi,ci=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(zi);function uo(t,r,e,i){return t<20?[r&e|~r&i,1518500249]:t<40?[r^e^i,1859775393]:t<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function mi(t){var r=vn(t),e=ei(r,0),i=ei(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Bo(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=mi(t);if(r){var i=mi(r);e=Xa(_i(e,1),i)}var o=e[0],a=e[1];return yn(2147483647&o,a)}function ei(t,r){var o,e=2654435769,i=2654435769,a=t.length;for(o=0;o+12<=a;o+=12){var s=Pi(e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,bi(t,o+8,Wi.Little)));e=s[0],i=s[1],r=s[2]}return e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,a),Pi(e,i,r=hr(r,bi(t,o+8,Wi.Little)<<8))[2]}function Pi(t,r,e){return t=Ri(t,r),t=Ri(t,e),t^=e>>>13,r=Ri(r,e),r=Ri(r,t),r^=t<<8,e=Ri(e,t),e=Ri(e,r),e^=r>>>13,t=Ri(t,r),t=Ri(t,e),t^=e>>>12,r=Ri(r,e),r=Ri(r,t),r^=t<<16,e=Ri(e,t),e=Ri(e,r),e^=r>>>5,t=Ri(t,r),t=Ri(t,e),t^=e>>>3,r=Ri(r,e),r=Ri(r,t),r^=t<<10,e=Ri(e,t),e=Ri(e,r),[t,r,e^=r>>>15]}function hr(t,r){return Js(t,r)[1]}function Js(t,r){var e=(65535&t)+(65535&r),i=(t>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function Xa(t,r){var e=t[0],i=t[1],o=r[0],s=Js(i,r[1]),l=s[0],u=s[1];return[hr(hr(e,o),l),u]}function Ri(t,r){var e=(65535&t)-(65535&r);return(t>>16)-(r>>16)+(e>>16)<<16|65535&e}function Do(t,r){return t<<r|t>>>32-r}function _i(t,r){var e=t[0],i=t[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function ga(t,r){return r>=t.length?0:t[r]}function bi(t,r,e){var i=0;if(e===Wi.Big)for(var o=0;o<4;o++)i+=ga(t,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=ga(t,r+a)<<8*a;return i}!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Wi||(Wi={}));var Cn,Ba=new qo(256);function yn(t,r){var e=Ba.toThePowerOf(0).multiplyBy(r);return Ba.toThePowerOf(4).multiplyByAndAddTo(t,e),e.toString()}!function(t){t[t.None=0]="None",t[t.Const=1]="Const"}(Cn||(Cn={}));var Li,oi=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cn.None;(0,j.Z)(this,t),this.modifiers=r}return(0,V.Z)(t,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Li||(Li={}));var mo,tr,Ki=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(oi),ti=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,j.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(oi),Ji=new Ki(Li.Dynamic),Ci=new Ki(Li.Inferred),Co=new Ki(Li.Bool),Uo=(new Ki(Li.Int),new Ki(Li.Number)),ya=new Ki(Li.String),Qi=(new Ki(Li.Function),new Ki(Li.None));function Fa(t,r){return null==t||null==r?t==r:t.isEquivalent(r)}function Oo(t,r,e){var i=t.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(t[o],r[o]))return!1;return!0}function io(t,r){return Oo(t,r,function(e,i){return e.isEquivalent(i)})}!function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"}(mo||(mo={})),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals",t[t.NullishCoalesce=16]="NullishCoalesce"}(tr||(tr={}));var Kr=function(){function t(r,e){(0,j.Z)(this,t),this.type=r||null,this.sourceSpan=e||null}return(0,V.Z)(t,[{key:"prop",value:function(e,i){return new ai(this,e,null,i)}},{key:"key",value:function(e,i,o){return new $i(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new Xi(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new Ps(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 un(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new ar(tr.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new ar(tr.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new ar(tr.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new ar(tr.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new ar(tr.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new ar(tr.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new ar(tr.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new ar(tr.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new ar(tr.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new ar(tr.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new ar(tr.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new ar(tr.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new ar(tr.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new ar(tr.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new ar(tr.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new ar(tr.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(Ce,e)}},{key:"nullishCoalesce",value:function(e,i){return new ar(tr.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Ir(this,null)}}]),t}(),la=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,V.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 Is(this.name,o,null,this.sourceSpan)}}]),e}(Kr),Qo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,V.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}(Kr),br=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,V.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}(Kr),Is=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,V.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 nr(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ci,Je.Final)}}]),e}(Kr),cs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,V.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}(Kr),ba=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,V.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}(Kr),Xi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&io(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}(Kr),$a=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Oo(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&io(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Kr),Ps=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&io(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Kr),es=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,V.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}(Kr),Ua=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.elements=r,this.expressions=e}),Mu=(0,V.Z)(function t(r,e,i){var o;(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:Re(ja(r))}),Ha=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e}),Xo=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),wo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,ya,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,V.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)}),Ge(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(Bo(s.associatedMessage.messageString,s.associatedMessage.meaning))),Ge(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Kr),ja=function(r){return r.replace(/\\/g,"\\\\")},Su=function(r){return r.replace(/^:/,"\\:")},ye=function(r){return r.replace(/:/g,"\\:")},Re=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function Ge(t,r,e){return""===t?{cooked:r,raw:Re(Su(ja(r))),range:e}:{cooked:":".concat(t,":").concat(r),raw:Re(":".concat(ye(ja(t)),":").concat(ja(r))),range:e}}var Je,gt=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,V.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}(Kr),un=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Fa(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Kr),Mn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,Co,o)).condition=i,a}return(0,V.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}(Kr),Pn=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,j.Z)(this,t),this.name=r,this.type=e}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),t}(),Or=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(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 Lr(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Kr),jr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a||Uo,s)).operator=i,l.expr=o,l.parens=u,l}return(0,V.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}(Kr),ar=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,j.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=f,u.lhs=o,u}return(0,V.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}(Kr),ai=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,V.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 ba(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Kr),$i=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,V.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 cs(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Kr),So=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,V.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Kr),Di=function(){function t(r,e,i){(0,j.Z)(this,t),this.key=r,this.value=e,this.quoted=i}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),t}(),$o=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(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}(Kr),Le=new es(null,null,null),Ce=new es(null,Ci,null);!function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"}(Je||(Je={}));var Ke=function(){function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,V.Z)(t,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),t}(),Rt=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,V.Z)(e,[{key:"toString",value:function(){return function $e(t){if(0===t.length)return"";if(1===t.length&&t[0].tagName&&!t[0].text)return"*".concat(Ze(t[0])," ");var i,r="*\n",e=(0,cn.Z)(t);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=Ze(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(Ke),an=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Je.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,j.Z)(this,t),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,V.Z)(t,[{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)}}]),t}(),nr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,s,l,u)).name=i,f.value=o,f.type=a||o&&o.type||null,f}return(0,V.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}(an),Lr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,l,u,f)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(an),Ir=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,Je.None,o,a)).expr=i,s}return(0,V.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}(an),_o=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(o=r.call(this,Je.None,a,s)).value=i,o}return(0,V.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}(an),uf=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,Je.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&io(this.trueCase,o.trueCase)&&io(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(an);function oc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Rt(t)}function si(t,r,e){return new la(t,r,e)}function dr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new gt(t,null,r,e)}function Nn(t,r,e){return new ti(t,r,e)}function wi(t){return new Qo(t)}function pi(t,r,e){return new So(t,r,e)}function Ai(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new $o(t.map(function(e){return new Di(e.key,e.value,e.quoted)}),r,null)}function xu(t,r){return new Mn(t,r)}function ji(t,r,e,i,o){return new Or(t,r,e,i,o)}function ml(t,r,e,i,o){return new uf(t,r,e,i,o)}function ze(t,r,e,i){return new $a(t,r,e,i)}function me(t,r,e){return new es(t,r,e)}function ie(t,r,e,i,o){return new wo(t,r,e,i,o)}function fe(t){return t instanceof es&&null===t.value}function Ze(t){var r="";if(t.tagName&&(r+=" @".concat(t.tagName)),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+t.text.replace(/@/g,"\\@")}return r}var Vt=si("<unknown>"),Qt={},Qn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,V.Z)(e,[{key:"visitExpression",value:function(o,a){return a===Qt?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}(Kr),ir=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,j.Z)(this,t),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,V.Z)(t,[{key:"getConstLiteral",value:function(e,i){if(e instanceof es&&!Ne(e)||e instanceof Qn)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new Qn(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,f,l=this.freshName();this.isClosureCompilerEnabled&&Ne(e)?(u=si(l).set(new Or([],[new _o(e)])),f=si(l).callFn([])):(u=si(l).set(e),f=si(l)),this.statements.push(u.toDeclStmt(Ci,Je.Final)),a.fixup(f)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof So){var i=e.entries.map(function(l){return l.isConstant()?l:Vt}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=Ai(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Vt,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Ai(l.map(function(u,f){return{key:e.entries[f].key,value:u,quoted:e.entries[f].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,B){return C.isConstant()?a.getConstLiteral(C,!0):si("a".concat(B))}),h=ji(u.filter(di).map(function(C){return new Pn(C.name,Ji)}),[new _o(o(u))],Ci),v=this.freshName();this.statements.push(si(v).set(h).toDeclStmt(Ci,Je.Final)),s=si(v),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 _r,Qt)}}]),t}(),_r=function(){function t(){(0,j.Z)(this,t),this.visitWrappedNodeExpr=gr,this.visitWriteVarExpr=gr,this.visitWriteKeyExpr=gr,this.visitWritePropExpr=gr,this.visitInvokeFunctionExpr=gr,this.visitTaggedTemplateExpr=gr,this.visitInstantiateExpr=gr,this.visitConditionalExpr=gr,this.visitNotExpr=gr,this.visitAssertNotNullExpr=gr,this.visitCastExpr=gr,this.visitFunctionExpr=gr,this.visitUnaryOperatorExpr=gr,this.visitBinaryOperatorExpr=gr,this.visitReadPropExpr=gr,this.visitReadKeyExpr=gr,this.visitCommaExpr=gr,this.visitLocalizedString=gr}return(0,V.Z)(t,[{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 f=u.quoted?'"':"";return"".concat(f).concat(u.key).concat(f)}(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))}}]),t}();function gr(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function di(t){return t instanceof la}function Ne(t){return t instanceof es&&"string"==typeof t.value&&t.value.length>=50}var we="@angular/core",X=(0,V.Z)(function t(){(0,j.Z)(this,t)});X.NEW_METHOD="factory",X.TRANSFORM_METHOD="transform",X.PATCH_DEPS="patchedDeps",X.core={name:null,moduleName:we},X.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:we},X.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:we},X.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:we},X.element={name:"\u0275\u0275element",moduleName:we},X.elementStart={name:"\u0275\u0275elementStart",moduleName:we},X.elementEnd={name:"\u0275\u0275elementEnd",moduleName:we},X.advance={name:"\u0275\u0275advance",moduleName:we},X.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:we},X.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:we},X.attribute={name:"\u0275\u0275attribute",moduleName:we},X.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:we},X.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:we},X.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:we},X.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:we},X.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:we},X.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:we},X.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:we},X.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:we},X.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:we},X.classProp={name:"\u0275\u0275classProp",moduleName:we},X.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:we},X.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:we},X.elementContainer={name:"\u0275\u0275elementContainer",moduleName:we},X.styleMap={name:"\u0275\u0275styleMap",moduleName:we},X.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:we},X.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:we},X.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:we},X.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:we},X.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:we},X.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:we},X.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:we},X.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:we},X.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:we},X.classMap={name:"\u0275\u0275classMap",moduleName:we},X.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:we},X.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:we},X.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:we},X.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:we},X.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:we},X.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:we},X.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:we},X.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:we},X.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:we},X.styleProp={name:"\u0275\u0275styleProp",moduleName:we},X.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:we},X.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:we},X.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:we},X.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:we},X.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:we},X.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:we},X.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:we},X.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:we},X.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:we},X.nextContext={name:"\u0275\u0275nextContext",moduleName:we},X.templateCreate={name:"\u0275\u0275template",moduleName:we},X.text={name:"\u0275\u0275text",moduleName:we},X.enableBindings={name:"\u0275\u0275enableBindings",moduleName:we},X.disableBindings={name:"\u0275\u0275disableBindings",moduleName:we},X.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:we},X.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:we},X.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:we},X.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:we},X.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:we},X.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:we},X.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:we},X.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:we},X.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:we},X.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:we},X.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:we},X.restoreView={name:"\u0275\u0275restoreView",moduleName:we},X.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:we},X.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:we},X.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:we},X.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:we},X.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:we},X.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:we},X.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:we},X.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:we},X.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:we},X.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:we},X.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:we},X.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:we},X.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:we},X.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:we},X.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:we},X.hostProperty={name:"\u0275\u0275hostProperty",moduleName:we},X.property={name:"\u0275\u0275property",moduleName:we},X.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:we},X.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:we},X.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:we},X.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:we},X.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:we},X.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:we},X.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:we},X.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:we},X.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:we},X.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:we},X.i18n={name:"\u0275\u0275i18n",moduleName:we},X.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:we},X.i18nExp={name:"\u0275\u0275i18nExp",moduleName:we},X.i18nStart={name:"\u0275\u0275i18nStart",moduleName:we},X.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:we},X.i18nApply={name:"\u0275\u0275i18nApply",moduleName:we},X.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:we},X.pipe={name:"\u0275\u0275pipe",moduleName:we},X.projection={name:"\u0275\u0275projection",moduleName:we},X.projectionDef={name:"\u0275\u0275projectionDef",moduleName:we},X.reference={name:"\u0275\u0275reference",moduleName:we},X.inject={name:"\u0275\u0275inject",moduleName:we},X.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:we},X.directiveInject={name:"\u0275\u0275directiveInject",moduleName:we},X.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:we},X.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:we},X.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:we},X.forwardRef={name:"forwardRef",moduleName:we},X.resolveForwardRef={name:"resolveForwardRef",moduleName:we},X.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:we},X.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:we},X.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:we},X.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:we},X.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:we},X.resolveBody={name:"\u0275\u0275resolveBody",moduleName:we},X.defineComponent={name:"\u0275\u0275defineComponent",moduleName:we},X.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:we},X.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:we},X.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:we},X.ViewEncapsulation={name:"ViewEncapsulation",moduleName:we},X.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:we},X.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:we},X.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:we},X.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:we},X.defineDirective={name:"\u0275\u0275defineDirective",moduleName:we},X.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:we},X.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:we},X.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:we},X.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:we},X.defineInjector={name:"\u0275\u0275defineInjector",moduleName:we},X.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:we},X.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:we},X.ModuleWithProviders={name:"ModuleWithProviders",moduleName:we},X.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:we},X.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:we},X.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:we},X.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:we},X.definePipe={name:"\u0275\u0275definePipe",moduleName:we},X.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:we},X.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:we},X.setClassMetadata={name:"\u0275setClassMetadata",moduleName:we},X.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:we},X.viewQuery={name:"\u0275\u0275viewQuery",moduleName:we},X.loadQuery={name:"\u0275\u0275loadQuery",moduleName:we},X.contentQuery={name:"\u0275\u0275contentQuery",moduleName:we},X.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:we},X.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:we},X.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:we},X.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:we},X.listener={name:"\u0275\u0275listener",moduleName:we},X.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:we},X.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:we},X.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:we},X.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:we},X.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:we},X.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:we},X.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:we},X.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:we},X.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:we};var ot=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,j.Z)(this,t),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,V.Z)(t,[{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(v,C){i.set(v,C),o.push(v),a.push(e.sourcesContent.get(v)||null)});var s="",l=0,u=0,f=0,h=0;return this.lines.forEach(function(v){l=0,s+=v.map(function(C){var B=fn(C.col0-l);return l=C.col0,null!=C.sourceUrl&&(B+=fn(i.get(C.sourceUrl)-u),u=i.get(C.sourceUrl),B+=fn(C.sourceLine0-f),f=C.sourceLine0,B+=fn(C.sourceCol0-h),h=C.sourceCol0),B}).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 At(t){for(var r="",e=vn(t),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=Sr(o>>2),r+=Sr((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Sr((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Sr(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),t}();function fn(t){t=t<0?1+(-t<<1):t<<1;var r="";do{var e=31&t;(t>>=5)>0&&(e|=32),r+=Sr(e)}while(t>0);return r}function Sr(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}var Ti=/'|\\|\n|\r|\$/g,jo=/^[$A-Z_][0-9A-Z_$]*$/i,Ts=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),to=function(){function t(r){(0,j.Z)(this,t),this._indent=r,this._lines=[new Ts(r)]}return(0,V.Z)(t,[{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 Ts(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?Em(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 ot(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,f){o.addLine();for(var h=u.srcSpans,v=u.parts,C=u.indent*" ".length,B=0;B<h.length&&!h[B];)C+=v[B].length,B++;for(B<h.length&&0===f&&0===C?a=!0:s();B<h.length;){var G=h[B],q=G.start.file,ae=G.start.line,pe=G.start.col;for(o.addSource(q.url,q.content).addMapping(C,q.url,ae,pe),C+=v[B].length,B++;B<h.length&&(G===h[B]||!h[B]);)C+=v[B].length,B++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-Em(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 t(0)}}]),t}(),df=function(){function t(r){(0,j.Z)(this,t),this._escapeDollarInStrings=r}return(0,V.Z)(t,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,cn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof Rt?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,au(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 mo.Plus:o="+";break;case mo.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 tr.Equals:o="==";break;case tr.Identical:o="===";break;case tr.NotEquals:o="!=";break;case tr.NotIdentical:o="!==";break;case tr.And:o="&&";break;case tr.BitwiseAnd:o="&";break;case tr.Or:o="||";break;case tr.Plus:o="+";break;case tr.Minus:o="-";break;case tr.Divide:o="/";break;case tr.Multiply:o="*";break;case tr.Modulo:o="%";break;case tr.Lower:o="<";break;case tr.LowerEquals:o="<=";break;case tr.Bigger:o=">";break;case tr.BiggerEquals:o=">=";break;case tr.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(au(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)})}}]),t}();function au(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==t)return null;var i=t.replace(Ti,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||!jo.test(i);return o?"'".concat(i,"'"):i}function Em(t){for(var r="",e=0;e<t;e++)r+=" ";return r}function id(t,r){if(0===r)return Nn(t);for(var e=[],i=0;i<r;i++)e.push(Ji);return Nn(t,void 0,e)}var lc,ur;function Mm(t){return"".concat("@").concat(t)}function ff(t,r){return"".concat("@").concat(t,".").concat(r)}function pf(t,r){return"animation_".concat(t,"_").concat(r)}function iv(t,r){var e=new gt({name:t,moduleName:null}),i=new ar(tr.Identical,new Qo(e),me("undefined")),o=new ar(tr.Or,i,e,void 0,void 0,!0);return new ar(tr.And,o,r)}function ko(t){var r=new br(t);return{value:r,type:r}}function ns(t,r){var e=pi(t.map(function(i){return i.value}));return r?ji([],[new _o(e)]):e}function Sm(t,r){return{expression:t,forwardRef:r}}function sc(t){var r=t.expression;switch(t.forwardRef){case 0:case 1:return r;case 2:return Du(r)}}function Du(t){return dr(X.forwardRef).callFn([ji([],[new _o(t)])])}function Wr(t){var r=si("t"),e=null,i=uc(t)?r:new ar(tr.Or,r,t.internalType),o=null;null!==t.deps?"invalid"!==t.deps&&(o=new Ps(i,ea(t.deps,t.target))):(e=si("\u0275".concat(t.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(B){var G=si("r");a.push(G.set(Le).toDeclStmt());var q=null!==o?G.set(o).toStmt():dr(X.invalidFactory).callFn([]).toStmt();return a.push(ml(r,[q],[G.set(B).toStmt()])),G}if(uc(t)){var u=ea(t.delegateDeps,t.target);s=l(new(t.delegateType===lc.Class?Ps:Xi)(t.delegate,u))}else s=function xm(t){return void 0!==t.expression}(t)?l(t.expression):o;if(null===s)a.push(dr(X.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=dr(X.getInheritedFactory).callFn([t.internalType]),v=new ar(tr.Or,e,e.set(h));a.push(new _o(v.callFn([i])))}else a.push(new _o(s));var C=ji([new Pn("t",Ji)],a,Ci,void 0,"".concat(t.name,"_Factory"));return null!==e&&(C=ji([],[new nr(e.name),new _o(C)]).callFn([],void 0,!0)),{expression:C,statements:[],type:li(t)}}function li(t){var r=null!==t.deps&&"invalid"!==t.deps?function Ou(t){var r=!1,e=t.map(function(i){var o=function ad(t){var r=[];return null!==t.attributeNameType&&r.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&r.push({key:"optional",value:me(!0),quoted:!1}),t.host&&r.push({key:"host",value:me(!0),quoted:!1}),t.self&&r.push({key:"self",value:me(!0),quoted:!1}),t.skipSelf&&r.push({key:"skipSelf",value:me(!0),quoted:!1}),r.length>0?Ai(r):null}(i);return null!==o?(r=!0,o):me(null)});return r?Nn(pi(e)):Qi}(t.deps):Qi;return Nn(dr(X.FactoryDeclaration,[id(t.type.type,t.typeArgumentCount),r]))}function ea(t,r){return t.map(function(e,i){return function Au(t,r,e){if(null===t.token)return dr(X.invalidFactoryDep).callFn([me(e)]);if(null===t.attributeNameType){var i=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(r===ur.Pipe?16:0),o=0!==i||t.optional?me(i):null,a=[t.token];o&&a.push(o);var s=function Ca(t){switch(t){case ur.Component:case ur.Directive:case ur.Pipe:return X.directiveInject;case ur.NgModule:case ur.Injectable:default:return X.inject}}(r);return dr(s).callFn(a)}return dr(X.injectAttribute).callFn([t.token])}(e,r,i)})}function uc(t){return void 0!==t.delegateType}!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"}(lc||(lc={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(ur||(ur={}));var Iu=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),t}(),Dm=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitText(this)}}]),t}(),ds=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),t}(),Pu=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),t}(),cc=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{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 t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),t}(),dc=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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,V.Z)(t,[{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 t(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),t}(),sd=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.i18n=h}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitElement(this)}}]),t}(),ov=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),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=f,this.startSourceSpan=h,this.endSourceSpan=v,this.i18n=C}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),t}(),GN=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitContent(this)}}]),t}(),DI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),t}(),av=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitReference(this)}}]),t}(),Mb=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),t}();function OI(t,r){var e=[];if(t.visit){var o,i=(0,cn.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;t.visit(a)||a.visit(t)}}catch(v){i.e(v)}finally{i.f()}}else{var u,l=(0,cn.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(t);h&&e.push(h)}}catch(v){l.e(v)}finally{l.f()}}return e}var ld=(0,V.Z)(function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 PI(t){var r=new Om,e=t.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=[]}),sv=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),t}(),Am=function(){function t(r,e){(0,j.Z)(this,t),this.children=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),t}(),II=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),t}(),KN=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),t}(),lv=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),t}(),hf=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),t}();var Om=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,"}")}}]),t}(),sT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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]>")}}]),t}();new sT;function xb(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var _l="i18n-";function Rm(t){return"i18n"===t||t.startsWith(_l)}function Lm(t){return t instanceof ld}function Db(t){return Lm(t)&&1===t.nodes.length&&t.nodes[0]instanceof II}function tB(t){return!!t.i18n}function nB(t){return t.nodes[0]}function hv(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(t).concat(e).concat("\ufffd")}function uT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;return function(){return r++}}function Lp(t){var r={};return t.forEach(function(e,i){r[i]=me(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function cT(t,r){for(var e=t.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),t.set(r,e)}function dT(t){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=t instanceof ld?t.nodes.find(function(s){return s instanceof Am}):t;return a&&a.children.filter(function(s){return s instanceof lv}).forEach(function(s,l){var u=hv(i+l,e);cT(o,s.name,u)}),o}function fT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return t&&Object.keys(t).length&&Object.keys(t).forEach(function(i){return e[Ab(i,r)]=t[i]}),e}function Ab(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=xb(t);if(!r)return e;var o,i=e.split("_");if(1===i.length)return t.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 FI(t){return"".concat("MSG_").concat(t).toUpperCase()}function rB(t){return new nr(t.name,void 0,Ci,void 0,t.sourceSpan)}var iB=/[-.]/,Ob="_t",Zl="ctx",mf="rf",mv="restoredCtx",sB=new Set([X.element,X.elementStart,X.elementEnd,X.elementContainer,X.elementContainerStart,X.elementContainerEnd,X.i18nExp,X.listener,X.classProp,X.syntheticHostListener,X.hostProperty,X.syntheticHostProperty,X.property,X.propertyInterpolate1,X.propertyInterpolate2,X.propertyInterpolate3,X.propertyInterpolate4,X.propertyInterpolate5,X.propertyInterpolate6,X.propertyInterpolate7,X.propertyInterpolate8,X.propertyInterpolateV,X.attribute,X.attributeInterpolate1,X.attributeInterpolate2,X.attributeInterpolate3,X.attributeInterpolate4,X.attributeInterpolate5,X.attributeInterpolate6,X.attributeInterpolate7,X.attributeInterpolate8,X.attributeInterpolateV,X.styleProp,X.stylePropInterpolate1,X.stylePropInterpolate2,X.stylePropInterpolate3,X.stylePropInterpolate4,X.stylePropInterpolate5,X.stylePropInterpolate6,X.stylePropInterpolate7,X.stylePropInterpolate8,X.stylePropInterpolateV,X.textInterpolate,X.textInterpolate1,X.textInterpolate2,X.textInterpolate3,X.textInterpolate4,X.textInterpolate5,X.textInterpolate6,X.textInterpolate7,X.textInterpolate8,X.textInterpolateV]);function _v(t,r,e){return dr(r,null,t).callFn(e,t)}function hT(t,r){var e=null;return function(){return e||(t.push(new nr("_t",void 0,Ji)),e=si(r)),e}}function gv(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function Ls(t){return Array.isArray(t)?pi(t.map(Ls)):me(t,Ci)}function vv(t,r){return Object.getOwnPropertyNames(t).length>0?function lB(t,r){return Ai(Object.getOwnPropertyNames(t).map(function(e){var o,a,s,l,i=t[e];if(Array.isArray(i)){var u=(0,Ut.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else{var f=ut(e,[e,i]),h=(0,Ut.Z)(f,2);s=o=h[0],l=(a=h[1])!==o&&e.includes(":")}return{key:s,quoted:iB.test(s),value:r&&l?pi([Ls(a),Ls(o)]):Ls(a)}}))}(t,r):null}function rs(t){for(;fe(t[t.length-1]);)t.pop();return t}function UI(t,r){if(Array.isArray(t.predicate)){var e=[];return t.predicate.forEach(function(i){var o=i.split(",").map(function(a){return me(a.trim())});e.push.apply(e,(0,$t.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return dr(X.resolveForwardRef).callFn([t.predicate.expression])}}var ps=function(){function t(){(0,j.Z)(this,t),this.values=[]}return(0,V.Z)(t,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Ai(this.values)}}]),t}();function Ru(t){var r=t.expressions,e=t.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function Ib(t){var r,l,e=[],i=null,o=null,a=0,s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,f=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(f)?f:[f];a<500&&o===u.reference&&sB.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=_v(u.span,u.reference,h),o=u.reference,a=0)}}catch(v){s.e(v)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function jI(t,r){var e=null,i={name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:t.typeArgumentCount,deps:[],target:ur.Injectable};if(void 0!==t.useClass){var o=t.useClass.expression.isEquivalent(t.internalType),a=void 0;void 0!==t.deps&&(a=t.deps),e=void 0!==a?Wr(Object.assign(Object.assign({},i),{delegate:t.useClass.expression,delegateDeps:a,delegateType:lc.Class})):o?Wr(i):{statements:[],expression:yv(t.type.value,t.useClass.expression,r)}}else e=void 0!==t.useFactory?void 0!==t.deps?Wr(Object.assign(Object.assign({},i),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:lc.Function})):{statements:[],expression:ji([],[new _o(t.useFactory.callFn([]))])}:void 0!==t.useValue?Wr(Object.assign(Object.assign({},i),{expression:t.useValue.expression})):void 0!==t.useExisting?Wr(Object.assign(Object.assign({},i),{expression:dr(X.inject).callFn([t.useExisting.expression])})):{statements:[],expression:yv(t.type.value,t.internalType,r)};var s=t.internalType,l=new ps;return l.set("token",s),l.set("factory",e.expression),null!==t.providedIn.expression.value&&l.set("providedIn",sc(t.providedIn)),{expression:dr(X.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:zI(t),statements:e.statements}}function zI(t){return new ti(dr(X.InjectableDeclaration,[id(t.type.type,t.typeArgumentCount)]))}function yv(t,r,e){return t.node===r.node?r.prop("\u0275fac"):Zm(e?dr(X.resolveForwardRef).callFn([r]):r)}function Zm(t){return ji([new Pn("t",Ji)],[new _o(t.prop("\u0275fac").callFn([si("t")]))])}var Pb=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var mT=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,null,[{key:"fromArray",value:function(e){return e?(function Nm(t,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(t,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];Pb.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new t(e[0],e[1])):su}}]),t}(),su=new mT("{{","}}"),fd=123,hc=125;function wT(t){return t>=9&&t<=32||160==t}function pd(t){return 48<=t&&t<=57}function kT(t){return t>=97&&t<=122||t>=65&&t<=90}function aP(t){return 10===t||13===t}function sP(t){return 48<=t&&t<=55}function Bb(t){return 39===t||34===t||96===t}var hd,vf=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,V.Z)(t,[{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 f=i.substr(0,a-1).lastIndexOf(String.fromCharCode(10));l=f>0?a-f:a}else l--}for(;a<o&&e>0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new t(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}}]),t}(),Fb=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.content=r,this.url=e}),za=function(){function t(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,j.Z)(this,t),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,V.Z)(t,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(hd||(hd={}));var uu=function(){function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;(0,j.Z)(this,t),this.span=r,this.msg=e,this.level=i}return(0,V.Z)(t,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(hd[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)}}]),t}();var uP=0;function zp(t){return t.replace(/\W/g,"_")}var Ub,cP='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',gB=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,!1)}return(0,V.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(cP,"(")),a.print(o,"[".concat(l.map(function(u){return au(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return au(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(cP,"("));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(f){return au(f.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(f){return au(f.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(f){a.print(o,", "),f.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}(df);function yB(t){var r;return(null===(r=function vB(){if(void 0===Ub&&(Ub=null,Hi.trustedTypes))try{Ub=Hi.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(t){}return Ub}())||void 0===r?void 0:r.createScript(t))||t}function bB(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!Hi.trustedTypes)return(0,Et.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=Hi.eval(yB(a));return void 0===s.bind?(0,Et.Z)(Function,r):(s.toString=function(){return a},s.bind(Hi))}var eW=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new kv(o),l=to.createRoot();return i.length>0&&!function cu(t){return t.isEquivalent(me("use strict").toStmt())}(i[0])&&(i=[me("use strict").toStmt()].concat((0,$t.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 f in o)u.push(o[f]),l.push(f);if(a){var h=bB.apply(void 0,(0,$t.Z)(l.concat("return null;"))).toString(),v=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,v).toJsComment())}var C=bB.apply(void 0,(0,$t.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,$t.Z)(i))}}]),t}(),kv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,V.Z)(e,[{key:"createReturnStmt",value:function(o){new _o(new $o(this._evalExportedVars.map(function(s){return new Di(s,si(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(Je.Exported)&&this._evalExportedVars.push(o.name),(0,Ht.Z)((0,ln.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(Je.Exported)&&this._evalExportedVars.push(o.name),(0,Ht.Z)((0,ln.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 TT(t){if(!t||!t.reference)return null;var r=t.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Ln(r);return e.indexOf("(")>=0?(e="anonymous_".concat(uP++),r.__anonymousType=e):e=zp(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(gB);function Hb(t){var r=new ps;return null!==t.providers&&r.set("providers",t.providers),t.imports.length>0&&r.set("imports",pi(t.imports)),{expression:dr(X.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:ET(t),statements:[]}}function ET(t){return new ti(dr(X.InjectorDeclaration,[new ti(t.type.type)]))}var dP=function(){function t(r){(0,j.Z)(this,t),this.context=r}return(0,V.Z)(t,[{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]}}]),t}();function Ns(t){var r=t.internalType,e=t.bootstrap,i=t.declarations,o=t.imports,a=t.exports,s=t.schemas,l=t.containsForwardDecls,u=t.emitInline,f=t.id,h=[],v=new ps;if(v.set("type",r),e.length>0&&v.set("bootstrap",ns(e,l)),u)i.length>0&&v.set("declarations",ns(i,l)),o.length>0&&v.set("imports",ns(o,l)),a.length>0&&v.set("exports",ns(a,l));else{var C=function CB(t){var r=t.adjacentType,e=t.declarations,i=t.imports,o=t.exports,a=t.containsForwardDecls,s=new ps;if(e.length>0&&s.set("declarations",ns(e,a)),i.length>0&&s.set("imports",ns(i,a)),o.length>0&&s.set("exports",ns(o,a)),0===Object.keys(s.values).length)return null;var u=function Pp(t){return iv("ngJitMode",t)}(new Xi(dr(X.setNgModuleScope),[r,s.toLiteralMap()])),f=new Or([],[u.toStmt()]);return new Xi(f,[]).toStmt()}(t);null!==C&&h.push(C)}return null!==s&&s.length>0&&v.set("schemas",pi(s.map(function(q){return q.value}))),null!==f&&v.set("id",f),{expression:dr(X.defineNgModule).callFn([v.toLiteralMap()],void 0,!0),type:jb(t),statements:h}}function jb(t){var r=t.type,e=t.declarations,i=t.imports,o=t.exports;return new ti(dr(X.NgModuleDeclaration,[new ti(r.type),MT(e),MT(i),MT(o)]))}function MT(t){var r=t.map(function(e){return wi(e.type)});return t.length>0?Nn(pi(r)):Qi}function ST(t){var r=[];return r.push({key:"name",value:me(t.pipeName),quoted:!1}),r.push({key:"type",value:t.type.value,quoted:!1}),r.push({key:"pure",value:me(t.pure),quoted:!1}),{expression:dr(X.definePipe).callFn([Ai(r)],void 0,!0),type:fP(t),statements:[]}}function fP(t){return new ti(dr(X.PipeDeclaration,[id(t.type.type,t.typeArgumentCount),new ti(new es(t.pipeName))]))}var Vp,zb=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),Wm=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,[{key:"toAbsolute",value:function(e){return new Va(e+this.start,e+this.end)}}]),t}(),Wa=function(){function t(r,e){(0,j.Z)(this,t),this.span=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"AST"}}]),t}(),Wb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,V.Z)(e)}(Wa),pP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).prefix=a,u.uninterpretedExpression=s,u.location=l,u}return(0,V.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitQuote(this,a)}},{key:"toString",value:function(){return"Quote"}}]),e}(Wa),vl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Wa),Ev=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(Wa),xT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(Ev),Mv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(Wa),DT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,V.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}(Wa),yf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a)).receiver=s,f.name=l,f.value=u,f}return(0,V.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}(Wb),AT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(Wa),Yb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(Wa),OT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,V.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}(Wa),Gb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,u)).exp=a,f.name=s,f.args=l,f}return(0,V.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}(Wb),yl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,V.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}(Wa),qb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(Wa),IT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,V.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}(Wa),Qs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,V.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}(Wa),mc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,V.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}(Wa),Ym=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,l,u,f)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,V.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 yl(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new yl(o,a,0))}}]),e}(mc),Kb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(Wa),Jb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(Wa),Gm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(Wa),md=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(Wa),Va=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}),Wp=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,new Wm(0,null===o?0:o.length),new Va(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,V.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}(Wa),hP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),mP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),tW=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:"visitQuote",value:function(e,i){}},{key:"visitAll",value:function(e,i){var a,o=(0,cn.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()}}}]),t}(),Sv=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new Qs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new yl(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new yf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new Vm(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new AT(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new qb(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new IT(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Ym.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Ym.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 mc(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new Kb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new Jb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new DT(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new Gb(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Vb(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new OT(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new Gm(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new md(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 Mv(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitQuote",value:function(e,i){return new pP(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)}},{key:"visitSafeKeyedRead",value:function(e,i){return new Yb(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),t}(),PT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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 Qs(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 yf(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 Vm(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 AT(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 qb(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new IT(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 Ym.createPlus(e.span,e.sourceSpan,o);case"-":return Ym.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 mc(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 Kb(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new Jb(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 DT(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 Gb(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 Vb(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 OT(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 Mv(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 Gm(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 md(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitQuote",value:function(e,i){return 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 Yb(e.span,e.sourceSpan,o,a):e}}]),t}(),xv=(0,V.Z)(function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===Vp.LITERAL_ATTR,this.isAnimation=this.type===Vp.ANIMATION});!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(Vp||(Vp={}));var RT=(0,V.Z)(function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),Dv=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),LT=(0,V.Z)(function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u}),Qb=(0,V.Z)(function t(){(0,j.Z)(this,t)});function ZT(t,r,e,i,o,a,s){t||(t=new yP(s));var l=function NT(t,r){return function gP(t,r){var e=new EB(t);return r.visit(e)}(t,r)}({createLiteralArrayConverter:function(B){return function(G){return pi(G)}},createLiteralMapConverter:function(B){return function(G){return Ai(B.map(function(ae,pe){return{key:ae.key,value:G[pe],quoted:ae.quoted}}))}},createPipeConverter:function(B){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(B))}},e),u=new e1(t,r,i,!1,o,a),f=[];t1(l.visit(u,co.Statement),f),function kB(t,r,e){for(var i=t-1;i>=0;i--)e.unshift($b(r,i))}(u.temporaryCount,i,f),u.usesImplicitReceiver&&t.notifyImplicitReceiverUse();var h=f.length-1;if(h>=0){var v=f[h];v instanceof Ir&&(f[h]=new _o(v.expr))}return f}Qb.event=si("$event");var co,_P=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.stmts=r,this.currValExpr=e});function wB(t,r,e,i){t||(t=new yP);var o=new e1(t,r,i,!1),a=e.visit(o,co.Expression),s=Xb(o,i);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),new _P(s,a)}function Xb(t,r){for(var e=[],i=0;i<t.temporaryCount;i++)e.push($b(r,i));return e}function BT(t,r){return"tmp_".concat(t,"_").concat(r)}function $b(t,r){return new nr(BT(t,r))}function vP(t,r){if(t!==co.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function Xs(t,r){return t===co.Statement?r.toStmt():r}!function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(co||(co={}));var EB=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,V.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,$t.Z)(o.args)).map(function(u){return u.visit(s,a)});return new Km(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 Km(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 Km(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(Sv),e1=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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,V.Z)(t,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=mo.Plus;break;case"-":o=mo.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return Xs(i,new jr(o,this._visit(e.expr,co.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=tr.Plus;break;case"-":o=tr.Minus;break;case"*":o=tr.Multiply;break;case"/":o=tr.Divide;break;case"%":o=tr.Modulo;break;case"&&":o=tr.And;break;case"||":o=tr.Or;break;case"==":o=tr.Equals;break;case"!=":o=tr.NotEquals;break;case"===":o=tr.Identical;break;case"!==":o=tr.NotIdentical;break;case"<":o=tr.Lower;break;case">":o=tr.Bigger;break;case"<=":o=tr.LowerEquals;break;case">=":o=tr.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return Xs(i,new ar(o,this._visit(e.left,co.Expression),this._visit(e.right,co.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function TB(t,r){if(t!==co.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 Xs(i,this._visit(e.condition,co.Expression).conditional(this._visit(e.trueExp,co.Expression),this._visit(e.falseExp,co.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 vP(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");vP(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(me(e.strings[a])),o.push(this._visit(e.expressions[a],co.Expression));o.push(me(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=[pi(o)]),new FT(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):Xs(i,this._visit(e.receiver,co.Expression).key(this._visit(e.key,co.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this._visit(e.key,co.Expression),s=this._visit(e.value,co.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Xs(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?Ci:void 0;return Xs(i,me(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 xT?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return Xs(i,xu(this._visit(e.expression,co.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return Xs(i,this._visit(e.expression,co.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,co.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))),Xs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof ai)){var u=e.name,f=e.value instanceof yf?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(f,'" 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))),Xs(i,s.set(this._visit(e.value,co.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:"visitQuote",value:function(e,i){throw new Error("Quotes are not supported for evaluation!\n Statement: ".concat(e.uninterpretedExpression," located at ").concat(e.location))}},{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,co.Expression);if(e instanceof Km)return Xs(i,e.converter(a));var s=e.receiver;if(s instanceof yf&&s.receiver instanceof Ev&&!(s.receiver instanceof xT)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return Xs(i,a[0])}return Xs(i,this._visit(s,co.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,co.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 md?this._nodeMap.set(i,new Gm(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Yb?this._nodeMap.set(i,new Vb(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new yf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,co.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),Xs(o,l.conditional(Le,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,co.Expression),a=this._visit(e.right,co.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),Xs(i,s.set(o).notIdentical(Le).and(s.notIdentical(me(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},visitQuote: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(f){return o(l,f)})}(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},visitQuote: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 la(BT(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=BT(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 za(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),t}();function t1(t,r){Array.isArray(t)?t.forEach(function(e){return t1(e,r)}):r.push(t)}function n1(){throw new Error("Unsupported operation")}var FT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=n1,o.isEquivalent=n1,o.visitExpression=n1,o}return(0,V.Z)(e)}(Kr),yP=function(){function t(r){(0,j.Z)(this,t),this.globals=r}return(0,V.Z)(t,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Qb.event.name?Qb.event:null}}]),t}(),Km=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,new vl(i,o),a,null)).converter=s,l}return(0,V.Z)(e)}(Gm),bP=function(){function t(){(0,j.Z)(this,t),this.strictStyling=!0}return(0,V.Z)(t,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=SB(e);e=MB(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,$t.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(Yp,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(wP,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(UT.lastIndex=0;null!==(o=UT.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(kP,function(i,o,a){if(o){var f,s=[],l=o.split(",").map(function(C){return C.trim()}),u=(0,cn.Z)(l);try{for(u.s();!(f=u.n()).done;){var h=f.value;if(!h)break;var v=_d+h.replace(r1,"")+a;s.push(v)}}catch(C){u.e(C)}finally{u.f()}return s.join(",")}return _d+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(TP,function(i){for(var o,s,a=[[]];s=EP.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(v){return v.trim()}).filter(function(v){return""!==v}),u=a.length;DB(a,l.length);for(var f=0;f<l.length;f++)for(var h=0;h<u;h++)a[h+f*u].push(l[f]);i=s[2]}return a.map(function(v){return function Nu(t,r){var e=_d;bf.lastIndex=0;var i=bf.test(r);if(0===t.length)return e+r;for(var o=[t.pop()||""];t.length>0;)for(var a=o.length,s=t.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(f){return i?"".concat(f).concat(r):"".concat(f).concat(e).concat(r,", ").concat(f," ").concat(e).concat(r)}).join(",")}(v,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return i1.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return GT(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 YT(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return GT(e,function(i){var o=i.selector.replace(Av," ").replace(jT," ");return new YT(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(Av)}).map(function(l){var B,u=(0,Zt.Z)(l),f=u[0],h=u.slice(1);return[(B=f,s._selectorNeedsScoping(B,i)?a?s._applyStrictSelectorScope(B,i,o):s._applySelectorScope(B,i,o):B)].concat((0,$t.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+")"+MP,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(bf.lastIndex=0,bf.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(jT,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,f,h,v){return f+a+h+v})}).replace(bf,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(Be){return arguments.length<=1?void 0:arguments[1]});for(var C,l="["+i+"]",u=function(pt){var ht=pt.trim();if(!ht)return"";if(pt.indexOf(_d)>-1)ht=a._applySimpleSelectorScope(pt,i,o);else{var Pe=pt.replace(bf,"");if(Pe.length>0){var at=Pe.match(/([^:]*)(:*)(.*)/);at&&(ht=at[1]+l+at[2]+at[3])}}return ht},f=new CP(e),h="",v=0,B=/( |>|\+|~(?!=))\s*/g,q=!((e=f.content()).indexOf(_d)>-1);null!==(C=B.exec(e));){var ae=C[1],pe=e.slice(v,C.index).trim(),Ve=(q=q||pe.indexOf(_d)>-1)?u(pe):pe;h+="".concat(Ve," ").concat(ae," "),v=B.lastIndex}var Me=e.substring(v);return h+=(q=q||Me.indexOf(_d)>-1)?u(Me):Me,f.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(zT,Jm).replace(SP,r1)}}]),t}(),CP=function(){function t(r){var e=this;(0,j.Z)(this,t),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,V.Z)(t,[{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})}}]),t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,wP=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,UT=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,r1="-shadowcsshost",Jm="-shadowcsscontext",HT="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",kP=new RegExp(r1+HT,"gim"),TP=new RegExp(Jm+HT,"gim"),EP=new RegExp(Jm+HT,"im"),_d=r1+"-no-combinator",jT=/-shadowcsshost-no-combinator([^\s]*)/,i1=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Av=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,MP="([>\\s~+[.,{:][\\s\\S]*)?$",bf=/-shadowcsshost/gim,SP=/:host/gim,zT=/:host-context/gim,Ov=/\/\*[\s\S]*?\*\//g;function MB(t){return t.replace(Ov,"")}var xP=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function SB(t){return t.match(xP)||[]}var WT="%BLOCK%",VT=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,AP=/%QUOTED%/g,nW=new Map([["{","}"]]),OP=new Map([['"','"'],["'","'"]]),YT=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.selector=r,this.content=e});function GT(t,r){var e=IP(t,OP,"%QUOTED%"),i=IP(e.escapedString,nW,WT),o=0,a=0;return i.escapedString.replace(VT,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],f="";u&&u.startsWith("{"+WT)&&(l=i.blocks[o++],u=u.substring(WT.length+1),f="{");var h=r(new YT(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(f).concat(h.content).concat(u)}).replace(AP,function(){return e.blocks[a++]})}var xB=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.escapedString=r,this.blocks=e});function IP(t,r,e){for(var u,f,i=[],o=[],a=0,s=0,l=-1,h=0;h<t.length;h++){var v=t[h];"\\"===v?h++:v===f?0===--a&&(o.push(t.substring(l,h)),i.push(e),s=h,l=-1,u=f=void 0):v===u?a++:0===a&&r.has(v)&&(u=v,f=r.get(v),a=1,l=h+1,i.push(t.substring(s,l)))}return-1!==l?(o.push(t.substring(l)),i.push(e)):i.push(t.substring(s)),new xB(i.join(""),o)}function DB(t,r){for(var e=t.length,i=1;i<r;i++)for(var o=0;o<e;o++)t[o+i*e]=t[o].slice(0)}function RP(t){var r=t.charCodeAt(0);if(r==t.charCodeAt(t.length-1)&&(39==r||34==r)){var i=t.substring(1,t.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(t=i)}return t}function LP(t){return t.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var hi,qT=function(){function t(r){(0,j.Z)(this,t),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,V.Z)(t,[{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 f="."!==e.charAt(5),h=e.substr(f?5:6);a=l?this.registerStyleInput(h,f,i,o):this.registerClassInput(h,f,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(KT(o))return null;(function FP(t){return t.startsWith("--")})(e)||(e=LP(e));var l=NP(e),u=l.property,f=l.hasOverrideFlag,h=l.suffix,v={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:f};return i?this._styleMapInput=v:((this._singleStyleInputs=this._singleStyleInputs||[]).push(v),ZP(this._stylesIndex,u)),this._lastStylingInput=v,this._firstStylingInput=this._firstStylingInput||v,this._checkForPipes(o),this.hasBindings=!0,v}},{key:"registerClassInput",value:function(e,i,o,a){if(KT(o))return null;var s=NP(e),l=s.property,f={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=f:((this._singleClassInputs=this._singleClassInputs||[]).push(f),ZP(this._classesIndex,l)),this._lastStylingInput=f,this._firstStylingInput=this._firstStylingInput||f,this._checkForPipes(o),this.hasBindings=!0,f}},{key:"_checkForPipes",value:function(e){e instanceof Wp&&e.ast instanceof Gb&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function PP(t){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<t.length;)switch(t.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,0===o?o=39:39===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=LP(t.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=t.substring(a,e-1).trim();r.push(l,u?RP(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var v=t.substr(a).trim();r.push(l,u?RP(v):v)}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(me(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(me(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(me(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(me(this._initialStyleValues[o]),me(this._initialStyleValues[o+1]))}}},{key:"assignHostAttrs",value:function(e,i){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),i.set("hostAttrs",pi(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 Qs?(a+=s.expressions.length,l=i?function OB(t){switch(Ru(t)){case 1:return X.classMap;case 3:return X.classMapInterpolate1;case 5:return X.classMapInterpolate2;case 7:return X.classMapInterpolate3;case 9:return X.classMapInterpolate4;case 11:return X.classMapInterpolate5;case 13:return X.classMapInterpolate6;case 15:return X.classMapInterpolate7;case 17:return X.classMapInterpolate8;default:return X.classMapInterpolateV}}(s):function fi(t){switch(Ru(t)){case 1:return X.styleMap;case 3:return X.styleMapInterpolate1;case 5:return X.styleMapInterpolate2;case 7:return X.styleMapInterpolate3;case 9:return X.styleMapInterpolate4;case 11:return X.styleMapInterpolate5;case 13:return X.styleMapInterpolate6;case 15:return X.styleMapInterpolate7;case 17:return X.styleMapInterpolate8;default:return X.styleMapInterpolateV}}(s)):l=i?X.classMap:X.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(f){var h=f(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var f=l[l.length-1],h=u.value.visit(o),v=e,C=2;h instanceof Qs&&(C+=h.expressions.length,a&&(v=a(h)));var B={sourceSpan:u.sourceSpan,allocateBindingSlots:C,supportsInterpolation:!!a,params:function(q){var ae=[];ae.push(me(u.name));var pe=q(h);return Array.isArray(pe)?ae.push.apply(ae,(0,$t.Z)(pe)):ae.push(pe),!s&&null!==u.suffix&&ae.push(me(u.suffix)),ae}};f&&f.reference===v?f.calls.push(B):l.push({reference:v,calls:[B]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(X.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(X.styleProp,this._singleStyleInputs,e,BP,!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,$t.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,$t.Z)(this._buildClassInputs(e)))}return i}}]),t}();function ZP(t,r){t.has(r)||t.set(r,t.size)}function NP(t){var r=!1,e=t.indexOf("!important");-1!==e&&(t=e>0?t.substring(0,e):"",r=!0);var i=null,o=t,a=t.lastIndexOf(".");return a>0&&(i=t.substr(a+1),o=t.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function BP(t){switch(Ru(t)){case 1:return X.styleProp;case 3:return X.stylePropInterpolate1;case 5:return X.stylePropInterpolate2;case 7:return X.stylePropInterpolate3;case 9:return X.stylePropInterpolate4;case 11:return X.stylePropInterpolate5;case 13:return X.stylePropInterpolate6;case 15:return X.stylePropInterpolate7;case 17:return X.stylePropInterpolate8;default:return X.stylePropInterpolateV}}function KT(t){return t instanceof Wp&&(t=t.ast),t instanceof vl}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"}(hi||(hi={}));var Bu=["var","let","as","null","undefined","true","false","if","else","this"],JT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"tokenize",value:function(e){for(var i=new Pv(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),t}(),gd=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,V.Z)(t,[{key:"isCharacter",value:function(e){return this.type==hi.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==hi.Number}},{key:"isString",value:function(){return this.type==hi.String}},{key:"isOperator",value:function(e){return this.type==hi.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==hi.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==hi.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==hi.Keyword}},{key:"isKeywordLet",value:function(){return this.type==hi.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==hi.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==hi.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==hi.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==hi.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==hi.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==hi.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==hi.Error}},{key:"toNumber",value:function(){return this.type==hi.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case hi.Character:case hi.Identifier:case hi.Keyword:case hi.Operator:case hi.PrivateIdentifier:case hi.String:case hi.Error:return this.strValue;case hi.Number:return this.numValue.toString();default:return null}}}]),t}();function a1(t,r,e){return new gd(t,r,hi.Character,e,String.fromCharCode(e))}function Iv(t,r,e){return new gd(t,r,hi.Operator,0,e)}var Qm=new gd(-1,-1,hi.Character,0,""),Pv=function(){function t(r){(0,j.Z)(this,t),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,V.Z)(t,[{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(Rv(o))return this.scanIdentifier();if(pd(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),pd(this.peek)?this.scanNumber(s):a1(s,this.index,46);case 40:case 41:case fd:case hc: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(;wT(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(),a1(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),Iv(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),Iv(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();Lv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Bu.indexOf(i)>-1?function UP(t,r,e){return new gd(t,r,hi.Keyword,0,e)}(e,this.index,i):function vd(t,r,e){return new gd(t,r,hi.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!Rv(this.peek))return this.error("Invalid character [#]",-1);for(;Lv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function QT(t,r,e){return new gd(t,r,hi.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!pd(this.peek))if(95===this.peek){if(!pd(this.input.charCodeAt(this.index-1))||!pd(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!oW(this.peek))break;if(this.advance(),IB(this.peek)&&this.advance(),!pd(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 RB(t){var r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}(a):parseFloat(a);return function HP(t,r,e){return new gd(t,r,hi.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 f=0;f<5;f++)this.advance()}else l=PB(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 rW(t,r,e){return new gd(t,r,hi.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()),Iv(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function iW(t,r,e){return new gd(t,r,hi.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),t}();function Rv(t){return 97<=t&&t<=122||65<=t&&t<=90||95==t||36==t}function Lv(t){return kT(t)||pd(t)||95==t||36==t}function oW(t){return 101==t||69==t}function IB(t){return 45==t||43==t}function PB(t){switch(t){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}var Xm,LB=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.strings=r,this.expressions=e,this.offsets=i}),jP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.templateBindings=r,this.warnings=e,this.errors=i}),ZB=function(){function t(r){(0,j.Z)(this,t),this._lexer=r,this.errors=[]}return(0,V.Z)(t,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),f=1;i&&(f|=2);var h=new s1(e,o,a,u,f,this.errors,0).parseChain();return new Wp(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,s=this._parseBindingAst(e,i,o,a);return new Wp(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new zP;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,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 Wp(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new zb(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){var s=this._parseQuote(e,i,o);if(null!=s)return s;this._checkNoInterpolation(e,i,a);var l=this._stripComments(e),u=this._lexer.tokenize(l);return new s1(e,i,o,u,0,this.errors,0).parseChain()}},{key:"_parseQuote",value:function(e,i,o){if(null==e)return null;var a=e.indexOf(":");if(-1==a)return null;var s=e.substring(0,a).trim();if(!function XT(t){if(0==t.length)return!1;var r=new Pv(t);if(!Rv(r.peek))return!1;for(r.advance();0!==r.peek;){if(!Lv(r.peek))return!1;r.advance()}return!0}(s))return null;var l=e.substring(a+1),u=new Wm(0,e.length);return new pP(u,u.toAbsolute(o),s,l,i)}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new s1(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Va(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su,l=this.splitInterpolation(e,i,a,s),u=l.strings,f=l.expressions,h=l.offsets;if(0===f.length)return null;for(var v=[],C=0;C<f.length;++C){var B=f[C].text,G=this._stripComments(B),q=this._lexer.tokenize(G),ae=new s1(e,i,o,q,0,this.errors,h[C]).parseChain();v.push(ae)}return this.createInterpolationAst(u.map(function(pe){return pe.text}),v,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new s1(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 Wm(0,o.length),u=new Qs(l,l.toAbsolute(s),e,i);return new Wp(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]:su,l=[],u=[],f=[],h=o?WP(o):null,v=0,C=!1,B=!1,G=a.start,q=a.end;v<e.length;)if(C){var Ve=v,Me=Ve+G.length,Be=this._getInterpolationEndIndex(e,q,Me);if(-1===Be){C=!1,B=!0;break}var pt=Be+q.length,ht=e.substring(Me,Be);0===ht.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(v," in"),i),u.push({text:ht,start:Ve,end:pt});var Pe=null!==(s=null==h?void 0:h.get(Ve))&&void 0!==s?s:Ve,at=Pe+G.length;f.push(at),v=pt,C=!1}else{var ae=v;-1===(v=e.indexOf(G,v))&&(v=e.length);var pe=e.substring(ae,v);l.push({text:pe,start:ae,end:v}),C=!0}if(!C)if(B){var Ct=l[l.length-1];Ct.text+=e.substring(v),Ct.end=e.length}else l.push({text:e.substring(v),start:v,end:e.length});return new LB(l,u,f)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new Wm(0,null==e?0:e.length);return new Wp(new yl(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&&Bb(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,f=(0,cn.Z)(this._forEachUnquotedChar(e,0));try{for(f.s();!(h=f.n()).done;){var v=h.value;if(-1===l)e.startsWith(a)&&(l=v);else if((u=this._getInterpolationEndIndex(e,s,v))>-1)break}}catch(C){f.e(C)}finally{f.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,cn.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:Jn().mark(function r(e,i){var o,a,s,l;return Jn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o=null,a=0,s=i;case 3:if(!(s<e.length)){f.next=16;break}if(l=e[s],!Bb(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){f.next=9;break}o=null===o?l:null,f.next=12;break;case 9:if(null!==o){f.next=12;break}return f.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,f.next=3;break;case 16:case"end":return f.stop()}},r)})}]),t}();!function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"}(Xm||(Xm={}));var s1=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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=Xm.None,this.sourceSpanCache=new Map,this.index=0}return(0,V.Z)(t,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:Qm}},{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 Wm(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===Qm?"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 this.index<this.tokens.length&&this.error("Unexpected token '".concat(this.next,"'"))}if(0==e.length){var a=this.offset,s=this.offset+this.input.length;return new vl(this.span(a,s),this.sourceSpan(a,s))}return 1==e.length?e[0]:new Mv(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 Wm(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new Gb(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 vl(this.span(e),this.sourceSpan(e))}return new DT(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 mc(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 mc(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 mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new mc(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==hi.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Ym.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Ym.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new Kb(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 Jb(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 yl(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new yl(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new yl(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new yl(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new xT(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new qb(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(fd))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ev(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new yl(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new yl(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new vl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new vl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new vl(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(fd),!this.consumeOptionalCharacter(hc)){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),f=this.sourceSpan(a);i.push(new yf(u,f,f,new Ev(u,f),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(hc)}return new IT(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var f,a=this,s=this.inputIndex,l=this.withContext(Xm.Writable,function(){var v,C=null!==(v=a.expectIdentifierOrKeyword())&&void 0!==v?v:"";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"),f=new vl(this.span(i),this.sourceSpan(i))):f=new AT(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 vl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();f=new Vm(this.span(i),this.sourceSpan(i),u,e,l,h)}else f=new yf(this.span(i),this.sourceSpan(i),u,e,l);return f}},{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),f=this.sourceSpan(i);return o?new md(u,f,e,s,l):new Gm(u,f,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 Va(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,$t.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,$t.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new jP(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Xm.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof vl&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new Yb(a.span(i),a.sourceSpan(i),e,s):new Vb(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new OT(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new vl(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 Va(e.span.start,a);return i.push(new mP(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===Qm||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 Wp(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 Va(e.span.start,this.currentAbsoluteOffset);return new hP(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 Va(e,this.currentAbsoluteOffset);return new hP(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 zb(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(hc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Xm.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new zb(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),t}(),zP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,V.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(tW);function WP(t){for(var r=new Map,e=0,i=0,o=0;o<t.length;){var a=t[o];if(9===a.type){var s=(0,Ut.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var f=a.parts.reduce(function(h,v){return h+v.length},0);i+=f,e+=f}r.set(i,e),o++}return r}var Zv=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.sourceSpan=r,this.i18n=e}),$m=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(Zv),$T=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,s,u)).switchValue=i,f.type=o,f.cases=a,f.switchValueSourceSpan=l,f}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(Zv),aW=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),t}(),sW=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,a,f)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(Zv),VP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,j.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=f,u}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Zv),eE=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),t}();function _c(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=t.visit?function(a){return t.visit(a,e)||a.visit(t,e)}:function(a){return a.visit(t,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var tE={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"};tE.ngsp="\ue500";var YP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,V.Z)(e)}(uu),Cf=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var t_,BB=/\r\n?/g;function e_(t){var r=0===t?"EOF":String.fromCharCode(t);return'Unexpected character "'.concat(r,'"')}function l1(t){return'Unknown entity "'.concat(t,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(t){t.HEX="hexadecimal",t.DEC="decimal"}(t_||(t_={}));var rE=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.error=r}),wf=function(){function t(r,e,i){(0,j.Z)(this,t),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||su,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 i_(r,o):new u1(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,V.Z)(t,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(BB,"\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 UB(t){return t!==hc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===hc){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 YP("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 YP("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 YP(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new rE(o)}},{key:"handleError",value:function(e){if(e instanceof Gp&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof rE))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 HB(t,r){return n_(t)===n_(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(e_(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(e_(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(e_(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(FB),59!=this._cursor.peek()){this._cursor.advance();var s=o?t_.HEX:t_.DEC;throw this._createError(function GP(t,r){return'Unable to parse entity "'.concat(r,'" - ').concat(t,' 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(l1(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var f=this._cursor.clone();if(this._attemptCharCodeUntilFn(KP),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=f,this._endToken(["&"]);else{var h=this._cursor.getChars(f);this._cursor.advance();var v=tE[h];if(!v)throw this._createError(l1(h),this._cursor.getSpan(i));this._endToken([v,"&".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()&&!iE(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(qP,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!kT(this._cursor.peek()))throw this._createError(e_(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(bl);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(bl),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(bl),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(bl);this._consumeTagOpenEnd()}catch(l){if(l instanceof rE)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===wn.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===wn.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(bl),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(bl),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(e_(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 qP(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(bl);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(bl),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(fd),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(bl),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(bl)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(fd).trim();this._endToken([e]),this._attemptCharCodeUntilFn(bl),this._beginToken(21),this._requireCharCode(fd),this._endToken([]),this._attemptCharCodeUntilFn(bl),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(hc),this._endToken([]),this._attemptCharCodeUntilFn(bl),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(hc),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 f=this._cursor.clone();if(this._isTagStart())return this._cursor=f,a.push(this._getProcessedChars(s,f)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,f)),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&&Bb(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()===hc&&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()!==fd)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),t}();function bl(t){return!wT(t)||0===t}function qP(t){return wT(t)||62===t||60===t||47===t||39===t||34===t||61===t||0===t}function iE(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function FB(t){return 59===t||0===t||!function _B(t){return t>=97&&t<=102||t>=65&&t<=70||pd(t)}(t)}function KP(t){return 59===t||0===t||!kT(t)}function n_(t){return t>=97&&t<=122?t-97+65:t}function r_(t){for(var r=[],e=void 0,i=0;i<t.length;i++){var o=t[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 u1=function(){function t(r,e){if((0,j.Z)(this,t),r instanceof t){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,V.Z)(t,[{key:"clone",value:function(){return new t(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 za(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 Gp('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):aP(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 vf(e.file,e.state.offset,e.state.line,e.state.column)}}]),t}(),i_=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.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,Gt.Z)(a)}return(0,V.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ht.Z)((0,ln.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ht.Z)((0,ln.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()===fd){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==hc;)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 f=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(f,2)}else if(sP(a())){for(var h="",v=0,C=this.clone();sP(a())&&v<3;)C=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),v++;this.state.peek=parseInt(h,8),this.internalState=C.internalState}else aP(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.substr(o.internalState.offset,a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new Gp("Invalid hexadecimal escape sequence",o);return l}}]),e}(u1),Gp=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.msg=r,this.cursor=e}),Cl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,V.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(uu),oE=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.rootNodes=r,this.errors=e}),JP=function(){function t(r){(0,j.Z)(this,t),this.getTagDefinition=r}return(0,V.Z)(t,[{key:"parse",value:function(e,i,o){var a=function nE(t,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new wf(new Fb(t,r),e,i);return o.tokenize(),new Cf(r_(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new QP(a.tokens,this.getTagDefinition);return s.build(),new oE(s.rootNodes,a.errors.concat(s.errors))}}]),t}(),QP=function(){function t(r,e){(0,j.Z)(this,t),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,V.Z)(t,[{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 eE(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 za(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new $T(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(Cl.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(Cl.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 t(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new za(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new za(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new aW(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(!c1(o,21))return this.errors.push(Cl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!c1(o,19))return this.errors.push(Cl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Cl.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,d1):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new $m(a,new za(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,Ut.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 f=this.getTagDefinition(l);f.canSelfClose||null!==ue(l)||f.isVoid||this.errors.push(Cl.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,v=new za(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new za(e.sourceSpan.start,h,e.sourceSpan.fullStart),B=new VP(l,s,[],v,C,void 0);this._pushElement(B),u?this._popElement(l,v):4===e.type&&(this._popElement(l,null),this.errors.push(Cl.create(l,v,'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(Cl.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(Cl.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=We(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,d1):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 za(l.start,u,l.fullStart);return new sW(i,a,new za(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=Bt(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ue(o.name))}return We(e,i)}}]),t}();function c1(t,r){return t.length>0&&t[t.length-1]===r}function d1(t,r){return void 0!==tE[r]?tE[r]||t:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):t}var XP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,Jt)}return(0,V.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ht.Z)((0,ln.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(JP),Nv="ngPreserveWhitespaces",jB=new Set(["pre","template","textarea","script","style"]),aE=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",lW=new RegExp("[^".concat(aE,"]")),$P=new RegExp("[".concat(aE,"]{2,}"),"g");function t3(t){return t.replace(new RegExp("\ue500","g")," ")}var lE,sE=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e,i){return jB.has(e.name)||function e3(t){return t.some(function(r){return r.name===Nv})}(e.attrs)?new VP(e.name,_c(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new VP(e.name,e.attrs,function WB(t,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(t,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!==Nv?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(lW),a=i&&(i.prev instanceof $T||i.next instanceof $T);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function zB(t){var r=t.type,e=t.parts,i=t.sourceSpan;return{type:r,parts:[n3(e[0])],sourceSpan:i}}(u):u}),l=n3(e.value);return new $m(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}}]),t}();function n3(t){return t3(t).replace($P," ")}function r3(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ai(Object.keys(t).map(function(e){return{key:e,quoted:r,value:t[e]}}))}function uE(){return lE||(lE={},cE(tt.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),cE(tt.STYLE,["*|style"]),cE(tt.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),cE(tt.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"])),lE}function cE(t,r){var i,e=(0,cn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;lE[o.toLowerCase()]=t}}catch(a){e.e(a)}finally{e.f()}}var VB=(0,V.Z)(function t(){(0,j.Z)(this,t)}),a3=["[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:|"],dE={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},s3=Object.keys(dE).reduce(function(t,r){return t[dE[r]]=r,t},{}),l3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.call(this))._schema={},i._eventSchema={},a3.forEach(function(o){var a={},s=new Set,l=o.split("|"),u=(0,Ut.Z)(l,2),f=u[0],v=u[1].split(","),C=f.split("^"),B=(0,Ut.Z)(C,2),G=B[0],q=B[1];G.split(",").forEach(function(Be){i._schema[Be.toLowerCase()]=a,i._eventSchema[Be.toLowerCase()]=s});var ae=q&&i._schema[q.toLowerCase()];if(ae){Object.keys(ae).forEach(function(Be){a[Be]=ae[Be]});var Ve,pe=(0,cn.Z)(i._eventSchema[q.toLowerCase()]);try{for(pe.s();!(Ve=pe.n()).done;){var Me=Ve.value;s.add(Me)}}catch(Be){pe.e(Be)}finally{pe.f()}}v.forEach(function(Be){if(Be.length>0)switch(Be[0]){case"*":s.add(Be.substring(1));break;case"!":a[Be.substring(1)]="boolean";break;case"#":a[Be.substring(1)]="number";break;case"%":a[Be.substring(1)]="object";break;default:a[Be]="string"}})}),i}return(0,V.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===Yn.name}))return!0;if(o.indexOf("-")>-1){if(dt(o)||de(o))return!1;if(s.some(function(u){return u.name===lr.name}))return!0}return!!(this._schema[o.toLowerCase()]||this._schema.unknown)[a]}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===Yn.name})||o.indexOf("-")>-1&&(dt(o)||de(o)||a.some(function(s){return s.name===lr.name})))||!!this._schema[o.toLowerCase()]}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=uE()[o+"|"+a];return l||((l=uE()["*|"+a])||tt.NONE)}},{key:"getMappedPropName",value:function(o){return dE[o]||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 Object.keys(this._schema)}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema[o.toLowerCase()]||this._schema.unknown;return Object.keys(a).map(function(s){var l;return null!==(l=s3[s])&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema[o.toLowerCase()])&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function pn(t){return t.replace(rr,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(),f=null;if(function KB(t){switch(t){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&&(f="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:f,value:u+l}}}]),e}(VB);var fE=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function pE(t,r){return t=t.toLowerCase(),r=r.toLowerCase(),fE.has(t+"|"+r)||fE.has("*|"+r)}var c3="animate-",d3=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,V.Z)(t,[{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,f){var B,h=o.start.offset+"*".length,v=this._parseTemplateBindings(e,i,o,h,a),C=(0,cn.Z)(v);try{for(C.s();!(B=C.n()).done;){var G=B.value,q=vc(o,G.sourceSpan),ae=G.key.source,pe=vc(o,G.key.span);if(G instanceof hP){var Ve=G.value?G.value.source:"$implicit",Me=G.value?vc(o,G.value.span):void 0;u.push(new Dv(ae,Ve,q,pe,Me))}else if(G.value){var Be=f?q:o,pt=vc(o,G.value.ast.sourceSpan);this._parsePropertyAst(ae,G.value,Be,pe,pt,s,l)}else s.push([ae,""]),this.parseLiteralAttr(ae,null,pe,a,void 0,s,l,pe)}}catch(ht){C.e(ht)}finally{C.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var f=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(f.errors,o),f.warnings.forEach(function(h){l._reportError(h,o,hd.WARNING)}),f.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,f){mE(e)?(e=e.substring(1),void 0!==f&&(f=vc(f,new Va(f.start.offset+1,f.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,hd.ERROR),this._parseAnimation(e,i,o,a,f,s,l,u)):u.push(new xv(e,this._exprParser.wrapLiteralPrimitive(i,"",a),Vp.LITERAL_ATTR,o,f,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,f,h){0===e.length&&this._reportError("Property name is missing in binding",a);var v=!1;e.startsWith(c3)?(v=!0,e=e.substring(c3.length),void 0!==h&&(h=vc(h,new Va(h.start.offset+c3.length,h.end.offset)))):mE(e)&&(v=!0,e=e.substring(1),void 0!==h&&(h=vc(h,new Va(h.start.offset+1,h.end.offset)))),v?this._parseAnimation(e,i,a,s,h,l,u,f):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,f)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,f){var h=this.parseInterpolation(i,a||o,f);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 xv(e,i,Vp.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,f){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]),f.push(new xv(e,h,Vp.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 LT(i.name,4,tt.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,f=i.name.split("."),h=void 0;if(f.length>1)if("attr"==f[0]){u=f.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=_E(this._schemaRegistry,e,u,!0);var v=u.indexOf(":");if(v>-1){var C=u.substring(0,v),B=u.substring(v+1);u=We(C,B)}l=1}else"class"==f[0]?(u=f[1],l=2,h=[tt.NONE]):"style"==f[0]&&(s=f.length>2?f[2]:null,u=f[1],l=3,h=[tt.STYLE]);if(null===u){var G=this._schemaRegistry.getMappedPropName(i.name);u=a?G:i.name,h=_E(this._schemaRegistry,e,G,!1),l=0,o||this._validatePropertyOrAttributeName(G,i.sourceSpan,!1)}return new LT(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,f){0===e.length&&this._reportError("Event name is missing in binding",a),mE(e)?(e=e.substr(1),void 0!==f&&(f=vc(f,new Va(f.start.offset+1,f.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,f)):this._parseRegularEvent(e,i,o,a,s,l,u,f)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return _E(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var f=function Se(t,r){return Ae(t,".",r)}(e,[e,""]),h=f[0],v=f[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new RT(h,v,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),v?"start"!==v&&"done"!==v&&this._reportError('The provided animation output phase value "'.concat(v,'" 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,f){var h=ut(e,[null,e]),v=(0,Ut.Z)(h,2),C=v[0],B=v[1],G=this._parseAction(i,o,s);l.push([e,G.source]),u.push(new RT(B,C,0,G,a,s,f))}},{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 vl?(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]:hd.ERROR;this.errors.push(new uu(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,cn.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,hd.ERROR)}}]),t}();function mE(t){return"@"==t[0]}function _E(t,r,e,i){var o=[];return dn.parse(r).forEach(function(a){var s=a.element?[a.element]:t.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(f){return f.isElementSelector()}).map(function(f){return f.element})),u=s.filter(function(f){return!l.has(f)});o.push.apply(o,(0,$t.Z)(u.map(function(f){return t.securityContext(f,e,i)})))}),0===o.length?[tt.NONE]:Array.from(new Set(o)).sort()}function vc(t,r){var e=r.start-t.start.offset,i=r.end-t.end.offset;return new za(t.start.moveBy(e),t.end.moveBy(i),t.fullStart.moveBy(e),t.details)}var wl,$B=/^([^:/?#]+):/;function tF(t){var r=null,e=null,i=null,o=!1,a="";t.attrs.forEach(function(u){var f=u.name.toLowerCase();"select"==f?r=u.value:"href"==f?e=u.value:"rel"==f?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function h3(t){return null===t||0===t.length?"*":t}(r);var s=t.name.toLowerCase(),l=wl.OTHER;return de(s)?l=wl.NG_CONTENT:"style"==s?l=wl.STYLE:"script"==s?l=wl.SCRIPT:"link"==s&&"stylesheet"==i&&(l=wl.STYLESHEET),new p3(l,r,e,o,a)}!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(wl||(wl={}));var p3=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var m3=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,bc_BANANA_BOX={start:"[(",end:")]"},bc_PROPERTY={start:"[",end:"]"},bc_EVENT={start:"(",end:")"};function TE(t,r,e){var i=new Fv(r,e),s={nodes:_c(i,t),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var Cc,Fv=function(){function t(r,e){(0,j.Z)(this,t),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=this,o=Lm(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=tF(e);if(a.type===wl.SCRIPT)return null;if(a.type===wl.STYLE){var s=function SE(t){return 1===t.children.length&&t.children[0]instanceof $m?t.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===wl.STYLESHEET&&function XB(t){if(null==t||0===t.length||"/"==t[0])return!1;var r=t.match($B);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Ve,l=function Te(t){return"ng-template"===Bt(t)[1]}(e.name),u=[],f=[],h=[],v=[],C=[],B={},G=[],q=[],ae=!1,pe=(0,cn.Z)(e.attrs);try{for(pe.s();!(Ve=pe.n()).done;){var Me=Ve.value,Be=!1,pt=ME(Me.name),ht=!1;if(Me.i18n&&(B[Me.name]=Me.i18n),pt.startsWith("*")){ae&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Me.sourceSpan),ht=!0,ae=!0;var Pe=Me.value,at=pt.substring("*".length),Ct=[],E=Me.valueSpan?Me.valueSpan.start.offset:Me.sourceSpan.start.offset+Me.name.length;this.bindingParser.parseInlineTemplateBinding(at,Pe,Me.sourceSpan,E,[],G,Ct,!0),q.push.apply(q,(0,$t.Z)(Ct.map(function(Bn){return new DI(Bn.name,Bn.value,Bn.sourceSpan,Bn.keySpan,Bn.valueSpan)})))}else Be=this.parseAttribute(l,Me,[],u,f,h,v);!Be&&!ht&&C.push(this.visitAttribute(Me))}}catch(Bn){pe.e(Bn)}finally{pe.f()}var A,_=_c(a.nonBindable?EE:this,e.children);if(a.type===wl.NG_CONTENT){e.children&&!e.children.every(function(Bn){return function g3(t){return t instanceof $m&&0==t.value.trim().length}(Bn)||function iF(t){return t instanceof eE}(Bn)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var H=a.selectAttr,ee=e.attrs.map(function(Bn){return i.visitAttribute(Bn)});A=new GN(H,ee,e.sourceSpan,e.i18n),this.ngContentSelectors.push(H)}else if(l){var re=this.extractAttributes(e.name,u,B);A=new ov(e.name,C,re.bound,f,[],_,v,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var ge=this.extractAttributes(e.name,u,B);A=new sd(e.name,C,ge.bound,f,_,v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(ae){var ft=this.extractAttributes("ng-template",G,B),St=[];ft.literal.forEach(function(Bn){return St.push(Bn)}),ft.bound.forEach(function(Bn){return St.push(Bn)});var be=A instanceof sd?{attributes:A.attributes,inputs:A.inputs,outputs:A.outputs}:{attributes:[],inputs:[],outputs:[]},rt=l&&o?void 0:e.i18n,Pt=A instanceof ov?null:A.name;A=new ov(Pt,be.attributes,be.inputs,be.outputs,St,[A],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,rt)}return o&&(this.inI18nBlock=!1),A}},{key:"visitAttribute",value:function(e){return new Pu(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(!Lm(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 f=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[f]=new ds(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new Mb(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 Iu(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var f=o[u.name];if(u.isLiteral)l.push(new Pu(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,f));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(cc.fromBoundElementProperty(h,f))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var f,h=ME(i.name),v=i.value,C=i.sourceSpan,B=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function G(St,be,rt){var Pt=i.name.length-h.length,Bn=St.start.moveBy(be.length+Pt),er=Bn.moveBy(rt.length);return new za(Bn,er,Bn,rt)}var q=h.match(m3);if(q){if(null!=q[1]){var ae=q[7],pe=G(C,q[1],ae);this.bindingParser.parsePropertyBinding(ae,v,!1,C,B,i.valueSpan,o,a,pe)}else if(q[2])if(e){var Ve=q[7],Me=G(C,q[2],Ve);this.parseVariable(Ve,v,C,Me,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Be=q[7],pt=G(C,q[3],Be);this.parseReference(Be,v,C,pt,i.valueSpan,u)}else if(q[4]){var ht=[],Pe=q[7],at=G(C,q[4],Pe);this.bindingParser.parseEvent(Pe,v,!1,C,i.valueSpan||C,o,ht,at),h1(ht,s)}else if(q[5]){var Ct=q[7],E=G(C,q[5],Ct);this.bindingParser.parsePropertyBinding(Ct,v,!1,C,B,i.valueSpan,o,a,E),this.parseAssignmentEvent(Ct,v,C,i.valueSpan,o,s,E)}else if(q[6]){var _=G(C,"",h);this.bindingParser.parseLiteralAttr(h,v,C,B,i.valueSpan,o,a,_)}return!0}var A=null;if(h.startsWith(bc_BANANA_BOX.start)?A=bc_BANANA_BOX:h.startsWith(bc_PROPERTY.start)?A=bc_PROPERTY:h.startsWith(bc_EVENT.start)&&(A=bc_EVENT),null!==A&&h.endsWith(A.end)&&h.length>A.start.length+A.end.length){var H=h.substring(A.start.length,h.length-A.end.length),ee=G(C,A.start,H);if(A.start===bc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,ee),this.parseAssignmentEvent(H,v,C,i.valueSpan,o,s,ee);else if(A.start===bc_PROPERTY.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,ee);else{var re=[];this.bindingParser.parseEvent(H,v,!1,C,i.valueSpan||C,o,re,ee),h1(re,s)}return!0}var ge=G(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,v,C,i.valueSpan,o,a,ge,null!==(f=i.valueTokens)&&void 0!==f?f:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=t3(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new ds(l,i,a):new Dm(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 DI(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 av(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var f=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,f,u),h1(f,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;this.errors.push(new uu(i,e,o))}}]),t}(),rF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=tF(e);if(i.type===wl.SCRIPT||i.type===wl.STYLE||i.type===wl.STYLESHEET)return null;var o=_c(this,e.children,null);return new sd(e.name,_c(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new Pu(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Dm(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),t}(),EE=new rF;function ME(t){return/^data-/i.test(t)?t.substring(5):t}function h1(t,r){r.push.apply(r,(0,$t.Z)(t.map(function(e){return dc.fromParsedEvent(e)})))}function oF(){return{getUniqueId:uT(),icus:new Map}}!function(t){t[t.ELEMENT=0]="ELEMENT",t[t.TEMPLATE=1]="TEMPLATE"}(Cc||(Cc={}));var v3=function(){function t(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,j.Z)(this,t),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||oF(),this.id=this._registry.getUniqueId()}return(0,V.Z)(t,[{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};cT(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(aF))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){cT(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;dT(e,this.bindings.size,this.id).forEach(function(a,s){return cT.apply(void 0,[i.placeholders,s].concat((0,$t.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Cc.TEMPLATE,e,i,!1),this.appendTag(Cc.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Cc.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Cc.ELEMENT,e,i,!1),this.appendTag(Cc.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new t(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(y3(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(y3(e.id,e.templateIndex));if(u>=0){var f=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(f?0:1),0].concat((0,$t.Z)(a)));else a[f?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,$t.Z)(a)))}else l.push.apply(l,(0,$t.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),t}();function kf(t,r,e,i){var o=i?"/":"";return hv("".concat(o).concat(t).concat(r),e)}function m1(t,r,e){var i=r.index,o=r.ctx;return r.isVoid?kf(t,i,o)+kf(t,i,o,!0):kf(t,i,o,e)}function y3(t,r){return function(e){return"object"==typeof e&&e.type===Cc.TEMPLATE&&e.index===r&&e.ctx===t}}function aF(t){var r=function(a,s){return m1("#",a,s)},e=function(a,s){return m1("*",a,s)};switch(t.type){case Cc.ELEMENT:return t.closed?r(t,!0)+(t.tmpl?e(t.tmpl,!0):""):t.tmpl?e(t.tmpl)+r(t)+(t.isVoid?e(t.tmpl,!0):""):r(t);case Cc.TEMPLATE:return e(t,t.closed);default:return t}}var o_=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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(Ab(e,!1),"}")}}]),t}(),sF=new o_;function b3(t){return t.visit(sF)}var C3={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"},lF=function(){function t(){(0,j.Z)(this,t),this._placeHolderNameCounts={},this._signatureToName={}}return(0,V.Z)(t,[{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=C3[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=C3[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)}}]),t}(),Bs=new ZB(new JT);function uF(t){var r=new dF(Bs,t);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function cF(t,r){return r}var dF=function(){function t(r,e){(0,j.Z)(this,t),this._expressionParser=r,this._interpolationConfig=e}return(0,V.Z)(t,[{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 $T,icuDepth:0,placeholderRegistry:new lF,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||cF},u=_c(this,e,l);return new ld(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=_c(this,e.children,i),s={};e.attrs.forEach(function(v){s[v.name]=v.value});var l=Jt(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var f="";l||(f=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[f]={text:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new KN(e.name,s,u,f,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 sv(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 sv(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 II(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new Am(h.expression.map(function(v){return v.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 f=new hf(s,u,e.sourceSpan);return i.visitNodeFn(e,f)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var f,s=[],l=!1,u=(0,cn.Z)(e);try{for(u.s();!(f=u.n()).done;){var h=f.value;switch(h.type){case 8:case 17:l=!0;var v=h.parts[1],C=hF(v)||"INTERPOLATION",B=o.placeholderRegistry.getPlaceholderName(C,v);o.placeholderToContent[B]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new lv(v,B,h.sourceSpan));break;default:if(h.parts[0].length>0){var G=s[s.length-1];G instanceof sv?(G.value+=h.parts[0],G.sourceSpan=new za(G.sourceSpan.start,h.sourceSpan.end,G.sourceSpan.fullStart,G.sourceSpan.details)):s.push(new sv(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function w3(t,r){if(r instanceof ld&&(function fF(t){var r=t.nodes;if(1!==r.length||!(r[0]instanceof Am))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof Am){!function pW(t,r){if(t.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(t.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,t);for(var e=0;e<t.length;e++)t[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new Am(s,i)):s[0]}}]),t}();var pF=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function hF(t){return t.split(pF)[2]}var hW=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){return(0,j.Z)(this,e),r.call(this,i,o)}return(0,V.Z)(e)}(uu),k3=function(r,e){return r instanceof Zv&&(e instanceof hf&&r.i18n instanceof ld&&(e.previousMessage=r.i18n),r.i18n=e),e},mF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:su,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=uF(this.interpolationConfig)}return(0,V.Z)(t,[{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,f=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(f,i),this._setLegacyIds(f,i),f}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new oE(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function $z(t){return t.attrs.some(function(r){return Rm(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,cn.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var f=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,f,k3)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(_l)){var h=u.name.slice(_l.length);pE(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,v=(0,cn.Z)(o);try{for(v.s();!(C=v.n()).done;){var B=C.value,G=a[B.name];void 0!==G&&B.value&&(B.i18n=this._generateI18nMessage([B],B.i18n||G))}}catch(q){v.e(q)}finally{v.f()}}this.keepI18nAttrs||(e.attrs=o)}return _c(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof hf){var s=a.name;nB(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 vF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t=t.trim()){var s,o=t.indexOf("@@"),a=t.indexOf("|"),l=o>-1?[t.slice(0,o),t.slice(o+2)]:[t,""],u=(0,Ut.Z)(l,2);s=u[0],r=u[1];var f=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Ut.Z)(f,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof ld?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof ld&&i.id||yi(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Ko(e),Qa(e)];else if("string"!=typeof i){var o=i instanceof ld?i:i instanceof hf?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new hW(e.sourceSpan,i))}}]),t}();function xE(t,r,e,i){var o=function E3(t){return t.nodes.map(function(r){return r.visit(T3,null)}).join("")}(r),a=[me(o)];Object.keys(i).length&&a.push(r3(i,!0));var s=e.set(si("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function mW(t){var r=[];return t.description?r.push({tagName:"desc",text:t.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&r.push({tagName:"meaning",text:t.meaning}),oc(r)}(r)),[s,new Ir(t.set(e))]}var yF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"formatPh",value:function(e){return"{$".concat(Ab(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 b3(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)}}]),t}(),T3=new yF;function gW(t,r,e){var i=function vW(t){var r=[],e=new Fu(t.placeholderToMessage,r);return t.nodes.forEach(function(i){return i.visit(e)}),function M3(t){var r=[],e=[];t[0]instanceof Xo&&r.push(_1(t[0].sourceSpan.start));for(var i=0;i<t.length;i++){var o=t[i];o instanceof Ha?r.push(o):(e.push(o),t[i-1]instanceof Xo&&r.push(_1(t[i-1].sourceSpan.end)))}return t[t.length-1]instanceof Xo&&r.push(_1(t[t.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function yW(t){var r=t.nodes[0],e=t.nodes[t.nodes.length-1];return new za(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=ie(r,o,a,l,s),f=t.set(u);return[new Ir(f)]}var Fu=function(){function t(r,e){(0,j.Z)(this,t),this.placeholderToMessage=r,this.pieces=e}return(0,V.Z)(t,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof Ha)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new za(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Ha(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 Ha(b3(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 Xo(Ab(e,!1),i,o)}}]),t}();function _1(t){return new Ha("",new za(t,t))}var bF="ngProjectAs",CF=new Set(["$event"]),g1=new Map([["window",X.resolveWindow],["document",X.resolveDocument],["body",X.resolveBody]]),DE=[" ","\n","\r","\t"];function Tf(t,r){return ml(si(mf).bitwiseAnd(me(t),null,!1),r)}function v1(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.type,o=t.name,a=t.target,s=t.phase,l=t.handler;if(a&&!g1.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(g1.keys()),"."));var u="$event",f=new Set,h=null===e||0===e.bindingLevel?si(Zl):e.getOrCreateSharedContextVar(0),v=ZT(e,h,l,"b",t.handlerSpan,f,CF),C=[];e&&(C.push.apply(C,(0,$t.Z)(e.variableDeclarations())),C.unshift.apply(C,(0,$t.Z)(e.restoreViewStatement()))),C.push.apply(C,(0,$t.Z)(v));var B=1===i?ff(o,s):o,G=r&&zp(r),q=[];f.has(u)&&q.push(new Pn(u,Ji));var ae=ji(q,C,Ci,null,G),pe=[me(B),ae];return a&&pe.push(me(!1),dr(g1.get(a))),pe}function wF(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var kF=function(){function t(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,f=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,v=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:wF();(0,j.Z)(this,t),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=f,this.i18nUseExternalIds=v,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=gv,this.visitVariable=gv,this.visitTextAttribute=gv,this.visitBoundAttribute=gv,this.visitBoundEvent=gv,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new x3(r,function(){return i.allocateDataSlot()},function(B){return i.allocatePureFunctionSlots(B)},function(B,G,q,ae){i._bindingScope.set(i.level,G,ae),i.creationInstruction(null,X.pipe,[me(q),me(B)])})}return(0,V.Z)(t,[{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!==X.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(pe){return o.registerContextVariables(pe)});var l=this.i18nContext||Lm(s)&&!Db(s)&&!(d_(e)&&e[0].i18n===s),u=Mf(e);if(l&&this.i18nStart(null,s,u),OI(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(pe){return pe()}),0===this.level&&this._ngContentReservedSlots.length){var f=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(pe){return"*"!==pe?Yt(pe):pe});f.push(this.constantPool.getConstLiteral(Ls(h),!0))}this.creationInstruction(null,X.projectionDef,f,!0)}l&&this.i18nEnd(null,u);var v=Ib(this._creationCodeFns),C=Ib(this._updateCodeFns),B=this._bindingScope.viewSnapshotStatements(),G=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=v.length>0?[Tf(1,B.concat(v))]:[],ae=C.length>0?[Tf(2,G.concat(C))]:[];return ji([new Pn(mf,Uo),new Pn(Zl,null)],[].concat((0,$t.Z)(this._prefixCode),q,ae),Ci,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),f=p_(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,$t.Z)(f)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=si(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=si(mv),s.notifyRestoredViewContextUse()):u=si(Zl):u=s.getSharedContextName(o)||Ef(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 Dm)o[a]=me(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof Qs){var u=l.strings,f=l.expressions,h=i.i18n,v=h.id,B=function Ll(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t.length)return"";for(var i="",o=t.length-1,a=0;a<o;a++)i+="".concat(t[a]).concat(hv(r+a,e));return i+t[o]}(u,h.bindings.size,v);i.i18nAppendBindings(f),o[a]=me(B)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return si(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=FI("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(zp(e),"$$").concat(s)}else{var l=FI(o);i=this.constantPool.uniqueName(l)}return si(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&&!Db(o)){e.isEmitted=!0;var C,u=e.getSerializedPlaceholders(),f={},h=u.size?Lp(u):{};i.size&&i.forEach(function(B,G){if(1===B.length)h[G]=B[0];else{var q=hv("".concat("I18N_EXP_").concat(G));h[G]=me(q),f[G]=pi(B)}}),(Array.from(u.values()).some(function(B){return B.length>1})||Object.keys(f).length)&&(C=function(G){var q=[G];return Object.keys(f).length&&q.push(r3(f,!0)),_v(null,X.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 v3(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,f=[me(a),this.addToConsts(u)];l>0&&f.push(me(l)),this.creationInstruction(e,o?X.i18n:X.i18nStart,f)}},{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 f,u=(0,cn.Z)(l);try{var h=function(){var C=f.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,X.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(f=u.n()).done;)h()}catch(v){u.e(v)}finally{u.f()}this.updateInstruction(i,X.i18nApply,[me(s)])}o||this.creationInstruction(i,X.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var v=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof Qs){var G=Lp(dT(v));l.push(me(h.name),a.i18nTranslate(v,G)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,X.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=me(this.allocateDataSlot()),f=this.addToConsts(pi(l));this.creationInstruction(o,X.i18nAttributes,[u,f]),s&&this.updateInstruction(o,X.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return X.namespaceMathML;case"svg":return X.namespaceSVG;default:return X.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[me(o)].concat((0,$t.Z)(u.getUpdateInstructionArguments(s)),(0,$t.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[me(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(me(o),pi(l)):0!==o&&a.push(me(o)),this.creationInstruction(e.sourceSpan,X.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,pe,i=this,s=this.allocateDataSlot(),l=new qT(null),u=!1,f=Lm(e.i18n)&&!Db(e.i18n),h=[],v=Bt(e.name),C=(0,Ut.Z)(v,2),B=C[0],G=C[1],q=dt(e.name),ae=(0,cn.Z)(e.attributes);try{for(ae.s();!(pe=ae.n()).done;){var Ve=pe.value,Me=Ve.name,Be=Ve.value;"ngNonBindable"===Me?u=!0:"style"===Me?l.registerStyleAttr(Be):"class"===Me?l.registerClassAttr(Be):h.push(Ve)}}catch(kn){ae.e(kn)}finally{ae.f()}var pt=[me(s)];q||pt.push(me(G));var ht=[],Pe=[];e.inputs.forEach(function(kn){l.registerBoundInput(kn)||(0===kn.type&&kn.i18n?Pe.push(kn):ht.push(kn))});var at=this.getAttributeExpressions(e.name,h,ht,e.outputs,l,[],Pe);pt.push(this.addAttrsToConsts(at));var Ct=this.prepareRefsArray(e.references);pt.push(this.addToConsts(Ct));var E=this._namespace,_=this.getNamespaceInstruction(B);_!==E&&this.addNamespaceInstruction(_,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var A=!f&&this.i18n?!Mf(e.children):e.children.length>0,H=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Pe.length&&!A,ee=!H&&Mf(e.children);if(H)this.creationInstruction(e.sourceSpan,q?X.elementContainer:X.element,rs(pt));else{if(this.creationInstruction(e.startSourceSpan,q?X.elementContainerStart:X.elementStart,rs(pt)),u&&this.creationInstruction(e.startSourceSpan,X.disableBindings),Pe.length>0&&this.i18nAttributesInstruction(s,Pe,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var ge,re=(0,cn.Z)(e.outputs);try{for(re.s();!(ge=re.n()).done;){var ft=ge.value;this.creationInstruction(ft.sourceSpan,X.listener,this.prepareListenerParameter(e.name,ft,s))}}catch(kn){re.e(kn)}finally{re.f()}}f&&this.i18nStart(e.startSourceSpan,e.i18n,ee)}for(var St=l.buildUpdateLevelInstructions(this._valueConverter),be=St.length-1,rt=0;rt<=be;rt++){var Pt=St[rt];this._bindingSlots+=this.processStylingUpdateInstruction(s,Pt)}var Bn=me(void 0),er=[],Rn=[];ht.forEach(function(kn){var Br=kn.type;if(4===Br){var qr=kn.value.visit(i._valueConverter),Go=!(qr instanceof yl)||!!qr.value;i.allocateBindingSlots(qr),er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return Go?i.convertPropertyBinding(qr):Bn},Mm(kn.name))})}else{if(kn.i18n)return;var Gi=kn.value.visit(i._valueConverter);if(void 0!==Gi){var Cs=[],YN=Bt(kn.name),Yoe=(0,Ut.Z)(YN,2),Goe=Yoe[0],xI=Yoe[1],KVe=1===Br,Yz=Kp(kn.securityContext,KVe);if(Yz&&Cs.push(Yz),Goe){var qoe=me(Goe);Yz?Cs.push(qoe):Cs.push(me(null),qoe)}if(i.allocateBindingSlots(Gi),0===Br)Gi instanceof Qs?i.interpolatedUpdateInstruction(l_(Gi),s,xI,kn,Gi,Cs):er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(Gi)},xI,Cs)});else if(1===Br)if(Gi instanceof Qs&&Ru(Gi)>1)i.interpolatedUpdateInstruction(function Fs(t){switch(Ru(t)){case 3:return X.attributeInterpolate1;case 5:return X.attributeInterpolate2;case 7:return X.attributeInterpolate3;case 9:return X.attributeInterpolate4;case 11:return X.attributeInterpolate5;case 13:return X.attributeInterpolate6;case 15:return X.attributeInterpolate7;case 17:return X.attributeInterpolate8;default:return X.attributeInterpolateV}}(Gi),s,xI,kn,Gi,Cs);else{var JVe=Gi instanceof Qs?Gi.expressions[0]:Gi;Rn.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(JVe)},xI,Cs)})}else i.updateInstructionWithAdvance(s,kn.sourceSpan,X.classProp,function(){return[me(s),me(xI),i.convertPropertyBinding(Gi)].concat(Cs)})}}});for(var gn=0,ma=er;gn<ma.length;gn++){var Tr=ma[gn];this.updateInstructionWithAdvance(s,Tr.span,X.property,Tr.paramsOrFn)}for(var zr=0,Wn=Rn;zr<Wn.length;zr++){var In=Wn[zr];this.updateInstructionWithAdvance(s,In.span,X.attribute,In.paramsOrFn)}if(OI(this,e.children),!f&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!H){var yr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;f&&this.i18nEnd(yr,ee),u&&this.creationInstruction(yr,X.enableBindings),this.creationInstruction(yr,q?X.elementContainerEnd:X.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?Bt(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+zp(e.tagName):"","_").concat(s),f="".concat(u,"_Template"),h=[me(s),si(f),me(l)],v=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(v)),e.references&&e.references.length){var C=this.prepareRefsArray(e.references);h.push(this.addToConsts(C)),h.push(dr(X.templateRefExtractor))}var B=new t(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,f,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var ht,pt=B.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(pt.toDeclStmt(f)),B._ngContentReservedSlots.length)&&(ht=i._ngContentReservedSlots).push.apply(ht,(0,$t.Z)(B._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,X.templateCreate,function(){return h.splice(2,0,me(B.getConstCount()),me(B.getVarCount())),rs(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var G=function qi(t,r){var a,e=[],i=[],o=(0,cn.Z)(t);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,tB),q=(0,Ut.Z)(G,2),ae=q[0],pe=q[1];ae.length>0&&this.i18nAttributesInstruction(s,ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),pe.length>0&&this.templatePropertyBindings(s,pe);var Me,Ve=(0,cn.Z)(e.outputs);try{for(Ve.s();!(Me=Ve.n()).done;){var Be=Me.value;this.creationInstruction(Be.sourceSpan,X.listener,this.prepareListenerParameter("ng_template",Be,s))}}catch(pt){Ve.e(pt)}finally{Ve.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 Qs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,X.text,[me(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof Qs?this.updateInstructionWithAdvance(a,e.sourceSpan,function qp(t){switch(Ru(t)){case 1:return X.textInterpolate;case 3:return X.textInterpolate1;case 5:return X.textInterpolate2;case 7:return X.textInterpolate3;case 9:return X.textInterpolate4;case 11:return X.textInterpolate5;case 13:return X.textInterpolate6;case 15:return X.textInterpolate7;case 17:return X.textInterpolate8;default:return X.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):_t("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,X.text,[me(this.allocateDataSlot()),me(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(v){var B=fT(Object.assign(Object.assign({},a),s),!1);return _v(null,X.i18nPostprocess,[v,r3(B,!0)])};if(Db(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var f=this.i18nTranslate(l,{},void 0,u);o.appendIcu(nB(l).name,f)}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(Ls(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,cn.Z)(i);try{var u=function(){var G=l.value;if(!(G instanceof cc))return"continue";var q=G.value.visit(o._valueConverter);if(void 0===q)return"continue";if(o.allocateBindingSlots(q),q instanceof Qs){o.interpolatedUpdateInstruction(l_(q),e,G.name,G,q,[])}else a.push({span:G.sourceSpan,paramsOrFn:yd(function(){return o.convertPropertyBinding(q)},G.name)})};for(s.s();!(l=s.n()).done;)u()}catch(B){s.e(B)}finally{s.f()}for(var h=0,v=a;h<v.length;h++){var C=v[h];this.updateInstructionWithAdvance(e,C.span,X.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,cn.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(v){return h.supportsInterpolation&&v instanceof Qs?o.getUpdateInstructionArguments(v):o.convertPropertyBinding(v)})})};for(s.s();!(l=s.n()).done;)u()}catch(f){s.e(f)}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,X.advance,[me(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 Qs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?si(Zl):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=wB(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,$t.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function qm(t,r,e,i){var o=new e1(t,r,i,!0),a=o.visitInterpolation(e,co.Expression);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),{stmts:Xb(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,$t.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var v,B,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],f=new Set,h=[],C=(0,cn.Z)(i);try{for(C.s();!(B=C.n()).done;){var G=B.value;if(G.name===bF&&(v=G),G.i18n){var q=this._constants.i18nVarRefsCache,ae=void 0;q.has(G.i18n)?ae=q.get(G.i18n):(ae=this.i18nTranslate(G.i18n),q.set(G.i18n,ae)),h.push(me(G.name),ae)}else h.push.apply(h,(0,$t.Z)(a_(G.name)).concat([c_(e,G)]))}}catch(Pe){C.e(Pe)}finally{C.f()}function pe(Pe,at){"string"==typeof Pe?f.has(Pe)||(h.push.apply(h,(0,$t.Z)(a_(Pe))),void 0!==at&&h.push(at),f.add(Pe)):h.push(me(Pe))}if(v&&h.push.apply(h,(0,$t.Z)(wc(v))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Ve=h.length,Me=0;Me<o.length;Me++){var Be=o[Me];4!==Be.type&&1!==Be.type&&pe(Be.name)}for(var pt=0;pt<a.length;pt++){var ht=a[pt];1!==ht.type&&pe(ht.name)}h.length!==Ve&&h.splice(Ve,0,me(3))}return l.length&&(h.push(me(4)),l.forEach(function(Pe){return pe(Pe.name)})),u.length&&(h.push(me(6)),u.forEach(function(Pe){return pe(Pe.name)})),h}},{key:"addToConsts",value:function(e){if(fe(e))return Ce;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return me(o);return me(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(pi(e)):Ce}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Ls(C1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,f=si(l);return i._bindingScope.set(u,a.name,f,0,function(h,v){var C=v>0?[Ef(v).toStmt()]:[],B=f.set(dr(X.reference).callFn([me(s)]));return C.concat(B.toConstDecl())},!0),[a.name,a.value]}))):Ce}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?pf(s,i.phase):zp(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),f=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,CF);return v1(i,u,f)}}}]),t}(),x3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,V.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),f=new yf(o.span,o.sourceSpan,o.nameSpan,new Ev(o.span,o.sourceSpan),l),h=function EF(t){var r=TF[t.length];return{identifier:r||X.pipeBindV,isVarLength:!r}}(o.args),v=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,dr(v));var B=[o.exp].concat((0,$t.Z)(o.args)),G=C?this.visitAll([new qb(o.span,o.sourceSpan,B)]):this.visitAll(B),q=new Gm(o.span,o.sourceSpan,f,[new yl(o.span,o.sourceSpan,s),new yl(o.span,o.sourceSpan,u)].concat((0,$t.Z)(G)),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 Km(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return D3(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Km(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Ai(l.map(function(f,h){return{key:o.keys[h].key,value:f,quoted:o.keys[h].quoted}}));return D3(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(PT),TF=[X.pipeBind1,X.pipeBind2,X.pipeBind3,X.pipeBind4];var MF=[X.pureFunction0,X.pureFunction1,X.pureFunction2,X.pureFunction3,X.pureFunction4,X.pureFunction5,X.pureFunction6,X.pureFunction7,X.pureFunction8];function Ef(t){return dr(X.nextContext).callFn(t>1?[me(t)]:[])}function D3(t,r,e){var i=t.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function y1(t){var r=MF[t.length];return{identifier:r||X.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,f=l.isVarLength,h=[me(s),o];return f?h.push(pi(a)):h.push.apply(h,(0,$t.Z)(a)),dr(u).callFn(h)}function a_(t){var r=Bt(t),e=(0,Ut.Z)(r,2),i=e[0],a=me(e[1]);return i?[me(0),me(i),a]:[a]}var s_="$$shared_ctx$$",SF=function(){function t(){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,j.Z)(this,t),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,cn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,si(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,V.Z)(t,[{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;_t("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(s_+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new t(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=s_+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(s_+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(s_+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=si(Zl+this.freshReferenceName());this.map.set(s_+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(Ef(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(s_+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=si(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){var e=[];if(this.restoreViewVariable){var i=_v(null,X.restoreView,[this.restoreViewVariable]);e.push(this.usesRestoredViewContext?si(mv).set(i).toConstDecl():i.toStmt())}return e}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(_v(null,X.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 t}}]),t}();function wc(t){var r=Yt(t.value)[0];return[me(5),Ls(r)]}function l_(t){switch(Ru(t)){case 1:return X.propertyInterpolate;case 3:return X.propertyInterpolate1;case 5:return X.propertyInterpolate2;case 7:return X.propertyInterpolate3;case 9:return X.propertyInterpolate4;case 11:return X.propertyInterpolate5;case 13:return X.propertyInterpolate6;case 15:return X.propertyInterpolate7;case 17:return X.propertyInterpolate8;default:return X.propertyInterpolateV}}var Nl=new l3;function u_(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:su;return new d3(new ZB(new JT),t,Nl,[])}function Kp(t,r){switch(t){case tt.HTML:return dr(X.sanitizeHtml);case tt.SCRIPT:return dr(X.sanitizeScript);case tt.STYLE:return r?dr(X.sanitizeStyle):null;case tt.URL:return dr(X.sanitizeUrl);case tt.RESOURCE_URL:return dr(X.sanitizeResourceUrl);default:return null}}function c_(t,r){var e=Ls(r.value);if(!pE(t,r.name))return e;switch(Nl.securityContext(t,r.name,!0)){case tt.HTML:return ze(dr(X.trustConstantHtml),new Ua([new Mu(r.value)],[]),void 0,r.valueSpan);case tt.RESOURCE_URL:return ze(dr(X.trustConstantResourceUrl),new Ua([new Mu(r.value)],[]),void 0,r.valueSpan);default:return e}}function d_(t){return 1===t.length&&t[0]instanceof sd}function f_(t){return t instanceof Dm||t instanceof ds||t instanceof Mb}function Mf(t){return t.every(f_)}function yd(t,r,e){return function(){var i=t(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,$t.Z)(e)),r&&o.unshift(me(r)),o}}var Jp="ngI18nClosureMode";function p_(t,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[rB(r),ml(h_(),xE(r,t,e,fT(i,!0)),gW(r,t,fT(i,!1)))];return o&&a.push(new Ir(r.set(o(r)))),a}function h_(){return wi(si(Jp)).notIdentical(me("undefined",ya)).and(si(Jp))}function C1(t){return t.reduce(function(r,e){var i=Array.isArray(e)?C1(e):e;return r.concat(i)},[])}var AE=/attr\.([^\]]+)/,O3="_nghost-".concat("%COMP%"),I3="_ngcontent-".concat("%COMP%");function IE(t,r,e){var i=new ps,o=Yt(t.selector);return i.set("type",t.internalType),o.length>0&&i.set("selectors",Ls(o)),t.queries.length>0&&i.set("contentQueries",function xF(t,r,e){var l,i=[],o=[],a=hT(o,"_t"),s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(dr(X.contentQuery).callFn([si("dirIndex")].concat((0,$t.Z)(Z3(u,r)))).toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Zl).prop(u.propertyName).set(u.first?f.prop("first"):f);o.push(v.and(C).toStmt())}}catch(G){s.e(G)}finally{s.f()}var B=e?"".concat(e,"_ContentQueries"):null;return ji([new Pn(mf,Uo),new Pn(Zl,null),new Pn("dirIndex",null)],[Tf(1,i),Tf(2,o)],Ci,null,B)}(t.queries,r,t.name)),t.viewQueries.length&&i.set("viewQuery",function AF(t,r,e){var i=[],o=[],a=hT(o,Ob);t.forEach(function(l){var u=dr(X.viewQuery).callFn(Z3(l,r));i.push(u.toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Zl).prop(l.propertyName).set(l.first?f.prop("first"):f);o.push(v.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return ji([new Pn(mf,Uo),new Pn(Zl,null)],[Tf(1,i),Tf(2,o)],Ci,null,s)}(t.viewQueries,r,t.name)),i.set("hostBindings",function OF(t,r,e,i,o,a,s){var l=si(Zl),u=new qT(l),f=t.specialAttributes,h=f.styleAttr,v=f.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==v&&u.registerClassAttr(v);var C=[],B=[],G=[],q=r,ae=e.createDirectiveHostEventAsts(t.listeners,q);ae&&ae.length&&C.push.apply(C,(0,$t.Z)(function IF(t,r){var s,e=[],i=[],o=[],a=(0,cn.Z)(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&zp(l.name),f=1===l.type?pf(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(f,"_HostBindingHandler"):null,v=v1(dc.fromParsedEvent(l),h);1==l.type?i.push(v):e.push(v)}}catch(Ve){a.e(Ve)}finally{a.f()}for(var C=0,B=i;C<B.length;C++){var G=B[C];o.push({reference:X.syntheticHostListener,paramsOrFn:G,span:null})}for(var q=0,ae=e;q<ae.length;q++){var pe=ae[q];o.push({reference:X.listener,paramsOrFn:pe,span:null})}return o}(ae,a)));var pe=e.createBoundHostProperties(t.properties,q),Ve=[],Me=0;pe&&pe.forEach(function(Br){u.registerInputBasedOnName(Br.name,Br.expression,q)?Me+=2:(Ve.push(Br),Me++)});for(var Be,pt=function(){Be||(Be=new x3(i,function(){return _t("Unexpected node")},function(Gi){var Cs=Me;return Me+=Gi,Cs},function(){return _t("Unexpected pipe")}));return Be},ht=[],Pe=[],at=[],Ct=0,E=Ve;Ct<E.length;Ct++){var _=E[Ct],A=_.expression.visit(pt()),H=U3(l,A),ee=FE(_),re=ee.bindingName,ge=ee.instruction,ft=ee.isAttribute,St=e.calcPossibleSecurityContexts(o,re,ft).filter(function(Br){return Br!==tt.NONE}),be=null;St.length&&(be=2===St.length&&St.indexOf(tt.URL)>-1&&St.indexOf(tt.RESOURCE_URL)>-1?dr(X.sanitizeUrlOrResourceUrl):Kp(St[0],ft));var rt=[me(re),H.currValExpr];be&&rt.push(be),G.push.apply(G,(0,$t.Z)(H.stmts)),ge===X.hostProperty?ht.push(rt):ge===X.attribute?Pe.push(rt):ge===X.syntheticHostProperty?at.push(rt):B.push({reference:ge,paramsOrFn:rt,span:null})}for(var Pt=0,Bn=ht;Pt<Bn.length;Pt++){var er=Bn[Pt];B.push({reference:X.hostProperty,paramsOrFn:er,span:null})}for(var Rn=0,gn=Pe;Rn<gn.length;Rn++){var ma=gn[Rn];B.push({reference:X.attribute,paramsOrFn:ma,span:null})}for(var Tr=0,zr=at;Tr<zr.length;Tr++){var Wn=zr[Tr];B.push({reference:X.syntheticHostProperty,paramsOrFn:Wn,span:null})}var In=function B3(t){var i,r=[],e=(0,cn.Z)(Object.getOwnPropertyNames(t));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=t[o];r.push(me(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(t.attributes);if(u.assignHostAttrs(In,s),u.hasBindings&&u.buildUpdateLevelInstructions(pt()).forEach(function(Br){var Go,qr=(0,cn.Z)(Br.calls);try{for(qr.s();!(Go=qr.n()).done;){var Gi=Go.value;Me+=Math.max(Gi.allocateBindingSlots-2,0),B.push({reference:Br.reference,paramsOrFn:BE(Gi,l,U3),span:null})}}catch(Cs){qr.e(Cs)}finally{qr.f()}}),Me&&s.set("hostVars",me(Me)),C.length>0||B.length>0){var yr=a?"".concat(a,"_HostBindings"):null,kn=[];return C.length>0&&kn.push(Tf(1,Ib(C))),B.length>0&&kn.push(Tf(2,G.concat(Ib(B)))),ji([new Pn(mf,Uo),new Pn(Zl,null)],kn,Ci,null,yr)}return null}(t.host,t.typeSourceSpan,e,r,t.selector||"",t.name,i)),i.set("inputs",vv(t.inputs,!0)),i.set("outputs",vv(t.outputs)),null!==t.exportAs&&i.set("exportAs",pi(t.exportAs.map(function(a){return me(a)}))),i}function PE(t,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new So([])];o&&a.push(o),e.push(dr(X.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(dr(X.InheritDefinitionFeature)),r.fullInheritance&&e.push(dr(X.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(dr(X.NgOnChangesFeature)),e.length&&t.set("features",pi(e))}function R3(t,r,e){var i=IE(t,r,e);PE(i,t);var o=t.selector&&dn.parse(t.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(E){return me(null!=E?E:void 0)})),!0))}var l=t.name,u=l?"".concat(l,"_Template"):null,f=t.changeDetection,h=t.template,v=new kF(r,SF.createRootScope(),0,l,null,null,u,X.namespaceHTML,t.relativeContextFilePath,t.i18nUseExternalIds),C=v.buildTemplateFunction(h.nodes,[]),B=v.getNgContentSelectors();B&&i.set("ngContentSelectors",B),i.set("decls",me(v.getConstCount())),i.set("vars",me(v.getVarCount()));var G=v.getConsts(),q=G.constExpressions,ae=G.prepareStatements;if(q.length>0){var pe=pi(q);ae.length>0&&(pe=ji([],[].concat((0,$t.Z)(ae),[new _o(pe)]))),i.set("consts",pe)}if(i.set("template",C),t.directives.length>0){var Me=RE(pi(t.directives.map(function(E){return E.type})),t.declarationListEmitMode);i.set("directives",Me)}if(t.pipes.size>0){var pt=RE(pi(Array.from(t.pipes.values())),t.declarationListEmitMode);i.set("pipes",pt)}if(null===t.encapsulation&&(t.encapsulation=jn.Emulated),t.styles&&t.styles.length){var ht=t.encapsulation==jn.Emulated?function ZF(t,r,e){var i=new bP;return t.map(function(o){return i.shimCssText(o,r,e)})}(t.styles,I3,O3):t.styles,Pe=ht.map(function(E){return r.getConstLiteral(me(E))});i.set("styles",pi(Pe))}else t.encapsulation===jn.Emulated&&(t.encapsulation=jn.None);return t.encapsulation!==jn.Emulated&&i.set("encapsulation",me(t.encapsulation)),null!==t.animations&&i.set("data",Ai([{key:"animation",value:t.animations,quoted:!1}])),null!=f&&f!==mn.Default&&i.set("changeDetection",me(f)),{expression:dr(X.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:L3(t),statements:[]}}function L3(t){var r=NE(t);return r.push(ZE(t.template.ngContentSelectors)),Nn(dr(X.ComponentDeclaration,r))}function RE(t,r){switch(r){case 0:return t;case 1:return ji([],[new _o(t)]);case 2:var e=t.prop("map").callFn([dr(X.resolveForwardRef)]);return ji([],[new _o(e)])}}function Z3(t,r){var e=[UI(t,r),me(N3(t))];return t.read&&e.push(t.read),e}function N3(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function DF(t){return Nn(me(t))}function LE(t){return Nn(Ai(Object.keys(t).map(function(e){return{key:e,value:me(Array.isArray(t[e])?t[e][0]:t[e]),quoted:!0}})))}function ZE(t){return t.length>0?Nn(pi(t.map(function(r){return me(r)}))):Qi}function NE(t){var r=null!==t.selector?t.selector.replace(/\n/g,""):null;return[id(t.type.type,t.typeArgumentCount),null!==r?DF(r):Qi,null!==t.exportAs?ZE(t.exportAs):Qi,LE(t.inputs),LE(t.outputs),ZE(t.queries.map(function(e){return e.propertyName}))]}function F3(t){var r=NE(t);return Nn(dr(X.DirectiveDeclaration,r))}function U3(t,r){return wB(null,t,r,"b")}function BE(t,r,e){return t.params(function(i){return e(r,i).currValExpr})}function FE(t){var e,r=t.name,i=r.match(AE);return i?(r=i[1],e=X.attribute):t.isAnimation?(r=Mm(r),e=X.syntheticHostProperty):e=X.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var PF=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var H3=(0,V.Z)(function t(){(0,j.Z)(this,t)}),NF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new eW;(0,j.Z)(this,t),this.jitEvaluator=r,this.FactoryTarget=ur,this.ResourceLoader=H3,this.elementSchemaRegistry=new l3}return(0,V.Z)(t,[{key:"compilePipe",value:function(e,i,o){var s=ST({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function w1(t){var r;return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:null===(r=t.pure)||void 0===r||r}}(o),s=ST(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=jI({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:YE(o.providedIn),useClass:m_(o,j3),useFactory:VE(o,bd),useValue:m_(o,z3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(__)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=jI({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,providedIn:YE(o.providedIn),useClass:m_(o,j3),useFactory:VE(o,bd),useValue:m_(o,z3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(qE)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=Hb({name:o.name,type:ko(o.type),internalType:new br(o.type),providers:new br(o.providers),imports:o.imports.map(function(l){return new br(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function k1(t){return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),providers:void 0!==t.providers?new br(t.providers):null,imports:void 0!==t.imports?t.imports.map(function(r){return new br(r)}):[]}}(o),s=Hb(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=Ns({type:ko(o.type),internalType:new br(o.type),adjacentType:new br(o.type),bootstrap:o.bootstrap.map(ko),declarations:o.declarations.map(ko),imports:o.imports.map(ko),exports:o.exports.map(ko),emitInline:!0,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(ko):null,id:o.id?new br(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function Tv(t){var r=new ps;return r.set("type",new br(t.type)),void 0!==t.bootstrap&&r.set("bootstrap",new br(t.bootstrap)),void 0!==t.declarations&&r.set("declarations",new br(t.declarations)),void 0!==t.imports&&r.set("imports",new br(t.imports)),void 0!==t.exports&&r.set("exports",new br(t.exports)),void 0!==t.schemas&&r.set("schemas",new br(t.schemas)),void 0!==t.id&&r.set("id",new br(t.id)),dr(X.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=V3(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=zE(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new ir,l=function P3(t,r,e){var i=IE(t,r,e);return PE(i,t),{expression:dr(X.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:F3(t),statements:[]}}(o,a,u_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=WE(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),V3(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarationListEmitMode:0,styles:[].concat((0,$t.Z)(o.styles),(0,$t.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new br(o.animations):null,viewProviders:null!=o.viewProviders?new br(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),f="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,f,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function UF(t,r,e){var i,o,a,s,l,u,f=WE(t.template,t.type.name,e,null!==(i=t.preserveWhitespaces)&&void 0!==i&&i,t.interpolation),h=f.template,v=f.interpolation;return Object.assign(Object.assign({},zE(t,r)),{template:h,styles:null!==(o=t.styles)&&void 0!==o?o:[],directives:(null!==(a=t.components)&&void 0!==a?a:[]).concat(null!==(s=t.directives)&&void 0!==s?s:[]).map(HF),pipes:jF(t.pipes),viewProviders:void 0!==t.viewProviders?new br(t.viewProviders):null,animations:void 0!==t.animations?new br(t.animations):null,changeDetection:null!==(l=t.changeDetection)&&void 0!==l?l:mn.Default,encapsulation:null!==(u=t.encapsulation)&&void 0!==u?u:jn.Emulated,interpolation:v,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 ir,l=R3(o,a,u_(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=Wr({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,deps:GE(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=Wr({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(qE):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function lP(t,r,e){var i="in ".concat(t," ").concat(r," in ").concat(e),o=new Fb("",i);return new za(new vf(o,-1,-1,-1),new vf(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,$t.Z)(a),[new nr("$def",e,void 0,Je.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new dP(i),!0).$def}}]),t}(),j3=Object.keys({useClass:null})[0],bd=Object.keys({useFactory:null})[0],z3=Object.keys({useValue:null})[0],UE=Object.keys({useExisting:null})[0];function W3(t){return Object.assign(Object.assign({},t),{predicate:jE(t.predicate),read:t.read?new br(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function HE(t){var r,e,i,o;return{propertyName:t.propertyName,first:null!==(r=t.first)&&void 0!==r&&r,predicate:jE(t.predicate),descendants:null!==(e=t.descendants)&&void 0!==e&&e,read:t.read?new br(t.read):null,static:null!==(i=t.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=t.emitDistinctChangesOnly)||void 0===o||o}}function jE(t){return Array.isArray(t)?t:Sm(new br(t),1)}function V3(t){var r=G3(t.inputs||[]),e=G3(t.outputs||[]),i=t.propMetadata,o={},a={},s=function(f){i.hasOwnProperty(f)&&i[f].forEach(function(h){!function JE(t){return"Input"===t.ngMetadataName}(h)?function QE(t){return"Output"===t.ngMetadataName}(h)&&(a[f]=h.bindingPropertyName||f):o[f]=h.bindingPropertyName?[h.bindingPropertyName,f]:f})};for(var l in i)s(l);return Object.assign(Object.assign({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:ko(t.type),internalType:new br(t.type),deps:null,host:zF(t.propMetadata,t.typeSourceSpan,t.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:t.queries.map(W3),providers:null!=t.providers?new br(t.providers):null,viewQueries:t.viewQueries.map(W3),fullInheritance:!1})}function zE(t,r){var e,i,o,a,s,l,u,f;return{name:t.type.name,type:ko(t.type),typeSourceSpan:r,internalType:new br(t.type),selector:null!==(e=t.selector)&&void 0!==e?e:null,inputs:null!==(i=t.inputs)&&void 0!==i?i:{},outputs:null!==(o=t.outputs)&&void 0!==o?o:{},host:BF(t.host),queries:(null!==(a=t.queries)&&void 0!==a?a:[]).map(HE),viewQueries:(null!==(s=t.viewQueries)&&void 0!==s?s:[]).map(HE),providers:void 0!==t.providers?new br(t.providers):null,exportAs:null!==(l=t.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=t.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(f=t.usesOnChanges)&&void 0!==f&&f},deps:null,typeArgumentCount:0,fullInheritance:!1}}function BF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:FF(null!==(r=t.attributes)&&void 0!==r?r:{}),listeners:null!==(e=t.listeners)&&void 0!==e?e:{},properties:null!==(i=t.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function FF(t){for(var r={},e=0,i=Object.keys(t);e<i.length;e++){var o=i[e];r[o]=new br(t[o])}return r}function HF(t){var r,e,i;return{selector:t.selector,type:new br(t.type),inputs:null!==(r=t.inputs)&&void 0!==r?r:[],outputs:null!==(e=t.outputs)&&void 0!==e?e:[],exportAs:null!==(i=t.exportAs)&&void 0!==i?i:null}}function jF(t){var r=new Map;if(void 0===t)return r;for(var e=0,i=Object.keys(t);e<i.length;e++){var o=i[e],a=t[o];r.set(o,new br(a))}return r}function WE(t,r,e,i,o){var a=o?mT.fromArray(o):su,s=function b1(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=u_(i),u=(new XP).parse(t,r,Object.assign(Object.assign({leadingTriviaChars:DE},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var f={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(f.commentNodes=[]),f}var h=u.rootNodes,v=new mF(i,!o,a),C=v.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var B={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(B.commentNodes=[]),B}h=C.rootNodes,o||(h=_c(new sE,h),v.hasI18nMeta&&(h=_c(new mF(i,!1),h)));var G=TE(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=G.nodes,ae=G.errors,pe=G.styleUrls,Ve=G.styles,Me=G.ngContentSelectors,Be=G.commentNodes;ae.push.apply(ae,(0,$t.Z)(u.errors).concat((0,$t.Z)(C.errors)));var pt={interpolationConfig:i,preserveWhitespaces:o,errors:ae.length>0?ae:null,nodes:q,styleUrls:pe,styles:Ve,ngContentSelectors:Me};return e.collectCommentNodes&&(pt.commentNodes=Be),pt}(t,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 m_(t,r){if(t.hasOwnProperty(r))return Sm(new br(t[r]),0)}function VE(t,r){if(t.hasOwnProperty(r))return new br(t[r])}function YE(t){return Sm("function"==typeof t?new br(t):new es(null!=t?t:null),0)}function GE(t){return null==t?null:t.map(__)}function __(t){var r=null!=t.attribute,e=null===t.token?null:new br(t.token);return KE(r?new br(t.attribute):e,r,t.host,t.optional,t.self,t.skipSelf)}function qE(t){var r,e,i,o,a,s=null!==(r=t.attribute)&&void 0!==r&&r;return KE(null===t.token?null:new br(t.token),s,null!==(e=t.host)&&void 0!==e&&e,null!==(i=t.optional)&&void 0!==i&&i,null!==(o=t.self)&&void 0!==o&&o,null!==(a=t.skipSelf)&&void 0!==a&&a)}function KE(t,r,e,i,o,a){return{token:t,attributeNameType:r?me("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function zF(t,r,e){var i=function RF(t){for(var r={},e={},i={},o={},a=0,s=Object.keys(t);a<s.length;a++){var l=s[a],u=t[l],f=l.match(PF);if(null===f)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?me(u):u}else if(null!=f[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[f[1]]=u}else if(null!=f[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[f[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function LF(t,r){var e=u_();return e.createDirectiveHostEventAsts(t.listeners,r),e.createBoundHostProperties(t.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){t.hasOwnProperty(u)&&t[u].forEach(function(f){!function Uv(t){return"HostBinding"===t.ngMetadataName}(f)?function Y3(t){return"HostListener"===t.ngMetadataName}(f)&&(i.listeners[f.eventName||u]="".concat(u,"(").concat((f.args||[]).join(","),")")):i.properties[f.hostPropertyName||u]=function Ip(t,r){var e=au(r,!1,!1);return e!==r?"".concat(t,"[").concat(e,"]"):"".concat(t,".").concat(r)}("this",u)})};for(var s in t)a(s);return i}function G3(t){return t.reduce(function(r,e){var i=e.split(",").map(function(l){return l.trim()}),o=(0,Ut.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new cr("13.3.11");var tM;!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(tM||(tM={}));var $3=function(){function t(){(0,j.Z)(this,t),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,V.Z)(t,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return wn.PARSABLE_DATA}}]),t}();new $3;var aM;!function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(aM||(aM={}));!function XE(t){(t.ng||(t.ng={})).\u0275compilerFacade=new NF}(Hi);var n=m(5e3),wt=m(9808),Zi=m(925),Hn=m(3191),Oi=m(5664),qn=m(8929),Io=m(4096),S4=m(1715),x4=m(352),fo=m(7451),To=m(6787),Yr=m(7625),ua=m(1059),mr=m(4850),no=m(2986),ms=m(2994),xo=m(7545),ka=m(9071),Es=m(226);function fM(t,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?t.setProperty(i,o,(null==e?void 0:e.has(i))?"important":""):t.removeProperty(i)}return t}function wd(t,r){var e=r?"":"none";fM(t.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 h6(t,r,e){fM(t.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Xp(t,r){return r&&"none"!=r?t+" "+r:t}function jv(t){var r=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*r}function m6(t,r){return t.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function S1(t){var r=t.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 pM(t,r,e){var i=t.top,o=t.bottom,a=t.left,s=t.right;return e>=i&&e<=o&&r>=a&&r<=s}function zv(t,r,e){t.top+=r,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function hM(t,r,e,i){var o=t.top,a=t.right,s=t.bottom,l=t.left,h=t.width*r,v=t.height*r;return i>o-v&&i<s+v&&e>l-h&&e<a+h}var mM=function(){function t(r){(0,j.Z)(this,t),this._document=r,this.positions=new Map}return(0,V.Z)(t,[{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:S1(o)})})}},{key:"handleScroll",value:function(e){var i=(0,Zi.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 f=a.top-s,h=a.left-l;return this.positions.forEach(function(v,C){v.clientRect&&i!==C&&i.contains(C)&&zv(v.clientRect,f,h)}),a.top=s,a.left=l,{top:f,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),t}();function _M(t){var r=t.cloneNode(!0),e=r.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?g6(t,r):("input"===i||"select"===i||"textarea"===i)&&_6(t,r),gM("canvas",t,r,g6),gM("input, textarea, select",t,r,_6),r}function gM(t,r,e,i){var o=r.querySelectorAll(t);if(o.length)for(var a=e.querySelectorAll(t),s=0;s<o.length;s++)i(o[s],a[s])}var D4=0;function _6(t,r){"file"!==r.type&&(r.value=t.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(D4++))}function g6(t,r){var e=r.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch(i){}}var g_=(0,Zi.i$)({passive:!0}),x1=(0,Zi.i$)({passive:!1}),vM=new Set(["position"]),D1=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),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 qn.xQ,this._pointerMoveSubscription=Io.w.EMPTY,this._pointerUpSubscription=Io.w.EMPTY,this._scrollSubscription=Io.w.EMPTY,this._resizeSubscription=Io.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 qn.xQ,this.started=new qn.xQ,this.released=new qn.xQ,this.ended=new qn.xQ,this.entered=new qn.xQ,this.exited=new qn.xQ,this.dropped=new qn.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var f=l._getTargetHandle(u);f&&!l._disabledHandles.has(f)&&!l.disabled&&l._initializeDragSequence(f,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var f=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(f);if(l._hasMoved=!0,l._lastKnownPointerPosition=f,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,f);else{var ae=l._activeTransform;ae.x=q.x-l._pickupPositionOnPage.x+l._passiveTransform.x,ae.y=q.y-l._pickupPositionOnPage.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(f.x-l._pickupPositionOnPage.x)+Math.abs(f.y-l._pickupPositionOnPage.y)>=l._config.dragStartThreshold){var B=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),G=l._dropContainer;if(!B)return void l._endDragSequence(u);(!G||!G.isDragging()&&!G.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 f=l._getTargetHandle(u);f&&!l._disabledHandles.has(f)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new mM(i),s.registerDragItem(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Hn.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return wd(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,Hn.fI)(a)}),this._handles.forEach(function(a){return wd(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,Hn.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,x1),o.addEventListener("touchstart",i._pointerDown,g_),o.addEventListener("dragstart",i._nativeDragStart,x1)}),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,Hn.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),wd(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),wd(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){v_(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(),h6(o,!1,vM),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),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=v_(i),l=!s&&0!==i.button,u=this._rootElement,f=(0,Zi.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),v=s?(0,Oi.yG)(i):(0,Oi.X6)(i);if(f&&f.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||v)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),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=S1(this._boundaryElement));var B=this._previewTemplate;this._pickupPositionInElement=B&&B.template&&!B.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;h6(this._rootElement,!0,vM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),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}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s),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,f=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(f=this._initialContainer),f&&f!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=f,o._dropContainer.enter(o,a,s,f===o._initialContainer&&f.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:f,currentIndex:f.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),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._rootElement.getBoundingClientRect():null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=v6(l,this._document),this._previewRef=l,e.matchSize?y_(a,s):a.style.transform=Wv(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var u=this._rootElement;y_(a=_M(u),u.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return fM(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},vM),wd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(f){return a.classList.add(f)}):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 $s(t){var r=getComputedStyle(t),e=m6(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=m6(r,"transition-duration"),s=m6(r,"transition-delay");return jv(a[o])+jv(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(f){var h;(!f||(0,Zi.sA)(f)===e._preview&&"transform"===f.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=v6(this._placeholderRef,this._document)):o=_M(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i){var o=this._rootElement.getBoundingClientRect(),a=e===this._rootElement?null:e,s=a?a.getBoundingClientRect():o,l=v_(i)?i.targetTouches[0]:i,u=this._getViewportScrollPosition(),f=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-o.left+f,y:s.top-o.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=v_(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):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,f=l.y,h=this._boundaryRect,v=this._getPreviewRect(),C=v.width,B=v.height,G=h.top+f,q=h.bottom-(B-f);a=yM(a,h.left+u,h.right-(C-u)),s=yM(s,G,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,wd(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,x1),e.removeEventListener("touchstart",this._pointerDown,g_),e.removeEventListener("dragstart",this._nativeDragStart,x1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=Wv(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Xp(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=Wv(e,i);this._preview.style.transform=Xp(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._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var l=a.left-s.left,u=s.right-a.right,f=a.top-s.top,h=s.bottom-a.bottom;a.width>s.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,a.height>s.height?(f>0&&(o+=f),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:v_(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Zi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&zv(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,Zi.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,Hn.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),t}();function Wv(t,r){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(r),"px, 0)")}function yM(t,r,e){return Math.max(r,Math.min(e,t))}function v_(t){return"t"===t.type[0]}function v6(t,r){var e=t.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 y_(t,r){t.style.width="".concat(r.width,"px"),t.style.height="".concat(r.height,"px"),t.style.transform=Wv(r.left,r.top)}function Yv(t,r){return Math.max(0,Math.min(r,t))}var y6=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),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 qn.xQ,this.entered=new qn.xQ,this.exited=new qn.xQ,this.dropped=new qn.xQ,this.sorted=new qn.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Io.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new qn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,S4.F)(0,x4.Z).pipe((0,Yr.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,Hn.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new mM(i)}return(0,V.Z)(t,[{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){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(s=this._getItemIndexFromPointerPosition(e,i,o)):s=a;var l=this._activeDraggables,u=l.indexOf(e),f=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 v=h.getRootElement();v.parentElement.insertBefore(f,v),l.splice(s,0,e)}else(0,Hn.fI)(this.element).appendChild(f),l.push(e);f.style.transform="",this._cacheItemPositions(),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){this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u})}},{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._cacheItems());return this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,Hn.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,$t.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===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&&hM(this._clientRect,.05,i,o)){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(!(-1===l&&s.length>0)){var u="horizontal"===this._orientation,f=s.findIndex(function(pe){return pe.drag===e}),h=s[l],v=s[f].clientRect,C=h.clientRect,B=f>l?1:-1,G=this._getItemOffsetPx(v,C,B),q=this._getSiblingOffsetPx(f,s,B),ae=s.slice();(function Vv(t,r,e){var i=Yv(r,t.length-1),o=Yv(e,t.length-1);if(i!==o){for(var a=t[i],s=o<i?-1:1,l=i;l!==o;l+=s)t[l]=t[l+s];t[o]=a}})(s,f,l),this.sorted.next({previousIndex:f,currentIndex:l,container:this,item:e}),s.forEach(function(pe,Ve){if(ae[Ve]!==pe){var Me=pe.drag===e,Be=Me?G:q,pt=Me?e.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=Be,u?(pt.style.transform=Xp("translate3d(".concat(Math.round(pe.offset),"px, 0, 0)"),pe.initialTransform),zv(pe.clientRect,0,Be)):(pt.style.transform=Xp("translate3d(0, ".concat(Math.round(pe.offset),"px, 0)"),pe.initialTransform),zv(pe.clientRect,Be,0))}}),this._previousSwap.overlaps=pM(C,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y}}}},{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,B){if(B!==o._document&&C.clientRect&&!a&&hM(C.clientRect,.05,e,i)){var G=function O4(t,r,e,i){var o=b6(r,i),a=wM(r,e),s=0,l=0;if(o){var u=t.scrollTop;1===o?u>0&&(s=1):t.scrollHeight-u>t.clientHeight&&(s=2)}if(a){var f=t.scrollLeft;1===a?f>0&&(l=1):t.scrollWidth-f>t.clientWidth&&(l=2)}return[s,l]}(B,C.clientRect,e,i),q=(0,Ut.Z)(G,2);s=q[0],l=q[1],(s||l)&&(a=B)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),f=u.width,h=u.height,v={width:f,height:h,top:0,right:f,bottom:h,left:0};s=b6(v,i),l=wM(v,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,Hn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,Hn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{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:S1(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,Hn.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var l=null===(a=e._itemPositions.find(function(u){return u.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=l||""}}),this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{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 f=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[f]-s[h]:u+=s[f]-l.clientRect[h]}return u}},{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:"_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(f){var h=f.drag,v=f.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(v.left)&&i<Math.floor(v.right):o>=Math.floor(v.top)&&o<Math.floor(v.bottom)});return-1!==u&&this.sortPredicate(u,e,this)?u:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&pM(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||!pM(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Hn.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._itemPositions.forEach(function(a){zv(a.clientRect,o.top,o.left)}),e._itemPositions.forEach(function(a){var s=a.drag;e._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,Zi.kV)((0,Hn.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),t}();function b6(t,r){var e=t.top,i=t.bottom,a=.05*t.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function wM(t,r){var e=t.left,i=t.right,a=.05*t.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var A1=(0,Zi.i$)({passive:!1,capture:!0}),Gv=function(){function t(r,e){var i=this;(0,j.Z)(this,t),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 qn.xQ,this.pointerUp=new qn.xQ,this.scroll=new qn.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,V.Z)(t,[{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,A1)})}},{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,A1)}},{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:A1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:A1}),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 fo.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(f){i._activeDragInstances.length&&a.next(f)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),To.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()}}]),t}();Gv.\u0275fac=function(r){return new(r||Gv)(n.LFG(n.R0b),n.LFG(wt.K0))},Gv.\u0275prov=n.Yz7({token:Gv,factory:Gv.\u0275fac,providedIn:"root"});var YW={dragStartThreshold:5,pointerDirectionChangeThreshold:5},$p=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,V.Z)(t,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:YW;return new D1(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new y6(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();$p.\u0275fac=function(r){return new(r||$p)(n.LFG(wt.K0),n.LFG(n.R0b),n.LFG(ka.rL),n.LFG(Gv))},$p.\u0275prov=n.Yz7({token:$p,factory:$p.\u0275fac,providedIn:"root"});var C6=new n.OlP("CDK_DRAG_PARENT"),O1=new n.OlP("CdkDropListGroup"),Sf=function(){function t(){(0,j.Z)(this,t),this._items=new Set,this._disabled=!1}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Hn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),t}();Sf.\u0275fac=function(r){return new(r||Sf)},Sf.\u0275dir=n.lG2({type:Sf,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[n._Bn([{provide:O1,useExisting:Sf}])]});var w6=new n.OlP("CDK_DRAG_CONFIG");var k6=0,b_=new n.OlP("CdkDropList"),C_=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new qn.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(k6++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(f,h){return u.enterPredicate(f.data,h.data)},this._dropListRef.sortPredicate=function(f,h,v){return u.sortPredicate(f,h.data,v.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Hn.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=t._dropLists.indexOf(this);e>-1&&t._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,ua.O)(this._dir.value),(0,Yr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Hn.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?t._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,Hn.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Hn.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Hn.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}),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}))}}]),t}();C_._dropLists=[],C_.\u0275fac=function(r){return new(r||C_)(n.Y36(n.SBq),n.Y36($p),n.Y36(n.sBO),n.Y36(ka.mF),n.Y36(Es.Is,8),n.Y36(O1,12),n.Y36(w6,8))},C_.\u0275dir=n.lG2({type:C_,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(n.uIk("id",e.id),n.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:[n._Bn([{provide:O1,useValue:void 0},{provide:b_,useExisting:C_}])]});var kM=new n.OlP("CdkDragHandle"),qv=function(){function t(r,e){(0,j.Z)(this,t),this.element=r,this._stateChanges=new qn.xQ,this._disabled=!1,this._parentDrag=e}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Hn.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),t}();qv.\u0275fac=function(r){return new(r||qv)(n.Y36(n.SBq),n.Y36(C6,12))},qv.\u0275dir=n.lG2({type:qv,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[n._Bn([{provide:kM,useExisting:qv}])]});var T6=new n.OlP("CdkDragPlaceholder"),Kv=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});Kv.\u0275fac=function(r){return new(r||Kv)(n.Y36(n.Rgc))},Kv.\u0275dir=n.lG2({type:Kv,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[n._Bn([{provide:T6,useExisting:Kv}])]});var TM=new n.OlP("CdkDragPreview"),Jv=function(){function t(r){(0,j.Z)(this,t),this.templateRef=r,this._matchSize=!1}return(0,V.Z)(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Hn.Ig)(e)}}]),t}();Jv.\u0275fac=function(r){return new(r||Jv)(n.Y36(n.Rgc))},Jv.\u0275dir=n.lG2({type:Jv,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[n._Bn([{provide:TM,useExisting:Jv}])]});var Uu=function(){function t(r,e,i,o,a,s,l,u,f,h,v){var C=this;(0,j.Z)(this,t),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=f,this._selfHandle=h,this._parentDrag=v,this._destroyed=new qn.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new fo.y(function(B){var G=C._dragRef.moved.pipe((0,mr.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(B);return function(){G.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,t._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,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Hn.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:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,no.q)(1),(0,Yr.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=t._dragInstances.indexOf(this);i>-1&&t._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,Hn.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,Hn.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,no.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=t._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(){i.started.emit({source:i}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){i.released.emit({source:i})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint}),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})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,f=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),f&&(this.rootElementSelector=f),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,ua.O)(this._handles),(0,ms.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,xo.w)(function(i){return To.T.apply(void 0,(0,$t.Z)(i.map(function(o){return o._stateChanges.pipe((0,ua.O)(o))})))}),(0,Yr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),t}();Uu._dragInstances=[],Uu.\u0275fac=function(r){return new(r||Uu)(n.Y36(n.SBq),n.Y36(b_,12),n.Y36(wt.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(w6,8),n.Y36(Es.Is,8),n.Y36($p),n.Y36(n.sBO),n.Y36(kM,10),n.Y36(C6,12))},Uu.\u0275dir=n.lG2({type:Uu,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,TM,5),n.Suo(i,T6,5),n.Suo(i,kM,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._previewTemplate=o.first),n.iGM(o=n.CRH())&&(e._placeholderTemplate=o.first),n.iGM(o=n.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:C6,useExisting:Uu}]),n.TTD]});var w_=(0,V.Z)(function t(){(0,j.Z)(this,t)});w_.\u0275fac=function(r){return new(r||w_)},w_.\u0275mod=n.oAB({type:w_}),w_.\u0275inj=n.cJS({providers:[$p],imports:[ka.ZD]});var Ao=m(1314),po=m(449),el=m(3527),go=m(591),I1=m(4715),pr=m(1086),EM=[[["caption"]],[["colgroup"],["col"]]];function E6(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function M6(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}function MM(t){return function(r){(0,yt.Z)(i,r);var e=(0,mt.Z)(i);function i(){var o;(0,j.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,V.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,Hn.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}(t)}var k_=new n.OlP("CDK_TABLE"),R4=new n.OlP("text-column-options"),fu=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});fu.\u0275fac=function(r){return new(r||fu)(n.Y36(n.Rgc))},fu.\u0275dir=n.lG2({type:fu,selectors:[["","cdkCellDef",""]]});var Mc=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});Mc.\u0275fac=function(r){return new(r||Mc)(n.Y36(n.Rgc))},Mc.\u0275dir=n.lG2({type:Mc,selectors:[["","cdkHeaderCellDef",""]]});var kd=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});kd.\u0275fac=function(r){return new(r||kd)(n.Y36(n.Rgc))},kd.\u0275dir=n.lG2({type:kd,selectors:[["","cdkFooterCellDef",""]]});var L4=(0,V.Z)(function t(){(0,j.Z)(this,t)}),kl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,V.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,Hn.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}(MM(L4));kl.\u0275fac=function(r){return new(r||kl)(n.Y36(k_,8))},kl.\u0275dir=n.lG2({type:kl,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,fu,5),n.Suo(i,Mc,5),n.Suo(i,kd,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.cell=o.first),n.iGM(o=n.CRH())&&(e.headerCell=o.first),n.iGM(o=n.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kl}]),n.qOj]});var SM=(0,V.Z)(function t(r,e){var i;(0,j.Z)(this,t),(i=e.nativeElement.classList).add.apply(i,(0,$t.Z)(r._columnCssClassName))}),eh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){return(0,j.Z)(this,e),r.call(this,i,o)}return(0,V.Z)(e)}(SM);eh.\u0275fac=function(r){return new(r||eh)(n.Y36(kl),n.Y36(n.SBq))},eh.\u0275dir=n.lG2({type:eh,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]});var T_=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s;if((0,j.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,V.Z)(e)}(SM);T_.\u0275fac=function(r){return new(r||T_)(n.Y36(kl),n.Y36(n.SBq))},T_.\u0275dir=n.lG2({type:T_,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.qOj]});var th=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s;if((0,j.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,V.Z)(e)}(SM);th.\u0275fac=function(r){return new(r||th)(n.Y36(kl),n.Y36(n.SBq))},th.\u0275dir=n.lG2({type:th,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]});var S6=(0,V.Z)(function t(){(0,j.Z)(this,t),this.tasks=[],this.endTasks=[]}),P1=new n.OlP("_COALESCED_STYLE_SCHEDULER"),xf=function(){function t(r){(0,j.Z)(this,t),this._ngZone=r,this._currentSchedule=null,this._destroyed=new qn.xQ}return(0,V.Z)(t,[{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 S6,this._getScheduleObservable().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new S6;var a,o=(0,cn.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,cn.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,el.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,no.q)(1))}}]),t}();xf.\u0275fac=function(r){return new(r||xf)(n.LFG(n.R0b))},xf.\u0275prov=n.Yz7({token:xf,factory:xf.\u0275fac});var nh=function(){function t(r,e){(0,j.Z)(this,t),this.template=r,this._differs=e}return(0,V.Z)(t,[{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 Td?e.headerCell.template:this instanceof Hu?e.footerCell.template:e.cell.template}}]),t}();nh.\u0275fac=function(r){return new(r||nh)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},nh.\u0275dir=n.lG2({type:nh,features:[n.TTD]});var x6=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(nh),Td=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(MM(x6));Td.\u0275fac=function(r){return new(r||Td)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Td.\u0275dir=n.lG2({type:Td,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]});var B4=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(nh),Hu=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(MM(B4));Hu.\u0275fac=function(r){return new(r||Hu)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Hu.\u0275dir=n.lG2({type:Hu,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]});var Ed=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e)}(nh);Ed.\u0275fac=function(r){return new(r||Ed)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Ed.\u0275dir=n.lG2({type:Ed,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]});var Us=function(){function t(r){(0,j.Z)(this,t),this._viewContainer=r,t.mostRecentCellOutlet=this}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}]),t}();Us.mostRecentCellOutlet=null,Us.\u0275fac=function(r){return new(r||Us)(n.Y36(n.s_b))},Us.\u0275dir=n.lG2({type:Us,selectors:[["","cdkCellOutlet",""]]});var rh=(0,V.Z)(function t(){(0,j.Z)(this,t)});rh.\u0275fac=function(r){return new(r||rh)},rh.\u0275cmp=n.Xpm({type:rh,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&&n.GkF(0,0)},directives:[Us],encapsulation:2});var ih=(0,V.Z)(function t(){(0,j.Z)(this,t)});ih.\u0275fac=function(r){return new(r||ih)},ih.\u0275cmp=n.Xpm({type:ih,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&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Md=(0,V.Z)(function t(){(0,j.Z)(this,t)});Md.\u0275fac=function(r){return new(r||Md)},Md.\u0275cmp=n.Xpm({type:Md,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Df=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r,this._contentClassName="cdk-no-data-row"});Df.\u0275fac=function(r){return new(r||Df)(n.Y36(n.Rgc))},Df.\u0275dir=n.lG2({type:Df,selectors:[["ng-template","cdkNoDataRow",""]]});var DM=["top","bottom","left","right"],F4=function(){function t(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,j.Z)(this,t),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,V.Z)(t,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,cn.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 f=0;f<u.children.length;f++)a.push(u.children[f])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){var v,h=(0,cn.Z)(a);try{for(h.s();!(v=h.n()).done;){var C=v.value;o._removeStickyStyle(C,i)}}catch(B){h.e(B)}finally{h.f()}})}},{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(G){return G})||o.some(function(G){return G}))){var l=e[0],u=l.children.length,f=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(f,i),v=this._getStickyEndColumnPositions(f,o),C=i.lastIndexOf(!0),B=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Ve,G="rtl"===a.direction,q=G?"right":"left",ae=G?"left":"right",pe=(0,cn.Z)(e);try{for(pe.s();!(Ve=pe.n()).done;)for(var Me=Ve.value,Be=0;Be<u;Be++){var pt=Me.children[Be];i[Be]&&a._addStickyStyle(pt,q,h[Be],Be===C),o[Be]&&a._addStickyStyle(pt,ae,v[Be],Be===B)}}catch(ht){pe.e(ht)}finally{pe.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===C?[]:f.slice(0,C+1).map(function(ht,Pe){return i[Pe]?ht:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===B?[]:f.slice(B).map(function(ht,Pe){return o[Pe+B]?ht: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=[],f=[],h=[],v=0,C=0;v<s.length;v++)if(l[v]){u[v]=C;var B=s[v];h[v]=this._isNativeHtmlTable?Array.from(B.children):[B];var G=B.getBoundingClientRect().height;C+=G,f[v]=G}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var ae,pe,Ve=0;Ve<s.length;Ve++)if(l[Ve]){var ht,Me=u[Ve],Be=Ve===q,pt=(0,cn.Z)(h[Ve]);try{for(pt.s();!(ht=pt.n()).done;){var Pe=ht.value;a._addStickyStyle(Pe,o,Me,Be)}}catch(at){pt.e(at)}finally{pt.f()}}"top"===o?null===(ae=a._positionListener)||void 0===ae||ae.stickyHeaderRowsUpdated({sizes:f,offsets:u,elements:h}):null===(pe=a._positionListener)||void 0===pe||pe.stickyFooterRowsUpdated({sizes:f,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,cn.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()}DM.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){var s,i={top:100,bottom:10,left:1,right:1},o=0,a=(0,cn.Z)(DM);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.style[l]&&(o+=i[l])}}catch(u){a.e(u)}finally{a.f()}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}}]),t}();var Af=new n.OlP("CDK_SPL"),Xv=(0,V.Z)(function t(){(0,j.Z)(this,t)});Xv.\u0275fac=function(r){return new(r||Xv)},Xv.\u0275dir=n.lG2({type:Xv,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var oh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});oh.\u0275fac=function(r){return new(r||oh)(n.Y36(n.s_b),n.Y36(n.SBq))},oh.\u0275dir=n.lG2({type:oh,selectors:[["","rowOutlet",""]]});var Sd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Sd.\u0275fac=function(r){return new(r||Sd)(n.Y36(n.s_b),n.Y36(n.SBq))},Sd.\u0275dir=n.lG2({type:Sd,selectors:[["","headerRowOutlet",""]]});var xd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});xd.\u0275fac=function(r){return new(r||xd)(n.Y36(n.s_b),n.Y36(n.SBq))},xd.\u0275dir=n.lG2({type:xd,selectors:[["","footerRowOutlet",""]]});var Of=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Of.\u0275fac=function(r){return new(r||Of)(n.Y36(n.s_b),n.Y36(n.SBq))},Of.\u0275dir=n.lG2({type:Of,selectors:[["","noDataRowOutlet",""]]});n.a5r;var Sc=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=f,this._viewportRuler=h,this._stickyPositioningListener=v,this._ngZone=C,this._onDestroy=new qn.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 n.vpe,this.viewChange=new go.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,V.Z)(t,[{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,Hn.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,Hn.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,Yr.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,po.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&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,no.q)(1),(0,Yr.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,$t.Z)(i),(0,$t.Z)(o),(0,$t.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],f=this._cachedRenderRowsMap.get(u.data);f.has(u.rowDef)?f.get(u.rowDef).push(u):f.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(),L1(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=L1(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=L1(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=L1(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,po.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,po.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,I1.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,pr.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Yr.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,cn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Us.mostRecentCellOutlet&&Us.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 f,u=(0,cn.Z)(s.outlets);try{for(u.s();!(f=u.n()).done;){var h=f.value;l.appendChild(h.elementRef.nativeElement)}}catch(v){u.e(v)}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 F4(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,pr.of)()).pipe((0,Yr.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}}}}]),t}();function L1(t,r){return t.concat(Array.from(r))}Sc.\u0275fac=function(r){return new(r||Sc)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(Es.Is,8),n.Y36(wt.K0),n.Y36(Zi.t4),n.Y36(po.k),n.Y36(P1),n.Y36(ka.rL),n.Y36(Af,12),n.Y36(n.R0b,8))},Sc.\u0275cmp=n.Xpm({type:Sc,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Df,5),n.Suo(i,kl,5),n.Suo(i,Ed,5),n.Suo(i,Td,5),n.Suo(i,Hu,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._noDataRow=o.first),n.iGM(o=n.CRH())&&(e._contentColumnDefs=o),n.iGM(o=n.CRH())&&(e._contentRowDefs=o),n.iGM(o=n.CRH())&&(e._contentHeaderRowDefs=o),n.iGM(o=n.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(n.Gf(oh,7),n.Gf(Sd,7),n.Gf(xd,7),n.Gf(Of,7)),2&r)&&(n.iGM(i=n.CRH())&&(e._rowOutlet=i.first),n.iGM(i=n.CRH())&&(e._headerRowOutlet=i.first),n.iGM(i=n.CRH())&&(e._footerRowOutlet=i.first),n.iGM(i=n.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:k_,useExisting:Sc},{provide:po.k,useClass:po.yy},{provide:P1,useClass:xf},{provide:Af,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(n.F$t(EM),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Sd,oh,Of,xd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var If=function(){function t(r,e){(0,j.Z)(this,t),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,V.Z)(t,[{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)}}]),t}();If.\u0275fac=function(r){return new(r||If)(n.Y36(Sc,8),n.Y36(R4,8))},If.\u0275cmp=n.Xpm({type:If,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(kl,7),n.Gf(fu,7),n.Gf(Mc,7)),2&r)&&(n.iGM(i=n.CRH())&&(e.columnDef=i.first),n.iGM(i=n.CRH())&&(e.cell=i.first),n.iGM(i=n.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&&(n.ynx(0,0),n.YNc(1,E6,2,3,"th",1),n.YNc(2,M6,2,3,"td",2),n.BQk())},directives:[kl,Mc,eh,fu,th],encapsulation:2});var ju=(0,V.Z)(function t(){(0,j.Z)(this,t)});ju.\u0275fac=function(r){return new(r||ju)},ju.\u0275mod=n.oAB({type:ju}),ju.\u0275inj=n.cJS({imports:[[ka.Cl]]});var zu=m(520),ne=m(3075),sn=m(508),Gr=m(1159),Pf=m(3753),Ei=m(9664),A6=m(7604),OM=m(5778),O6=m(13),rn=m(1777),Ta=m(6360),$v=["*"],E_=["content"];function $W(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){return n.CHM(e),n.oxw()._onBackdropClicked()}),n.qZA()}if(2&t){var i=n.oxw();n.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function I6(t,r){1&t&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}var j4=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function P6(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){return n.CHM(e),n.oxw()._onBackdropClicked()}),n.qZA()}if(2&t){var i=n.oxw();n.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function tV(t,r){1&t&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}var R6=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],PM={transformDrawer:(0,rn.X$)("transform",[(0,rn.SB)("open, open-instant",(0,rn.oB)({transform:"none",visibility:"visible"})),(0,rn.SB)("void",(0,rn.oB)({"box-shadow":"none",visibility:"hidden"})),(0,rn.eR)("void => open-instant",(0,rn.jt)("0ms")),(0,rn.eR)("void <=> open, open-instant => void",(0,rn.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var W4=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V4(){return!1}}),RM=new n.OlP("MAT_DRAWER_CONTAINER");var Dd=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ka.PQ);Dd.\u0275fac=function(r){return new(r||Dd)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return ah})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},Dd.\u0275cmp=n.Xpm({type:Dd,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:Dd}]),n.qOj],ngContentSelectors:$v,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var M_=function(){function t(r,e,i,o,a,s,l,u){var f=this;(0,j.Z)(this,t),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 qn.xQ,this._animationEnd=new qn.xQ,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ei.h)(function(h){return h}),(0,mr.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,A6.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ei.h)(function(h){return!h}),(0,mr.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,A6.h)(void 0)),this._destroyed=new qn.xQ,this.onPositionChanged=new n.vpe,this._modeChanged=new qn.xQ,this.openedChange.subscribe(function(h){h?(f._doc&&(f._elementFocusedBeforeDrawerWasOpened=f._doc.activeElement),f._takeFocus()):f._isFocusWithinDrawer()&&f._restoreFocus(f._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,Pf.R)(f._elementRef.nativeElement,"keydown").pipe((0,Ei.h)(function(h){return h.keyCode===Gr.hY&&!f.disableClose&&!(0,Gr.Vb)(h)}),(0,Yr.R)(f._destroyed)).subscribe(function(h){return f._ngZone.run(function(){f.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,OM.x)(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===v||"void"===C&&0===v.indexOf("open"))&&f.openedChange.emit(f._opened)})}return(0,V.Z)(t,[{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,Hn.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,Hn.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Hn.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,no.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)}}]),t}();M_.\u0275fac=function(r){return new(r||M_)(n.Y36(n.SBq),n.Y36(Oi.qV),n.Y36(Oi.tE),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Oi.ic),n.Y36(wt.K0,8),n.Y36(RM,8))},M_.\u0275cmp=n.Xpm({type:M_,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(E_,5),2&r)&&(n.iGM(i=n.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&n.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(n.uIk("align",null),n.d8E("@transform",e._animationState),n.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:$v,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var ah=function(){function t(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,j.Z)(this,t),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new qn.xQ,this._doCheckSubject=new qn.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qn.xQ,r&&r.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,V.Z)(t,[{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,Hn.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,Hn.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,ua.O)(this._allDrawers),(0,Yr.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,ua.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,O6.b)(10),(0,Yr.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,Ei.h)(function(o){return o.fromState!==o.toState}),(0,Yr.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,Yr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Yr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,no.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Yr.R)((0,To.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}}]),t}();ah.\u0275fac=function(r){return new(r||ah)(n.Y36(Es.Is,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(W4),n.Y36(Ta.Qb,8))},ah.\u0275cmp=n.Xpm({type:ah,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Dd,5),n.Suo(i,M_,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(Dd,5),2&r)&&(n.iGM(i=n.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:RM,useExisting:ah}])],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&&(n.F$t(j4),n.YNc(0,$W,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,I6,2,0,"mat-drawer-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[Dd,wt.O5],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}\n'],encapsulation:2,changeDetection:0});var sh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){return(0,j.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,V.Z)(e)}(Dd);sh.\u0275fac=function(r){return new(r||sh)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return Rf})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},sh.\u0275cmp=n.Xpm({type:sh,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:sh}]),n.qOj],ngContentSelectors:$v,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var xc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,V.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Hn.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Hn.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Hn.su)(o)}}]),e}(M_);xc.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xc)))(e||xc)}}(),xc.\u0275cmp=n.Xpm({type:xc,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(n.uIk("align",null),n.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),n.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:[n.qOj],ngContentSelectors:$v,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var Rf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ah);Rf.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Rf)))(e||Rf)}}(),Rf.\u0275cmp=n.Xpm({type:Rf,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,sh,5),n.Suo(i,xc,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:RM,useExisting:Rf}]),n.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&&(n.F$t(R6),n.YNc(0,P6,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,tV,2,0,"mat-sidenav-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[sh,wt.O5],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}\n'],encapsulation:2,changeDetection:0});var lh=(0,V.Z)(function t(){(0,j.Z)(this,t)});lh.\u0275fac=function(r){return new(r||lh)},lh.\u0275mod=n.oAB({type:lh}),lh.\u0275inj=n.cJS({imports:[[wt.ez,sn.BQ,ka.ZD],ka.ZD,sn.BQ]});var Z1=m(839),uh=m(6053),Ea=m(1709),ch=m(8117),LM=m(2821),Z6=m(3906),ZM=m(519);function NM(t,r){return t=function Y4(t,r){return void 0===t?void 0===r?t:r:t}(t,r),"function"==typeof t?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!t.apply(this,a)}:t?function(){return!0}:function(){return!1}}var BM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},S_=function(r){return null!=r&&"object"===(void 0===r?"undefined":BM(r))&&1===r.nodeType&&"object"===BM(r.style)&&"object"===BM(r.ownerDocument)};function N6(t,r){if(r=Lf(r,!0),!S_(r))return-1;for(var e=0;e<t.length;e++)if(t[e]===r)return e;return-1}function ey(t,r){return-1!==N6(t,r)}function Dc(t,r){for(var e=0;e<r.length;e++)ey(t,r[e])||t.push(r[e]);return r}function G4(t){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Dc(t,e=e.map(Lf))}function B6(t){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(Lf).reduce(function(o,a){var s=N6(t,a);return-1!==s?o.concat(t.splice(s,1)):o},[])}function Lf(t,r){if("string"==typeof t)try{return document.querySelector(t)}catch(e){throw e}if(!S_(t)&&!r)throw new TypeError(t+" is not a DOM element.");return t}function F6(t){if(t===window)return function K4(){var t={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({},t);var r={};return Object.defineProperties(r,t),r}();try{var r=t.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 "+t)}}var r,dh=void 0;"function"!=typeof Object.create?(r=function(){},dh=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}):dh=Object.create;var J4=dh,fh=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function B1(t,r){r=r||{};for(var e=J4(t),i=0;i<fh.length;i++)void 0!==r[fh[i]]&&(e[fh[i]]=r[fh[i]]);return e}function ty(t,r){console.log("data ",r),t.data=r||{},t.dispatched="mousemove"}var x_=["webkit","moz","ms","o"],ny=function(){if("undefined"==typeof window)return function(){};for(var t=0,r=x_.length;t<r&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[x_[t]+"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)}(),D_=function(){if("undefined"==typeof window)return function(){};for(var t=0,r=x_.length;t<r&&!window.cancelAnimationFrame;++t)window.cancelAnimationFrame=window[x_[t]+"CancelAnimationFrame"]||window[x_[t]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function nV(t,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 q4(t,r){var e=NM((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,t.target=o.target||o.srcElement||o.originalTarget,t.element=this,t.type=o.type,e(o)){if(o.targetTouches)t.x=o.targetTouches[0].clientX,t.y=o.targetTouches[0].clientY,t.pageX=o.targetTouches[0].pageX,t.pageY=o.targetTouches[0].pageY,t.screenX=o.targetTouches[0].screenX,t.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;t.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),t.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else t.pageX=o.pageX,t.pageY=o.pageY;t.x=o.clientX,t.y=o.clientY,t.screenX=o.screenX,t.screenY=o.screenY}t.clientX=t.x,t.clientY=t.y}}}(s),u=function U6(t){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<fh.length;s++)r[fh[s]]=a[fh[s]]}return void 0!==t&&t.addEventListener("mousemove",e),{destroy:function o(){t&&t.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var f=new MouseEvent("mousemove",B1(r,l));return ty(f,u),s.dispatchEvent(f)}:"function"==typeof document.createEvent?function(s,l,u){var f=B1(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,f.screenX,f.screenY,f.clientX,f.clientY,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.button,f.relatedTarget),ty(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var f=document.createEventObject(),h=B1(r,l);for(var v in h)f[v]=h[v];return ty(f,u),s.dispatchEvent(f)}:void 0}}(),f=!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=NM(r.autoScroll),this.syncMove=NM(r.syncMove,!1),this.destroy=function(_){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",ae,!1),window.removeEventListener("touchend",ae,!1),window.removeEventListener("pointerup",ae,!1),window.removeEventListener("mouseleave",Ve,!1),window.removeEventListener("mousemove",pt,!1),window.removeEventListener("touchmove",pt,!1),window.removeEventListener("scroll",G,!0),t=[],_&&pe()},this.add=function(){for(var _=[],A=arguments.length;A--;)_[A]=arguments[A];return G4.apply(void 0,[t].concat(_)),this},this.remove=function(){for(var _=[],A=arguments.length;A--;)_[A]=arguments[A];return B6.apply(void 0,[t].concat(_))};var v,_,h=null;"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),_=t,t=[],_.forEach(function(A){A===window?h=window:e.add(A)}),Object.defineProperties(this,{down:{get:function(){return f}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var B,C=null;function G(_){for(var A=0;A<t.length;A++)if(t[A]===_.target){o=!0;break}o&&ny(function(){return o=!1})}function q(){f=!0}function ae(){f=!1,pe()}function pe(){D_(B),D_(v)}function Ve(){f=!1}function Be(){for(var _=null,A=0;A<t.length;A++)H6(s,t[A])&&(_=t[A]);return _}function pt(_){if(e.autoScroll()&&!_.dispatched){var A=_.target,H=document.body;C&&!H6(s,C)&&(e.scrollWhenOutside||(C=null)),A&&A.parentNode===H?A=Be():(A=function Me(_){if(!_)return null;if(C===_||ey(t,_))return _;for(;_=_.parentNode;)if(ey(t,_))return _;return null}(A),A||(A=Be())),A&&A!==C&&(C=A),h&&(D_(v),v=ny(ht)),C&&(D_(B),B=ny(Pe))}}function ht(){at(h),D_(v),v=ny(ht)}function Pe(){!C||(at(C),D_(B),B=ny(Pe))}function at(_){var H,ee,A=F6(_);H=s.x<A.left+e.margin.left?Math.floor(Math.max(-1,(s.x-A.left)/e.margin.left-1)*e.maxSpeed.left):s.x>A.right-e.margin.right?Math.ceil(Math.min(1,(s.x-A.right)/e.margin.right+1)*e.maxSpeed.right):0,ee=s.y<A.top+e.margin.top?Math.floor(Math.max(-1,(s.y-A.top)/e.margin.top-1)*e.maxSpeed.top):s.y>A.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-A.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(_,{pageX:s.pageX+H,pageY:s.pageY+ee,clientX:s.x+H,clientY:s.y+ee}),setTimeout(function(){ee&&function Ct(_,A){_===window?window.scrollTo(_.pageXOffset,_.pageYOffset+A):_.scrollTop+=A}(_,ee),H&&function E(_,A){_===window?window.scrollTo(_.pageXOffset+A,_.pageYOffset):_.scrollLeft+=A}(_,H)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",ae,!1),window.addEventListener("touchend",ae,!1),window.addEventListener("pointerup",ae,!1),window.addEventListener("mousemove",pt,!1),window.addEventListener("touchmove",pt,!1),window.addEventListener("mouseleave",Ve,!1),window.addEventListener("scroll",G,!0)}function H6(t,r,e){return e?t.y>e.top&&t.y<e.bottom&&t.x>e.left&&t.x<e.right:function N1(t,r){var e=F6(r);return t.y>e.top&&t.y<e.bottom&&t.x>e.left&&t.x<e.right}(t,r)}var j6=function Q4(t,r){return new nV(t,r)};function FM(t,r,e){e&&e.split(" ").forEach(function(i){return t.addClass(r.nativeElement,i)})}function F1(t,r,e){e&&e.split(" ").forEach(function(i){return t.removeClass(r.nativeElement,i)})}var ph=(0,V.Z)(function t(){(0,j.Z)(this,t),this.currentDrag=new qn.xQ});ph.\u0275fac=function(r){return new(r||ph)},ph.\u0275prov=n.Yz7({token:ph,factory:ph.\u0275fac,providedIn:"root"});var A_=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.elementRef=r});A_.\u0275fac=function(r){return new(r||A_)(n.Y36(n.SBq))},A_.\u0275dir=n.lG2({type:A_,selectors:[["","mwlDraggableScrollContainer",""]]});var ry=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 n.vpe,this.dragStart=new n.vpe,this.ghostElementCreated=new n.vpe,this.dragging=new n.vpe,this.dragEnd=new n.vpe,this.pointerDown$=new qn.xQ,this.pointerMove$=new qn.xQ,this.pointerUp$=new qn.xQ,this.eventListenerSubscriptions={},this.destroy$=new qn.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,Ei.h)(function(){return e.canDrag()}),(0,Ea.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 fo.y(function(G){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(ae){return G.next(ae)})}).pipe((0,ua.O)(s),(0,mr.U)(function(){return e.getScrollPosition()})),u=new qn.xQ,f=new Z1.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,To.T)(e.pointerUp$,e.pointerDown$,f,e.destroy$).pipe((0,ch.B)()),v=(0,uh.aj)([e.pointerMove$,l]).pipe((0,mr.U)(function(G){var q=(0,Ut.Z)(G,2),ae=q[0],pe=q[1];return{currentDrag$:u,transformX:ae.clientX-o.clientX,transformY:ae.clientY-o.clientY,clientX:ae.clientX,clientY:ae.clientY,scrollLeft:pe.left,scrollTop:pe.top,target:ae.event.target}}),(0,mr.U)(function(G){return e.dragSnapGrid.x&&(G.transformX=Math.round(G.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(G.transformY=Math.round(G.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),G}),(0,mr.U)(function(G){return e.dragAxis.x||(G.transformX=0),e.dragAxis.y||(G.transformY=0),G}),(0,mr.U)(function(G){var q=G.scrollLeft-s.left,ae=G.scrollTop-s.top;return Object.assign(Object.assign({},G),{x:G.transformX+q,y:G.transformY+ae})}),(0,Ei.h)(function(G){var q=G.x,ae=G.y,pe=G.transformX,Ve=G.transformY;return!e.validateDrag||e.validateDrag({x:q,y:ae,transform:{x:pe,y:Ve}})}),(0,Yr.R)(h),(0,ch.B)()),C=v.pipe((0,no.q)(1),(0,ch.B)()),B=v.pipe((0,LM.h)(1),(0,ch.B)());return C.subscribe(function(G){var q=G.clientX,ae=G.clientY,pe=G.x,Ve=G.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:f})}),e.scroller=j6([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),FM(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Me=e.element.nativeElement.getBoundingClientRect(),Be=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Be):e.element.nativeElement.parentNode.insertBefore(Be,e.element.nativeElement.nextSibling),e.ghostElement=Be,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Be,{position:"fixed",top:"".concat(Me.top,"px"),left:"".concat(Me.left,"px"),width:"".concat(Me.width,"px"),height:"".concat(Me.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var pt=e.vcr.createEmbeddedView(e.ghostElementTemplate);Be.innerHTML="",pt.rootNodes.filter(function(ht){return ht instanceof Node}).forEach(function(ht){Be.appendChild(ht)}),B.subscribe(function(){e.vcr.remove(e.vcr.indexOf(pt))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-pe,clientY:ae-Ve,element:Be})}),B.subscribe(function(){Be.parentElement.removeChild(Be),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),B.pipe((0,Ea.zg)(function(G){var q=f.pipe((0,Z6.Q)(),(0,no.q)(1),(0,mr.U)(function(ae){return Object.assign(Object.assign({},G),{dragCancelled:ae>0})}));return f.complete(),q})).subscribe(function(G){var q=G.x,ae=G.y,pe=G.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:ae,dragCancelled:pe})}),F1(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,To.T)(h,B).pipe((0,no.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),v}),(0,ch.B)());(0,To.T)(i.pipe((0,no.q)(1),(0,mr.U)(function(o){return[,o]})),i.pipe((0,ZM.G)())).pipe((0,Ei.h)(function(o){var a=(0,Ut.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,mr.U)(function(o){var a=(0,Ut.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,f=o.clientY,h=o.transformX,v=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 B="translate3d(".concat(h,"px, ").concat(v,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:B,"-webkit-transform":B,"-ms-transform":B,"-moz-transform":B,"-o-transform":B})}}),l.next({clientX:u,clientY:f,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,Pf.R)(this.document,"contextmenu").subscribe(function(f){f.preventDefault()}),u=(0,Pf.R)(this.document,"touchmove",{passive:!1}).subscribe(function(f){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,f,o)),(!i.touchStartLongPress||!s||a)&&(f.preventDefault(),i.pointerMove$.next({event:f,clientX:f.targetTouches[0].clientX,clientY:f.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),f=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(f>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}}]),t}();function z6(t,r,e){return t>=e.left&&t<=e.right&&r>=e.top&&r<=e.bottom}ry.\u0275fac=function(r){return new(r||ry)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(A_,8),n.Y36(wt.K0))},ry.\u0275dir=n.lG2({type:ry,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:[n.TTD]});var iy=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new n.vpe,this.dragLeave=new n.vpe,this.dragOver=new n.vpe,this.drop=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){FM(e.renderer,e.element,e.dragActiveClass);var s,f,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,mr.U)(function(h){var v=h.clientX,C=h.clientY,B=h.dropData,G=h.target;s={clientX:v,clientY:C,dropData:B,target:G},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=z6(v,C,o.rect),ae=!e.validateDrop||e.validateDrop({clientX:v,clientY:C,target:G,dropData:B});return o.scrollContainerRect?q&&ae&&z6(v,C,o.scrollContainerRect):q&&ae})),u=l.pipe((0,OM.x)());u.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){f=!0,FM(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,ZM.G)(),(0,Ei.h)(function(h){var v=(0,Ut.Z)(h,2),C=v[0],B=v[1];return C&&!B})).subscribe(function(){f=!1,F1(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),F1(e.renderer,e.element,e.dragActiveClass),f&&(F1(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()}}]),t}();iy.\u0275fac=function(r){return new(r||iy)(n.Y36(n.SBq),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(A_,8))},iy.\u0275dir=n.lG2({type:iy,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Zf=(0,V.Z)(function t(){(0,j.Z)(this,t)});Zf.\u0275fac=function(r){return new(r||Zf)},Zf.\u0275mod=n.oAB({type:Zf}),Zf.\u0275inj=n.cJS({});var UM=m(2072);function Nf(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}function U1(t){return 1===t.length&&(t=function W6(t){return function(r,e){return Nf(t(r),e)}}(t)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;t(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;t(e[s],i)>0?a=s:o=s+1}return o}}}var V6=U1(Nf),HM=V6.right,Y6=V6.left,O_=HM;function G6(t,r){null==r&&(r=jM);for(var e=0,i=t.length-1,o=t[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=t[++e]);return a}function jM(t,r){return[t,r]}function tl(t,r,e){var s,l,u,f,i=t.length,o=r.length,a=new Array(i*o);for(null==e&&(e=jM),s=u=0;s<i;++s)for(f=t[s],l=0;l<o;++l,++u)a[u]=e(f,r[l]);return a}function I_(t,r){return r<t?-1:r>t?1:r>=t?0:NaN}function Bf(t){return null===t?NaN:+t}function q6(t,r){var s,l,e=t.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=Bf(t[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=Bf(r(t[o],o,t)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function X4(t,r){var e=q6(t,r);return e&&Math.sqrt(e)}function hh(t,r){var o,a,s,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=t[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(t[i],i,t))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var K6=Array.prototype,zM=K6.slice,$4=K6.map;function oy(t){return function(){return t}}function e8(t){return t}function Bl(t,r,e){t=+t,r=+r,e=(o=arguments.length)<2?(r=t,t=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-t)/e)),a=new Array(o);++i<o;)a[i]=t+i*e;return a}var ay=Math.sqrt(50),H1=Math.sqrt(10),j1=Math.sqrt(2);function P_(t,r,e){var i,a,s,l,o=-1;if(e=+e,(t=+t)===(r=+r)&&e>0)return[t];if((i=r<t)&&(a=t,t=r,r=a),0===(l=mh(t,r,e))||!isFinite(l))return[];if(l>0)for(t=Math.ceil(t/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-t+1));++o<a;)s[o]=(t+o)*l;else for(t=Math.floor(t*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(t-r+1));++o<a;)s[o]=(t-o)/l;return i&&s.reverse(),s}function mh(t,r,e){var i=(r-t)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=ay?10:a>=H1?5:a>=j1?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=ay?10:a>=H1?5:a>=j1?2:1)}function R_(t,r,e){var i=Math.abs(r-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=ay?o*=10:a>=H1?o*=5:a>=j1&&(o*=2),r<t?-o:o}function z1(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function t8(){var t=e8,r=hh,e=z1;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=t(o[a],a,o);var f=r(u),h=f[0],v=f[1],C=e(u,h,v);Array.isArray(C)||(C=R_(h,v,C),C=Bl(Math.ceil(h/C)*C,v,C));for(var B=C.length;C[0]<=h;)C.shift(),--B;for(;C[B-1]>v;)C.pop(),--B;var q,G=new Array(B+1);for(a=0;a<=B;++a)(q=G[a]=[]).x0=a>0?C[a-1]:h,q.x1=a<B?C[a]:v;for(a=0;a<s;++a)h<=(l=u[a])&&l<=v&&G[O_(C,l,0,B)].push(o[a]);return G}return i.value=function(o){return arguments.length?(t="function"==typeof o?o:oy(o),i):t},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:oy([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?oy(zM.call(o)):oy(o),i):e},i}function L_(t,r,e){if(null==e&&(e=Bf),i=t.length){if((r=+r)<=0||i<2)return+e(t[0],0,t);if(r>=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*r,a=Math.floor(o),s=+e(t[a],a,t);return s+(+e(t[a+1],a+1,t)-s)*(o-a)}}function W1(t,r,e){return t=$4.call(t,Bf).sort(Nf),Math.ceil((e-r)/(2*(L_(t,.75)-L_(t,.25))*Math.pow(t.length,-1/3)))}function J6(t,r,e){return Math.ceil((e-r)/(3.5*X4(t)*Math.pow(t.length,-1/3)))}function Q6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=o;++i<e;)null!=(o=t[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=o;++i<e;)null!=(o=r(t[i],i,t))&&o>a&&(a=o);return a}function WM(t,r){var a,e=t.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=Bf(t[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=Bf(r(t[o],o,t)))?--i:s+=a;if(i)return s/i}function VM(t,r){var o,e=t.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=Bf(t[i]))||a.push(o);else for(;++i<e;)isNaN(o=Bf(r(t[i],i,t)))||a.push(o);return L_(a.sort(Nf),.5)}function YM(t){for(var e,a,s,r=t.length,i=-1,o=0;++i<r;)o+=t[i].length;for(a=new Array(o);--r>=0;)for(e=(s=t[r]).length;--e>=0;)a[--o]=s[e];return a}function X6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=o;++i<e;)null!=(o=t[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=o;++i<e;)null!=(o=r(t[i],i,t))&&a>o&&(a=o);return a}function $6(t,r){for(var e=r.length,i=new Array(e);e--;)i[e]=t[r[e]];return i}function eR(t,r){if(e=t.length){var e,a,i=0,o=0,s=t[o];for(null==r&&(r=Nf);++i<e;)(r(a=t[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function tR(t,r,e){for(var o,a,i=(null==e?t.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=t[i+r],t[i+r]=t[a+r],t[a+r]=o;return t}function n8(t,r){var o,e=t.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+t[i])&&(a+=o);else for(;++i<e;)(o=+r(t[i],i,t))&&(a+=o);return a}function GM(t){if(!(a=t.length))return[];for(var r=-1,e=X6(t,nR),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=t[o][r];return i}function nR(t){return t.length}function r8(){return GM(arguments)}var qM=Array.prototype.slice;function rR(t){return t}function i8(t){return"translate("+(t+.5)+",0)"}function o8(t){return"translate(0,"+(t+.5)+")"}function a8(t){return function(r){return+t(r)}}function iR(t){var r=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(r=Math.round(r)),function(e){return+t(e)+r}}function oR(){return!this.__axis}function G1(t,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",h=1===t||3===t?i8:o8;function v(C){var B=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,G=null==o?r.tickFormat?r.tickFormat.apply(r,e):rR:o,q=Math.max(a,0)+l,ae=r.range(),pe=+ae[0]+.5,Ve=+ae[ae.length-1]+.5,Me=(r.bandwidth?iR:a8)(r.copy()),Be=C.selection?C.selection():C,pt=Be.selectAll(".domain").data([null]),ht=Be.selectAll(".tick").data(B,r).order(),Pe=ht.exit(),at=ht.enter().append("g").attr("class","tick"),Ct=ht.select("line"),E=ht.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ht=ht.merge(at),Ct=Ct.merge(at.append("line").attr("stroke","currentColor").attr(f+"2",u*a)),E=E.merge(at.append("text").attr("fill","currentColor").attr(f,u*q).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),C!==Be&&(pt=pt.transition(C),ht=ht.transition(C),Ct=Ct.transition(C),E=E.transition(C),Pe=Pe.transition(C).attr("opacity",1e-6).attr("transform",function(_){return isFinite(_=Me(_))?h(_):this.getAttribute("transform")}),at.attr("opacity",1e-6).attr("transform",function(_){var A=this.parentNode.__axis;return h(A&&isFinite(A=A(_))?A:Me(_))})),Pe.remove(),pt.attr("d",4===t||2==t?s?"M"+u*s+","+pe+"H0.5V"+Ve+"H"+u*s:"M0.5,"+pe+"V"+Ve:s?"M"+pe+","+u*s+"V0.5H"+Ve+"V"+u*s:"M"+pe+",0.5H"+Ve),ht.attr("opacity",1).attr("transform",function(_){return h(Me(_))}),Ct.attr(f+"2",u*a),E.attr(f,u*q).text(G),Be.filter(oR).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),Be.each(function(){this.__axis=Me})}return v.scale=function(C){return arguments.length?(r=C,v):r},v.ticks=function(){return e=qM.call(arguments),v},v.tickArguments=function(C){return arguments.length?(e=null==C?[]:qM.call(C),v):e.slice()},v.tickValues=function(C){return arguments.length?(i=null==C?null:qM.call(C),v):i&&i.slice()},v.tickFormat=function(C){return arguments.length?(o=C,v):o},v.tickSize=function(C){return arguments.length?(a=s=+C,v):a},v.tickSizeInner=function(C){return arguments.length?(a=+C,v):a},v.tickSizeOuter=function(C){return arguments.length?(s=+C,v):s},v.tickPadding=function(C){return arguments.length?(l=+C,v):l},v}function s8(t){return G1(1,t)}function l8(t){return G1(2,t)}function u8(t){return G1(3,t)}function c8(t){return G1(4,t)}var d8={value:function(){}};function aR(){for(var i,t=0,r=arguments.length,e={};t<r;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new _h(e)}function _h(t){this._=t}function rV(t,r){return t.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 sR(t,r){for(var o,e=0,i=t.length;e<i;++e)if((o=t[e]).name===r)return o.value}function Ad(t,r,e){for(var i=0,o=t.length;i<o;++i)if(t[i].name===r){t[i]=d8,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:r,value:e}),t}_h.prototype=aR.prototype={constructor:_h,on:function(r,e){var a,i=this._,o=rV(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]=Ad(i[a],r.name,e);else if(null==e)for(a in i)i[a]=Ad(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=sR(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new _h(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 Ff=aR;function lR(){}function uR(t){return null==t?lR:function(){return this.querySelector(t)}}function cR(){return[]}function dR(t){return null==t?cR:function(){return this.querySelectorAll(t)}}function f8(t){return function(){return this.matches(t)}}function pR(t){return new Array(t.length)}function q1(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}q1.prototype={constructor:q1,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 hR(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new q1(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function h8(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new q1(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function Uf(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}var K1="http://www.w3.org/1999/xhtml",_R={svg:"http://www.w3.org/2000/svg",xhtml:K1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ac(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),_R.hasOwnProperty(r)?{space:_R[r],local:t}:t}function F_(t){return function(){this.removeAttribute(t)}}function C8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function w8(t,r){return function(){this.setAttribute(t,r)}}function tS(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function gh(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function gR(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function yR(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function aV(t){return function(){this.style.removeProperty(t)}}function k8(t,r,e){return function(){this.style.setProperty(t,r,e)}}function T8(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function vh(t,r){return t.style.getPropertyValue(r)||yR(t).getComputedStyle(t,null).getPropertyValue(r)}function M8(t){return function(){delete this[t]}}function S8(t,r){return function(){this[t]=r}}function sV(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Hf(t){return t.trim().split(/^|\s+/)}function rS(t){return t.classList||new bR(t)}function bR(t){this._node=t,this._names=Hf(t.getAttribute("class")||"")}function iS(t,r){for(var e=rS(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function Od(t,r){for(var e=rS(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function oS(t){return function(){iS(this,t)}}function CR(t){return function(){Od(this,t)}}function x8(t,r){return function(){(r.apply(this,arguments)?iS:Od)(this,t)}}function kR(){this.textContent=""}function lV(t){return function(){this.textContent=t}}function D8(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function cV(){this.innerHTML=""}function TR(t){return function(){this.innerHTML=t}}function aS(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function O8(){this.nextSibling&&this.parentNode.appendChild(this)}function P8(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fV(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===K1&&r.documentElement.namespaceURI===K1?r.createElement(t):r.createElementNS(e,t)}}function pV(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ER(t){var r=Ac(t);return(r.local?pV:fV)(r)}function hV(){return null}function mV(){var t=this.parentNode;t&&t.removeChild(this)}function MR(){var t=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}function lS(){var t=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}bR.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 J1={},Kn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(J1={mouseenter:"mouseover",mouseleave:"mouseout"}));function gV(t,r,e){return t=L8(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function L8(t,r,e){return function(i){var o=Kn;Kn=i;try{t.call(this,this.__data__,r,e)}finally{Kn=o}}}function vV(t){return t.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 yV(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function xR(t,r,e){var i=J1.hasOwnProperty(t.type)?gV:L8;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function Q1(t,r,e,i){var o=Kn;t.sourceEvent=Kn,Kn=t;try{return r.apply(e,i)}finally{Kn=o}}function DR(t,r,e){var i=yR(t),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)),t.dispatchEvent(o)}function N8(t,r){return function(){return DR(this,t,r)}}function AR(t,r){return function(){return DR(this,t,r.apply(this,arguments))}}var cS=[null];function Fl(t,r){this._groups=t,this._parents=r}function IR(){return new Fl([[document.documentElement]],cS)}Fl.prototype=IR.prototype={constructor:Fl,select:function JM(t){"function"!=typeof t&&(t=uR(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new Fl(i,this._parents)},selectAll:function fR(t){"function"!=typeof t&&(t=dR(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new Fl(i,o)},filter:function N_(t){"function"!=typeof t&&(t=f8(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new Fl(i,this._parents)},data:function B_(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?h8:hR,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function iV(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Be,pt,Ve=0,Me=0;Ve<G;++Ve)if(Be=q[Ve]){for(Ve>=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me<G;);Be._next=pt||null}}return(s=new Fl(s,i))._enter=l,s._exit=u,s},enter:function QM(){return new Fl(this._enter||this._groups.map(pR),this._parents)},exit:function m8(){return new Fl(this._exit||this._groups.map(pR),this._parents)},join:function oV(t,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function _8(t){for(var r=this._groups,e=t._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],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new Fl(s,this._parents)},order:function XM(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 g8(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Uf);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new Fl(o,this._parents).order()},call:function v8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function $M(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function y8(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function b8(){var t=0;return this.each(function(){++t}),t},empty:function eS(){return!this.node()},each:function mR(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function vR(t,r){var e=Ac(t);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?C8:F_:"function"==typeof r?e.local?gR:gh:e.local?tS:w8)(e,r))},style:function E8(t,r,e){return arguments.length>1?this.each((null==r?aV:"function"==typeof r?T8:k8)(t,r,null==e?"":e)):vh(this.node(),t)},property:function nS(t,r){return arguments.length>1?this.each((null==r?M8:"function"==typeof r?sV:S8)(t,r)):this.node()[t]},classed:function wR(t,r){var e=Hf(t+"");if(arguments.length<2){for(var i=rS(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?x8:r?oS:CR)(e,r))},text:function uV(t){return arguments.length?this.each(null==t?kR:("function"==typeof t?D8:lV)(t)):this.node().textContent},html:function A8(t){return arguments.length?this.each(null==t?cV:("function"==typeof t?aS:TR)(t)):this.node().innerHTML},raise:function I8(){return this.each(O8)},lower:function dV(){return this.each(P8)},append:function sS(t){var r="function"==typeof t?t:ER(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function R8(t,r){var e="function"==typeof t?t:ER(t),i=null==r?hV:"function"==typeof r?r:uR(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function yh(){return this.each(mV)},clone:function uS(t){return this.select(t?lS:MR)},datum:function _V(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Z8(t,r,e){var o,s,i=vV(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?xR:yV,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,f=l.length;u<f;++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 OR(t,r){return this.each(("function"==typeof r?AR:N8)(t,r))}};var Id=IR;function gi(t){return"string"==typeof t?new Fl([[document.querySelector(t)]],[document.documentElement]):new Fl([[t]],cS)}function PR(){Kn.stopImmediatePropagation()}function bh(){Kn.preventDefault(),Kn.stopImmediatePropagation()}function jf(t){var r=t.document.documentElement,e=gi(t).on("dragstart.drag",bh,!0);"onselectstart"in r?e.on("selectstart.drag",bh,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function X1(t,r){var e=t.document.documentElement,i=gi(t).on("dragstart.drag",null);r&&(i.on("click.drag",bh,!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 $1(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function RR(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function ly(){}var Wu=1/.7,uy="\\s*([+-]?\\d+)\\s*",eC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bV=/^#([0-9a-f]{3,8})$/,CV=new RegExp("^rgb\\("+[uy,uy,uy]+"\\)$"),B8=new RegExp("^rgb\\("+[Pd,Pd,Pd]+"\\)$"),wV=new RegExp("^rgba\\("+[uy,uy,uy,eC]+"\\)$"),kV=new RegExp("^rgba\\("+[Pd,Pd,Pd,eC]+"\\)$"),TV=new RegExp("^hsl\\("+[eC,Pd,Pd]+"\\)$"),EV=new RegExp("^hsla\\("+[eC,Pd,Pd,eC]+"\\)$"),c={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 d(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function b(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=bV.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Z(r):3===e?new Ie(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Q(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Q(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=CV.exec(t))?new Ie(r[1],r[2],r[3],1):(r=B8.exec(t))?new Ie(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=wV.exec(t))?Q(r[1],r[2],r[3],r[4]):(r=kV.exec(t))?Q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=TV.exec(t))?zt(r[1],r[2]/100,r[3]/100,1):(r=EV.exec(t))?zt(r[1],r[2]/100,r[3]/100,r[4]):c.hasOwnProperty(t)?Z(c[t]):"transparent"===t?new Ie(NaN,NaN,NaN,0):null}function Z(t){return new Ie(t>>16&255,t>>8&255,255&t,1)}function Q(t,r,e,i){return i<=0&&(t=r=e=NaN),new Ie(t,r,e,i)}function le(t){return t instanceof ly||(t=b(t)),t?new Ie((t=t.rgb()).r,t.g,t.b,t.opacity):new Ie}function he(t,r,e,i){return 1===arguments.length?le(t):new Ie(t,r,e,null==i?1:i)}function Ie(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function et(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)}function Tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Ot(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function zt(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Xn(t,r,e,i)}function hn(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof ly||(t=b(t)),!t)return new Xn;if(t instanceof Xn)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Xn(s,l,u,t.opacity)}function Xn(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function fr(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function xn(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Ni(t){return function(){return t}}function Po(t,r){return function(e){return t+e*r}}function Ul(t){return 1==(t=+t)?Hl:function(r,e){return e-r?function is(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):Ni(isNaN(r)?e:r)}}function Hl(t,r){var e=r-t;return e?Po(t,e):Ni(isNaN(t)?r:t)}$1(ly,b,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function p(){return hn(this).formatHsl()},formatRgb:g,toString:g}),$1(Ie,he,RR(ly,{brighter:function(r){return r=null==r?Wu:Math.pow(Wu,r),new Ie(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ie(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:et,formatHex:et,formatRgb:Tt,toString:Tt})),$1(Xn,function Fn(t,r,e,i){return 1===arguments.length?hn(t):new Xn(t,r,e,null==i?1:i)},RR(ly,{brighter:function(r){return r=null==r?Wu:Math.pow(Wu,r),new Xn(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Xn(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 Ie(fr(r>=240?r-240:r+120,a,o),fr(r,a,o),fr(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 zf=function t(r){var e=Ul(r);function i(o,a){var s=e((o=he(o)).r,(a=he(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Hl(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function U_(t){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=he(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var cy=U_(function Cr(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return xn((e-i/r)*r,s,o,a,l)}});U_(function ki(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return xn((e-i/r)*r,o,a,s,l)}});function nC(t,r){var s,e=r?r.length:0,i=t?Math.min(e,t.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=LR(t[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 eae(t,r){var e=new Date;return t=+t,r=+r,function(i){return e.setTime(t*(1-i)+r*i),e}}function Oc(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}function tae(t,r){var o,e={},i={};for(o in(null===t||"object"!=typeof t)&&(t={}),(null===r||"object"!=typeof r)&&(r={}),r)o in t?e[o]=LR(t[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var F8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U8=new RegExp(F8.source,"g");function MV(t,r){var i,o,a,e=F8.lastIndex=U8.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=F8.exec(t))&&(o=U8.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:Oc(i,o)})),e=U8.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function rae(t){return function(r){return t(r)+""}}(u[0].x):function nae(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function iae(t,r){r||(r=[]);var o,e=t?Math.min(r.length,t.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=t[o]*(1-a)+r[o]*a;return i}}function LR(t,r){var i,e=typeof r;return null==r||"boolean"===e?Ni(r):("number"===e?Oc:"string"===e?(i=b(r))?(r=i,zf):MV:r instanceof b?zf:r instanceof Date?eae:function oae(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(r)?iae:Array.isArray(r)?nC:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?tae:Oc)(t,r)}function SV(){for(var r,t=Kn;r=t.sourceEvent;)t=r;return t}function xV(t,r){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var o=t.getBoundingClientRect();return[r.clientX-o.left-t.clientLeft,r.clientY-o.top-t.clientTop]}function Rd(t){var r=SV();return r.changedTouches&&(r=r.changedTouches[0]),xV(t,r)}var ZR,pS,rC=0,dS=0,fS=0,NR=0,fy=0,BR=0,hS="object"==typeof performance&&performance.now?performance:Date,AV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function H_(){return fy||(AV(aae),fy=hS.now()+BR)}function aae(){fy=0}function mS(){this._call=this._time=this._next=null}function _S(t,r,e){var i=new mS;return i.restart(t,r,e),i}function OV(){H_(),++rC;for(var r,t=ZR;t;)(r=fy-t._time)>=0&&t._call.call(null,r),t=t._next;--rC}function IV(){fy=(NR=hS.now())+BR,rC=dS=0;try{OV()}finally{rC=0,function lae(){for(var t,e,r=ZR,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ZR=e);pS=t,H8(i)}(),fy=0}}function sae(){var t=hS.now(),r=t-NR;r>1e3&&(BR-=r,NR=t)}function H8(t){rC||(dS&&(dS=clearTimeout(dS)),t-fy>24?(t<1/0&&(dS=setTimeout(IV,t-hS.now()-BR)),fS&&(fS=clearInterval(fS))):(fS||(NR=hS.now(),fS=setInterval(sae,1e3)),rC=1,AV(IV)))}function gS(t,r,e){var i=new mS;return r=null==r?0:+r,i.restart(function(o){i.stop(),t(o+r)},r,e),i}mS.prototype=_S.prototype={constructor:mS,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?H_():+i)+(null==e?0:+e),!this._next&&pS!==this&&(pS?pS._next=this:ZR=this,pS=this),this._call=r,this._time=i,H8()},stop:function(){this._call&&(this._call=null,this._time=1/0,H8())}};var uae=Ff("start","end","cancel","interrupt"),cae=[];function HR(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function dae(t,r,e){var o,i=t.__transition;function a(f){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var h,v,C,B;if(1!==e.state)return u();for(h in i)if((B=i[h]).name===e.name){if(3===B.state)return gS(s);4===B.state?(B.state=6,B.timer.stop(),B.on.call("interrupt",t,t.__data__,B.index,B.group),delete i[h]):+h<r&&(B.state=6,B.timer.stop(),B.on.call("cancel",t,t.__data__,B.index,B.group),delete i[h])}if(gS(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(f))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,v=-1;h<C;++h)(B=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(o[++v]=B);o.length=v+1}}function l(f){for(var h=f<e.duration?e.ease.call(null,f/e.duration):(e.timer.restart(u),e.state=5,1),v=-1,C=o.length;++v<C;)o[v].call(t,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var f in e.state=6,e.timer.stop(),delete i[r],i)return;delete t.__transition}i[r]=e,e.timer=_S(a,0,e.time)}(t,e,{name:r,index:i,group:o,on:uae,tween:cae,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function W8(t,r){var e=Ld(t,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function wh(t,r){var e=Ld(t,r);if(e.state>3)throw new Error("too late; already running");return e}function Ld(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function iC(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}var vS,Y8,BV,jR,ZV=180/Math.PI,V8={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function NV(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*ZV,skewX:Math.atan(u)*ZV,scaleX:s,scaleY:l}}function FV(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:Oc(f,v)},{i:q-2,x:Oc(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Oc(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Oc(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Oc(f,v)},{i:q-2,x:Oc(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var mae=FV(function pae(t){return"none"===t?V8:(vS||(vS=document.createElement("DIV"),Y8=document.documentElement,BV=document.defaultView),vS.style.transform=t,t=BV.getComputedStyle(Y8.appendChild(vS),null).getPropertyValue("transform"),Y8.removeChild(vS),NV(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),_ae=FV(function hae(t){return null!=t&&(jR||(jR=document.createElementNS("http://www.w3.org/2000/svg","g")),jR.setAttribute("transform",t),t=jR.transform.baseVal.consolidate())?NV((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):V8},", ",")",")");function gae(t,r){var e,i;return function(){var o=wh(this,t),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 vae(t,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=wh(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,f=o.length;u<f;++u)if(o[u].name===r){o[u]=l;break}u===f&&o.push(l)}a.tween=o}}function G8(t,r,e){var i=t._id;return t.each(function(){var o=wh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Ld(o,i).value[r]}}function UV(t,r){var e;return("number"==typeof r?Oc:r instanceof b?zf:(e=b(r))?(r=e,zf):MV)(t,r)}function bae(t){return function(){this.removeAttribute(t)}}function Cae(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wae(t,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?a:a=r(i=s,e)}}function kae(t,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?a:a=r(i=s,e)}}function Tae(t,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Eae(t,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Sae(t,r){return function(e){this.setAttribute(t,r.call(this,e))}}function xae(t,r){return function(e){this.setAttributeNS(t.space,t.local,r.call(this,e))}}function Dae(t,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&xae(t,a)),e}return o._value=r,o}function Aae(t,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Sae(t,a)),e}return o._value=r,o}function Iae(t,r){return function(){W8(this,t).delay=+r.apply(this,arguments)}}function Pae(t,r){return r=+r,function(){W8(this,t).delay=r}}function Lae(t,r){return function(){wh(this,t).duration=+r.apply(this,arguments)}}function Zae(t,r){return r=+r,function(){wh(this,t).duration=r}}function Bae(t,r){if("function"!=typeof r)throw new Error;return function(){wh(this,t).ease=r}}function zae(t,r,e){var i,o,a=function jae(t){return(t+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?W8:wh;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Kae=Id.prototype.constructor;function HV(t){return function(){this.style.removeProperty(t)}}function nse(t,r,e){return function(i){this.style.setProperty(t,r.call(this,i),e)}}function rse(t,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&nse(t,s,e)),i}return a._value=r,a}function lse(t){return function(r){this.textContent=t.call(this,r)}}function use(t){var r,e;function i(){var o=t.apply(this,arguments);return o!==e&&(r=(e=o)&&lse(o)),r}return i._value=t,i}var pse=0;function kh(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function q8(t){return Id().transition(t)}function jV(){return++pse}var oC=Id.prototype;function hse(t){return t*t*t}function mse(t){return--t*t*t+1}function zR(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}kh.prototype=q8.prototype={constructor:kh,select:function Gae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=uR(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,v,l=i[s],u=l.length,f=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(v=t.call(h,h.__data__,C,l))&&("__data__"in h&&(v.__data__=h.__data__),f[C]=v,HR(f[C],r,e,C,f,Ld(h,e)));return new kh(a,this._parents,r,e)},selectAll:function qae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=dR(t));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],f=u.length,v=0;v<f;++v)if(h=u[v]){for(var B,C=t.call(h,h.__data__,v,u),G=Ld(h,e),q=0,ae=C.length;q<ae;++q)(B=C[q])&&HR(B,r,e,q,C,G);a.push(C),s.push(h)}return new kh(a,s,r,e)},filter:function Uae(t){"function"!=typeof t&&(t=f8(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new kh(i,this._parents,this._name,this._id)},merge:function Hae(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,e=t._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],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new kh(s,this._parents,this._name,this._id)},selection:function Jae(){return new Kae(this._groups,this._parents)},transition:function dse(){for(var t=this._name,r=this._id,e=jV(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)if(u=s[f]){var h=Ld(u,r);HR(u,t,e,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kh(i,this._parents,t,e)},call:oC.call,nodes:oC.nodes,node:oC.node,size:oC.size,empty:oC.empty,each:oC.each,on:function Wae(t,r){var e=this._id;return arguments.length<2?Ld(this.node(),e).on.on(t):this.each(zae(e,t,r))},attr:function Mae(t,r){var e=Ac(t),i="transform"===e?_ae:UV;return this.attrTween(t,"function"==typeof r?(e.local?Eae:Tae)(e,i,G8(this,"attr."+t,r)):null==r?(e.local?Cae:bae)(e):(e.local?kae:wae)(e,i,r))},attrTween:function Oae(t,r){var e="attr."+t;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=Ac(t);return this.tween(e,(i.local?Dae:Aae)(i,r))},style:function tse(t,r,e){var i="transform"==(t+="")?mae:UV;return null==r?this.styleTween(t,function Qae(t,r){var e,i,o;return function(){var a=vh(this,t),s=(this.style.removeProperty(t),vh(this,t));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(t,i)).on("end.style."+t,HV(t)):"function"==typeof r?this.styleTween(t,function $ae(t,r,e){var i,o,a;return function(){var s=vh(this,t),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(t),u=l=vh(this,t)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(t,i,G8(this,"style."+t,r))).each(function ese(t,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=wh(this,t),f=u.on,h=null==u.value[a]?l||(l=HV(r)):void 0;(f!==e||o!==h)&&(i=(e=f).copy()).on(s,o=h),u.on=i}}(this._id,t)):this.styleTween(t,function Xae(t,r,e){var i,a,o=e+"";return function(){var s=vh(this,t);return s===o?null:s===i?a:a=r(i=s,e)}}(t,i,r),e).on("end.style."+t,null)},styleTween:function ise(t,r,e){var i="style."+(t+="");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,rse(t,r,null==e?"":e))},text:function sse(t){return this.tween("text","function"==typeof t?function ase(t){return function(){var r=t(this);this.textContent=null==r?"":r}}(G8(this,"text",t)):function ose(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function cse(t){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,use(t))},remove:function Yae(){return this.on("end.remove",function Vae(t){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==t)return;r&&r.removeChild(this)}}(this._id))},tween:function yae(t,r){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ld(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===t)return s.value;return null}return this.each((null==r?gae:vae)(e,t,r))},delay:function Rae(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Iae:Pae)(r,t)):Ld(this.node(),r).delay},duration:function Nae(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Lae:Zae)(r,t)):Ld(this.node(),r).duration},ease:function Fae(t){var r=this._id;return arguments.length?this.each(Bae(r,t)):Ld(this.node(),r).ease},end:function fse(){var t,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 f=wh(this,i),h=f.on;h!==t&&((r=(t=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),f.on=r})})}};var K8={time:null,delay:0,duration:250,ease:zR};function _se(t,r){for(var e;!(e=t.__transition)||!(e=e[r]);)if(!(t=t.parentNode))return K8.time=H_(),K8;return e}Id.prototype.interrupt=function fae(t){return this.each(function(){iC(this,t)})},Id.prototype.transition=function gse(t){var r,e;t instanceof kh?(r=t._id,t=t._name):(r=jV(),(e=K8).time=H_(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)(u=s[f])&&HR(u,t,r,f,s,e||_se(u,r));return new kh(i,this._parents,t,r)};function zV(t){return function(){return t}}function yse(t,r,e){this.target=t,this.type=r,this.selection=e}function WV(){Kn.stopImmediatePropagation()}function WR(){Kn.preventDefault(),Kn.stopImmediatePropagation()}var VV={name:"drag"},J8={name:"space"},aC={name:"handle"},sC={name:"center"},VR={name:"x",handles:["e","w"].map(yS),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]]}},YR={name:"y",handles:["n","s"].map(yS),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]]}},bse={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(yS),input:function(r){return r},output:function(r){return r}},Th={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"},YV={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},GV={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Cse={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},wse={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yS(t){return{type:t}}function kse(){return!Kn.button}function Tse(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Q8(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function X8(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ese(t){var r=t.__brush;return r?r.dim.output(r.selection):null}function Mse(){return $8(VR)}function Sse(){return $8(YR)}function xse(){return $8(bse)}function $8(t){var a,r=Tse,e=kse,i=Ff(s,"start","brush","end"),o=6;function s(C){var B=C.property("__brush",v).selectAll(".overlay").data([yS("overlay")]);B.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Th.overlay).merge(B).each(function(){var q=Q8(this).extent;gi(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([yS("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Th.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var G=C.selectAll(".handle").data(t.handles,function(q){return q.type});G.exit().remove(),G.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return Th[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=gi(this),B=Q8(this).selection;B?(C.selectAll(".selection").style("display",null).attr("x",B[0][0]).attr("y",B[0][1]).attr("width",B[1][0]-B[0][0]).attr("height",B[1][1]-B[0][1]),C.selectAll(".handle").style("display",null).attr("x",function(G){return"e"===G.type[G.type.length-1]?B[1][0]-o/2:B[0][0]-o/2}).attr("y",function(G){return"s"===G.type[0]?B[1][1]-o/2:B[0][1]-o/2}).attr("width",function(G){return"n"===G.type||"s"===G.type?B[1][0]-B[0][0]+o:o}).attr("height",function(G){return"e"===G.type||"w"===G.type?B[1][1]-B[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,B){return C.__brush.emitter||new f(C,B)}function f(C,B){this.that=C,this.args=B,this.state=C.__brush,this.active=0}function h(){if(Kn.touches){if(Kn.changedTouches.length<Kn.touches.length)return WR()}else if(a)return;if(e.apply(this,arguments)){var pt,ht,at,Ct,_,A,ee,re,ge,ft,St,rt,Pt,C=this,B=Kn.target.__data__.type,G="selection"===(Kn.metaKey?B="overlay":B)?VV:Kn.altKey?sC:aC,q=t===YR?null:Cse[B],ae=t===VR?null:wse[B],pe=Q8(C),Ve=pe.extent,Me=pe.selection,Be=Ve[0][0],Pe=Ve[0][1],E=Ve[1][0],H=Ve[1][1],be=q&&ae&&Kn.shiftKey,Bn=Rd(C),er=Bn,Rn=u(C,arguments).beforestart();"overlay"===B?pe.selection=Me=[[pt=t===YR?Be:Bn[0],at=t===VR?Pe:Bn[1]],[_=t===YR?E:pt,ee=t===VR?H:at]]:(pt=Me[0][0],at=Me[0][1],_=Me[1][0],ee=Me[1][1]),ht=pt,Ct=at,A=_,re=ee;var gn=gi(C).attr("pointer-events","none"),ma=gn.selectAll(".overlay").attr("cursor",Th[B]);if(Kn.touches)gn.on("touchmove.brush",zr,!0).on("touchend.brush touchcancel.brush",In,!0);else{var Tr=gi(Kn.view).on("keydown.brush",yr,!0).on("keyup.brush",kn,!0).on("mousemove.brush",zr,!0).on("mouseup.brush",In,!0);jf(Kn.view)}WV(),iC(C),l.call(C),Rn.start()}function zr(){var Br=Rd(C);be&&!rt&&!Pt&&(Math.abs(Br[0]-er[0])>Math.abs(Br[1]-er[1])?Pt=!0:rt=!0),er=Br,St=!0,WR(),Wn()}function Wn(){var Br;switch(ge=er[0]-Bn[0],ft=er[1]-Bn[1],G){case J8:case VV:q&&(ge=Math.max(Be-pt,Math.min(E-_,ge)),ht=pt+ge,A=_+ge),ae&&(ft=Math.max(Pe-at,Math.min(H-ee,ft)),Ct=at+ft,re=ee+ft);break;case aC:q<0?(ge=Math.max(Be-pt,Math.min(E-pt,ge)),ht=pt+ge,A=_):q>0&&(ge=Math.max(Be-_,Math.min(E-_,ge)),ht=pt,A=_+ge),ae<0?(ft=Math.max(Pe-at,Math.min(H-at,ft)),Ct=at+ft,re=ee):ae>0&&(ft=Math.max(Pe-ee,Math.min(H-ee,ft)),Ct=at,re=ee+ft);break;case sC:q&&(ht=Math.max(Be,Math.min(E,pt-ge*q)),A=Math.max(Be,Math.min(E,_+ge*q))),ae&&(Ct=Math.max(Pe,Math.min(H,at-ft*ae)),re=Math.max(Pe,Math.min(H,ee+ft*ae)))}A<ht&&(q*=-1,Br=pt,pt=_,_=Br,Br=ht,ht=A,A=Br,B in YV&&ma.attr("cursor",Th[B=YV[B]])),re<Ct&&(ae*=-1,Br=at,at=ee,ee=Br,Br=Ct,Ct=re,re=Br,B in GV&&ma.attr("cursor",Th[B=GV[B]])),pe.selection&&(Me=pe.selection),rt&&(ht=Me[0][0],A=Me[1][0]),Pt&&(Ct=Me[0][1],re=Me[1][1]),(Me[0][0]!==ht||Me[0][1]!==Ct||Me[1][0]!==A||Me[1][1]!==re)&&(pe.selection=[[ht,Ct],[A,re]],l.call(C),Rn.brush())}function In(){if(WV(),Kn.touches){if(Kn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),gn.on("touchmove.brush touchend.brush touchcancel.brush",null)}else X1(Kn.view,St),Tr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);gn.attr("pointer-events","all"),ma.attr("cursor",Th.overlay),pe.selection&&(Me=pe.selection),X8(Me)&&(pe.selection=null,l.call(C)),Rn.end()}function yr(){switch(Kn.keyCode){case 16:be=q&&ae;break;case 18:G===aC&&(q&&(_=A-ge*q,pt=ht+ge*q),ae&&(ee=re-ft*ae,at=Ct+ft*ae),G=sC,Wn());break;case 32:(G===aC||G===sC)&&(q<0?_=A-ge:q>0&&(pt=ht-ge),ae<0?ee=re-ft:ae>0&&(at=Ct-ft),G=J8,ma.attr("cursor",Th.selection),Wn());break;default:return}WR()}function kn(){switch(Kn.keyCode){case 16:be&&(rt=Pt=be=!1,Wn());break;case 18:G===sC&&(q<0?_=A:q>0&&(pt=ht),ae<0?ee=re:ae>0&&(at=Ct),G=aC,Wn());break;case 32:G===J8&&(Kn.altKey?(q&&(_=A-ge*q,pt=ht+ge*q),ae&&(ee=re-ft*ae,at=Ct+ft*ae),G=sC):(q<0?_=A:q>0&&(pt=ht),ae<0?ee=re:ae>0&&(at=Ct),G=aC),ma.attr("cursor",Th[B]),Wn());break;default:return}WR()}}function v(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=t,C}return s.move=function(C,B){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 G=this,q=G.__brush,ae=u(G,arguments),pe=q.selection,Ve=t.input("function"==typeof B?B.apply(this,arguments):B,q.extent),Me=LR(pe,Ve);function Be(pt){q.selection=1===pt&&X8(Ve)?null:Me(pt),l.call(G),ae.brush()}return pe&&Ve?Be:Be(1)}):C.each(function(){var G=this,q=arguments,ae=G.__brush,pe=t.input("function"==typeof B?B.apply(G,q):B,ae.extent),Ve=u(G,q).beforestart();iC(G),ae.selection=null==pe||X8(pe)?null:pe,l.call(G),Ve.start().brush().end()})},f.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(B){Q1(new yse(s,B,t.output(this.state.selection)),i.apply,i,[B,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:zV([[+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:zV(!!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 qV=Math.cos,KV=Math.sin,JV=Math.PI,GR=JV/2,QV=2*JV,XV=Math.max;function Dse(t){return function(r,e){return t(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ase(){var t=0,r=null,e=null,i=null;function o(a){var B,G,q,ae,pe,Ve,s=a.length,l=[],u=Bl(s),f=[],h=[],v=h.groups=new Array(s),C=new Array(s*s);for(B=0,pe=-1;++pe<s;){for(G=0,Ve=-1;++Ve<s;)G+=a[pe][Ve];l.push(G),f.push(Bl(s)),B+=G}for(r&&u.sort(function(E,_){return r(l[E],l[_])}),e&&f.forEach(function(E,_){E.sort(function(A,H){return e(a[_][A],a[_][H])})}),ae=(B=XV(0,QV-t*s)/B)?t:QV/s,G=0,pe=-1;++pe<s;){for(q=G,Ve=-1;++Ve<s;){var Me=u[pe],Be=f[Me][Ve],pt=a[Me][Be],ht=G,Pe=G+=pt*B;C[Be*s+Me]={index:Me,subindex:Be,startAngle:ht,endAngle:Pe,value:pt}}v[Me]={index:Me,startAngle:q,endAngle:G,value:l[Me]},G+=ae}for(pe=-1;++pe<s;)for(Ve=pe-1;++Ve<s;){var at=C[Ve*s+pe],Ct=C[pe*s+Ve];(at.value||Ct.value)&&h.push(at.value<Ct.value?{source:Ct,target:at}:{source:at,target:Ct})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(t=XV(0,a),o):t},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=Dse(a))._=a,o):i&&i._},o}var Ose=Array.prototype.slice;function eU(t){return function(){return t}}var tU=Math.PI,nU=2*tU,py=1e-6,Ise=nU-py;function rU(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function $V(){return new rU}rU.prototype=$V.prototype={constructor:rU,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,f=o-e,h=s-r,v=l-e,C=h*h+v*v;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(C>py)if(Math.abs(v*u-f*h)>py&&a){var B=i-s,G=o-l,q=u*u+f*f,ae=B*B+G*G,pe=Math.sqrt(q),Ve=Math.sqrt(C),Me=a*Math.tan((tU-Math.acos((q+C-ae)/(2*pe*Ve)))/2),Be=Me/Ve,pt=Me/pe;Math.abs(Be-1)>py&&(this._+="L"+(r+Be*h)+","+(e+Be*v)),this._+="A"+a+","+a+",0,0,"+ +(v*B>h*G)+","+(this._x1=r+pt*u)+","+(this._y1=e+pt*f)}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),f=r+l,h=e+u,v=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>py||Math.abs(this._y1-h)>py)&&(this._+="L"+f+","+h),i&&(C<0&&(C=C%nU+nU),C>Ise?this._+="A"+i+","+i+",0,1,"+v+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+v+","+(this._x1=f)+","+(this._y1=h):C>py&&(this._+="A"+i+","+i+",0,"+ +(C>=tU)+","+v+","+(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 Zd=$V;function Pse(t){return t.source}function Rse(t){return t.target}function Lse(t){return t.radius}function Zse(t){return t.startAngle}function Nse(t){return t.endAngle}function Bse(){var t=Pse,r=Rse,e=Lse,i=Zse,o=Nse,a=null;function s(){var l,u=Ose.call(arguments),f=t.apply(this,u),h=r.apply(this,u),v=+e.apply(this,(u[0]=f,u)),C=i.apply(this,u)-GR,B=o.apply(this,u)-GR,G=v*qV(C),q=v*KV(C),ae=+e.apply(this,(u[0]=h,u)),pe=i.apply(this,u)-GR,Ve=o.apply(this,u)-GR;if(a||(a=l=Zd()),a.moveTo(G,q),a.arc(0,0,v,C,B),(C!==pe||B!==Ve)&&(a.quadraticCurveTo(0,0,ae*qV(pe),ae*KV(pe)),a.arc(0,0,ae,pe,Ve)),a.quadraticCurveTo(0,0,G,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:eU(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:eU(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:eU(+l),s):o},s.source=function(l){return arguments.length?(t=l,s):t},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 Ic="$";function qR(){}function eY(t,r){var e=new qR;if(t instanceof qR)t.each(function(l,u){e.set(u,l)});else if(Array.isArray(t)){var a,i=-1,o=t.length;if(null==r)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(r(a=t[i],i,t),a)}else if(t)for(var s in t)e.set(s,t[s]);return e}qR.prototype=eY.prototype={constructor:qR,has:function(r){return Ic+r in this},get:function(r){return this[Ic+r]},set:function(r,e){return this[Ic+r]=e,this},remove:function(r){var e=Ic+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Ic&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Ic&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Ic&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Ic&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Ic&&++r;return r},empty:function(){for(var r in this)if(r[0]===Ic)return!1;return!0},each:function(r){for(var e in this)e[0]===Ic&&r(this[e],e.slice(1),this)}};var j_=eY;function Fse(){var e,i,o,t=[],r=[];function a(l,u,f,h){if(u>=t.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var G,q,pe,v=-1,C=l.length,B=t[u++],ae=j_(),Ve=f();++v<C;)(pe=ae.get(G=B(q=l[v])+""))?pe.push(q):ae.set(G,[q]);return ae.each(function(Me,Be){h(Ve,Be,a(Me,u,f,h))}),Ve}function s(l,u){if(++u>t.length)return l;var f,h=r[u-1];return null!=i&&u>=t.length?f=l.entries():(f=[],l.each(function(v,C){f.push({key:C,values:s(v,u)})})),null!=h?f.sort(function(v,C){return h(v.key,C.key)}):f}return o={object:function(u){return a(u,0,Use,Hse)},map:function(u){return a(u,0,tY,nY)},entries:function(u){return s(a(u,0,tY,nY),0)},key:function(u){return t.push(u),o},sortKeys:function(u){return r[t.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Use(){return{}}function Hse(t,r,e){t[r]=e}function tY(){return j_()}function nY(t,r,e){t.set(r,e)}function KR(){}var hy=j_.prototype;function rY(t,r){var e=new KR;if(t instanceof KR)t.each(function(a){e.add(a)});else if(t){var i=-1,o=t.length;if(null==r)for(;++i<o;)e.add(t[i]);else for(;++i<o;)e.add(r(t[i],i,t))}return e}KR.prototype=rY.prototype={constructor:KR,has:hy.has,add:function(r){return this[Ic+(r+="")]=r,this},remove:hy.remove,clear:hy.clear,values:hy.keys,size:hy.size,empty:hy.empty,each:hy.each};var jse=rY;function zse(t){var r=[];for(var e in t)r.push(e);return r}function Wse(t){var r=[];for(var e in t)r.push(t[e]);return r}function Vse(t){var r=[];for(var e in t)r.push({key:e,value:t[e]});return r}function lC(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function bS(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function z_(){}var uC=1/.7,cC="\\s*([+-]?\\d+)\\s*",CS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yse=/^#([0-9a-f]{3})$/,Gse=/^#([0-9a-f]{6})$/,qse=new RegExp("^rgb\\("+[cC,cC,cC]+"\\)$"),Kse=new RegExp("^rgb\\("+[Wf,Wf,Wf]+"\\)$"),Jse=new RegExp("^rgba\\("+[cC,cC,cC,CS]+"\\)$"),Qse=new RegExp("^rgba\\("+[Wf,Wf,Wf,CS]+"\\)$"),Xse=new RegExp("^hsl\\("+[CS,Wf,Wf]+"\\)$"),$se=new RegExp("^hsla\\("+[CS,Wf,Wf,CS]+"\\)$"),iY={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 JR(t){var r;return t=(t+"").trim().toLowerCase(),(r=Yse.exec(t))?new rl((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Gse.exec(t))?oY(parseInt(r[1],16)):(r=qse.exec(t))?new rl(r[1],r[2],r[3],1):(r=Kse.exec(t))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Jse.exec(t))?aY(r[1],r[2],r[3],r[4]):(r=Qse.exec(t))?aY(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xse.exec(t))?lY(r[1],r[2]/100,r[3]/100,1):(r=$se.exec(t))?lY(r[1],r[2]/100,r[3]/100,r[4]):iY.hasOwnProperty(t)?oY(iY[t]):"transparent"===t?new rl(NaN,NaN,NaN,0):null}function oY(t){return new rl(t>>16&255,t>>8&255,255&t,1)}function aY(t,r,e,i){return i<=0&&(t=r=e=NaN),new rl(t,r,e,i)}function iU(t){return t instanceof z_||(t=JR(t)),t?new rl((t=t.rgb()).r,t.g,t.b,t.opacity):new rl}function sY(t,r,e,i){return 1===arguments.length?iU(t):new rl(t,r,e,null==i?1:i)}function rl(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function lY(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Vf(t,r,e,i)}function ele(t){if(t instanceof Vf)return new Vf(t.h,t.s,t.l,t.opacity);if(t instanceof z_||(t=JR(t)),!t)return new Vf;if(t instanceof Vf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Vf(s,l,u,t.opacity)}function uY(t,r,e,i){return 1===arguments.length?ele(t):new Vf(t,r,e,null==i?1:i)}function Vf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function oU(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}lC(z_,JR,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),lC(rl,sY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,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+")")}})),lC(Vf,uY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new Vf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Vf(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(oU(r>=240?r-240:r+120,a,o),oU(r,a,o),oU(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 cY=Math.PI/180,dY=180/Math.PI,mY=4/29,dC=6/29,_Y=3*dC*dC;function aU(t){if(t instanceof Yf)return new Yf(t.l,t.a,t.b,t.opacity);if(t instanceof Eh){if(isNaN(t.h))return new Yf(t.l,0,0,t.opacity);var r=t.h*cY;return new Yf(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}t instanceof rl||(t=iU(t));var s,l,e=cU(t.r),i=cU(t.g),o=cU(t.b),a=sU((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=sU((.4360747*e+.3850649*i+.1430804*o)/.96422),l=sU((.0139322*e+.0971045*i+.7141733*o)/.82521)),new Yf(116*a-16,500*(s-a),200*(a-l),t.opacity)}function gY(t,r,e,i){return 1===arguments.length?aU(t):new Yf(t,r,e,null==i?1:i)}function Yf(t,r,e,i){this.l=+t,this.a=+r,this.b=+e,this.opacity=+i}function sU(t){return t>.008856451679035631?Math.pow(t,1/3):t/_Y+mY}function lU(t){return t>dC?t*t*t:_Y*(t-mY)}function uU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function cU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function nle(t){if(t instanceof Eh)return new Eh(t.h,t.c,t.l,t.opacity);if(t instanceof Yf||(t=aU(t)),0===t.a&&0===t.b)return new Eh(NaN,0,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*dY;return new Eh(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function vY(t,r,e,i){return 1===arguments.length?nle(t):new Eh(t,r,e,null==i?1:i)}function Eh(t,r,e,i){this.h=+t,this.c=+r,this.l=+e,this.opacity=+i}lC(Yf,gY,bS(z_,{brighter:function(r){return new Yf(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Yf(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(uU(3.1338561*(e=.96422*lU(e))-1.6168667*(r=1*lU(r))-.4906146*(i=.82521*lU(i))),uU(-.9787684*e+1.9161415*r+.033454*i),uU(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),lC(Eh,vY,bS(z_,{brighter:function(r){return new Eh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Eh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return aU(this).rgb()}}));var dU=1.78277,fU=-.29227,XR=-.90649,wS=1.97294,bY=wS*XR,CY=wS*dU,wY=dU*fU- -.14861*XR;function rle(t){if(t instanceof _y)return new _y(t.h,t.s,t.l,t.opacity);t instanceof rl||(t=iU(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(wY*i+bY*r-CY*e)/(wY+bY-CY),a=i-o,s=(wS*(e-o)-fU*a)/XR,l=Math.sqrt(s*s+a*a)/(wS*o*(1-o)),u=l?Math.atan2(s,a)*dY-120:NaN;return new _y(u<0?u+360:u,l,o,t.opacity)}function kY(t,r,e,i){return 1===arguments.length?rle(t):new _y(t,r,e,null==i?1:i)}function _y(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}lC(_y,kY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new _y(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _y(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*cY,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+dU*a)),255*(e+i*(fU*o+XR*a)),255*(e+i*(wS*o)),this.opacity)}}));var TY=Array.prototype.slice;function ole(t,r){return t-r}function gy(t){return function(){return t}}function sle(t,r){for(var o,e=-1,i=r.length;++e<i;)if(o=lle(t,r[e]))return o;return 0}function lle(t,r){for(var e=r[0],i=r[1],o=-1,a=0,s=t.length,l=s-1;a<s;l=a++){var u=t[a],f=u[0],h=u[1],v=t[l],C=v[0],B=v[1];if(ule(u,v,r))return 0;h>i!=B>i&&e<(C-f)*(i-h)/(B-h)+f&&(o=-o)}return o}function ule(t,r,e){var i;return function cle(t,r,e){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])}(t,r,e)&&function dle(t,r,e){return t<=r&&r<=e||e<=r&&r<=t}(t[i=+(t[0]===r[0])],e[i],r[i])}function fle(){}var Mh=[[],[[[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 EY(){var t=1,r=1,e=z1,i=u;function o(f){var h=e(f);if(Array.isArray(h))h=h.slice().sort(ole);else{var v=hh(f),C=v[0],B=v[1];h=R_(C,B,h),h=Bl(Math.floor(C/h)*h,Math.floor(B/h)*h,h)}return h.map(function(G){return a(f,G)})}function a(f,h){var v=[],C=[];return function s(f,h,v){var G,q,ae,pe,Ve,Me,C=new Array,B=new Array;for(G=q=-1,pe=f[0]>=h,Mh[pe<<1].forEach(Be);++G<t-1;)ae=pe,pe=f[G+1]>=h,Mh[ae|pe<<1].forEach(Be);for(Mh[pe<<0].forEach(Be);++q<r-1;){for(G=-1,pe=f[q*t+t]>=h,Ve=f[q*t]>=h,Mh[pe<<1|Ve<<2].forEach(Be);++G<t-1;)ae=pe,pe=f[q*t+t+G+1]>=h,Me=Ve,Ve=f[q*t+G+1]>=h,Mh[ae|pe<<1|Ve<<2|Me<<3].forEach(Be);Mh[pe|Ve<<3].forEach(Be)}for(G=-1,Ve=f[q*t]>=h,Mh[Ve<<2].forEach(Be);++G<t-1;)Me=Ve,Ve=f[q*t+G+1]>=h,Mh[Ve<<2|Me<<3].forEach(Be);function Be(pt){var E,_,ht=[pt[0][0]+G,pt[0][1]+q],Pe=[pt[1][0]+G,pt[1][1]+q],at=l(ht),Ct=l(Pe);(E=B[at])?(_=C[Ct])?(delete B[E.end],delete C[_.start],E===_?(E.ring.push(Pe),v(E.ring)):C[E.start]=B[_.end]={start:E.start,end:_.end,ring:E.ring.concat(_.ring)}):(delete B[E.end],E.ring.push(Pe),B[E.end=Ct]=E):(E=C[Ct])?(_=B[at])?(delete C[E.start],delete B[_.end],E===_?(E.ring.push(Pe),v(E.ring)):C[_.start]=B[E.end]={start:_.start,end:E.end,ring:_.ring.concat(E.ring)}):(delete C[E.start],E.ring.unshift(ht),C[E.start=at]=E):C[at]=B[Ct]={start:at,end:Ct,ring:[ht,Pe]}}Mh[Ve<<3].forEach(Be)}(f,h,function(B){i(B,f,h),function ale(t){for(var r=0,e=t.length,i=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)i+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return i}(B)>0?v.push([B]):C.push(B)}),C.forEach(function(B){for(var ae,G=0,q=v.length;G<q;++G)if(-1!==sle((ae=v[G])[0],B))return void ae.push(B)}),{type:"MultiPolygon",value:h,coordinates:v}}function l(f){return 2*f[0]+f[1]*(t+1)*4}function u(f,h,v){f.forEach(function(C){var pe,B=C[0],G=C[1],q=0|B,ae=0|G,Ve=h[ae*t+q];B>0&&B<t&&q===B&&(pe=h[ae*t+q-1],C[0]=B+(v-pe)/(Ve-pe)-.5),G>0&&G<r&&ae===G&&(pe=h[(ae-1)*t+q],C[1]=G+(v-pe)/(Ve-pe)-.5)})}return o.contour=a,o.size=function(f){if(!arguments.length)return[t,r];var h=Math.ceil(f[0]),v=Math.ceil(f[1]);if(!(h>0&&v>0))throw new Error("invalid size");return t=h,r=v,o},o.thresholds=function(f){return arguments.length?(e="function"==typeof f?f:Array.isArray(f)?gy(TY.call(f)):gy(f),o):e},o.smooth=function(f){return arguments.length?(i=f?u:fle,o):i===u},o}function pU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=t.data[l+s*i]),l>=e&&(l>=a&&(u-=t.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function hU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=t.data[s+l*i]),l>=e&&(l>=a&&(u-=t.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function ple(t){return t[0]}function hle(t){return t[1]}function mle(){var t=ple,r=hle,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,f=gy(20);function h(ae){var pe=new Float32Array(l*u),Ve=new Float32Array(l*u);ae.forEach(function(pt,ht,Pe){var at=t(pt,ht,Pe)+s>>a,Ct=r(pt,ht,Pe)+s>>a;at>=0&&at<l&&Ct>=0&&Ct<u&&++pe[at+Ct*l]}),pU({width:l,height:u,data:pe},{width:l,height:u,data:Ve},o>>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a),pU({width:l,height:u,data:pe},{width:l,height:u,data:Ve},o>>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a),pU({width:l,height:u,data:pe},{width:l,height:u,data:Ve},o>>a),hU({width:l,height:u,data:Ve},{width:l,height:u,data:pe},o>>a);var Me=f(pe);if(!Array.isArray(Me)){var Be=Q6(pe);Me=R_(0,Be,Me),(Me=Bl(0,Math.floor(Be/Me)*Me,Me)).shift()}return EY().thresholds(Me).size([l,u])(pe).map(v)}function v(ae){return ae.value*=Math.pow(2,-2*a),ae.coordinates.forEach(C),ae}function C(ae){ae.forEach(B)}function B(ae){ae.forEach(G)}function G(ae){ae[0]=ae[0]*Math.pow(2,a)-s,ae[1]=ae[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(ae){return arguments.length?(t="function"==typeof ae?ae:gy(+ae),h):t},h.y=function(ae){return arguments.length?(r="function"==typeof ae?ae:gy(+ae),h):r},h.size=function(ae){if(!arguments.length)return[e,i];var pe=Math.ceil(ae[0]),Ve=Math.ceil(ae[1]);if(!(pe>=0||pe>=0))throw new Error("invalid size");return e=pe,i=Ve,q()},h.cellSize=function(ae){if(!arguments.length)return 1<<a;if(!((ae=+ae)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(ae)/Math.LN2),q()},h.thresholds=function(ae){return arguments.length?(f="function"==typeof ae?ae:Array.isArray(ae)?gy(TY.call(ae)):gy(ae),h):f},h.bandwidth=function(ae){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((ae=+ae)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*ae*ae+1)-1)/2),q()},h}function mU(t,r,e){arguments.length<3&&(e=r,r=SV().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return xV(t,a);return null}function $R(t){return function(){return t}}function _U(t,r,e,i,o,a,s,l,u,f){this.target=t,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._=f}function _le(){return!Kn.ctrlKey&&!Kn.button}function gle(){return this.parentNode}function vle(t){return null==t?{x:Kn.x,y:Kn.y}:t}function yle(){return navigator.maxTouchPoints||"ontouchstart"in this}function W_(){var l,u,f,h,t=_le,r=gle,e=vle,i=yle,o={},a=Ff("start","drag","end"),s=0,v=0;function C(Be){Be.on("mousedown.drag",B).filter(i).on("touchstart.drag",ae).on("touchmove.drag",pe).on("touchend.drag touchcancel.drag",Ve).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function B(){if(!h&&t.apply(this,arguments)){var Be=Me("mouse",r.apply(this,arguments),Rd,this,arguments);!Be||(gi(Kn.view).on("mousemove.drag",G,!0).on("mouseup.drag",q,!0),jf(Kn.view),PR(),f=!1,l=Kn.clientX,u=Kn.clientY,Be("start"))}}function G(){if(bh(),!f){var Be=Kn.clientX-l,pt=Kn.clientY-u;f=Be*Be+pt*pt>v}o.mouse("drag")}function q(){gi(Kn.view).on("mousemove.drag mouseup.drag",null),X1(Kn.view,f),bh(),o.mouse("end")}function ae(){if(t.apply(this,arguments)){var Pe,at,Be=Kn.changedTouches,pt=r.apply(this,arguments),ht=Be.length;for(Pe=0;Pe<ht;++Pe)(at=Me(Be[Pe].identifier,pt,mU,this,arguments))&&(PR(),at("start"))}}function pe(){var ht,Pe,Be=Kn.changedTouches,pt=Be.length;for(ht=0;ht<pt;++ht)(Pe=o[Be[ht].identifier])&&(bh(),Pe("drag"))}function Ve(){var ht,Pe,Be=Kn.changedTouches,pt=Be.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),ht=0;ht<pt;++ht)(Pe=o[Be[ht].identifier])&&(PR(),Pe("end"))}function Me(Be,pt,ht,Pe,at){var E,_,A,Ct=ht(pt,Be),H=a.copy();if(Q1(new _U(C,"beforestart",E,Be,s,Ct[0],Ct[1],0,0,H),function(){return null!=(Kn.subject=E=e.apply(Pe,at))&&(_=E.x-Ct[0]||0,A=E.y-Ct[1]||0,!0)}))return function ee(re){var ft,ge=Ct;switch(re){case"start":o[Be]=ee,ft=s++;break;case"end":delete o[Be],--s;case"drag":Ct=ht(pt,Be),ft=s}Q1(new _U(C,re,E,Be,ft,Ct[0]+_,Ct[1]+A,Ct[0]-ge[0],Ct[1]-ge[1],H),H.apply,H,[re,Pe,at])}}return C.filter=function(Be){return arguments.length?(t="function"==typeof Be?Be:$R(!!Be),C):t},C.container=function(Be){return arguments.length?(r="function"==typeof Be?Be:$R(Be),C):r},C.subject=function(Be){return arguments.length?(e="function"==typeof Be?Be:$R(Be),C):e},C.touchable=function(Be){return arguments.length?(i="function"==typeof Be?Be:$R(!!Be),C):i},C.on=function(){var Be=a.on.apply(a,arguments);return Be===a?C:Be},C.clickDistance=function(Be){return arguments.length?(v=(Be=+Be)*Be,C):Math.sqrt(v)},C}_U.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var MY={},gU={};function SY(t){return new Function("d","return {"+t.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function bU(t){var r=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function o(f,h){var q,v=[],C=f.length,B=0,G=0,ae=C<=0,pe=!1;function Ve(){if(ae)return gU;if(pe)return pe=!1,MY;var Be,ht,pt=B;if(34===f.charCodeAt(pt)){for(;B++<C&&34!==f.charCodeAt(B)||34===f.charCodeAt(++B););return(Be=B)>=C?ae=!0:10===(ht=f.charCodeAt(B++))?pe=!0:13===ht&&(pe=!0,10===f.charCodeAt(B)&&++B),f.slice(pt+1,Be-1).replace(/""/g,'"')}for(;B<C;){if(10===(ht=f.charCodeAt(Be=B++)))pe=!0;else if(13===ht)pe=!0,10===f.charCodeAt(B)&&++B;else if(ht!==e)continue;return f.slice(pt,Be)}return ae=!0,f.slice(pt,C)}for(10===f.charCodeAt(C-1)&&--C,13===f.charCodeAt(C-1)&&--C;(q=Ve())!==gU;){for(var Me=[];q!==MY&&q!==gU;)Me.push(q),q=Ve();h&&null==(Me=h(Me,G++))||v.push(Me)}return v}function l(f){return f.map(u).join(t)}function u(f){return null==f?"":r.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:function i(f,h){var v,C,B=o(f,function(G,q){if(v)return v(G,q-1);C=G,v=h?function ble(t,r){var e=SY(t);return function(i,o){return r(e(i),o,t)}}(G,h):SY(G)});return B.columns=C||[],B},parseRows:o,format:function a(f,h){return null==h&&(h=function Cle(t){var r=Object.create(null),e=[];return t.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(f)),[h.map(u).join(t)].concat(f.map(function(v){return h.map(function(C){return u(v[C])}).join(t)})).join("\n")},formatRows:function s(f){return f.map(l).join("\n")}}}var eL=bU(","),wle=eL.parse,kle=eL.parseRows,Tle=eL.format,Ele=eL.formatRows,tL=bU("\t"),Mle=tL.parse,Sle=tL.parseRows,xle=tL.format,Dle=tL.formatRows;function Ale(t){return+t}function Ole(t){return t*t}function Ile(t){return t*(2-t)}function xY(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ple=function t(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=t,e}(3),Rle=function t(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=t,e}(3),DY=function t(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=t,e}(3),AY=Math.PI,OY=AY/2;function Lle(t){return 1==+t?1:1-Math.cos(t*OY)}function Zle(t){return Math.sin(t*OY)}function IY(t){return(1-Math.cos(AY*t))/2}function V_(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Nle(t){return V_(1-+t)}function Ble(t){return 1-V_(t)}function PY(t){return((t*=2)<=1?V_(1-t):2-V_(t-1))/2}function Fle(t){return 1-Math.sqrt(1-t*t)}function Ule(t){return Math.sqrt(1- --t*t)}function RY(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var wU=4/11,nL=7.5625;function Kle(t){return 1-TS(1-t)}function TS(t){return(t=+t)<wU?nL*t*t:t<.7272727272727273?nL*(t-=.5454545454545454)*t+.75:t<.9090909090909091?nL*(t-=.8181818181818182)*t+.9375:nL*(t-=.9545454545454546)*t+.984375}function Jle(t){return((t*=2)<=1?1-TS(1-t):TS(t-1)+1)/2}var kU=1.70158,Qle=function t(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=t,e}(kU),Xle=function t(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=t,e}(kU),LY=function t(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=t,e}(kU),fC=2*Math.PI,$le=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return r*V_(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3),ZY=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return 1-r*V_(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3),eue=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return((a=2*a-1)<0?r*V_(-a)*Math.sin((i-a)/e):2-r*V_(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3);function tue(t,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-t,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==t&&(t=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(r=+o,i):r},i}function Ms(t){return function(){return t}}function Y_(){return 1e-6*(Math.random()-.5)}function NY(t,r,e,i){if(isNaN(r)||isNaN(e))return t;var o,v,C,B,G,q,ae,pe,Ve,a=t._root,s={data:i},l=t._x0,u=t._y0,f=t._x1,h=t._y1;if(!a)return t._root=s,t;for(;a.length;)if((q=r>=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[pe=ae<<1|q]))return o[pe]=s,t;if(B=+t._x.call(null,a.data),G=+t._y.call(null,a.data),r===B&&e===G)return s.next=a,o?o[pe]=s:t._root=s,t;do{o=o?o[pe]=new Array(4):t._root=new Array(4),(q=r>=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C}while((pe=ae<<1|q)==(Ve=(G>=C)<<1|B>=v));return o[Ve]=a,o[pe]=s,t}function jl(t,r,e,i,o){this.node=t,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function hue(t){return t[0]}function _ue(t){return t[1]}function rL(t,r,e){var i=new MU(null==r?hue:r,null==e?_ue:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function MU(t,r,e,i,o,a){this._x=t,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function BY(t){for(var r={data:t.data},e=r;t=t.next;)e=e.next={data:t.data};return r}var zl=rL.prototype=MU.prototype;function vue(t){return t.x+t.vx}function yue(t){return t.y+t.vy}function bue(t){var r,e,i=1,o=1;function a(){for(var u,h,v,C,B,G,q,f=r.length,ae=0;ae<o;++ae)for(h=rL(r,vue,yue).visitAfter(s),u=0;u<f;++u)v=r[u],G=e[v.index],q=G*G,C=v.x+v.vx,B=v.y+v.vy,h.visit(pe);function pe(Ve,Me,Be,pt,ht){var Pe=Ve.data,at=Ve.r,Ct=G+at;if(!Pe)return Me>C+Ct||pt<C-Ct||Be>B+Ct||ht<B-Ct;if(Pe.index>v.index){var E=C-Pe.x-Pe.vx,_=B-Pe.y-Pe.vy,A=E*E+_*_;A<Ct*Ct&&(0===E&&(A+=(E=Y_())*E),0===_&&(A+=(_=Y_())*_),A=(Ct-(A=Math.sqrt(A)))/A*i,v.vx+=(E*=A)*(Ct=(at*=at)/(q+at)),v.vy+=(_*=A)*Ct,Pe.vx-=E*(Ct=1-Ct),Pe.vy-=_*Ct)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var f=u.r=0;f<4;++f)u[f]&&u[f].r>u.r&&(u.r=u[f].r)}function l(){if(r){var u,h,f=r.length;for(e=new Array(f),u=0;u<f;++u)h=r[u],e[h.index]=+t(h,u,r)}}return"function"!=typeof t&&(t=Ms(null==t?1:+t)),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?(t="function"==typeof u?u:Ms(+u),l(),a):t},a}function Cue(t){return t.index}function FY(t,r){var e=t.get(r);if(!e)throw new Error("missing: "+r);return e}function wue(t){var i,a,s,l,u,r=Cue,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=Ms(30),f=1;function v(q){for(var ae=0,pe=t.length;ae<f;++ae)for(var Me,Be,pt,ht,Pe,at,Ct,Ve=0;Ve<pe;++Ve)Be=(Me=t[Ve]).source,ht=(pt=Me.target).x+pt.vx-Be.x-Be.vx||Y_(),Pe=pt.y+pt.vy-Be.y-Be.vy||Y_(),ht*=at=((at=Math.sqrt(ht*ht+Pe*Pe))-a[Ve])/at*q*i[Ve],Pe*=at,pt.vx-=ht*(Ct=u[Ve]),pt.vy-=Pe*Ct,Be.vx+=ht*(Ct=1-Ct),Be.vy+=Pe*Ct}function C(){if(s){var q,Me,ae=s.length,pe=t.length,Ve=j_(s,r);for(q=0,l=new Array(ae);q<pe;++q)(Me=t[q]).index=q,"object"!=typeof Me.source&&(Me.source=FY(Ve,Me.source)),"object"!=typeof Me.target&&(Me.target=FY(Ve,Me.target)),l[Me.source.index]=(l[Me.source.index]||0)+1,l[Me.target.index]=(l[Me.target.index]||0)+1;for(q=0,u=new Array(pe);q<pe;++q)Me=t[q],u[q]=l[Me.source.index]/(l[Me.source.index]+l[Me.target.index]);i=new Array(pe),B(),a=new Array(pe),G()}}function B(){if(s)for(var q=0,ae=t.length;q<ae;++q)i[q]=+e(t[q],q,t)}function G(){if(s)for(var q=0,ae=t.length;q<ae;++q)a[q]=+o(t[q],q,t)}return null==t&&(t=[]),v.initialize=function(q){s=q,C()},v.links=function(q){return arguments.length?(t=q,C(),v):t},v.id=function(q){return arguments.length?(r=q,v):r},v.iterations=function(q){return arguments.length?(f=+q,v):f},v.strength=function(q){return arguments.length?(e="function"==typeof q?q:Ms(+q),B(),v):e},v.distance=function(q){return arguments.length?(o="function"==typeof q?q:Ms(+q),G(),v):o},v}function kue(t){return t.x}function Tue(t){return t.y}zl.copy=function(){var e,i,t=new MU(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return t;if(!r.length)return t._root=BY(r),t;for(e=[{source:r,target:t._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]=BY(i));return t},zl.add=function nue(t){var r=+this._x.call(null,t),e=+this._y.call(null,t);return NY(this.cover(r,e),r,e,t)},zl.addAll=function rue(t){var r,e,o,a,i=t.length,s=new Array(i),l=new Array(i),u=1/0,f=1/0,h=-1/0,v=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=t[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<f&&(f=a),a>v&&(v=a));if(u>h||f>v)return this;for(this.cover(u,f).cover(h,v),e=0;e<i;++e)NY(this,s[e],l[e],t[e]);return this},zl.cover=function iue(t,r){if(isNaN(t=+t)||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(t))+1,a=(i=Math.floor(r))+1;else{for(var u,f,s=o-e,l=this._root;e>t||t>=o||i>r||r>=a;)switch(f=(r<i)<<1|t<e,u=new Array(4),u[f]=l,l=u,s*=2,f){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},zl.data=function oue(){var t=[];return this.visit(function(r){if(!r.length)do{t.push(r.data)}while(r=r.next)}),t},zl.extent=function aue(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},zl.find=function sue(t,r,e){var i,s,l,u,f,G,q,o=this._x0,a=this._y0,h=this._x1,v=this._y1,C=[],B=this._root;for(B&&C.push(new jl(B,o,a,h,v)),null==e?e=1/0:(o=t-e,a=r-e,h=t+e,v=r+e,e*=e);G=C.pop();)if(!(!(B=G.node)||(s=G.x0)>h||(l=G.y0)>v||(u=G.x1)<o||(f=G.y1)<a))if(B.length){var ae=(s+u)/2,pe=(l+f)/2;C.push(new jl(B[3],ae,pe,u,f),new jl(B[2],s,pe,ae,f),new jl(B[1],ae,l,u,pe),new jl(B[0],s,l,ae,pe)),(q=(r>=pe)<<1|t>=ae)&&(G=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=G)}else{var Ve=t-+this._x.call(null,B.data),Me=r-+this._y.call(null,B.data),Be=Ve*Ve+Me*Me;if(Be<e){var pt=Math.sqrt(e=Be);o=t-pt,a=r-pt,h=t+pt,v=r+pt,i=B.data}}return i},zl.remove=function lue(t){if(isNaN(h=+this._x.call(null,t))||isNaN(v=+this._y.call(null,t)))return this;var r,i,o,a,h,v,C,B,G,q,ae,pe,e=this._root,s=this._x0,l=this._y0,u=this._x1,f=this._y1;if(!e)return this;if(e.length)for(;;){if((G=h>=(C=(s+u)/2))?s=C:u=C,(q=v>=(B=(l+f)/2))?l=B:f=B,r=e,!(e=e[ae=q<<1|G]))return this;if(!e.length)break;(r[ae+1&3]||r[ae+2&3]||r[ae+3&3])&&(i=r,pe=ae)}for(;e.data!==t;)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[ae]=a:delete r[ae],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[pe]=e:this._root=e),this):(this._root=a,this)},zl.removeAll=function uue(t){for(var r=0,e=t.length;r<e;++r)this.remove(t[r]);return this},zl.root=function cue(){return this._root},zl.size=function due(){var t=0;return this.visit(function(r){if(!r.length)do{++t}while(r=r.next)}),t},zl.visit=function fue(t){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new jl(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!t(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var f=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new jl(o,f,h,l,u)),(o=i[2])&&r.push(new jl(o,a,h,f,u)),(o=i[1])&&r.push(new jl(o,f,s,l,h)),(o=i[0])&&r.push(new jl(o,a,s,f,h))}return this},zl.visitAfter=function pue(t){var i,r=[],e=[];for(this._root&&r.push(new jl(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,f=i.y1,h=(s+u)/2,v=(l+f)/2;(a=o[0])&&r.push(new jl(a,s,l,h,v)),(a=o[1])&&r.push(new jl(a,h,l,u,v)),(a=o[2])&&r.push(new jl(a,s,v,h,f)),(a=o[3])&&r.push(new jl(a,h,v,u,f))}e.push(i)}for(;i=e.pop();)t(i.node,i.x0,i.y0,i.x1,i.y1);return this},zl.x=function mue(t){return arguments.length?(this._x=t,this):this._x},zl.y=function gue(t){return arguments.length?(this._y=t,this):this._y};var UY,Mue=Math.PI*(3-Math.sqrt(5));function Sue(t){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=j_(),u=_S(h),f=Ff("tick","end");function h(){v(),f.call("tick",r),e<i&&(u.stop(),f.call("end",r))}function v(){var G,ae,q=t.length;for(e+=(a-e)*o,l.each(function(pe){pe(e)}),G=0;G<q;++G)null==(ae=t[G]).fx?ae.x+=ae.vx*=s:(ae.x=ae.fx,ae.vx=0),null==ae.fy?ae.y+=ae.vy*=s:(ae.y=ae.fy,ae.vy=0)}function C(){for(var ae,G=0,q=t.length;G<q;++G){if((ae=t[G]).index=G,isNaN(ae.x)||isNaN(ae.y)){var pe=10*Math.sqrt(G),Ve=G*Mue;ae.x=pe*Math.cos(Ve),ae.y=pe*Math.sin(Ve)}(isNaN(ae.vx)||isNaN(ae.vy))&&(ae.vx=ae.vy=0)}}function B(G){return G.initialize&&G.initialize(t),G}return null==t&&(t=[]),C(),r={tick:v,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(t=q,C(),l.each(B),r):t},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,ae){return arguments.length>1?(null==ae?l.remove(q):l.set(q,B(ae)),r):l.get(q)},find:function(q,ae,pe){var Be,pt,ht,Pe,at,Ve=0,Me=t.length;for(null==pe?pe=1/0:pe*=pe,Ve=0;Ve<Me;++Ve)(ht=(Be=q-(Pe=t[Ve]).x)*Be+(pt=ae-Pe.y)*pt)<pe&&(at=Pe,pe=ht);return at},on:function(q,ae){return arguments.length>1?(f.on(q,ae),r):f.on(q)}}}function xue(){var t,r,e,o,i=Ms(-30),a=1,s=1/0,l=.81;function u(C){var B,G=t.length,q=rL(t,kue,Tue).visitAfter(h);for(e=C,B=0;B<G;++B)r=t[B],q.visit(v)}function f(){if(t){var C,G,B=t.length;for(o=new Array(B),C=0;C<B;++C)G=t[C],o[G.index]=+i(G,C,t)}}function h(C){var G,q,pe,Ve,Me,B=0,ae=0;if(C.length){for(pe=Ve=Me=0;Me<4;++Me)(G=C[Me])&&(q=Math.abs(G.value))&&(B+=G.value,ae+=q,pe+=q*G.x,Ve+=q*G.y);C.x=pe/ae,C.y=Ve/ae}else{(G=C).x=G.data.x,G.y=G.data.y;do{B+=o[G.data.index]}while(G=G.next)}C.value=B}function v(C,B,G,q){if(!C.value)return!0;var ae=C.x-r.x,pe=C.y-r.y,Ve=q-B,Me=ae*ae+pe*pe;if(Ve*Ve/l<Me)return Me<s&&(0===ae&&(Me+=(ae=Y_())*ae),0===pe&&(Me+=(pe=Y_())*pe),Me<a&&(Me=Math.sqrt(a*Me)),r.vx+=ae*C.value*e/Me,r.vy+=pe*C.value*e/Me),!0;if(!(C.length||Me>=s)){(C.data!==r||C.next)&&(0===ae&&(Me+=(ae=Y_())*ae),0===pe&&(Me+=(pe=Y_())*pe),Me<a&&(Me=Math.sqrt(a*Me)));do{C.data!==r&&(Ve=o[C.data.index]*e/Me,r.vx+=ae*Ve,r.vy+=pe*Ve)}while(C=C.next)}}return u.initialize=function(C){t=C,f()},u.strength=function(C){return arguments.length?(i="function"==typeof C?C:Ms(+C),f(),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 Due(t,r,e){var i,a,s,o=Ms(.1);function l(f){for(var h=0,v=i.length;h<v;++h){var C=i[h],B=C.x-r||1e-6,G=C.y-e||1e-6,q=Math.sqrt(B*B+G*G),ae=(s[h]-q)*a[h]*f/q;C.vx+=B*ae,C.vy+=G*ae}}function u(){if(i){var f,h=i.length;for(a=new Array(h),s=new Array(h),f=0;f<h;++f)s[f]=+t(i[f],f,i),a[f]=isNaN(s[f])?0:+o(i[f],f,i)}}return"function"!=typeof t&&(t=Ms(+t)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(f){i=f,u()},l.strength=function(f){return arguments.length?(o="function"==typeof f?f:Ms(+f),u(),l):o},l.radius=function(f){return arguments.length?(t="function"==typeof f?f:Ms(+f),u(),l):t},l.x=function(f){return arguments.length?(r=+f,l):r},l.y=function(f){return arguments.length?(e=+f,l):e},l}function Aue(t){var e,i,o,r=Ms(.1);function a(l){for(var h,u=0,f=e.length;u<f;++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]=+t(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof t&&(t=Ms(null==t?0:+t)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:Ms(+l),s(),a):r},a.x=function(l){return arguments.length?(t="function"==typeof l?l:Ms(+l),s(),a):t},a}function Oue(t){var e,i,o,r=Ms(.1);function a(l){for(var h,u=0,f=e.length;u<f;++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]=+t(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof t&&(t=Ms(null==t?0:+t)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:Ms(+l),s(),a):r},a.y=function(l){return arguments.length?(t="function"==typeof l?l:Ms(+l),s(),a):t},a}function iL(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function pC(t){return(t=iL(Math.abs(t)))?t[1]:NaN}function HY(t,r){var e=iL(t,r);if(!e)return t+"";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 jY={"":function Rue(t,r){e:for(var a,e=(t=t.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(t[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?t.slice(0,o)+t.slice(a+1):t},"%":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 HY(100*r,e)},r:HY,s:function Lue(t,r){var e=iL(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(UY=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")+iL(t,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)}},Zue=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function oL(t){return new SU(t)}function SU(t){if(!(r=Zue.exec(t)))throw new Error("invalid format: "+t);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],f=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):jY[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=f,this.type=h}function zY(t){return t}oL.prototype=SU.prototype,SU.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 aL,YY,GY,WY=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function VY(t){var r=t.grouping&&t.thousands?function Iue(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(t.grouping,t.thousands):zY,e=t.currency,i=t.decimal,o=t.numerals?function Pue(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):zY,a=t.percent||"%";function s(u){var f=(u=oL(u)).fill,h=u.align,v=u.sign,C=u.symbol,B=u.zero,G=u.width,q=u.comma,ae=u.precision,pe=u.type,Ve="$"===C?e[0]:"#"===C&&/[boxX]/.test(pe)?"0"+pe.toLowerCase():"",Me="$"===C?e[1]:/[%p]/.test(pe)?a:"",Be=jY[pe],pt=!pe||/[defgprs%]/.test(pe);function ht(Pe){var E,_,A,at=Ve,Ct=Me;if("c"===pe)Ct=Be(Pe)+Ct,Pe="";else{var H=(Pe=+Pe)<0;if(Pe=Be(Math.abs(Pe),ae),H&&0==+Pe&&(H=!1),at=(H?"("===v?v:"-":"-"===v||"("===v?"":v)+at,Ct=("s"===pe?WY[8+UY/3]:"")+Ct+(H&&"("===v?")":""),pt)for(E=-1,_=Pe.length;++E<_;)if(48>(A=Pe.charCodeAt(E))||A>57){Ct=(46===A?i+Pe.slice(E+1):Pe.slice(E))+Ct,Pe=Pe.slice(0,E);break}}q&&!B&&(Pe=r(Pe,1/0));var ee=at.length+Pe.length+Ct.length,re=ee<G?new Array(G-ee+1).join(f):"";switch(q&&B&&(Pe=r(re+Pe,re.length?G-Ct.length:1/0),re=""),h){case"<":Pe=at+Pe+Ct+re;break;case"=":Pe=at+re+Pe+Ct;break;case"^":Pe=re.slice(0,ee=re.length>>1)+at+Pe+Ct+re.slice(ee);break;default:Pe=re+at+Pe+Ct}return o(Pe)}return ae=null==ae?pe?6:12:/[gprs]/.test(pe)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae)),ht.toString=function(){return u+""},ht}return{format:s,formatPrefix:function l(u,f){var h=s(((u=oL(u)).type="f",u)),v=3*Math.max(-8,Math.min(8,Math.floor(pC(f)/3))),C=Math.pow(10,-v),B=WY[8+v/3];return function(G){return h(C*G)+B}}}}function qY(t){return aL=VY(t),YY=aL.format,GY=aL.formatPrefix,aL}function Nue(t){return Math.max(0,-pC(Math.abs(t)))}function Bue(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pC(r)/3)))-pC(Math.abs(t)))}function Fue(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,pC(r)-pC(t))+1}function G_(){return new sL}function sL(){this.reset()}qY({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sL.prototype={constructor:sL,reset:function(){this.s=this.t=0},add:function(r){KY(lL,r,this.t),KY(this,lL.s,this.s),this.s?this.t+=lL.t:this.s=lL.t},valueOf:function(){return this.s}};var lL=new sL;function KY(t,r,e){var i=t.s=r+e,o=i-r,a=i-o;t.t=r-a+(e-o)}var Fr=1e-6,oo=Math.PI,Ya=oo/2,uL=oo/4,pu=2*oo,ta=180/oo,Jr=oo/180,Eo=Math.abs,hC=Math.atan,Wl=Math.atan2,Ur=Math.cos,cL=Math.ceil,QY=Math.exp,dL=(Math.floor,Math.log),xU=Math.pow,Ar=Math.sin,ES=Math.sign||function(t){return t>0?1:t<0?-1:0},Ss=Math.sqrt,DU=Math.tan;function XY(t){return t>1?0:t<-1?oo:Math.acos(t)}function Vu(t){return t>1?Ya:t<-1?-Ya:Math.asin(t)}function $Y(t){return(t=Ar(t/2))*t}function Ma(){}function fL(t,r){t&&tG.hasOwnProperty(t.type)&&tG[t.type](t,r)}var eG={Feature:function(r,e){fL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)fL(i[o].geometry,e)}},tG={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){AU(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)AU(i[o],e,0)},Polygon:function(r,e){nG(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)nG(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)fL(i[o],e)}};function AU(t,r,e){var a,i=-1,o=t.length-e;for(r.lineStart();++i<o;)a=t[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function nG(t,r){var e=-1,i=t.length;for(r.polygonStart();++e<i;)AU(t[e],r,1);r.polygonEnd()}function Nd(t,r){t&&eG.hasOwnProperty(t.type)?eG[t.type](t,r):fL(t,r)}var rG,iG,OU,IU,PU,pL=G_(),hL=G_(),Gf={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){pL.reset(),Gf.lineStart=Uue,Gf.lineEnd=Hue},polygonEnd:function(){var r=+pL;hL.add(r<0?pu+r:r),this.lineStart=this.lineEnd=this.point=Ma},sphere:function(){hL.add(pu)}};function Uue(){Gf.point=jue}function Hue(){oG(rG,iG)}function jue(t,r){Gf.point=oG,rG=t,iG=r,OU=t*=Jr,IU=Ur(r=(r*=Jr)/2+uL),PU=Ar(r)}function oG(t,r){var e=(t*=Jr)-OU,i=e>=0?1:-1,o=i*e,a=Ur(r=(r*=Jr)/2+uL),s=Ar(r),l=PU*s,u=IU*a+l*Ur(o),f=l*i*Ar(o);pL.add(Wl(f,u)),OU=t,IU=a,PU=s}function zue(t){return hL.reset(),Nd(t,Gf),2*hL}function mL(t){return[Wl(t[1],t[0]),Vu(t[2])]}function vy(t){var r=t[0],e=t[1],i=Ur(e);return[i*Ur(r),i*Ar(r),Ar(e)]}function _L(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]}function mC(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function RU(t,r){t[0]+=r[0],t[1]+=r[1],t[2]+=r[2]}function gL(t,r){return[t[0]*r,t[1]*r,t[2]*r]}function vL(t){var r=Ss(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=r,t[1]/=r,t[2]/=r}var Ga,Yu,os,Pc,yy,aG,sG,_C,q_,Sh,MS=G_(),xh={point:LU,lineStart:uG,lineEnd:cG,polygonStart:function(){xh.point=dG,xh.lineStart=Wue,xh.lineEnd=Vue,MS.reset(),Gf.polygonStart()},polygonEnd:function(){Gf.polygonEnd(),xh.point=LU,xh.lineStart=uG,xh.lineEnd=cG,pL<0?(Ga=-(os=180),Yu=-(Pc=90)):MS>Fr?Pc=90:MS<-Fr&&(Yu=-90),Sh[0]=Ga,Sh[1]=os}};function LU(t,r){q_.push(Sh=[Ga=t,os=t]),r<Yu&&(Yu=r),r>Pc&&(Pc=r)}function lG(t,r){var e=vy([t*Jr,r*Jr]);if(_C){var i=mC(_C,e),a=mC([i[1],-i[0],0],i);vL(a),a=mL(a);var f,s=t-yy,l=s>0?1:-1,u=a[0]*ta*l,h=Eo(s)>180;h^(l*yy<u&&u<l*t)?(f=a[1]*ta)>Pc&&(Pc=f):h^(l*yy<(u=(u+360)%360-180)&&u<l*t)?(f=-a[1]*ta)<Yu&&(Yu=f):(r<Yu&&(Yu=r),r>Pc&&(Pc=r)),h?t<yy?Gu(Ga,t)>Gu(Ga,os)&&(os=t):Gu(t,os)>Gu(Ga,os)&&(Ga=t):os>=Ga?(t<Ga&&(Ga=t),t>os&&(os=t)):t>yy?Gu(Ga,t)>Gu(Ga,os)&&(os=t):Gu(t,os)>Gu(Ga,os)&&(Ga=t)}else q_.push(Sh=[Ga=t,os=t]);r<Yu&&(Yu=r),r>Pc&&(Pc=r),_C=e,yy=t}function uG(){xh.point=lG}function cG(){Sh[0]=Ga,Sh[1]=os,xh.point=LU,_C=null}function dG(t,r){if(_C){var e=t-yy;MS.add(Eo(e)>180?e+(e>0?360:-360):e)}else aG=t,sG=r;Gf.point(t,r),lG(t,r)}function Wue(){Gf.lineStart()}function Vue(){dG(aG,sG),Gf.lineEnd(),Eo(MS)>Fr&&(Ga=-(os=180)),Sh[0]=Ga,Sh[1]=os,_C=null}function Gu(t,r){return(r-=t)<0?r+360:r}function Yue(t,r){return t[0]-r[0]}function fG(t,r){return t[0]<=t[1]?t[0]<=r&&r<=t[1]:r<t[0]||t[1]<r}function Gue(t){var r,e,i,o,a,s,l;if(Pc=os=-(Ga=Yu=1/0),q_=[],Nd(t,xh),e=q_.length){for(q_.sort(Yue),r=1,a=[i=q_[0]];r<e;++r)fG(i,(o=q_[r])[0])||fG(i,o[1])?(Gu(i[0],o[1])>Gu(i[0],i[1])&&(i[1]=o[1]),Gu(o[0],i[1])>Gu(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=Gu(i[1],o[0]))>s&&(s=l,Ga=o[0],os=i[1])}return q_=Sh=null,Ga===1/0||Yu===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ga,Yu],[os,Pc]]}var SS,yL,bL,CL,wL,kL,TL,EL,ZU,NU,BU,pG,hG,Vl,Yl,Gl,Bd={sphere:Ma,point:FU,lineStart:mG,lineEnd:_G,polygonStart:function(){Bd.lineStart=Jue,Bd.lineEnd=Que},polygonEnd:function(){Bd.lineStart=mG,Bd.lineEnd=_G}};function FU(t,r){t*=Jr;var e=Ur(r*=Jr);xS(e*Ur(t),e*Ar(t),Ar(r))}function xS(t,r,e){++SS,bL+=(t-bL)/SS,CL+=(r-CL)/SS,wL+=(e-wL)/SS}function mG(){Bd.point=que}function que(t,r){t*=Jr;var e=Ur(r*=Jr);Vl=e*Ur(t),Yl=e*Ar(t),Gl=Ar(r),Bd.point=Kue,xS(Vl,Yl,Gl)}function Kue(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Ar(t),a=Ar(r),s=Wl(Ss((s=Yl*a-Gl*o)*s+(s=Gl*i-Vl*a)*s+(s=Vl*o-Yl*i)*s),Vl*i+Yl*o+Gl*a);yL+=s,kL+=s*(Vl+(Vl=i)),TL+=s*(Yl+(Yl=o)),EL+=s*(Gl+(Gl=a)),xS(Vl,Yl,Gl)}function _G(){Bd.point=FU}function Jue(){Bd.point=Xue}function Que(){gG(pG,hG),Bd.point=FU}function Xue(t,r){pG=t,hG=r,t*=Jr,r*=Jr,Bd.point=gG;var e=Ur(r);Vl=e*Ur(t),Yl=e*Ar(t),Gl=Ar(r),xS(Vl,Yl,Gl)}function gG(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Ar(t),a=Ar(r),s=Yl*a-Gl*o,l=Gl*i-Vl*a,u=Vl*o-Yl*i,f=Ss(s*s+l*l+u*u),h=Vu(f),v=f&&-h/f;ZU+=v*s,NU+=v*l,BU+=v*u,yL+=h,kL+=h*(Vl+(Vl=i)),TL+=h*(Yl+(Yl=o)),EL+=h*(Gl+(Gl=a)),xS(Vl,Yl,Gl)}function $ue(t){SS=yL=bL=CL=wL=kL=TL=EL=ZU=NU=BU=0,Nd(t,Bd);var r=ZU,e=NU,i=BU,o=r*r+e*e+i*i;return o<1e-12&&(r=kL,e=TL,i=EL,yL<Fr&&(r=bL,e=CL,i=wL),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[Wl(e,r)*ta,Vu(i/Ss(o))*ta]}function gC(t){return function(){return t}}function UU(t,r){function e(i,o){return i=t(i,o),r(i[0],i[1])}return t.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&t.invert(i[0],i[1])}),e}function HU(t,r){return[t>oo?t-pu:t<-oo?t+pu:t,r]}function jU(t,r,e){return(t%=pu)?r||e?UU(yG(t),bG(r,e)):yG(t):r||e?bG(r,e):HU}function vG(t){return function(r,e){return[(r+=t)>oo?r-pu:r<-oo?r+pu:r,e]}}function yG(t){var r=vG(t);return r.invert=vG(-t),r}function bG(t,r){var e=Ur(t),i=Ar(t),o=Ur(r),a=Ar(r);function s(l,u){var f=Ur(u),h=Ur(l)*f,v=Ar(l)*f,C=Ar(u),B=C*e+h*i;return[Wl(v*o-B*a,h*e-C*i),Vu(B*o+v*a)]}return s.invert=function(l,u){var f=Ur(u),h=Ur(l)*f,v=Ar(l)*f,C=Ar(u),B=C*o-v*a;return[Wl(v*o+C*a,h*e+B*i),Vu(B*e-h*i)]},s}function CG(t){function r(e){return(e=t(e[0]*Jr,e[1]*Jr))[0]*=ta,e[1]*=ta,e}return t=jU(t[0]*Jr,t[1]*Jr,t.length>2?t[2]*Jr:0),r.invert=function(e){return(e=t.invert(e[0]*Jr,e[1]*Jr))[0]*=ta,e[1]*=ta,e},r}function wG(t,r,e,i,o,a){if(e){var s=Ur(r),l=Ar(r),u=i*e;null==o?(o=r+i*pu,a=r-u/2):(o=kG(s,o),a=kG(s,a),(i>0?o<a:o>a)&&(o+=i*pu));for(var f,h=o;i>0?h>a:h<a;h-=u)f=mL([s,-l*Ur(h),-l*Ar(h)]),t.point(f[0],f[1])}}function kG(t,r){(r=vy(r))[0]-=t,vL(r);var e=XY(-r[1]);return((-r[2]<0?-e:e)+pu-Fr)%pu}function ece(){var i,o,t=gC([0,0]),r=gC(90),e=gC(6),a={point:function s(u,f){i.push(u=o(u,f)),u[0]*=ta,u[1]*=ta}};function l(){var u=t.apply(this,arguments),f=r.apply(this,arguments)*Jr,h=e.apply(this,arguments)*Jr;return i=[],o=jU(-u[0]*Jr,-u[1]*Jr,0).invert,wG(a,f,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(t="function"==typeof u?u:gC([+u[0],+u[1]]),l):t},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:gC(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:gC(+u),l):e},l}function TG(){var r,t=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){t.push(r=[])},lineEnd:Ma,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var i=t;return t=[],r=null,i}}}function ML(t,r){return Eo(t[0]-r[0])<Fr&&Eo(t[1]-r[1])<Fr}function SL(t,r,e,i){this.x=t,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function EG(t,r,e,i,o){var l,u,a=[],s=[];if(t.forEach(function(G){if(!((q=G.length-1)<=0)){var q,Ve,ae=G[0],pe=G[q];if(ML(ae,pe)){for(o.lineStart(),l=0;l<q;++l)o.point((ae=G[l])[0],ae[1]);return void o.lineEnd()}a.push(Ve=new SL(ae,G,null,!0)),s.push(Ve.o=new SL(ae,null,Ve,!1)),a.push(Ve=new SL(pe,G,null,!1)),s.push(Ve.o=new SL(pe,null,Ve,!0))}}),a.length){for(s.sort(r),MG(a),MG(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,v,f=a[0];;){for(var C=f,B=!0;C.v;)if((C=C.n)===f)return;h=C.z,o.lineStart();do{if(C.v=C.o.v=!0,C.e){if(B)for(l=0,u=h.length;l<u;++l)o.point((v=h[l])[0],v[1]);else i(C.x,C.n.x,1,o);C=C.n}else{if(B)for(h=C.p.z,l=h.length-1;l>=0;--l)o.point((v=h[l])[0],v[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,B=!B}while(!C.v);o.lineEnd()}}}function MG(t){if(r=t.length){for(var r,o,e=0,i=t[0];++e<r;)i.n=o=t[e],o.p=i,i=o;i.n=o=t[0],o.p=i}}HU.invert=HU;var zU=G_();function SG(t,r){var e=r[0],i=r[1],o=Ar(i),a=[Ar(e),-Ur(e),0],s=0,l=0;zU.reset(),1===o?i=Ya+Fr:-1===o&&(i=-Ya-Fr);for(var u=0,f=t.length;u<f;++u)if(v=(h=t[u]).length)for(var h,v,C=h[v-1],B=C[0],G=C[1]/2+uL,q=Ar(G),ae=Ur(G),pe=0;pe<v;++pe,B=Me,q=pt,ae=ht,C=Ve){var Ve=h[pe],Me=Ve[0],Be=Ve[1]/2+uL,pt=Ar(Be),ht=Ur(Be),Pe=Me-B,at=Pe>=0?1:-1,Ct=at*Pe,E=Ct>oo,_=q*pt;if(zU.add(Wl(_*at*Ar(Ct),ae*ht+_*Ur(Ct))),s+=E?Pe+at*pu:Pe,E^B>=e^Me>=e){var A=mC(vy(C),vy(Ve));vL(A);var H=mC(a,A);vL(H);var ee=(E^Pe>=0?-1:1)*Vu(H[2]);(i>ee||i===ee&&(A[0]||A[1]))&&(l+=E^Pe>=0?1:-1)}}return(s<-Fr||s<Fr&&zU<-Fr)^1&l}function xG(t,r,e,i){return function(o){var f,h,v,a=r(o),s=TG(),l=r(s),u=!1,C={point:B,lineStart:q,lineEnd:ae,polygonStart:function(){C.point=pe,C.lineStart=Ve,C.lineEnd=Me,h=[],f=[]},polygonEnd:function(){C.point=B,C.lineStart=q,C.lineEnd=ae,h=YM(h);var pt=SG(f,i);h.length?(u||(o.polygonStart(),u=!0),EG(h,nce,pt,e,o)):pt&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=f=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function B(Be,pt){t(Be,pt)&&o.point(Be,pt)}function G(Be,pt){a.point(Be,pt)}function q(){C.point=G,a.lineStart()}function ae(){C.point=B,a.lineEnd()}function pe(Be,pt){v.push([Be,pt]),l.point(Be,pt)}function Ve(){l.lineStart(),v=[]}function Me(){pe(v[0][0],v[0][1]),l.lineEnd();var ht,at,Ct,E,Be=l.clean(),pt=s.result(),Pe=pt.length;if(v.pop(),f.push(v),v=null,Pe){if(1&Be){if((at=(Ct=pt[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ht=0;ht<at;++ht)o.point((E=Ct[ht])[0],E[1]);o.lineEnd()}return}Pe>1&&2&Be&&pt.push(pt.pop().concat(pt.shift())),h.push(pt.filter(tce))}}return C}}function tce(t){return t.length>1}function nce(t,r){return((t=t.x)[0]<0?t[1]-Ya-Fr:Ya-t[1])-((r=r.x)[0]<0?r[1]-Ya-Fr:Ya-r[1])}var WU=xG(function(){return!0},function rce(t){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){t.lineStart(),o=1},point:function(s,l){var u=s>0?oo:-oo,f=Eo(s-r);Eo(f-oo)<Fr?(t.point(r,e=(e+l)/2>0?Ya:-Ya),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),t.point(s,e),o=0):i!==u&&f>=oo&&(Eo(r-i)<Fr&&(r-=i*Fr),Eo(s-u)<Fr&&(s-=u*Fr),e=function ice(t,r,e,i){var o,a,s=Ar(t-e);return Eo(s)>Fr?hC((Ar(r)*(a=Ur(i))*Ar(e)-Ar(i)*(o=Ur(r))*Ar(t))/(o*a*s)):(r+i)/2}(r,e,s,l),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),o=0),t.point(r=s,e=l),i=u},lineEnd:function(){t.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function oce(t,r,e,i){var o;if(null==t)o=e*Ya,i.point(-oo,o),i.point(0,o),i.point(oo,o),i.point(oo,0),i.point(oo,-o),i.point(0,-o),i.point(-oo,-o),i.point(-oo,0),i.point(-oo,o);else if(Eo(t[0]-r[0])>Fr){var a=t[0]<r[0]?oo:-oo;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-oo,-Ya]);function DG(t){var r=Ur(t),e=6*Jr,i=r>0,o=Eo(r)>Fr;function s(h,v){return Ur(h)*Ur(v)>r}function u(h,v,C){var q=[1,0,0],ae=mC(vy(h),vy(v)),pe=_L(ae,ae),Ve=ae[0],Me=pe-Ve*Ve;if(!Me)return!C&&h;var Be=r*pe/Me,pt=-r*Ve/Me,ht=mC(q,ae),Pe=gL(q,Be);RU(Pe,gL(ae,pt));var Ct=ht,E=_L(Pe,Ct),_=_L(Ct,Ct),A=E*E-_*(_L(Pe,Pe)-1);if(!(A<0)){var H=Ss(A),ee=gL(Ct,(-E-H)/_);if(RU(ee,Pe),ee=mL(ee),!C)return ee;var be,re=h[0],ge=v[0],ft=h[1],St=v[1];ge<re&&(be=re,re=ge,ge=be);var rt=ge-re,Pt=Eo(rt-oo)<Fr;if(!Pt&&St<ft&&(be=ft,ft=St,St=be),Pt||rt<Fr?Pt?ft+St>0^ee[1]<(Eo(ee[0]-re)<Fr?ft:St):ft<=ee[1]&&ee[1]<=St:rt>oo^(re<=ee[0]&&ee[0]<=ge)){var er=gL(Ct,(-E+H)/_);return RU(er,Pe),[ee,mL(er)]}}}function f(h,v){var C=i?t:oo-t,B=0;return h<-C?B|=1:h>C&&(B|=2),v<-C?B|=4:v>C&&(B|=8),B}return xG(s,function l(h){var v,C,B,G,q;return{lineStart:function(){G=B=!1,q=1},point:function(pe,Ve){var Be,Me=[pe,Ve],pt=s(pe,Ve),ht=i?pt?0:f(pe,Ve):pt?f(pe+(pe<0?oo:-oo),Ve):0;if(!v&&(G=B=pt)&&h.lineStart(),pt!==B&&((!(Be=u(v,Me))||ML(v,Be)||ML(Me,Be))&&(Me[0]+=Fr,Me[1]+=Fr,pt=s(Me[0],Me[1]))),pt!==B)q=0,pt?(h.lineStart(),Be=u(Me,v),h.point(Be[0],Be[1])):(Be=u(v,Me),h.point(Be[0],Be[1]),h.lineEnd()),v=Be;else if(o&&v&&i^pt){var Pe;!(ht&C)&&(Pe=u(Me,v,!0))&&(q=0,i?(h.lineStart(),h.point(Pe[0][0],Pe[0][1]),h.point(Pe[1][0],Pe[1][1]),h.lineEnd()):(h.point(Pe[1][0],Pe[1][1]),h.lineEnd(),h.lineStart(),h.point(Pe[0][0],Pe[0][1])))}pt&&(!v||!ML(v,Me))&&h.point(Me[0],Me[1]),v=Me,B=pt,C=ht},lineEnd:function(){B&&h.lineEnd(),v=null},clean:function(){return q|(G&&B)<<1}}},function a(h,v,C,B){wG(B,t,e,C,h,v)},i?[0,-t]:[-oo,t-oo])}var DS=1e9,xL=-DS;function DL(t,r,e,i){function o(f,h){return t<=f&&f<=e&&r<=h&&h<=i}function a(f,h,v,C){var B=0,G=0;if(null==f||(B=s(f,v))!==(G=s(h,v))||u(f,h)<0^v>0)do{C.point(0===B||3===B?t:e,B>1?i:r)}while((B=(B+v+4)%4)!==G);else C.point(h[0],h[1])}function s(f,h){return Eo(f[0]-t)<Fr?h>0?0:3:Eo(f[0]-e)<Fr?h>0?2:1:Eo(f[1]-r)<Fr?h>0?1:0:h>0?3:2}function l(f,h){return u(f.x,h.x)}function u(f,h){var v=s(f,1),C=s(h,1);return v!==C?v-C:0===v?h[1]-f[1]:1===v?f[0]-h[0]:2===v?f[1]-h[1]:h[0]-f[0]}return function(f){var C,B,G,q,ae,pe,Ve,Me,Be,pt,ht,h=f,v=TG(),Pe={point:at,lineStart:function A(){Pe.point=ee,B&&B.push(G=[]),pt=!0,Be=!1,Ve=Me=NaN},lineEnd:function H(){C&&(ee(q,ae),pe&&Be&&v.rejoin(),C.push(v.result())),Pe.point=at,Be&&h.lineEnd()},polygonStart:function E(){h=v,C=[],B=[],ht=!0},polygonEnd:function _(){var re=function Ct(){for(var re=0,ge=0,ft=B.length;ge<ft;++ge)for(var Bn,er,St=B[ge],be=1,rt=St.length,Pt=St[0],Rn=Pt[0],gn=Pt[1];be<rt;++be)Bn=Rn,er=gn,Pt=St[be],Rn=Pt[0],gn=Pt[1],er<=i?gn>i&&(Rn-Bn)*(i-er)>(gn-er)*(t-Bn)&&++re:gn<=i&&(Rn-Bn)*(i-er)<(gn-er)*(t-Bn)&&--re;return re}(),ge=ht&&re,ft=(C=YM(C)).length;(ge||ft)&&(f.polygonStart(),ge&&(f.lineStart(),a(null,null,1,f),f.lineEnd()),ft&&EG(C,l,re,a,f),f.polygonEnd()),h=f,C=B=G=null}};function at(re,ge){o(re,ge)&&h.point(re,ge)}function ee(re,ge){var ft=o(re,ge);if(B&&G.push([re,ge]),pt)q=re,ae=ge,pe=ft,pt=!1,ft&&(h.lineStart(),h.point(re,ge));else if(ft&&Be)h.point(re,ge);else{var St=[Ve=Math.max(xL,Math.min(DS,Ve)),Me=Math.max(xL,Math.min(DS,Me))],be=[re=Math.max(xL,Math.min(DS,re)),ge=Math.max(xL,Math.min(DS,ge))];!function ace(t,r,e,i,o,a){var G,s=t[0],l=t[1],h=0,v=1,C=r[0]-s,B=r[1]-l;if(G=e-s,C||!(G>0)){if(G/=C,C<0){if(G<h)return;G<v&&(v=G)}else if(C>0){if(G>v)return;G>h&&(h=G)}if(G=o-s,C||!(G<0)){if(G/=C,C<0){if(G>v)return;G>h&&(h=G)}else if(C>0){if(G<h)return;G<v&&(v=G)}if(G=i-l,B||!(G>0)){if(G/=B,B<0){if(G<h)return;G<v&&(v=G)}else if(B>0){if(G>v)return;G>h&&(h=G)}if(G=a-l,B||!(G<0)){if(G/=B,B<0){if(G>v)return;G>h&&(h=G)}else if(B>0){if(G<h)return;G<v&&(v=G)}return h>0&&(t[0]=s+h*C,t[1]=l+h*B),v<1&&(r[0]=s+v*C,r[1]=l+v*B),!0}}}}}(St,be,t,r,e,i)?ft&&(h.lineStart(),h.point(re,ge),ht=!1):(Be||(h.lineStart(),h.point(St[0],St[1])),h.point(be[0],be[1]),ft||h.lineEnd(),ht=!1)}Ve=re,Me=ge,Be=ft}return Pe}}function sce(){var o,a,s,t=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=DL(t,r,e,i)(a=u)},extent:function(u){return arguments.length?(t=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[t,r],[e,i]]}}}var YU,AL,OL,VU=G_(),vC={sphere:Ma,point:Ma,lineStart:function lce(){vC.point=cce,vC.lineEnd=uce},lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma};function uce(){vC.point=vC.lineEnd=Ma}function cce(t,r){YU=t*=Jr,AL=Ar(r*=Jr),OL=Ur(r),vC.point=dce}function dce(t,r){t*=Jr;var e=Ar(r*=Jr),i=Ur(r),o=Eo(t-YU),a=Ur(o),l=i*Ar(o),u=OL*e-AL*i*a,f=AL*e+OL*i*a;VU.add(Wl(Ss(l*l+u*u),f)),YU=t,AL=e,OL=i}function AG(t){return VU.reset(),Nd(t,vC),+VU}var GU=[null,null],fce={type:"LineString",coordinates:GU};function AS(t,r){return GU[0]=t,GU[1]=r,AG(fce)}var OG={Feature:function(r,e){return IL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(IL(i[o].geometry,e))return!0;return!1}},IG={Sphere:function(){return!0},Point:function(r,e){return PG(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(PG(i[o],e))return!0;return!1},LineString:function(r,e){return RG(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(RG(i[o],e))return!0;return!1},Polygon:function(r,e){return LG(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(LG(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(IL(i[o],e))return!0;return!1}};function IL(t,r){return!(!t||!IG.hasOwnProperty(t.type))&&IG[t.type](t,r)}function PG(t,r){return 0===AS(t,r)}function RG(t,r){var e=AS(t[0],t[1]);return AS(t[0],r)+AS(r,t[1])<=e+Fr}function LG(t,r){return!!SG(t.map(pce),ZG(r))}function pce(t){return(t=t.map(ZG)).pop(),t}function ZG(t){return[t[0]*Jr,t[1]*Jr]}function hce(t,r){return(t&&OG.hasOwnProperty(t.type)?OG[t.type]:IL)(t,r)}function NG(t,r,e){var i=Bl(t,r-Fr,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function BG(t,r,e){var i=Bl(t,r-Fr,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function FG(){var t,r,e,i,o,a,s,l,C,B,G,q,u=10,f=u,h=90,v=360,ae=2.5;function pe(){return{type:"MultiLineString",coordinates:Ve()}}function Ve(){return Bl(cL(i/h)*h,e,h).map(G).concat(Bl(cL(l/v)*v,s,v).map(q)).concat(Bl(cL(r/u)*u,t,u).filter(function(Me){return Eo(Me%h)>Fr}).map(C)).concat(Bl(cL(a/f)*f,o,f).filter(function(Me){return Eo(Me%v)>Fr}).map(B))}return pe.lines=function(){return Ve().map(function(Me){return{type:"LineString",coordinates:Me}})},pe.outline=function(){return{type:"Polygon",coordinates:[G(i).concat(q(s).slice(1),G(e).reverse().slice(1),q(l).reverse().slice(1))]}},pe.extent=function(Me){return arguments.length?pe.extentMajor(Me).extentMinor(Me):pe.extentMinor()},pe.extentMajor=function(Me){return arguments.length?(i=+Me[0][0],e=+Me[1][0],l=+Me[0][1],s=+Me[1][1],i>e&&(Me=i,i=e,e=Me),l>s&&(Me=l,l=s,s=Me),pe.precision(ae)):[[i,l],[e,s]]},pe.extentMinor=function(Me){return arguments.length?(r=+Me[0][0],t=+Me[1][0],a=+Me[0][1],o=+Me[1][1],r>t&&(Me=r,r=t,t=Me),a>o&&(Me=a,a=o,o=Me),pe.precision(ae)):[[r,a],[t,o]]},pe.step=function(Me){return arguments.length?pe.stepMajor(Me).stepMinor(Me):pe.stepMinor()},pe.stepMajor=function(Me){return arguments.length?(h=+Me[0],v=+Me[1],pe):[h,v]},pe.stepMinor=function(Me){return arguments.length?(u=+Me[0],f=+Me[1],pe):[u,f]},pe.precision=function(Me){return arguments.length?(ae=+Me,C=NG(a,o,90),B=BG(r,t,ae),G=NG(l,s,90),q=BG(i,e,ae),pe):ae},pe.extentMajor([[-180,-90+Fr],[180,90-Fr]]).extentMinor([[-180,-80-Fr],[180,80+Fr]])}function mce(){return FG()()}function _ce(t,r){var e=t[0]*Jr,i=t[1]*Jr,o=r[0]*Jr,a=r[1]*Jr,s=Ur(i),l=Ar(i),u=Ur(a),f=Ar(a),h=s*Ur(e),v=s*Ar(e),C=u*Ur(o),B=u*Ar(o),G=2*Vu(Ss($Y(a-i)+s*u*$Y(o-e))),q=Ar(G),ae=G?function(pe){var Ve=Ar(pe*=G)/q,Me=Ar(G-pe)/q,Be=Me*h+Ve*C,pt=Me*v+Ve*B,ht=Me*l+Ve*f;return[Wl(pt,Be)*ta,Wl(ht,Ss(Be*Be+pt*pt))*ta]}:function(){return[e*ta,i*ta]};return ae.distance=G,ae}function by(t){return t}var UG,HG,JU,QU,qU=G_(),KU=G_(),K_={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){K_.lineStart=gce,K_.lineEnd=yce},polygonEnd:function(){K_.lineStart=K_.lineEnd=K_.point=Ma,qU.add(Eo(KU)),KU.reset()},result:function(){var r=qU/2;return qU.reset(),r}};function gce(){K_.point=vce}function vce(t,r){K_.point=jG,UG=JU=t,HG=QU=r}function jG(t,r){KU.add(QU*t-JU*r),JU=t,QU=r}function yce(){jG(UG,HG)}var zG=K_,yC=1/0,PL=yC,OS=-yC,RL=OS,bce={point:function Cce(t,r){t<yC&&(yC=t),t>OS&&(OS=t),r<PL&&(PL=r),r>RL&&(RL=r)},lineStart:Ma,lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma,result:function(){var r=[[yC,PL],[OS,RL]];return OS=RL=-(PL=yC=1/0),r}};var WG,VG,qf,Kf,LL=bce,XU=0,$U=0,IS=0,ZL=0,NL=0,bC=0,e7=0,t7=0,PS=0,Fd={point:Cy,lineStart:YG,lineEnd:GG,polygonStart:function(){Fd.lineStart=Tce,Fd.lineEnd=Ece},polygonEnd:function(){Fd.point=Cy,Fd.lineStart=YG,Fd.lineEnd=GG},result:function(){var r=PS?[e7/PS,t7/PS]:bC?[ZL/bC,NL/bC]:IS?[XU/IS,$U/IS]:[NaN,NaN];return XU=$U=IS=ZL=NL=bC=e7=t7=PS=0,r}};function Cy(t,r){XU+=t,$U+=r,++IS}function YG(){Fd.point=wce}function wce(t,r){Fd.point=kce,Cy(qf=t,Kf=r)}function kce(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);ZL+=o*(qf+t)/2,NL+=o*(Kf+r)/2,bC+=o,Cy(qf=t,Kf=r)}function GG(){Fd.point=Cy}function Tce(){Fd.point=Mce}function Ece(){qG(WG,VG)}function Mce(t,r){Fd.point=qG,Cy(WG=qf=t,VG=Kf=r)}function qG(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);ZL+=o*(qf+t)/2,NL+=o*(Kf+r)/2,bC+=o,e7+=(o=Kf*t-qf*r)*(qf+t),t7+=o*(Kf+r),PS+=3*o,Cy(qf=t,Kf=r)}var KG=Fd;function JG(t){this._context=t}JG.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,pu)}},result:Ma};var r7,QG,XG,RS,LS,n7=G_(),BL={point:Ma,lineStart:function(){BL.point=Sce},lineEnd:function(){r7&&$G(QG,XG),BL.point=Ma},polygonStart:function(){r7=!0},polygonEnd:function(){r7=null},result:function(){var r=+n7;return n7.reset(),r}};function Sce(t,r){BL.point=$G,QG=RS=t,XG=LS=r}function $G(t,r){RS-=t,LS-=r,n7.add(Ss(RS*RS+LS*LS)),RS=t,LS=r}var eq=BL;function tq(){this._string=[]}function nq(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function xce(t,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Nd(s,i(o))),o.result()}return a.area=function(s){return Nd(s,i(zG)),zG.result()},a.measure=function(s){return Nd(s,i(eq)),eq.result()},a.bounds=function(s){return Nd(s,i(LL)),LL.result()},a.centroid=function(s){return Nd(s,i(KG)),KG.result()},a.projection=function(s){return arguments.length?(i=null==s?(t=null,by):(t=s).stream,a):t},a.context=function(s){return arguments.length?(o=null==s?(r=null,new tq):new JG(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(t).context(r)}function Dce(t){return{stream:ZS(t)}}function ZS(t){return function(r){var e=new i7;for(var i in t)e[i]=t[i];return e.stream=r,e}}function i7(){}function o7(t,r,e){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),Nd(e,t.stream(LL)),r(LL.result()),null!=i&&t.clipExtent(i),t}function FL(t,r,e){return o7(t,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;t.scale(150*s).translate([l,u])},e)}function a7(t,r,e){return FL(t,[[0,0],r],e)}function s7(t,r,e){return o7(t,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];t.scale(150*a).translate([s,l])},e)}function l7(t,r,e){return o7(t,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;t.scale(150*a).translate([s,l])},e)}tq.prototype={_radius:4.5,_circle:nq(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=nq(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}},i7.prototype={constructor:i7,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 Ace=Ur(30*Jr);function iq(t,r){return+r?function Ice(t,r){function e(i,o,a,s,l,u,f,h,v,C,B,G,q,ae){var pe=f-i,Ve=h-o,Me=pe*pe+Ve*Ve;if(Me>4*r&&q--){var Be=s+C,pt=l+B,ht=u+G,Pe=Ss(Be*Be+pt*pt+ht*ht),at=Vu(ht/=Pe),Ct=Eo(Eo(ht)-1)<Fr||Eo(a-v)<Fr?(a+v)/2:Wl(pt,Be),E=t(Ct,at),_=E[0],A=E[1],H=_-i,ee=A-o,re=Ve*H-pe*ee;(re*re/Me>r||Eo((pe*H+Ve*ee)/Me-.5)>.3||s*C+l*B+u*G<Ace)&&(e(i,o,a,s,l,u,_,A,Ct,Be/=Pe,pt/=Pe,ht,q,ae),ae.point(_,A),e(_,A,Ct,Be,pt,ht,f,h,v,C,B,G,q,ae))}}return function(i){var o,a,s,l,u,f,h,v,C,B,G,q,ae={point:pe,lineStart:Ve,lineEnd:Be,polygonStart:function(){i.polygonStart(),ae.lineStart=pt},polygonEnd:function(){i.polygonEnd(),ae.lineStart=Ve}};function pe(at,Ct){at=t(at,Ct),i.point(at[0],at[1])}function Ve(){v=NaN,ae.point=Me,i.lineStart()}function Me(at,Ct){var E=vy([at,Ct]),_=t(at,Ct);e(v,C,h,B,G,q,v=_[0],C=_[1],h=at,B=E[0],G=E[1],q=E[2],16,i),i.point(v,C)}function Be(){ae.point=pe,i.lineEnd()}function pt(){Ve(),ae.point=ht,ae.lineEnd=Pe}function ht(at,Ct){Me(o=at,Ct),a=v,s=C,l=B,u=G,f=q,ae.point=Me}function Pe(){e(v,C,h,B,G,q,a,s,o,l,u,f,16,i),ae.lineEnd=Be,Be()}return ae}}(t,r):function Oce(t){return ZS({point:function(e,i){e=t(e,i),this.stream.point(e[0],e[1])}})}(t)}var Pce=ZS({point:function(r,e){this.stream.point(r*Jr,e*Jr)}});function Lce(t,r,e){function i(o,a){return[r+t*o,e-t*a]}return i.invert=function(o,a){return[(o-r)/t,(e-a)/t]},i}function oq(t,r,e,i){var o=Ur(i),a=Ar(i),s=o*t,l=a*t,u=o/t,f=a/t,h=(a*e-o*r)/t,v=(a*r+o*e)/t;function C(B,G){return[s*B-l*G+r,e-l*B-s*G]}return C.invert=function(B,G){return[u*B-f*G+h,v-f*B-u*G]},C}function Dh(t){return u7(function(){return t})()}function u7(t){var r,h,q,ae,pe,Be,pt,ht,Pe,at,e=150,i=480,o=250,a=0,s=0,l=0,u=0,f=0,v=0,C=null,B=WU,G=null,Ve=by,Me=.5;function Ct(H){return ht(H[0]*Jr,H[1]*Jr)}function E(H){return(H=ht.invert(H[0],H[1]))&&[H[0]*ta,H[1]*ta]}function _(){var H=oq(e,0,0,v).apply(null,r(a,s)),ee=(v?oq:Lce)(e,i-H[0],o-H[1],v);return h=jU(l,u,f),pt=UU(r,ee),ht=UU(h,pt),Be=iq(pt,Me),A()}function A(){return Pe=at=null,Ct}return Ct.stream=function(H){return Pe&&at===H?Pe:Pe=Pce(function Rce(t){return ZS({point:function(e,i){var o=t(e,i);return this.stream.point(o[0],o[1])}})}(h)(B(Be(Ve(at=H)))))},Ct.preclip=function(H){return arguments.length?(B=H,C=void 0,A()):B},Ct.postclip=function(H){return arguments.length?(Ve=H,G=q=ae=pe=null,A()):Ve},Ct.clipAngle=function(H){return arguments.length?(B=+H?DG(C=H*Jr):(C=null,WU),A()):C*ta},Ct.clipExtent=function(H){return arguments.length?(Ve=null==H?(G=q=ae=pe=null,by):DL(G=+H[0][0],q=+H[0][1],ae=+H[1][0],pe=+H[1][1]),A()):null==G?null:[[G,q],[ae,pe]]},Ct.scale=function(H){return arguments.length?(e=+H,_()):e},Ct.translate=function(H){return arguments.length?(i=+H[0],o=+H[1],_()):[i,o]},Ct.center=function(H){return arguments.length?(a=H[0]%360*Jr,s=H[1]%360*Jr,_()):[a*ta,s*ta]},Ct.rotate=function(H){return arguments.length?(l=H[0]%360*Jr,u=H[1]%360*Jr,f=H.length>2?H[2]%360*Jr:0,_()):[l*ta,u*ta,f*ta]},Ct.angle=function(H){return arguments.length?(v=H%360*Jr,_()):v*ta},Ct.precision=function(H){return arguments.length?(Be=iq(pt,Me=H*H),A()):Ss(Me)},Ct.fitExtent=function(H,ee){return FL(Ct,H,ee)},Ct.fitSize=function(H,ee){return a7(Ct,H,ee)},Ct.fitWidth=function(H,ee){return s7(Ct,H,ee)},Ct.fitHeight=function(H,ee){return l7(Ct,H,ee)},function(){return r=t.apply(this,arguments),Ct.invert=r.invert&&E,_()}}function c7(t){var r=0,e=oo/3,i=u7(t),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Jr,e=a[1]*Jr):[r*ta,e*ta]},o}function aq(t,r){var e=Ar(t),i=(e+Ar(r))/2;if(Eo(i)<Fr)return function Zce(t){var r=Ur(t);function e(i,o){return[i*r,Ar(o)/r]}return e.invert=function(i,o){return[i/r,Vu(o*r)]},e}(t);var o=1+e*(2*i-e),a=Ss(o)/i;function s(l,u){var f=Ss(o-2*i*Ar(u))/i;return[f*Ar(l*=i),a-f*Ur(l)]}return s.invert=function(l,u){var f=a-u;return[Wl(l,Eo(f))/i*ES(f),Vu((o-(l*l+f*f)*i*i)/(2*i))]},s}function UL(){return c7(aq).scale(155.424).center([0,33.6442])}function sq(){return UL().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Bce(){var t,r,i,a,l,u,e=sq(),o=UL().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=UL().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(B,G){u=[B,G]}};function h(C){var B=C[0],G=C[1];return u=null,i.point(B,G),u||(a.point(B,G),u)||(l.point(B,G),u)}function v(){return t=r=null,h}return h.invert=function(C){var B=e.scale(),G=e.translate(),q=(C[0]-G[0])/B,ae=(C[1]-G[1])/B;return(ae>=.12&&ae<.234&&q>=-.425&&q<-.214?o:ae>=.166&&ae<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return t&&r===C?t:t=function Nce(t){var r=t.length;return{point:function(i,o){for(var a=-1;++a<r;)t[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)t[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)t[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)t[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)t[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)t[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),v()):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 B=e.scale(),G=+C[0],q=+C[1];return i=e.translate(C).clipExtent([[G-.455*B,q-.238*B],[G+.455*B,q+.238*B]]).stream(f),a=o.translate([G-.307*B,q+.201*B]).clipExtent([[G-.425*B+Fr,q+.12*B+Fr],[G-.214*B-Fr,q+.234*B-Fr]]).stream(f),l=s.translate([G-.205*B,q+.212*B]).clipExtent([[G-.214*B+Fr,q+.166*B+Fr],[G-.115*B-Fr,q+.234*B-Fr]]).stream(f),v()},h.fitExtent=function(C,B){return FL(h,C,B)},h.fitSize=function(C,B){return a7(h,C,B)},h.fitWidth=function(C,B){return s7(h,C,B)},h.fitHeight=function(C,B){return l7(h,C,B)},h.scale(1070)}function lq(t){return function(r,e){var i=Ur(r),o=Ur(e),a=t(i*o);return[a*o*Ar(r),a*Ar(e)]}}function NS(t){return function(r,e){var i=Ss(r*r+e*e),o=t(i),a=Ar(o),s=Ur(o);return[Wl(r*a,i*s),Vu(i&&e*a/i)]}}var d7=lq(function(t){return Ss(2/(1+t))});function Fce(){return Dh(d7).scale(124.75).clipAngle(179.999)}d7.invert=NS(function(t){return 2*Vu(t/2)});var f7=lq(function(t){return(t=XY(t))&&t/Ar(t)});function Uce(){return Dh(f7).scale(79.4188).clipAngle(179.999)}function BS(t,r){return[t,dL(DU((Ya+r)/2))]}function Hce(){return uq(BS).scale(961/pu)}function uq(t){var l,u,f,r=Dh(t),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var v=oo*i(),C=r(CG(r.rotate()).invert([0,0]));return a(null==s?[[C[0]-v,C[1]-v],[C[0]+v,C[1]+v]]:t===BS?[[Math.max(C[0]-v,s),l],[Math.min(C[0]+v,u),f]]:[[s,Math.max(C[1]-v,l)],[u,Math.min(C[1]+v,f)]])}return r.scale=function(v){return arguments.length?(i(v),h()):i()},r.translate=function(v){return arguments.length?(o(v),h()):o()},r.center=function(v){return arguments.length?(e(v),h()):e()},r.clipExtent=function(v){return arguments.length?(null==v?s=l=u=f=null:(s=+v[0][0],l=+v[0][1],u=+v[1][0],f=+v[1][1]),h()):null==s?null:[[s,l],[u,f]]},h()}function HL(t){return DU((Ya+t)/2)}function cq(t,r){var e=Ur(t),i=t===r?Ar(t):dL(e/Ur(r))/dL(HL(r)/HL(t)),o=e*xU(HL(t),i)/i;if(!i)return BS;function a(s,l){o>0?l<-Ya+Fr&&(l=-Ya+Fr):l>Ya-Fr&&(l=Ya-Fr);var u=o/xU(HL(l),i);return[u*Ar(i*s),o-u*Ur(i*s)]}return a.invert=function(s,l){var u=o-l,f=ES(i)*Ss(s*s+u*u);return[Wl(s,Eo(u))/i*ES(u),2*hC(xU(o/f,1/i))-Ya]},a}function jce(){return c7(cq).scale(109.5).parallels([30,30])}function FS(t,r){return[t,r]}function zce(){return Dh(FS).scale(152.63)}function dq(t,r){var e=Ur(t),i=t===r?Ar(t):(e-Ur(r))/(r-t),o=e/i+t;if(Eo(i)<Fr)return FS;function a(s,l){var u=o-l,f=i*s;return[u*Ar(f),o-u*Ur(f)]}return a.invert=function(s,l){var u=o-l;return[Wl(s,Eo(u))/i*ES(u),o-ES(i)*Ss(s*s+u*u)]},a}function Wce(){return c7(dq).scale(131.154).center([0,13.9389])}function p7(t,r){var e=Ur(r),i=Ur(t)*e;return[e*Ar(t)/i,Ar(r)/i]}function Vce(){return Dh(p7).scale(144.049).clipAngle(60)}function jL(t,r,e,i){return 1===t&&1===r&&0===e&&0===i?by:ZS({point:function(a,s){this.stream.point(a*t+e,s*r+i)}})}function Yce(){var l,u,f,v,C,B,t=1,r=0,e=0,i=1,o=1,a=by,s=null,h=by;function G(){return v=C=null,B}return B={stream:function(ae){return v&&C===ae?v:v=a(h(C=ae))},postclip:function(ae){return arguments.length?(h=ae,s=l=u=f=null,G()):h},clipExtent:function(ae){return arguments.length?(h=null==ae?(s=l=u=f=null,by):DL(s=+ae[0][0],l=+ae[0][1],u=+ae[1][0],f=+ae[1][1]),G()):null==s?null:[[s,l],[u,f]]},scale:function(ae){return arguments.length?(a=jL((t=+ae)*i,t*o,r,e),G()):t},translate:function(ae){return arguments.length?(a=jL(t*i,t*o,r=+ae[0],e=+ae[1]),G()):[r,e]},reflectX:function(ae){return arguments.length?(a=jL(t*(i=ae?-1:1),t*o,r,e),G()):i<0},reflectY:function(ae){return arguments.length?(a=jL(t*i,t*(o=ae?-1:1),r,e),G()):o<0},fitExtent:function(ae,pe){return FL(B,ae,pe)},fitSize:function(ae,pe){return a7(B,ae,pe)},fitWidth:function(ae,pe){return s7(B,ae,pe)},fitHeight:function(ae,pe){return l7(B,ae,pe)}}}function h7(t,r){var e=r*r,i=e*e;return[t*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function Gce(){return Dh(h7).scale(175.295)}function m7(t,r){return[Ur(r)*Ar(t),Ar(r)]}function qce(){return Dh(m7).scale(249.5).clipAngle(90+Fr)}function _7(t,r){var e=Ur(r),i=1+Ur(t)*e;return[e*Ar(t)/i,Ar(r)/i]}function Kce(){return Dh(_7).scale(250).clipAngle(142)}function g7(t,r){return[dL(DU((Ya+r)/2)),-t]}function Jce(){var t=uq(g7),r=t.center,e=t.rotate;return t.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},t.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 Qce(t,r){return t.parent===r.parent?1:2}function $ce(t,r){return t+r.x}function tde(t,r){return Math.max(t,r.y)}function ide(){var t=Qce,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var B=C.children;B?(C.x=function Xce(t){return t.reduce($ce,0)/t.length}(B),C.y=function ede(t){return 1+t.reduce(tde,0)}(B)):(C.x=s?l+=t(C,s):0,C.y=0,s=C)});var u=function nde(t){for(var r;r=t.children;)t=r[0];return t}(a),f=function rde(t){for(var r;r=t.children;)t=r[r.length-1];return t}(a),h=u.x-t(u,f)/2,v=f.x+t(f,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)/(v-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(t=a,o):t},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 ode(t){var r=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;t.value=r}function v7(t,r){var o,s,l,u,f,e=new CC(t),i=+t.value&&(e.value=t.value),a=[e];for(null==r&&(r=yde);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(f=l.length))for(o.children=new Array(f),u=f-1;u>=0;--u)a.push(s=o.children[u]=new CC(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(fq)}function yde(t){return t.children}function bde(t){t.data=t.data.data}function fq(t){var r=0;do{t.height=r}while((t=t.parent)&&t.height<++r)}function CC(t){this.data=t,this.depth=this.height=0,this.parent=null}f7.invert=NS(function(t){return t}),BS.invert=function(t,r){return[t,2*hC(QY(r))-Ya]},FS.invert=FS,p7.invert=NS(hC),h7.invert=function(t,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(Eo(o)>Fr&&--i>0);return[t/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},m7.invert=NS(Vu),_7.invert=NS(function(t){return 2*hC(t)}),g7.invert=function(t,r){return[-r,2*hC(QY(t))-Ya]},CC.prototype=v7.prototype={constructor:CC,count:function ade(){return this.eachAfter(ode)},each:function sde(t){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(t(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function ude(t){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();)t(r);return this},eachBefore:function lde(t){for(var i,o,r=this,e=[r];r=e.pop();)if(t(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function cde(t){return this.eachAfter(function(r){for(var e=+t(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function dde(t){return this.eachBefore(function(r){r.children&&r.children.sort(t)})},path:function fde(t){for(var r=this,e=function pde(t,r){if(t===r)return t;var e=t.ancestors(),i=r.ancestors(),o=null;for(t=e.pop(),r=i.pop();t===r;)o=t,t=e.pop(),r=i.pop();return o}(r,t),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;t!==e;)i.splice(o,0,t),t=t.parent;return i},ancestors:function hde(){for(var t=this,r=[t];t=t.parent;)r.push(t);return r},descendants:function mde(){var t=[];return this.each(function(r){t.push(r)}),t},leaves:function _de(){var t=[];return this.eachBefore(function(r){r.children||t.push(r)}),t},links:function gde(){var t=this,r=[];return t.each(function(e){e!==t&&r.push({source:e.parent,target:e})}),r},copy:function vde(){return v7(this).eachBefore(bde)}};var Cde=Array.prototype.slice;function pq(t){for(var o,a,r=0,e=(t=function wde(t){for(var e,i,r=t.length;r;)i=Math.random()*r--|0,e=t[r],t[r]=t[i],t[i]=e;return t}(Cde.call(t))).length,i=[];r<e;)o=t[r],a&&hq(a,o)?++r:(a=Tde(i=kde(i,o)),r=0);return a}function kde(t,r){var e,i;if(y7(r,t))return[r];for(e=0;e<t.length;++e)if(zL(r,t[e])&&y7(US(t[e],r),t))return[t[e],r];for(e=0;e<t.length-1;++e)for(i=e+1;i<t.length;++i)if(zL(US(t[e],t[i]),r)&&zL(US(t[e],r),t[i])&&zL(US(t[i],r),t[e])&&y7(mq(t[e],t[i],r),t))return[t[e],t[i],r];throw new Error}function zL(t,r){var e=t.r-r.r,i=r.x-t.x,o=r.y-t.y;return e<0||e*e<i*i+o*o}function hq(t,r){var e=t.r-r.r+1e-6,i=r.x-t.x,o=r.y-t.y;return e>0&&e*e>i*i+o*o}function y7(t,r){for(var e=0;e<r.length;++e)if(!hq(t,r[e]))return!1;return!0}function Tde(t){switch(t.length){case 1:return function Ede(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return US(t[0],t[1]);case 3:return mq(t[0],t[1],t[2])}}function US(t,r){var e=t.x,i=t.y,o=t.r,a=r.x,s=r.y,l=r.r,u=a-e,f=s-i,h=l-o,v=Math.sqrt(u*u+f*f);return{x:(e+a+u/v*h)/2,y:(i+s+f/v*h)/2,r:(v+o+l)/2}}function mq(t,r,e){var i=t.x,o=t.y,a=t.r,s=r.x,l=r.y,u=r.r,f=e.x,h=e.y,v=e.r,C=i-s,B=i-f,G=o-l,q=o-h,ae=u-a,pe=v-a,Ve=i*i+o*o-a*a,Me=Ve-s*s-l*l+u*u,Be=Ve-f*f-h*h+v*v,pt=B*G-C*q,ht=(G*Be-q*Me)/(2*pt)-i,Pe=(q*ae-G*pe)/pt,at=(B*Me-C*Be)/(2*pt)-o,Ct=(C*pe-B*ae)/pt,E=Pe*Pe+Ct*Ct-1,_=2*(a+ht*Pe+at*Ct),A=ht*ht+at*at-a*a,H=-(E?(_+Math.sqrt(_*_-4*E*A))/(2*E):A/_);return{x:i+ht+Pe*H,y:o+at+Ct*H,r:H}}function _q(t,r,e){var o,a,l,u,i=t.x-r.x,s=t.y-r.y,f=i*i+s*s;f?(a=r.r+e.r,a*=a,u=t.r+e.r,a>(u*=u)?(o=(f+u-a)/(2*f),l=Math.sqrt(Math.max(0,u/f-o*o)),e.x=t.x-o*i-l*s,e.y=t.y-o*s+l*i):(o=(f+a-u)/(2*f),l=Math.sqrt(Math.max(0,a/f-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 gq(t,r){var e=t.r+r.r-1e-6,i=r.x-t.x,o=r.y-t.y;return e>0&&e*e>i*i+o*o}function vq(t){var r=t._,e=t.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 WL(t){this._=t,this.next=null,this.previous=null}function yq(t){if(!(o=t.length))return 0;var r,e,i,o,a,s,l,u,f,h,v;if((r=t[0]).x=0,r.y=0,!(o>1))return r.r;if(e=t[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;_q(e,r,i=t[2]),r=new WL(r),e=new WL(e),i=new WL(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){_q(r._,e._,i=t[l]),i=new WL(i),u=e.next,f=r.previous,h=e._.r,v=r._.r;do{if(h<=v){if(gq(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(gq(f._,i._)){(r=f).next=e,e.previous=r,--l;continue e}v+=f._.r,f=f.previous}}while(u!==f.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=vq(r);(i=i.next)!==e;)(s=vq(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=pq(r),l=0;l<o;++l)(r=t[l]).x-=i.x,r.y-=i.y;return i.r}function Mde(t){return yq(t),t}function Sde(t){return null==t?null:VL(t)}function VL(t){if("function"!=typeof t)throw new Error;return t}function wy(){return 0}function wC(t){return function(){return t}}function xde(t){return Math.sqrt(t.value)}function Dde(){var t=null,r=1,e=1,i=wy;function o(a){return a.x=r/2,a.y=e/2,t?a.eachBefore(bq(t)).eachAfter(b7(i,.5)).eachBefore(Cq(1)):a.eachBefore(bq(xde)).eachAfter(b7(wy,1)).eachAfter(b7(i,a.r/Math.min(r,e))).eachBefore(Cq(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(t=Sde(a),o):t},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:wC(+a),o):i},o}function bq(t){return function(r){r.children||(r.r=Math.max(0,+t(r)||0))}}function b7(t,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=t(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=yq(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function Cq(t){return function(r){var e=r.parent;r.r*=t,e&&(r.x=e.x+t*r.x,r.y=e.y+t*r.y)}}function wq(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function HS(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(i-r)/t.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*f}function Ade(){var t=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=t,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&HS(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var f=u.x0,h=u.y0,v=u.x1-e,C=u.y1-e;v<f&&(f=v=(f+v)/2),C<h&&(h=C=(h+C)/2),u.x0=f,u.y0=h,u.x1=v,u.y1=C}}(r,l)),i&&s.eachBefore(wq),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(t=+s[0],r=+s[1],o):[t,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Ode={depth:-1},Tq={};function Ide(t){return t.id}function Pde(t){return t.parentId}function Rde(){var t=Ide,r=Pde;function e(i){var o,a,l,u,f,v,C,s=i.length,h=new Array(s),B={};for(a=0;a<s;++a)o=i[a],f=h[a]=new CC(o),null!=(v=t(o,a,i))&&(v+="")&&(B[C="$"+(f.id=v)]=C in B?Tq:f);for(a=0;a<s;++a)if(f=h[a],null!=(v=r(i[a],a,i))&&(v+="")){if(!(u=B["$"+v]))throw new Error("missing: "+v);if(u===Tq)throw new Error("ambiguous: "+v);u.children?u.children.push(f):u.children=[f],f.parent=u}else{if(l)throw new Error("multiple roots");l=f}if(!l)throw new Error("no root");if(l.parent=Ode,l.eachBefore(function(G){G.depth=G.parent.depth+1,--s}).eachBefore(fq),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(t=VL(i),e):t},e.parentId=function(i){return arguments.length?(r=VL(i),e):r},e}function Lde(t,r){return t.parent===r.parent?1:2}function C7(t){var r=t.children;return r?r[0]:t.t}function w7(t){var r=t.children;return r?r[r.length-1]:t.t}function Zde(t,r,e){var i=e/(r.i-t.i);r.c-=i,r.s+=e,t.c+=i,r.z+=e,r.m+=e}function Bde(t,r,e){return t.a.parent===r.parent?t.a:e}function YL(t,r){this._=t,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 Ude(){var t=Lde,r=1,e=1,i=null;function o(f){var h=function Fde(t){for(var e,o,a,s,l,r=new YL(t,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 YL(a[s],s)),o.parent=e;return(r.parent=new YL(null,0)).children=[r],r}(f);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)f.eachBefore(u);else{var v=f,C=f,B=f;f.eachBefore(function(Ve){Ve.x<v.x&&(v=Ve),Ve.x>C.x&&(C=Ve),Ve.depth>B.depth&&(B=Ve)});var G=v===C?1:t(v,C)/2,q=G-v.x,ae=r/(C.x+G+q),pe=e/(B.depth||1);f.eachBefore(function(Ve){Ve.x=(Ve.x+q)*ae,Ve.y=Ve.depth*pe})}return f}function a(f){var h=f.children,v=f.parent.children,C=f.i?v[f.i-1]:null;if(h){!function Nde(t){for(var a,r=0,e=0,i=t.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(f);var B=(h[0].z+h[h.length-1].z)/2;C?(f.z=C.z+t(f._,C._),f.m=f.z-B):f.z=B}else C&&(f.z=C.z+t(f._,C._));f.parent.A=function l(f,h,v){if(h){for(var Be,C=f,B=f,G=h,q=C.parent.children[0],ae=C.m,pe=B.m,Ve=G.m,Me=q.m;G=w7(G),C=C7(C),G&&C;)q=C7(q),(B=w7(B)).a=f,(Be=G.z+Ve-C.z-ae+t(G._,C._))>0&&(Zde(Bde(G,f,v),f,Be),ae+=Be,pe+=Be),Ve+=G.m,ae+=C.m,Me+=q.m,pe+=B.m;G&&!w7(B)&&(B.t=G,B.m+=Ve-pe),C&&!C7(q)&&(q.t=C,q.m+=ae-Me,v=f)}return v}(f,C,f.parent.A||v[0])}function s(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f){f.x*=r,f.y=f.depth*e}return o.separation=function(f){return arguments.length?(t=f,o):t},o.size=function(f){return arguments.length?(i=!1,r=+f[0],e=+f[1],o):i?null:[r,e]},o.nodeSize=function(f){return arguments.length?(i=!0,r=+f[0],e=+f[1],o):i?[r,e]:null},o}function GL(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(o-e)/t.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*f}YL.prototype=Object.create(CC.prototype);var Eq=(1+Math.sqrt(5))/2;function Mq(t,r,e,i,o,a){for(var u,f,B,G,ae,pe,Ve,Me,Be,pt,ht,s=[],l=r.children,h=0,v=0,C=l.length,q=r.value;h<C;){B=o-e,G=a-i;do{ae=l[v++].value}while(!ae&&v<C);for(pe=Ve=ae,ht=ae*ae*(pt=Math.max(G/B,B/G)/(q*t)),Be=Math.max(Ve/ht,ht/pe);v<C;++v){if(ae+=f=l[v].value,f<pe&&(pe=f),f>Ve&&(Ve=f),ht=ae*ae*pt,(Me=Math.max(Ve/ht,ht/pe))>Be){ae-=f;break}Be=Me}s.push(u={value:ae,dice:B<G,children:l.slice(h,v)}),u.dice?HS(u,e,i,o,q?i+=G*ae/q:a):GL(u,e,i,q?e+=B*ae/q:o,a),q-=ae,h=v}return s}var Sq=function t(r){function e(i,o,a,s,l){Mq(r,i,o,a,s,l)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}(Eq);function Hde(){var t=Sq,r=!1,e=1,i=1,o=[0],a=wy,s=wy,l=wy,u=wy,f=wy;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(v),o=[0],r&&C.eachBefore(wq),C}function v(C){var B=o[C.depth],G=C.x0+B,q=C.y0+B,ae=C.x1-B,pe=C.y1-B;ae<G&&(G=ae=(G+ae)/2),pe<q&&(q=pe=(q+pe)/2),C.x0=G,C.y0=q,C.x1=ae,C.y1=pe,C.children&&(B=o[C.depth+1]=a(C)/2,G+=f(C)-B,q+=s(C)-B,(ae-=l(C)-B)<G&&(G=ae=(G+ae)/2),(pe-=u(C)-B)<q&&(q=pe=(q+pe)/2),t(C,G,q,ae,pe))}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?(t=VL(C),h):t},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:wC(+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:wC(+C),h):s},h.paddingRight=function(C){return arguments.length?(l="function"==typeof C?C:wC(+C),h):l},h.paddingBottom=function(C){return arguments.length?(u="function"==typeof C?C:wC(+C),h):u},h.paddingLeft=function(C){return arguments.length?(f="function"==typeof C?C:wC(+C),h):f},h}function jde(t,r,e,i,o){var s,u,a=t.children,l=a.length,f=new Array(l+1);for(f[0]=u=s=0;s<l;++s)f[s+1]=u+=a[s].value;!function h(v,C,B,G,q,ae,pe){if(v>=C-1){var Ve=a[v];return Ve.x0=G,Ve.y0=q,Ve.x1=ae,void(Ve.y1=pe)}for(var Me=f[v],Be=B/2+Me,pt=v+1,ht=C-1;pt<ht;){var Pe=pt+ht>>>1;f[Pe]<Be?pt=Pe+1:ht=Pe}Be-f[pt-1]<f[pt]-Be&&v+1<pt&&--pt;var at=f[pt]-Me,Ct=B-at;if(ae-G>pe-q){var E=(G*Ct+ae*at)/B;h(v,pt,at,G,q,E,pe),h(pt,C,Ct,E,q,ae,pe)}else{var _=(q*Ct+pe*at)/B;h(v,pt,at,G,q,ae,_),h(pt,C,Ct,G,_,ae,pe)}}(0,l,t.value,r,e,i,o)}function zde(t,r,e,i,o){(1&t.depth?GL:HS)(t,r,e,i,o)}var Wde=function t(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,f,h,v,B,C=-1,G=u.length,q=i.value;++C<G;){for(h=(f=u[C]).children,v=f.value=0,B=h.length;v<B;++v)f.value+=h[v].value;f.dice?HS(f,o,a,s,a+=(l-a)*f.value/q):GL(f,o,a,o+=(s-o)*f.value/q,l),q-=f.value}else i._squarify=u=Mq(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}(Eq);function kC(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function jS(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function J_(){}var TC=1/.7,EC="\\s*([+-]?\\d+)\\s*",zS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vde=/^#([0-9a-f]{3,8})$/,Yde=new RegExp("^rgb\\("+[EC,EC,EC]+"\\)$"),Gde=new RegExp("^rgb\\("+[Jf,Jf,Jf]+"\\)$"),qde=new RegExp("^rgba\\("+[EC,EC,EC,zS]+"\\)$"),Kde=new RegExp("^rgba\\("+[Jf,Jf,Jf,zS]+"\\)$"),Jde=new RegExp("^hsl\\("+[zS,Jf,Jf]+"\\)$"),Qde=new RegExp("^hsla\\("+[zS,Jf,Jf,zS]+"\\)$"),xq={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 Dq(){return this.rgb().formatHex()}function Aq(){return this.rgb().formatRgb()}function WS(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=Vde.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Oq(r):3===e?new il(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?qL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?qL(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=Yde.exec(t))?new il(r[1],r[2],r[3],1):(r=Gde.exec(t))?new il(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qde.exec(t))?qL(r[1],r[2],r[3],r[4]):(r=Kde.exec(t))?qL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jde.exec(t))?Rq(r[1],r[2]/100,r[3]/100,1):(r=Qde.exec(t))?Rq(r[1],r[2]/100,r[3]/100,r[4]):xq.hasOwnProperty(t)?Oq(xq[t]):"transparent"===t?new il(NaN,NaN,NaN,0):null}function Oq(t){return new il(t>>16&255,t>>8&255,255&t,1)}function qL(t,r,e,i){return i<=0&&(t=r=e=NaN),new il(t,r,e,i)}function k7(t){return t instanceof J_||(t=WS(t)),t?new il((t=t.rgb()).r,t.g,t.b,t.opacity):new il}function KL(t,r,e,i){return 1===arguments.length?k7(t):new il(t,r,e,null==i?1:i)}function il(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function Iq(){return"#"+T7(this.r)+T7(this.g)+T7(this.b)}function Pq(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function T7(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Rq(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Qf(t,r,e,i)}function Lq(t){if(t instanceof Qf)return new Qf(t.h,t.s,t.l,t.opacity);if(t instanceof J_||(t=WS(t)),!t)return new Qf;if(t instanceof Qf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Qf(s,l,u,t.opacity)}function E7(t,r,e,i){return 1===arguments.length?Lq(t):new Qf(t,r,e,null==i?1:i)}function Qf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function M7(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function Zq(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Nq(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return Zq((e-i/r)*r,s,o,a,l)}}function Bq(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return Zq((e-i/r)*r,o,a,s,l)}}function JL(t){return function(){return t}}function Fq(t,r){return function(e){return t+e*r}}function S7(t,r){var e=r-t;return e?Fq(t,e>180||e<-180?e-360*Math.round(e/360):e):JL(isNaN(t)?r:t)}function efe(t){return 1==(t=+t)?Hs:function(r,e){return e-r?function $de(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):JL(isNaN(r)?e:r)}}function Hs(t,r){var e=r-t;return e?Fq(t,e):JL(isNaN(t)?r:t)}kC(J_,WS,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:Dq,formatHex:Dq,formatHsl:function Xde(){return Lq(this).formatHsl()},formatRgb:Aq,toString:Aq}),kC(il,KL,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,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:Iq,formatHex:Iq,formatRgb:Pq,toString:Pq})),kC(Qf,E7,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new Qf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Qf(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(M7(r>=240?r-240:r+120,a,o),M7(r,a,o),M7(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 x7=function t(r){var e=efe(r);function i(o,a){var s=e((o=KL(o)).r,(a=KL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Hs(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function Uq(t){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=KL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var tfe=Uq(Nq),nfe=Uq(Bq);function Hq(t,r){var s,e=r?r.length:0,i=t?Math.min(e,t.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=O7(t[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 jq(t,r){var e=new Date;return r-=t=+t,function(i){return e.setTime(t+r*i),e}}function Xf(t,r){return r-=t=+t,function(e){return t+r*e}}function zq(t,r){var o,e={},i={};for(o in(null===t||"object"!=typeof t)&&(t={}),(null===r||"object"!=typeof r)&&(r={}),r)o in t?e[o]=O7(t[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var D7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,A7=new RegExp(D7.source,"g");function Wq(t,r){var i,o,a,e=D7.lastIndex=A7.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=D7.exec(t))&&(o=A7.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:Xf(i,o)})),e=A7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ife(t){return function(r){return t(r)+""}}(u[0].x):function rfe(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function O7(t,r){var i,e=typeof r;return null==r||"boolean"===e?JL(r):("number"===e?Xf:"string"===e?(i=WS(r))?(r=i,x7):Wq:r instanceof WS?x7:r instanceof Date?jq:Array.isArray(r)?Hq:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?zq:Xf)(t,r)}function ofe(t,r){return r-=t=+t,function(e){return Math.round(t+r*e)}}var VS,P7,Gq,QL,Vq=180/Math.PI,I7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Yq(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*Vq,skewX:Math.atan(u)*Vq,scaleX:s,scaleY:l}}function qq(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:Xf(f,v)},{i:q-2,x:Xf(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Xf(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Xf(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Xf(f,v)},{i:q-2,x:Xf(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var lfe=qq(function afe(t){return"none"===t?I7:(VS||(VS=document.createElement("DIV"),P7=document.documentElement,Gq=document.defaultView),VS.style.transform=t,t=Gq.getComputedStyle(P7.appendChild(VS),null).getPropertyValue("transform"),P7.removeChild(VS),Yq(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),ufe=qq(function sfe(t){return null!=t&&(QL||(QL=document.createElementNS("http://www.w3.org/2000/svg","g")),QL.setAttribute("transform",t),t=QL.transform.baseVal.consolidate())?Yq((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):I7},", ",")",")"),YS=Math.SQRT2;function Jq(t){return((t=Math.exp(t))+1/t)/2}function pfe(t,r){var v,C,e=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2],u=a-e,f=s-i,h=u*u+f*f;if(h<1e-12)C=Math.log(l/o)/YS,v=function(Me){return[e+Me*u,i+Me*f,o*Math.exp(YS*Me*C)]};else{var B=Math.sqrt(h),G=(l*l-o*o+4*h)/(2*o*2*B),q=(l*l-o*o-4*h)/(2*l*2*B),ae=Math.log(Math.sqrt(G*G+1)-G),pe=Math.log(Math.sqrt(q*q+1)-q);C=(pe-ae)/YS,v=function(Me){var Be=Me*C,pt=Jq(ae),ht=o/(2*B)*(pt*function ffe(t){return((t=Math.exp(2*t))-1)/(t+1)}(YS*Be+ae)-function dfe(t){return((t=Math.exp(t))-1/t)/2}(ae));return[e+ht*u,i+ht*f,o*pt/Jq(YS*Be+ae)]}}return v.duration=1e3*C,v}function Qq(t){return function(r,e){var i=t((r=E7(r)).h,(e=E7(e)).h),o=Hs(r.s,e.s),a=Hs(r.l,e.l),s=Hs(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 hfe=Qq(S7),mfe=Qq(Hs),Xq=Math.PI/180,$q=180/Math.PI,rK=4/29,MC=6/29,iK=3*MC*MC;function oK(t){if(t instanceof Ud)return new Ud(t.l,t.a,t.b,t.opacity);if(t instanceof $f)return sK(t);t instanceof il||(t=k7(t));var a,s,r=F7(t.r),e=F7(t.g),i=F7(t.b),o=Z7((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=Z7((.4360747*r+.3850649*e+.1430804*i)/.96422),s=Z7((.0139322*r+.0971045*e+.7141733*i)/.82521)),new Ud(116*o-16,500*(a-o),200*(o-s),t.opacity)}function L7(t,r,e,i){return 1===arguments.length?oK(t):new Ud(t,r,e,null==i?1:i)}function Ud(t,r,e,i){this.l=+t,this.a=+r,this.b=+e,this.opacity=+i}function Z7(t){return t>.008856451679035631?Math.pow(t,1/3):t/iK+rK}function N7(t){return t>MC?t*t*t:iK*(t-rK)}function B7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function F7(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function aK(t){if(t instanceof $f)return new $f(t.h,t.c,t.l,t.opacity);if(t instanceof Ud||(t=oK(t)),0===t.a&&0===t.b)return new $f(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*$q;return new $f(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function U7(t,r,e,i){return 1===arguments.length?aK(t):new $f(t,r,e,null==i?1:i)}function $f(t,r,e,i){this.h=+t,this.c=+r,this.l=+e,this.opacity=+i}function sK(t){if(isNaN(t.h))return new Ud(t.l,0,0,t.opacity);var r=t.h*Xq;return new Ud(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}function gfe(t,r){var e=Hs((t=L7(t)).l,(r=L7(r)).l),i=Hs(t.a,r.a),o=Hs(t.b,r.b),a=Hs(t.opacity,r.opacity);return function(s){return t.l=e(s),t.a=i(s),t.b=o(s),t.opacity=a(s),t+""}}function lK(t){return function(r,e){var i=t((r=U7(r)).h,(e=U7(e)).h),o=Hs(r.c,e.c),a=Hs(r.l,e.l),s=Hs(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+""}}}kC(Ud,L7,jS(J_,{brighter:function(r){return new Ud(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Ud(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(B7(3.1338561*(e=.96422*N7(e))-1.6168667*(r=1*N7(r))-.4906146*(i=.82521*N7(i))),B7(-.9787684*e+1.9161415*r+.033454*i),B7(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),kC($f,U7,jS(J_,{brighter:function(r){return new $f(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new $f(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return sK(this).rgb()}}));var vfe=lK(S7),yfe=lK(Hs),H7=1.78277,j7=-.29227,$L=-.90649,GS=1.97294,cK=GS*$L,dK=GS*H7,fK=H7*j7- -.14861*$L;function bfe(t){if(t instanceof Ty)return new Ty(t.h,t.s,t.l,t.opacity);t instanceof il||(t=k7(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(fK*i+cK*r-dK*e)/(fK+cK-dK),a=i-o,s=(GS*(e-o)-j7*a)/$L,l=Math.sqrt(s*s+a*a)/(GS*o*(1-o)),u=l?Math.atan2(s,a)*$q-120:NaN;return new Ty(u<0?u+360:u,l,o,t.opacity)}function z7(t,r,e,i){return 1===arguments.length?bfe(t):new Ty(t,r,e,null==i?1:i)}function Ty(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function pK(t){return function r(e){function i(o,a){var s=t((o=z7(o)).h,(a=z7(a)).h),l=Hs(o.s,a.s),u=Hs(o.l,a.l),f=Hs(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=f(h),o+""}}return e=+e,i.gamma=r,i}(1)}kC(Ty,z7,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new Ty(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ty(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Xq,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+H7*a)),255*(e+i*(j7*o+$L*a)),255*(e+i*(GS*o)),this.opacity)}}));var Cfe=pK(S7),wfe=pK(Hs);function kfe(t,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=t(i/(r-1));return e}function Tfe(t){for(var i,r=-1,e=t.length,o=t[e-1],a=0;++r<e;)i=o,o=t[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function Efe(t){for(var a,l,r=-1,e=t.length,i=0,o=0,s=t[e-1],u=0;++r<e;)a=s,s=t[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 Mfe(t,r,e){return(r[0]-t[0])*(e[1]-t[1])-(r[1]-t[1])*(e[0]-t[0])}function Sfe(t,r){return t[0]-r[0]||t[1]-r[1]}function hK(t){for(var r=t.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Mfe(t[e[i-2]],t[e[i-1]],t[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function xfe(t){if((e=t.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+t[r][0],+t[r][1],r];for(i.sort(Sfe),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=hK(i),s=hK(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],f=[];for(r=a.length-1;r>=0;--r)f.push(t[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)f.push(t[i[s[r]][2]]);return f}function Dfe(t,r){for(var u,f,e=t.length,i=t[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,v=0;v<e;++v)u=(i=t[v])[0],(f=i[1])>a!=l>a&&o<(s-u)*(a-f)/(l-f)+u&&(h=!h),s=u,l=f;return h}function Afe(t){for(var o,a,r=-1,e=t.length,i=t[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=t[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function SC(){return Math.random()}var Ofe=function t(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=t,e}(SC),mK=function t(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=t,e}(SC),Ife=function t(r){function e(){var i=mK.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=t,e}(SC),_K=function t(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=t,e}(SC),Pfe=function t(r){function e(i){var o=_K.source(r)(i);return function(){return o()/i}}return e.source=t,e}(SC),Rfe=function t(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=t,e}(SC),gK=Array.prototype,W7=gK.map,Q_=gK.slice,V7={name:"implicit"};function Y7(t){var r=j_(),e=[],i=V7;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==V7)return i;r.set(s,l=e.push(a))}return t[(l-1)%t.length]}return t=null==t?[]:Q_.call(t),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=j_();for(var u,f,s=-1,l=a.length;++s<l;)r.has(f=(u=a[s])+"")||r.set(f,e.push(u));return o},o.range=function(a){return arguments.length?(t=Q_.call(a),o):t.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return Y7().domain(e).range(t).unknown(i)},o}function G7(){var o,a,t=Y7().unknown(void 0),r=t.domain,e=t.range,i=[0,1],s=!1,l=0,u=0,f=.5;function h(){var v=r().length,C=i[1]<i[0],B=i[C-0],G=i[1-C];o=(G-B)/Math.max(1,v-l+2*u),s&&(o=Math.floor(o)),B+=(G-B-o*(v-l))*f,a=o*(1-l),s&&(B=Math.round(B),a=Math.round(a));var q=Bl(v).map(function(ae){return B+o*ae});return e(C?q.reverse():q)}return delete t.unknown,t.domain=function(v){return arguments.length?(r(v),h()):r()},t.range=function(v){return arguments.length?(i=[+v[0],+v[1]],h()):i.slice()},t.rangeRound=function(v){return i=[+v[0],+v[1]],s=!0,h()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(v){return arguments.length?(s=!!v,h()):s},t.padding=function(v){return arguments.length?(l=u=Math.max(0,Math.min(1,v)),h()):l},t.paddingInner=function(v){return arguments.length?(l=Math.max(0,Math.min(1,v)),h()):l},t.paddingOuter=function(v){return arguments.length?(u=Math.max(0,Math.min(1,v)),h()):u},t.align=function(v){return arguments.length?(f=Math.max(0,Math.min(1,v)),h()):f},t.copy=function(){return G7().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(f)},h()}function vK(t){var r=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return vK(r())},t}function Lfe(){return vK(G7().paddingInner(1))}function Zfe(t,r){return t=+t,r=+r,function(e){return Math.round(t*(1-e)+r*e)}}function q7(t){return function(){return t}}function yK(t){return+t}var bK=[0,1];function K7(t,r){return(r-=t=+t)?function(e){return(e-t)/r}:q7(r)}function Ffe(t,r,e,i){var o=t[0],a=t[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 Ufe(t,r,e,i){var o=Math.min(t.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(t[l],t[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var f=O_(t,u,1,o)-1;return s[f](a[f](u))}}function e5(t,r){return r.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function t5(t,r){var s,l,u,e=bK,i=bK,o=LR,a=!1;function f(){return s=Math.min(e.length,i.length)>2?Ufe:Ffe,l=u=null,h}function h(v){return(l||(l=s(e,i,a?function Nfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(t):t,o)))(+v)}return h.invert=function(v){return(u||(u=s(i,e,K7,a?function Bfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+v)},h.domain=function(v){return arguments.length?(e=W7.call(v,yK),f()):e.slice()},h.range=function(v){return arguments.length?(i=Q_.call(v),f()):i.slice()},h.rangeRound=function(v){return i=Q_.call(v),o=Zfe,f()},h.clamp=function(v){return arguments.length?(a=!!v,f()):a},h.interpolate=function(v){return arguments.length?(o=v,f()):o},f()}var CK,Hfe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function n5(t){if(!(r=Hfe.exec(t)))throw new Error("invalid format: "+t);var r;return new J7({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 J7(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function r5(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function xC(t){return(t=r5(Math.abs(t)))?t[1]:NaN}function wK(t,r){var e=r5(t,r);if(!e)return t+"";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")}n5.prototype=J7.prototype,J7.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 kK={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function jfe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.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 wK(100*r,e)},r:wK,s:function Gfe(t,r){var e=r5(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(CK=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")+r5(t,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 TK(t){return t}var i5,Q7,SK,EK=Array.prototype.map,MK=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qfe(t){var r=void 0===t.grouping||void 0===t.thousands?TK:function Wfe(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(EK.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?TK:function Vfe(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(EK.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(v){var C=(v=n5(v)).fill,B=v.align,G=v.sign,q=v.symbol,ae=v.zero,pe=v.width,Ve=v.comma,Me=v.precision,Be=v.trim,pt=v.type;"n"===pt?(Ve=!0,pt="g"):kK[pt]||(void 0===Me&&(Me=12),Be=!0,pt="g"),(ae||"0"===C&&"="===B)&&(ae=!0,C="0",B="=");var ht="$"===q?e:"#"===q&&/[boxX]/.test(pt)?"0"+pt.toLowerCase():"",Pe="$"===q?i:/[%p]/.test(pt)?s:"",at=kK[pt],Ct=/[defgprs%]/.test(pt);function E(_){var ee,re,ge,A=ht,H=Pe;if("c"===pt)H=at(_)+H,_="";else{var ft=(_=+_)<0||1/_<0;if(_=isNaN(_)?u:at(Math.abs(_),Me),Be&&(_=function Yfe(t){e:for(var o,r=t.length,e=1,i=-1;e<r;++e)switch(t[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(o+1):t}(_)),ft&&0==+_&&"+"!==G&&(ft=!1),A=(ft?"("===G?G:l:"-"===G||"("===G?"":G)+A,H=("s"===pt?MK[8+CK/3]:"")+H+(ft&&"("===G?")":""),Ct)for(ee=-1,re=_.length;++ee<re;)if(48>(ge=_.charCodeAt(ee))||ge>57){H=(46===ge?o+_.slice(ee+1):_.slice(ee))+H,_=_.slice(0,ee);break}}Ve&&!ae&&(_=r(_,1/0));var St=A.length+_.length+H.length,be=St<pe?new Array(pe-St+1).join(C):"";switch(Ve&&ae&&(_=r(be+_,be.length?pe-H.length:1/0),be=""),B){case"<":_=A+_+H+be;break;case"=":_=A+be+_+H;break;case"^":_=be.slice(0,St=be.length>>1)+A+_+H+be.slice(St);break;default:_=be+A+_+H}return a(_)}return Me=void 0===Me?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,Me)):Math.max(0,Math.min(20,Me)),E.toString=function(){return v+""},E}return{format:f,formatPrefix:function h(v,C){var B=f(((v=n5(v)).type="f",v)),G=3*Math.max(-8,Math.min(8,Math.floor(xC(C)/3))),q=Math.pow(10,-G),ae=MK[8+G/3];return function(pe){return B(q*pe)+ae}}}}function Xfe(t,r,e){var s,i=t[0],o=t[t.length-1],a=R_(i,o,null==r?10:r);switch((e=n5(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function zfe(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xC(r)/3)))-xC(Math.abs(t)))}(a,l))&&(e.precision=s),SK(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Jfe(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,xC(r)-xC(t))+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 Qfe(t){return Math.max(0,-xC(Math.abs(t)))}(a))&&(e.precision=s-2*("%"===e.type))}return Q7(e)}function qS(t){var r=t.domain;return t.ticks=function(e){var i=r();return P_(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){return Xfe(r(),e,i)},t.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=mh(s,l,e))>0?u=mh(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=mh(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)),t},t}function xK(){var t=t5(K7,Oc);return t.copy=function(){return e5(t,xK())},qS(t)}function DK(){var t=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=W7.call(e,yK),r):t.slice()},r.copy=function(){return DK().domain(t)},qS(r)}function AK(t,r){var s,e=0,i=(t=t.slice()).length-1,o=t[e],a=t[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),t[e]=r.floor(o),t[i]=r.ceil(a),t}function $fe(t,r){return(r=Math.log(r/t))?function(e){return Math.log(e/t)/r}:q7(r)}function epe(t,r){return t<0?function(e){return-Math.pow(-r,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(r,e)*Math.pow(t,1-e)}}function tpe(t){return isFinite(t)?+("1e"+t):t<0?0:t}function OK(t){return 10===t?tpe:t===Math.E?Math.exp:function(r){return Math.pow(t,r)}}function IK(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(r){return Math.log(r)/t})}function PK(t){return function(r){return-t(-r)}}function RK(){var t=t5($fe,epe).domain([1,10]),r=t.domain,e=10,i=IK(10),o=OK(10);function a(){return i=IK(e),o=OK(e),r()[0]<0&&(i=PK(i),o=PK(o)),t}return t.base=function(s){return arguments.length?(e=+s,a()):e},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=function(s){var h,l=r(),u=l[0],f=l[l.length-1];(h=f<u)&&(v=u,u=f,f=v);var B,G,q,v=i(u),C=i(f),ae=null==s?10:+s,pe=[];if(!(e%1)&&C-v<ae){if(v=Math.round(v)-1,C=Math.round(C)+1,u>0){for(;v<C;++v)for(G=1,B=o(v);G<e;++G)if(!((q=B*G)<u)){if(q>f)break;pe.push(q)}}else for(;v<C;++v)for(G=e-1,B=o(v);G>=1;--G)if(!((q=B*G)<u)){if(q>f)break;pe.push(q)}}else pe=P_(v,C,Math.min(C-v,ae)).map(o);return h?pe.reverse():pe},t.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=Q7(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/t.ticks().length);return function(f){var h=f/o(Math.round(i(f)));return h*e<e-.5&&(h*=e),h<=u?l(f):""}},t.nice=function(){return r(AK(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},t.copy=function(){return e5(t,RK().base(e))},t}function DC(t,r){return t<0?-Math.pow(-t,r):Math.pow(t,r)}function X7(){var t=1,r=t5(function i(a,s){return(s=DC(s,t)-(a=DC(a,t)))?function(l){return(DC(l,t)-a)/s}:q7(s)},function o(a,s){return s=DC(s,t)-(a=DC(a,t)),function(l){return DC(a+s*l,1/t)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(t=+a,e(e())):t},r.copy=function(){return e5(r,X7().exponent(t))},qS(r)}function npe(){return X7().exponent(.5)}function LK(){var t=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=L_(t,a/s);return o}function o(a){if(!isNaN(a=+a))return r[O_(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:t[0],s<e.length?e[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&t.push(u);return t.sort(Nf),i()},o.range=function(a){return arguments.length?(r=Q_.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return LK().domain(t).range(r)},o}function ZK(){var t=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[O_(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*t)/(e+1);return a}return a.domain=function(l){return arguments.length?(t=+l[0],r=+l[1],s()):[t,r]},a.range=function(l){return arguments.length?(e=(o=Q_.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return ZK().domain([t,r]).range(o)},qS(a)}function NK(){var t=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[O_(t,o,0,e)]}return i.domain=function(o){return arguments.length?(t=Q_.call(o),e=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(o){return arguments.length?(r=Q_.call(o),e=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[t[a-1],t[a]]},i.copy=function(){return NK().domain(t).range(r)},i}!function Kfe(t){return i5=qfe(t),Q7=i5.format,SK=i5.formatPrefix,i5}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var $7=new Date,e9=new Date;function js(t,r,e,i){function o(a){return t(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return t(a=new Date(+a)),a},o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(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 f,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f<a&&a<s);return u},o.filter=function(a){return js(function(s){if(s>=s)for(;t(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 $7.setTime(+a),e9.setTime(+s),t($7),t(e9),Math.floor(e($7,e9))},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 t9=js(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});t9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var Hd=t9,BK=(t9.range,js(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),rpe=BK,Ey=(BK.range,6e4),a5=36e5,UK=6048e5;function My(t){return js(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*Ey)/UK})}var s5=My(0),Sy=My(1),ipe=My(2),ope=My(3),Ah=My(4),ape=My(5),spe=My(6),HK=(s5.range,Sy.range,ipe.range,ope.range,Ah.range,ape.range,spe.range,js(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ey)/864e5},function(t){return t.getDate()-1})),KS=HK,jK=(HK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Ey)},function(t,r){t.setTime(+t+r*a5)},function(t,r){return(r-t)/a5},function(t){return t.getHours()})),lpe=jK,zK=(jK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Ey)},function(t,r){return(r-t)/Ey},function(t){return t.getMinutes()})),upe=zK,WK=(zK.range,js(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()})),VK=WK,l5=(WK.range,js(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t}));l5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?js(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):l5:null};var YK=l5;l5.range;function xy(t){return js(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/UK})}var u5=xy(0),Dy=xy(1),cpe=xy(2),dpe=xy(3),Oh=xy(4),fpe=xy(5),ppe=xy(6),GK=(u5.range,Dy.range,cpe.range,dpe.range,Oh.range,fpe.range,ppe.range,js(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1})),JS=GK,n9=(GK.range,js(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));n9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var jd=n9;n9.range;function r9(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function i9(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function QS(t,r,e){return{y:t,m:r,d:e,H:0,M:0,S:0,L:0}}var AC,lJ,uJ,qK={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,mpe=/^%/,_pe=/[\\^$*+?|[\]().{}]/g;function vo(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function gpe(t){return t.replace(_pe,"\\$&")}function XS(t){return new RegExp("^(?:"+t.map(gpe).join("|")+")","i")}function $S(t){for(var r={},e=-1,i=t.length;++e<i;)r[t[e].toLowerCase()]=e;return r}function vpe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function ype(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function bpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function Cpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function wpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function KK(t,r,e){var i=zs.exec(r.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function JK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function kpe(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Tpe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function Epe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function QK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Mpe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function XK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Spe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function xpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Dpe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function Ape(t,r,e){var i=zs.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Ope(t,r,e){var i=mpe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Ipe(t,r,e){var i=zs.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Ppe(t,r,e){var i=zs.exec(r.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function $K(t,r){return vo(t.getDate(),r,2)}function Rpe(t,r){return vo(t.getHours(),r,2)}function Lpe(t,r){return vo(t.getHours()%12||12,r,2)}function Zpe(t,r){return vo(1+KS.count(Hd(t),t),r,3)}function eJ(t,r){return vo(t.getMilliseconds(),r,3)}function Npe(t,r){return eJ(t,r)+"000"}function Bpe(t,r){return vo(t.getMonth()+1,r,2)}function Fpe(t,r){return vo(t.getMinutes(),r,2)}function Upe(t,r){return vo(t.getSeconds(),r,2)}function Hpe(t){var r=t.getDay();return 0===r?7:r}function jpe(t,r){return vo(s5.count(Hd(t)-1,t),r,2)}function tJ(t){var r=t.getDay();return r>=4||0===r?Ah(t):Ah.ceil(t)}function zpe(t,r){return t=tJ(t),vo(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function Wpe(t){return t.getDay()}function Vpe(t,r){return vo(Sy.count(Hd(t)-1,t),r,2)}function Ype(t,r){return vo(t.getFullYear()%100,r,2)}function Gpe(t,r){return vo((t=tJ(t)).getFullYear()%100,r,2)}function qpe(t,r){return vo(t.getFullYear()%1e4,r,4)}function Kpe(t,r){var e=t.getDay();return vo((t=e>=4||0===e?Ah(t):Ah.ceil(t)).getFullYear()%1e4,r,4)}function Jpe(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function nJ(t,r){return vo(t.getUTCDate(),r,2)}function Qpe(t,r){return vo(t.getUTCHours(),r,2)}function Xpe(t,r){return vo(t.getUTCHours()%12||12,r,2)}function $pe(t,r){return vo(1+JS.count(jd(t),t),r,3)}function rJ(t,r){return vo(t.getUTCMilliseconds(),r,3)}function ehe(t,r){return rJ(t,r)+"000"}function the(t,r){return vo(t.getUTCMonth()+1,r,2)}function nhe(t,r){return vo(t.getUTCMinutes(),r,2)}function rhe(t,r){return vo(t.getUTCSeconds(),r,2)}function ihe(t){var r=t.getUTCDay();return 0===r?7:r}function ohe(t,r){return vo(u5.count(jd(t)-1,t),r,2)}function iJ(t){var r=t.getUTCDay();return r>=4||0===r?Oh(t):Oh.ceil(t)}function ahe(t,r){return t=iJ(t),vo(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function she(t){return t.getUTCDay()}function lhe(t,r){return vo(Dy.count(jd(t)-1,t),r,2)}function uhe(t,r){return vo(t.getUTCFullYear()%100,r,2)}function che(t,r){return vo((t=iJ(t)).getUTCFullYear()%100,r,2)}function dhe(t,r){return vo(t.getUTCFullYear()%1e4,r,4)}function fhe(t,r){var e=t.getUTCDay();return vo((t=e>=4||0===e?Oh(t):Oh.ceil(t)).getUTCFullYear()%1e4,r,4)}function phe(){return"+0000"}function oJ(){return"%"}function aJ(t){return+t}function sJ(t){return Math.floor(+t/1e3)}!function _he(t){return AC=function hpe(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=XS(o),h=$S(o),v=XS(a),C=$S(a),B=XS(s),G=$S(s),q=XS(l),ae=$S(l),pe=XS(u),Ve=$S(u),Me={a:function ft(Wn){return s[Wn.getDay()]},A:function St(Wn){return a[Wn.getDay()]},b:function be(Wn){return u[Wn.getMonth()]},B:function rt(Wn){return l[Wn.getMonth()]},c:null,d:$K,e:$K,f:Npe,g:Gpe,G:Kpe,H:Rpe,I:Lpe,j:Zpe,L:eJ,m:Bpe,M:Fpe,p:function Pt(Wn){return o[+(Wn.getHours()>=12)]},q:function Bn(Wn){return 1+~~(Wn.getMonth()/3)},Q:aJ,s:sJ,S:Upe,u:Hpe,U:jpe,V:zpe,w:Wpe,W:Vpe,x:null,X:null,y:Ype,Y:qpe,Z:Jpe,"%":oJ},Be={a:function er(Wn){return s[Wn.getUTCDay()]},A:function Rn(Wn){return a[Wn.getUTCDay()]},b:function gn(Wn){return u[Wn.getUTCMonth()]},B:function ma(Wn){return l[Wn.getUTCMonth()]},c:null,d:nJ,e:nJ,f:ehe,g:che,G:fhe,H:Qpe,I:Xpe,j:$pe,L:rJ,m:the,M:nhe,p:function Tr(Wn){return o[+(Wn.getUTCHours()>=12)]},q:function zr(Wn){return 1+~~(Wn.getUTCMonth()/3)},Q:aJ,s:sJ,S:rhe,u:ihe,U:ohe,V:ahe,w:she,W:lhe,x:null,X:null,y:uhe,Y:dhe,Z:phe,"%":oJ},pt={a:function E(Wn,In,yr){var kn=B.exec(In.slice(yr));return kn?(Wn.w=G[kn[0].toLowerCase()],yr+kn[0].length):-1},A:function _(Wn,In,yr){var kn=v.exec(In.slice(yr));return kn?(Wn.w=C[kn[0].toLowerCase()],yr+kn[0].length):-1},b:function A(Wn,In,yr){var kn=pe.exec(In.slice(yr));return kn?(Wn.m=Ve[kn[0].toLowerCase()],yr+kn[0].length):-1},B:function H(Wn,In,yr){var kn=q.exec(In.slice(yr));return kn?(Wn.m=ae[kn[0].toLowerCase()],yr+kn[0].length):-1},c:function ee(Wn,In,yr){return at(Wn,r,In,yr)},d:QK,e:QK,f:Ape,g:JK,G:KK,H:XK,I:XK,j:Mpe,L:Dpe,m:Epe,M:Spe,p:function Ct(Wn,In,yr){var kn=f.exec(In.slice(yr));return kn?(Wn.p=h[kn[0].toLowerCase()],yr+kn[0].length):-1},q:Tpe,Q:Ipe,s:Ppe,S:xpe,u:ype,U:bpe,V:Cpe,w:vpe,W:wpe,x:function re(Wn,In,yr){return at(Wn,e,In,yr)},X:function ge(Wn,In,yr){return at(Wn,i,In,yr)},y:JK,Y:KK,Z:kpe,"%":Ope};function ht(Wn,In){return function(yr){var Gi,Cs,YN,kn=[],Br=-1,qr=0,Go=Wn.length;for(yr instanceof Date||(yr=new Date(+yr));++Br<Go;)37===Wn.charCodeAt(Br)&&(kn.push(Wn.slice(qr,Br)),null!=(Cs=qK[Gi=Wn.charAt(++Br)])?Gi=Wn.charAt(++Br):Cs="e"===Gi?" ":"0",(YN=In[Gi])&&(Gi=YN(yr,Cs)),kn.push(Gi),qr=Br+1);return kn.push(Wn.slice(qr,Br)),kn.join("")}}function Pe(Wn,In){return function(yr){var qr,Go,kn=QS(1900,void 0,1);if(at(kn,Wn,yr+="",0)!=yr.length)return null;if("Q"in kn)return new Date(kn.Q);if("s"in kn)return new Date(1e3*kn.s+("L"in kn?kn.L:0));if(In&&!("Z"in kn)&&(kn.Z=0),"p"in kn&&(kn.H=kn.H%12+12*kn.p),void 0===kn.m&&(kn.m="q"in kn?kn.q:0),"V"in kn){if(kn.V<1||kn.V>53)return null;"w"in kn||(kn.w=1),"Z"in kn?(Go=(qr=i9(QS(kn.y,0,1))).getUTCDay(),qr=Go>4||0===Go?Dy.ceil(qr):Dy(qr),qr=JS.offset(qr,7*(kn.V-1)),kn.y=qr.getUTCFullYear(),kn.m=qr.getUTCMonth(),kn.d=qr.getUTCDate()+(kn.w+6)%7):(Go=(qr=r9(QS(kn.y,0,1))).getDay(),qr=Go>4||0===Go?Sy.ceil(qr):Sy(qr),qr=KS.offset(qr,7*(kn.V-1)),kn.y=qr.getFullYear(),kn.m=qr.getMonth(),kn.d=qr.getDate()+(kn.w+6)%7)}else("W"in kn||"U"in kn)&&("w"in kn||(kn.w="u"in kn?kn.u%7:"W"in kn?1:0),Go="Z"in kn?i9(QS(kn.y,0,1)).getUTCDay():r9(QS(kn.y,0,1)).getDay(),kn.m=0,kn.d="W"in kn?(kn.w+6)%7+7*kn.W-(Go+5)%7:kn.w+7*kn.U-(Go+6)%7);return"Z"in kn?(kn.H+=kn.Z/100|0,kn.M+=kn.Z%100,i9(kn)):r9(kn)}}function at(Wn,In,yr,kn){for(var Gi,Cs,Br=0,qr=In.length,Go=yr.length;Br<qr;){if(kn>=Go)return-1;if(37===(Gi=In.charCodeAt(Br++))){if(Gi=In.charAt(Br++),!(Cs=pt[Gi in qK?In.charAt(Br++):Gi])||(kn=Cs(Wn,yr,kn))<0)return-1}else if(Gi!=yr.charCodeAt(kn++))return-1}return kn}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Be.x=ht(e,Be),Be.X=ht(i,Be),Be.c=ht(r,Be),{format:function(In){var yr=ht(In+="",Me);return yr.toString=function(){return In},yr},parse:function(In){var yr=Pe(In+="",!1);return yr.toString=function(){return In},yr},utcFormat:function(In){var yr=ht(In+="",Be);return yr.toString=function(){return In},yr},utcParse:function(In){var yr=Pe(In+="",!0);return yr.toString=function(){return In},yr}}}(t),lJ=AC.format,AC.parse,uJ=AC.utcFormat,AC.utcParse,AC}({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 ex=1e3,tx=6e4,nx=60*tx,rx=24*nx,cJ=30*rx,o9=365*rx;function vhe(t){return new Date(t)}function yhe(t){return t instanceof Date?+t:+new Date(+t)}function a9(t,r,e,i,o,a,s,l,u){var f=t5(K7,Oc),h=f.invert,v=f.domain,C=u(".%L"),B=u(":%S"),G=u("%I:%M"),q=u("%I %p"),ae=u("%a %d"),pe=u("%b %d"),Ve=u("%B"),Me=u("%Y"),Be=[[s,1,ex],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,tx],[a,5,5*tx],[a,15,15*tx],[a,30,30*tx],[o,1,nx],[o,3,3*nx],[o,6,6*nx],[o,12,12*nx],[i,1,rx],[i,2,2*rx],[e,1,6048e5],[r,1,cJ],[r,3,3*cJ],[t,1,o9]];function pt(Pe){return(s(Pe)<Pe?C:a(Pe)<Pe?B:o(Pe)<Pe?G:i(Pe)<Pe?q:r(Pe)<Pe?e(Pe)<Pe?ae:pe:t(Pe)<Pe?Ve:Me)(Pe)}function ht(Pe,at,Ct,E){if(null==Pe&&(Pe=10),"number"==typeof Pe){var _=Math.abs(Ct-at)/Pe,A=U1(function(H){return H[2]}).right(Be,_);A===Be.length?(E=R_(at/o9,Ct/o9,Pe),Pe=t):A?(E=(A=Be[_/Be[A-1][2]<Be[A][2]/_?A-1:A])[1],Pe=A[0]):(E=Math.max(R_(at,Ct,Pe),1),Pe=l)}return null==E?Pe:Pe.every(E)}return f.invert=function(Pe){return new Date(h(Pe))},f.domain=function(Pe){return arguments.length?v(W7.call(Pe,yhe)):v().map(vhe)},f.ticks=function(Pe,at){var H,Ct=v(),E=Ct[0],_=Ct[Ct.length-1],A=_<E;return A&&(H=E,E=_,_=H),H=(H=ht(Pe,E,_,at))?H.range(E,_+1):[],A?H.reverse():H},f.tickFormat=function(Pe,at){return null==at?pt:u(at)},f.nice=function(Pe,at){var Ct=v();return(Pe=ht(Pe,Ct[0],Ct[Ct.length-1],at))?v(AK(Ct,Pe)):f},f.copy=function(){return e5(f,a9(t,r,e,i,o,a,s,l,u))},f}function bhe(){return a9(Hd,rpe,s5,KS,lpe,upe,VK,YK,lJ).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var dJ=js(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCMonth(t.getUTCMonth()+r)},function(t,r){return r.getUTCMonth()-t.getUTCMonth()+12*(r.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Che=dJ,fJ=(dJ.range,js(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*a5)},function(t,r){return(r-t)/a5},function(t){return t.getUTCHours()})),whe=fJ,pJ=(fJ.range,js(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*Ey)},function(t,r){return(r-t)/Ey},function(t){return t.getUTCMinutes()})),khe=pJ;pJ.range;function The(){return a9(jd,Che,u5,JS,whe,khe,VK,YK,uJ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function hJ(t){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return t(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?(t=a,o):t},o.copy=function(){return hJ(t).domain([r,e]).clamp(i)},qS(o)}function Mi(t){for(var r=t.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+t.slice(6*i,6*++i);return e}var Ehe=Mi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Mhe=Mi("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),She=Mi("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),xhe=Mi("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Dhe=Mi("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Ahe=Mi("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Ohe=Mi("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ihe=Mi("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Phe=Mi("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function zo(t){return cy(t[t.length-1])}var mJ=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mi),Rhe=zo(mJ),_J=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mi),Lhe=zo(_J),gJ=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mi),Zhe=zo(gJ),vJ=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mi),Nhe=zo(vJ),yJ=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mi),Bhe=zo(yJ),bJ=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mi),Fhe=zo(bJ),CJ=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mi),Uhe=zo(CJ),wJ=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mi),Hhe=zo(wJ),kJ=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mi),jhe=zo(kJ),TJ=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mi),zhe=zo(TJ),EJ=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mi),Whe=zo(EJ),MJ=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mi),Vhe=zo(MJ),SJ=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mi),Yhe=zo(SJ),xJ=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mi),Ghe=zo(xJ),DJ=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mi),qhe=zo(DJ),AJ=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mi),Khe=zo(AJ),OJ=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mi),Jhe=zo(OJ),IJ=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mi),Qhe=zo(IJ),PJ=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mi),Xhe=zo(PJ),RJ=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mi),$he=zo(RJ),LJ=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mi),eme=zo(LJ),ZJ=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mi),tme=zo(ZJ),NJ=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mi),nme=zo(NJ),BJ=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mi),rme=zo(BJ),FJ=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mi),ime=zo(FJ),UJ=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mi),ome=zo(UJ),HJ=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mi),ame=zo(HJ),sme=Math.PI/180,lme=180/Math.PI,s9=1.78277,l9=-.29227,c5=-.90649,ix=1.97294,zJ=ix*c5,WJ=ix*s9,VJ=s9*l9- -.14861*c5;function ume(t){if(t instanceof Ay)return new Ay(t.h,t.s,t.l,t.opacity);t instanceof Ie||(t=le(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(VJ*i+zJ*r-WJ*e)/(VJ+zJ-WJ),a=i-o,s=(ix*(e-o)-l9*a)/c5,l=Math.sqrt(s*s+a*a)/(ix*o*(1-o)),u=l?Math.atan2(s,a)*lme-120:NaN;return new Ay(u<0?u+360:u,l,o,t.opacity)}function ep(t,r,e,i){return 1===arguments.length?ume(t):new Ay(t,r,e,null==i?1:i)}function Ay(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function YJ(t){return function r(e){function i(o,a){var s=t((o=ep(o)).h,(a=ep(a)).h),l=Hl(o.s,a.s),u=Hl(o.l,a.l),f=Hl(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=f(h),o+""}}return e=+e,i.gamma=r,i}(1)}$1(Ay,ep,RR(ly,{brighter:function(r){return r=null==r?Wu:Math.pow(Wu,r),new Ay(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ay(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*sme,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new Ie(255*(e+i*(-.14861*o+s9*a)),255*(e+i*(l9*o+c5*a)),255*(e+i*(ix*o)),this.opacity)}}));YJ(function nl(t,r){var e=r-t;return e?Po(t,e>180||e<-180?e-360*Math.round(e/360):e):Ni(isNaN(t)?r:t)});var u9=YJ(Hl),cme=u9(ep(300,.5,0),ep(-240,.5,1)),dme=u9(ep(-100,.75,.35),ep(80,1.5,.8)),fme=u9(ep(260,.75,.35),ep(80,1.5,.8)),d5=ep();function pme(t){(t<0||t>1)&&(t-=Math.floor(t));var r=Math.abs(t-.5);return d5.h=360*t-100,d5.s=1.5-1.5*r,d5.l=.8-.9*r,d5+""}function f5(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var hme=f5(Mi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),mme=f5(Mi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_me=f5(Mi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gme=f5(Mi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),c9="http://www.w3.org/1999/xhtml",d9={svg:"http://www.w3.org/2000/svg",xhtml:c9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f9(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),d9.hasOwnProperty(r)?{space:d9[r],local:t}:t}function vme(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===c9&&r.documentElement.namespaceURI===c9?r.createElement(t):r.createElementNS(e,t)}}function yme(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p5(t){var r=f9(t);return(r.local?yme:vme)(r)}function bme(){}function p9(t){return null==t?bme:function(){return this.querySelector(t)}}function wme(){return[]}function GJ(t){return null==t?wme:function(){return this.querySelectorAll(t)}}var qJ=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var ox=document.documentElement;if(!ox.matches){var Tme=ox.webkitMatchesSelector||ox.msMatchesSelector||ox.mozMatchesSelector||ox.oMatchesSelector;qJ=function(r){return function(){return Tme.call(this,r)}}}}var KJ=qJ;function JJ(t){return new Array(t.length)}function h5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}h5.prototype={constructor:h5,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 xme(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new h5(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Dme(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new h5(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function Lme(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}function jme(t){return function(){this.removeAttribute(t)}}function zme(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Wme(t,r){return function(){this.setAttribute(t,r)}}function Vme(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function Yme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Gme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function h9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Kme(t){return function(){this.style.removeProperty(t)}}function Jme(t,r,e){return function(){this.style.setProperty(t,r,e)}}function Qme(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function XJ(t,r){return t.style.getPropertyValue(r)||h9(t).getComputedStyle(t,null).getPropertyValue(r)}function $me(t){return function(){delete this[t]}}function e_e(t,r){return function(){this[t]=r}}function t_e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function $J(t){return t.trim().split(/^|\s+/)}function m9(t){return t.classList||new eQ(t)}function eQ(t){this._node=t,this._names=$J(t.getAttribute("class")||"")}function tQ(t,r){for(var e=m9(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function nQ(t,r){for(var e=m9(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function r_e(t){return function(){tQ(this,t)}}function i_e(t){return function(){nQ(this,t)}}function o_e(t,r){return function(){(r.apply(this,arguments)?tQ:nQ)(this,t)}}function s_e(){this.textContent=""}function l_e(t){return function(){this.textContent=t}}function u_e(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function d_e(){this.innerHTML=""}function f_e(t){return function(){this.innerHTML=t}}function p_e(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function m_e(){this.nextSibling&&this.parentNode.appendChild(this)}function g_e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function b_e(){return null}function w_e(){var t=this.parentNode;t&&t.removeChild(this)}function T_e(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function E_e(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}eQ.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 rQ={},Ih=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(rQ={mouseenter:"mouseover",mouseleave:"mouseout"}));function D_e(t,r,e){return t=iQ(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function iQ(t,r,e){return function(i){var o=Ih;Ih=i;try{t.call(this,this.__data__,r,e)}finally{Ih=o}}}function A_e(t){return t.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 O_e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function I_e(t,r,e){var i=rQ.hasOwnProperty(t.type)?D_e:iQ;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function R_e(t,r,e,i){var o=Ih;t.sourceEvent=Ih,Ih=t;try{return r.apply(e,i)}finally{Ih=o}}function oQ(t,r,e){var i=h9(t),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)),t.dispatchEvent(o)}function L_e(t,r){return function(){return oQ(this,t,r)}}function Z_e(t,r){return function(){return oQ(this,t,r.apply(this,arguments))}}var _9=[null];function ql(t,r){this._groups=t,this._parents=r}function aQ(){return new ql([[document.documentElement]],_9)}ql.prototype=aQ.prototype={constructor:ql,select:function Cme(t){"function"!=typeof t&&(t=p9(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new ql(i,this._parents)},selectAll:function kme(t){"function"!=typeof t&&(t=GJ(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new ql(i,o)},filter:function Eme(t){"function"!=typeof t&&(t=KJ(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new ql(i,this._parents)},data:function Ame(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?Dme:xme,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function Sme(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Be,pt,Ve=0,Me=0;Ve<G;++Ve)if(Be=q[Ve]){for(Ve>=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me<G;);Be._next=pt||null}}return(s=new ql(s,i))._enter=l,s._exit=u,s},enter:function Mme(){return new ql(this._enter||this._groups.map(JJ),this._parents)},exit:function Ome(){return new ql(this._exit||this._groups.map(JJ),this._parents)},merge:function Ime(t){for(var r=this._groups,e=t._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],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new ql(s,this._parents)},order:function Pme(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 Rme(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Lme);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new ql(o,this._parents).order()},call:function Zme(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Nme(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function Bme(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Fme(){var t=0;return this.each(function(){++t}),t},empty:function Ume(){return!this.node()},each:function Hme(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function qme(t,r){var e=f9(t);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?zme:jme:"function"==typeof r?e.local?Gme:Yme:e.local?Vme:Wme)(e,r))},style:function Xme(t,r,e){return arguments.length>1?this.each((null==r?Kme:"function"==typeof r?Qme:Jme)(t,r,null==e?"":e)):XJ(this.node(),t)},property:function n_e(t,r){return arguments.length>1?this.each((null==r?$me:"function"==typeof r?t_e:e_e)(t,r)):this.node()[t]},classed:function a_e(t,r){var e=$J(t+"");if(arguments.length<2){for(var i=m9(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?o_e:r?r_e:i_e)(e,r))},text:function c_e(t){return arguments.length?this.each(null==t?s_e:("function"==typeof t?u_e:l_e)(t)):this.node().textContent},html:function h_e(t){return arguments.length?this.each(null==t?d_e:("function"==typeof t?p_e:f_e)(t)):this.node().innerHTML},raise:function __e(){return this.each(m_e)},lower:function v_e(){return this.each(g_e)},append:function y_e(t){var r="function"==typeof t?t:p5(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function C_e(t,r){var e="function"==typeof t?t:p5(t),i=null==r?b_e:"function"==typeof r?r:p9(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function k_e(){return this.each(w_e)},clone:function M_e(t){return this.select(t?E_e:T_e)},datum:function S_e(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function P_e(t,r,e){var o,s,i=A_e(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?I_e:O_e,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,f=l.length;u<f;++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 N_e(t,r){return this.each(("function"==typeof r?Z_e:L_e)(t,r))}};var B_e=aQ;function sQ(t){return"string"==typeof t?new ql([[document.querySelector(t)]],[document.documentElement]):new ql([[t]],_9)}function F_e(t){return sQ(p5(t).call(document.documentElement))}var U_e=0;function lQ(){return new g9}function g9(){this._="@"+(++U_e).toString(36)}function v9(){for(var r,t=Ih;r=t.sourceEvent;)t=r;return t}function m5(t,r){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var o=t.getBoundingClientRect();return[r.clientX-o.left-t.clientLeft,r.clientY-o.top-t.clientTop]}function H_e(t){var r=v9();return r.changedTouches&&(r=r.changedTouches[0]),m5(t,r)}function j_e(t){return"string"==typeof t?new ql([document.querySelectorAll(t)],[document.documentElement]):new ql([null==t?[]:t],_9)}function z_e(t,r,e){arguments.length<3&&(e=r,r=v9().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return m5(t,a);return null}function W_e(t,r){null==r&&(r=v9().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=m5(t,r[e]);return o}function V_e(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this);for(var o in e)i.attr(o,e[o])})}function Y_e(t,r){for(var e in r)t.attr(e,r[e]);return t}function q_e(t,r,e){return t.each(function(){var i=r.apply(this,arguments),o=gi(this);for(var a in i)o.style(a,i[a],e)})}function K_e(t,r,e){for(var i in r)t.style(i,r[i],e);return t}function Q_e(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this);for(var o in e)i.property(o,e[o])})}function X_e(t,r){for(var e in r)t.property(e,r[e]);return t}function ege(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this).transition(t);for(var o in e)i.attr(o,e[o])})}function tge(t,r){for(var e in r)t.attr(e,r[e]);return t}function rge(t,r,e){return t.each(function(){var i=r.apply(this,arguments),o=gi(this).transition(t);for(var a in i)o.style(a,i[a],e)})}function ige(t,r,e){for(var i in r)t.style(i,r[i],e);return t}function Bi(t){return function(){return t}}g9.prototype=lQ.prototype={constructor:g9,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._}},Id.prototype.attrs=function G_e(t){return("function"==typeof t?V_e:Y_e)(this,t)},Id.prototype.styles=function J_e(t,r){return("function"==typeof t?q_e:K_e)(this,t,null==r?"":r)},Id.prototype.properties=function $_e(t){return("function"==typeof t?Q_e:X_e)(this,t)},q8.prototype.attrs=function nge(t){return("function"==typeof t?ege:tge)(this,t)},q8.prototype.styles=function oge(t,r){return("function"==typeof t?rge:ige)(this,t,null==r?"":r)};var uQ=Math.abs,Tl=Math.atan2,Oy=Math.cos,age=Math.max,y9=Math.min,tp=Math.sin,OC=Math.sqrt,ol=1e-12,Iy=Math.PI,_5=Iy/2,Ph=2*Iy;function sge(t){return t>1?0:t<-1?Iy:Math.acos(t)}function cQ(t){return t>=1?_5:t<=-1?-_5:Math.asin(t)}function lge(t){return t.innerRadius}function uge(t){return t.outerRadius}function cge(t){return t.startAngle}function dge(t){return t.endAngle}function fge(t){return t&&t.padAngle}function pge(t,r,e,i,o,a,s,l){var u=e-t,f=i-r,h=s-o,v=l-a,C=v*u-h*f;if(!(C*C<ol))return[t+(C=(h*(r-a)-v*(t-o))/C)*u,r+C*f]}function g5(t,r,e,i,o,a,s){var l=t-e,u=r-i,f=(s?a:-a)/OC(l*l+u*u),h=f*u,v=-f*l,C=t+h,B=r+v,G=e+h,q=i+v,ae=(C+G)/2,pe=(B+q)/2,Ve=G-C,Me=q-B,Be=Ve*Ve+Me*Me,pt=o-a,ht=C*q-G*B,Pe=(Me<0?-1:1)*OC(age(0,pt*pt*Be-ht*ht)),at=(ht*Me-Ve*Pe)/Be,Ct=(-ht*Ve-Me*Pe)/Be,E=(ht*Me+Ve*Pe)/Be,_=(-ht*Ve+Me*Pe)/Be,A=at-ae,H=Ct-pe,ee=E-ae,re=_-pe;return A*A+H*H>ee*ee+re*re&&(at=E,Ct=_),{cx:at,cy:Ct,x01:-h,y01:-v,x11:at*(o/pt-1),y11:Ct*(o/pt-1)}}function hge(){var t=lge,r=uge,e=Bi(0),i=null,o=cge,a=dge,s=fge,l=null;function u(){var f,h,v=+t.apply(this,arguments),C=+r.apply(this,arguments),B=o.apply(this,arguments)-_5,G=a.apply(this,arguments)-_5,q=uQ(G-B),ae=G>B;if(l||(l=f=Zd()),C<v&&(h=C,C=v,v=h),C>ol)if(q>Ph-ol)l.moveTo(C*Oy(B),C*tp(B)),l.arc(0,0,C,B,G,!ae),v>ol&&(l.moveTo(v*Oy(G),v*tp(G)),l.arc(0,0,v,G,B,ae));else{var A,H,pe=B,Ve=G,Me=B,Be=G,pt=q,ht=q,Pe=s.apply(this,arguments)/2,at=Pe>ol&&(i?+i.apply(this,arguments):OC(v*v+C*C)),Ct=y9(uQ(C-v)/2,+e.apply(this,arguments)),E=Ct,_=Ct;if(at>ol){var ee=cQ(at/v*tp(Pe)),re=cQ(at/C*tp(Pe));(pt-=2*ee)>ol?(Me+=ee*=ae?1:-1,Be-=ee):(pt=0,Me=Be=(B+G)/2),(ht-=2*re)>ol?(pe+=re*=ae?1:-1,Ve-=re):(ht=0,pe=Ve=(B+G)/2)}var ge=C*Oy(pe),ft=C*tp(pe),St=v*Oy(Be),be=v*tp(Be);if(Ct>ol){var Rn,rt=C*Oy(Ve),Pt=C*tp(Ve),Bn=v*Oy(Me),er=v*tp(Me);if(q<=Ph-ol&&(Rn=pge(ge,ft,Bn,er,rt,Pt,St,be))){var gn=ge-Rn[0],ma=ft-Rn[1],Tr=rt-Rn[0],zr=Pt-Rn[1],Wn=1/tp(sge((gn*Tr+ma*zr)/(OC(gn*gn+ma*ma)*OC(Tr*Tr+zr*zr)))/2),In=OC(Rn[0]*Rn[0]+Rn[1]*Rn[1]);E=y9(Ct,(v-In)/(Wn-1)),_=y9(Ct,(C-In)/(Wn+1))}}ht>ol?_>ol?(A=g5(Bn,er,ge,ft,C,_,ae),H=g5(rt,Pt,St,be,C,_,ae),l.moveTo(A.cx+A.x01,A.cy+A.y01),_<Ct?l.arc(A.cx,A.cy,_,Tl(A.y01,A.x01),Tl(H.y01,H.x01),!ae):(l.arc(A.cx,A.cy,_,Tl(A.y01,A.x01),Tl(A.y11,A.x11),!ae),l.arc(0,0,C,Tl(A.cy+A.y11,A.cx+A.x11),Tl(H.cy+H.y11,H.cx+H.x11),!ae),l.arc(H.cx,H.cy,_,Tl(H.y11,H.x11),Tl(H.y01,H.x01),!ae))):(l.moveTo(ge,ft),l.arc(0,0,C,pe,Ve,!ae)):l.moveTo(ge,ft),v>ol&&pt>ol?E>ol?(A=g5(St,be,rt,Pt,v,-E,ae),H=g5(ge,ft,Bn,er,v,-E,ae),l.lineTo(A.cx+A.x01,A.cy+A.y01),E<Ct?l.arc(A.cx,A.cy,E,Tl(A.y01,A.x01),Tl(H.y01,H.x01),!ae):(l.arc(A.cx,A.cy,E,Tl(A.y01,A.x01),Tl(A.y11,A.x11),!ae),l.arc(0,0,v,Tl(A.cy+A.y11,A.cx+A.x11),Tl(H.cy+H.y11,H.cx+H.x11),ae),l.arc(H.cx,H.cy,E,Tl(H.y11,H.x11),Tl(H.y01,H.x01),!ae))):l.arc(0,0,v,Be,Me,ae):l.lineTo(St,be)}else l.moveTo(0,0);if(l.closePath(),f)return l=null,f+""||null}return u.centroid=function(){var f=(+t.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Iy/2;return[Oy(h)*f,tp(h)*f]},u.innerRadius=function(f){return arguments.length?(t="function"==typeof f?f:Bi(+f),u):t},u.outerRadius=function(f){return arguments.length?(r="function"==typeof f?f:Bi(+f),u):r},u.cornerRadius=function(f){return arguments.length?(e="function"==typeof f?f:Bi(+f),u):e},u.padRadius=function(f){return arguments.length?(i=null==f?null:"function"==typeof f?f:Bi(+f),u):i},u.startAngle=function(f){return arguments.length?(o="function"==typeof f?f:Bi(+f),u):o},u.endAngle=function(f){return arguments.length?(a="function"==typeof f?f:Bi(+f),u):a},u.padAngle=function(f){return arguments.length?(s="function"==typeof f?f:Bi(+f),u):s},u.context=function(f){return arguments.length?(l=null==f?null:f,u):l},u}function dQ(t){this._context=t}function v5(t){return new dQ(t)}function b9(t){return t[0]}function C9(t){return t[1]}function y5(){var t=b9,r=C9,e=Bi(!0),i=null,o=v5,a=null;function s(l){var u,h,C,f=l.length,v=!1;for(null==i&&(a=o(C=Zd())),u=0;u<=f;++u)!(u<f&&e(h=l[u],u,l))===v&&((v=!v)?a.lineStart():a.lineEnd()),v&&a.point(+t(h,u,l),+r(h,u,l));if(C)return a=null,C+""||null}return s.x=function(l){return arguments.length?(t="function"==typeof l?l:Bi(+l),s):t},s.y=function(l){return arguments.length?(r="function"==typeof l?l:Bi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:Bi(!!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 fQ(){var t=b9,r=null,e=Bi(0),i=C9,o=Bi(!0),a=null,s=v5,l=null;function u(h){var v,C,B,q,pe,G=h.length,ae=!1,Ve=new Array(G),Me=new Array(G);for(null==a&&(l=s(pe=Zd())),v=0;v<=G;++v){if(!(v<G&&o(q=h[v],v,h))===ae)if(ae=!ae)C=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),B=v-1;B>=C;--B)l.point(Ve[B],Me[B]);l.lineEnd(),l.areaEnd()}ae&&(Ve[v]=+t(q,v,h),Me[v]=+e(q,v,h),l.point(r?+r(q,v,h):Ve[v],i?+i(q,v,h):Me[v]))}if(pe)return l=null,pe+""||null}function f(){return y5().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),r=null,u):t},u.x0=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),u):t},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:Bi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:Bi(+h),u):i},u.lineX0=u.lineY0=function(){return f().x(t).y(e)},u.lineY1=function(){return f().x(t).y(i)},u.lineX1=function(){return f().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:Bi(!!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 mge(t,r){return r<t?-1:r>t?1:r>=t?0:NaN}function _ge(t){return t}function gge(){var t=_ge,r=mge,e=null,i=Bi(0),o=Bi(Ph),a=Bi(0);function s(l){var u,h,v,pe,Be,f=l.length,C=0,B=new Array(f),G=new Array(f),q=+i.apply(this,arguments),ae=Math.min(Ph,Math.max(-Ph,o.apply(this,arguments)-q)),Ve=Math.min(Math.abs(ae)/f,a.apply(this,arguments)),Me=Ve*(ae<0?-1:1);for(u=0;u<f;++u)(Be=G[B[u]=u]=+t(l[u],u,l))>0&&(C+=Be);for(null!=r?B.sort(function(pt,ht){return r(G[pt],G[ht])}):null!=e&&B.sort(function(pt,ht){return e(l[pt],l[ht])}),u=0,v=C?(ae-f*Me)/C:0;u<f;++u,q=pe)h=B[u],pe=q+((Be=G[h])>0?Be*v:0)+Me,G[h]={data:l[h],index:u,value:Be,startAngle:q,endAngle:pe,padAngle:Ve};return G}return s.value=function(l){return arguments.length?(t="function"==typeof l?l:Bi(+l),s):t},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:Bi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:Bi(+l),s):a},s}dQ.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 pQ=w9(v5);function hQ(t){this._curve=t}function w9(t){function r(e){return new hQ(t(e))}return r._curve=t,r}function ax(t){var r=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(e){return arguments.length?r(w9(e)):r()._curve},t}function mQ(){return ax(y5().curve(pQ))}function _Q(){var t=fQ().curve(pQ),r=t.curve,e=t.lineX0,i=t.lineX1,o=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ax(e())},delete t.lineX0,t.lineEndAngle=function(){return ax(i())},delete t.lineX1,t.lineInnerRadius=function(){return ax(o())},delete t.lineY0,t.lineOuterRadius=function(){return ax(a())},delete t.lineY1,t.curve=function(s){return arguments.length?r(w9(s)):r()._curve},t}function sx(t,r){return[(r=+r)*Math.cos(t-=Math.PI/2),r*Math.sin(t)]}hQ.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 k9=Array.prototype.slice;function vge(t){return t.source}function yge(t){return t.target}function T9(t){var r=vge,e=yge,i=b9,o=C9,a=null;function s(){var l,u=k9.call(arguments),f=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Zd()),t(a,+i.apply(this,(u[0]=f,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:Bi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function bge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function Cge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function wge(t,r,e,i,o){var a=sx(r,e),s=sx(r,e=(e+o)/2),l=sx(i,e),u=sx(i,o);t.moveTo(a[0],a[1]),t.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function kge(){return T9(bge)}function Tge(){return T9(Cge)}function Ege(){var t=T9(wge);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var E9={draw:function(r,e){var i=Math.sqrt(e/Iy);r.moveTo(i,0),r.arc(0,0,i,0,Ph)}},gQ={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()}},vQ=Math.sqrt(1/3),Mge=2*vQ,yQ={draw:function(r,e){var i=Math.sqrt(e/Mge),o=i*vQ;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},bQ=Math.sin(Iy/10)/Math.sin(7*Iy/10),xge=Math.sin(Ph/10)*bQ,Dge=-Math.cos(Ph/10)*bQ,CQ={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=xge*i,a=Dge*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=Ph*s/5,u=Math.cos(l),f=Math.sin(l);r.lineTo(f*i,-u*i),r.lineTo(u*o-f*a,f*o+u*a)}r.closePath()}},wQ={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},M9=Math.sqrt(3),kQ={draw:function(r,e){var i=-Math.sqrt(e/(3*M9));r.moveTo(0,2*i),r.lineTo(-M9*i,-i),r.lineTo(M9*i,-i),r.closePath()}},Rc=-.5,Lc=Math.sqrt(3)/2,S9=1/Math.sqrt(12),Age=3*(S9/2+1),TQ={draw:function(r,e){var i=Math.sqrt(e/Age),o=i/2,a=i*S9,s=o,l=i*S9+i,u=-s,f=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,f),r.lineTo(Rc*o-Lc*a,Lc*o+Rc*a),r.lineTo(Rc*s-Lc*l,Lc*s+Rc*l),r.lineTo(Rc*u-Lc*f,Lc*u+Rc*f),r.lineTo(Rc*o+Lc*a,Rc*a-Lc*o),r.lineTo(Rc*s+Lc*l,Rc*l-Lc*s),r.lineTo(Rc*u+Lc*f,Rc*f-Lc*u),r.closePath()}},Oge=[E9,gQ,yQ,wQ,CQ,kQ,TQ];function Ige(){var t=Bi(E9),r=Bi(64),e=null;function i(){var o;if(e||(e=o=Zd()),t.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(t="function"==typeof o?o:Bi(o),i):t},i.size=function(o){return arguments.length?(r="function"==typeof o?o:Bi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function X_(){}function b5(t,r,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+r)/6,(t._y0+4*t._y1+e)/6)}function C5(t){this._context=t}function Pge(t){return new C5(t)}function EQ(t){this._context=t}function Rge(t){return new EQ(t)}function MQ(t){this._context=t}function Lge(t){return new MQ(t)}function SQ(t,r){this._basis=new C5(t),this._beta=r}C5.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:b5(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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},EQ.prototype={areaStart:X_,areaEnd:X_,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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},MQ.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:b5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},SQ.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 f,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)f=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+f*s),this._beta*e[u]+(1-this._beta)*(a+f*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var Zge=function t(r){function e(i){return 1===r?new C5(i):new SQ(i,r)}return e.beta=function(i){return t(+i)},e}(.85);function w5(t,r,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-r),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function x9(t,r){this._context=t,this._k=(1-r)/6}x9.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:w5(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:w5(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 Nge=function t(r){function e(i){return new x9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function D9(t,r){this._context=t,this._k=(1-r)/6}D9.prototype={areaStart:X_,areaEnd:X_,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:w5(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 Bge=function t(r){function e(i){return new D9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function A9(t,r){this._context=t,this._k=(1-r)/6}A9.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:w5(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 Fge=function t(r){function e(i){return new A9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function O9(t,r,e){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>ol){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>ol){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*f+t._x1*t._l23_2a-r*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function xQ(t,r){this._context=t,this._alpha=r}xQ.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:O9(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 Uge=function t(r){function e(i){return r?new xQ(i,r):new x9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function DQ(t,r){this._context=t,this._alpha=r}DQ.prototype={areaStart:X_,areaEnd:X_,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:O9(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 Hge=function t(r){function e(i){return r?new DQ(i,r):new D9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function AQ(t,r){this._context=t,this._alpha=r}AQ.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:O9(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 jge=function t(r){function e(i){return r?new AQ(i,r):new A9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function OQ(t){this._context=t}function zge(t){return new OQ(t)}function IQ(t){return t<0?-1:1}function PQ(t,r,e){var i=t._x1-t._x0,o=r-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(e-t._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(IQ(a)+IQ(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function RQ(t,r){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-r)/2:r}function I9(t,r,e){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,l=(a-i)/3;t._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function k5(t){this._context=t}function LQ(t){this._context=new ZQ(t)}function ZQ(t){this._context=t}function Wge(t){return new k5(t)}function Vge(t){return new LQ(t)}function NQ(t){this._context=t}function BQ(t){var r,i,e=t.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],r=1;r<e-1;++r)o[r]=1,a[r]=4,s[r]=4*t[r]+2*t[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*t[e-1]+t[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]=(t[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*t[r+1]-o[r+1];return[o,a]}function Yge(t){return new NQ(t)}function T5(t,r){this._context=t,this._t=r}function Gge(t){return new T5(t,.5)}function qge(t){return new T5(t,0)}function Kge(t){return new T5(t,1)}function IC(t,r){if((s=t.length)>1)for(var i,o,s,e=1,a=t[r[0]],l=a.length;e<s;++e)for(o=a,a=t[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function PC(t){for(var r=t.length,e=new Array(r);--r>=0;)e[r]=r;return e}function Jge(t,r){return t[r]}function Qge(){var t=Bi([]),r=PC,e=IC,i=Jge;function o(a){var l,v,s=t.apply(this,arguments),u=a.length,f=s.length,h=new Array(f);for(l=0;l<f;++l){for(var q,C=s[l],B=h[l]=new Array(u),G=0;G<u;++G)B[G]=q=[0,+i(a[G],C,G,a)],q.data=a[G];B.key=C}for(l=0,v=r(h);l<f;++l)h[v[l]].index=l;return e(h,v),h}return o.keys=function(a){return arguments.length?(t="function"==typeof a?a:Bi(k9.call(a)),o):t},o.value=function(a){return arguments.length?(i="function"==typeof a?a:Bi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?PC:"function"==typeof a?a:Bi(k9.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?IC:a,o):e},o}function Xge(t,r){if((i=t.length)>0){for(var e,i,s,o=0,a=t[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=t[e][o][1]||0;if(s)for(e=0;e<i;++e)t[e][o][1]/=s}IC(t,r)}}function $ge(t,r){if((u=t.length)>1)for(var e,o,a,s,l,u,i=0,f=t[r[0]].length;i<f;++i)for(s=l=0,e=0;e<u;++e)(a=(o=t[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 eve(t,r){if((o=t.length)>0){for(var o,e=0,i=t[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=t[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}IC(t,r)}}function tve(t,r){if((s=t.length)>0&&(a=(o=t[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,f=0;l<s;++l){for(var h=t[r[l]],v=h[i][1]||0,B=(v-(h[i-1][1]||0))/2,G=0;G<l;++G){var q=t[r[G]];B+=(q[i][1]||0)-(q[i-1][1]||0)}u+=v,f+=B*v}o[i-1][1]+=o[i-1][0]=e,u&&(e-=f/u)}o[i-1][1]+=o[i-1][0]=e,IC(t,r)}}function FQ(t){var r=t.map(UQ);return PC(t).sort(function(e,i){return r[e]-r[i]})}function UQ(t){for(var o,r=0,e=-1,i=t.length;++e<i;)(o=+t[e][1])&&(r+=o);return r}function nve(t){return FQ(t).reverse()}function rve(t){var e,i,r=t.length,o=t.map(UQ),a=PC(t).sort(function(h,v){return o[v]-o[h]}),s=0,l=0,u=[],f=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],f.push(i));return f.reverse().concat(u)}function ive(t){return PC(t).reverse()}OQ.prototype={areaStart:X_,areaEnd:X_,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))}},k5.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:I9(this,this._t0,RQ(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,I9(this,RQ(this,i=PQ(this,r,e)),i);break;default:I9(this,this._t0,i=PQ(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(LQ.prototype=Object.create(k5.prototype)).point=function(t,r){k5.prototype.point.call(this,r,t)},ZQ.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)}},NQ.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=BQ(r),a=BQ(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)}},T5.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 P9=new Date,R9=new Date;function xs(t,r,e,i){function o(a){return t(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(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 f,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f<a&&a<s);return u},o.filter=function(a){return xs(function(s){if(s>=s)for(;t(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 P9.setTime(+a),R9.setTime(+s),t(P9),t(R9),Math.floor(e(P9,R9))},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 E5=xs(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t});E5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?xs(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):E5:null};var HQ=E5,jQ=E5.range,Py=6e4,S5=36e5,WQ=6048e5,VQ=xs(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()}),YQ=VQ,GQ=VQ.range,qQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Py)},function(t,r){return(r-t)/Py},function(t){return t.getMinutes()}),ove=qQ,ave=qQ.range,KQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Py)},function(t,r){t.setTime(+t+r*S5)},function(t,r){return(r-t)/S5},function(t){return t.getHours()}),sve=KQ,lve=KQ.range,JQ=xs(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Py)/864e5},function(t){return t.getDate()-1}),uve=JQ,cve=JQ.range;function Ry(t){return xs(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*Py)/WQ})}var L9=Ry(0),QQ=Ry(1),XQ=Ry(2),$Q=Ry(3),eX=Ry(4),tX=Ry(5),nX=Ry(6),rX=L9.range,dve=QQ.range,fve=XQ.range,pve=$Q.range,hve=eX.range,mve=tX.range,_ve=nX.range,iX=xs(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),gve=iX,vve=iX.range,Z9=xs(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Z9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var yve=Z9,bve=Z9.range,oX=xs(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*Py)},function(t,r){return(r-t)/Py},function(t){return t.getUTCMinutes()}),Cve=oX,wve=oX.range,aX=xs(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*S5)},function(t,r){return(r-t)/S5},function(t){return t.getUTCHours()}),kve=aX,Tve=aX.range,sX=xs(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1}),Eve=sX,Mve=sX.range;function Ly(t){return xs(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/WQ})}var N9=Ly(0),lX=Ly(1),uX=Ly(2),cX=Ly(3),dX=Ly(4),fX=Ly(5),pX=Ly(6),hX=N9.range,Sve=lX.range,xve=uX.range,Dve=cX.range,Ave=dX.range,Ove=fX.range,Ive=pX.range,mX=xs(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCMonth(t.getUTCMonth()+r)},function(t,r){return r.getUTCMonth()-t.getUTCMonth()+12*(r.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Pve=mX,Rve=mX.range,B9=xs(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});B9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var Lve=B9,Zve=B9.range;function Nve(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function x5(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function lx(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function _X(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=ux(o),h=cx(o),v=ux(a),C=cx(a),B=ux(s),G=cx(s),q=ux(l),ae=cx(l),pe=ux(u),Ve=cx(u),Me={a:function ft(Tr){return s[Tr.getDay()]},A:function St(Tr){return a[Tr.getDay()]},b:function be(Tr){return u[Tr.getMonth()]},B:function rt(Tr){return l[Tr.getMonth()]},c:null,d:bX,e:bX,f:sye,H:iye,I:oye,j:aye,L:CX,m:lye,M:uye,p:function Pt(Tr){return o[+(Tr.getHours()>=12)]},Q:EX,s:MX,S:cye,u:dye,U:fye,V:pye,w:hye,W:mye,x:null,X:null,y:_ye,Y:gye,Z:vye,"%":TX},Be={a:function Bn(Tr){return s[Tr.getUTCDay()]},A:function er(Tr){return a[Tr.getUTCDay()]},b:function Rn(Tr){return u[Tr.getUTCMonth()]},B:function gn(Tr){return l[Tr.getUTCMonth()]},c:null,d:wX,e:wX,f:wye,H:yye,I:bye,j:Cye,L:kX,m:kye,M:Tye,p:function ma(Tr){return o[+(Tr.getUTCHours()>=12)]},Q:EX,s:MX,S:Eye,u:Mye,U:Sye,V:xye,w:Dye,W:Aye,x:null,X:null,y:Oye,Y:Iye,Z:Pye,"%":TX},pt={a:function E(Tr,zr,Wn){var In=B.exec(zr.slice(Wn));return In?(Tr.w=G[In[0].toLowerCase()],Wn+In[0].length):-1},A:function _(Tr,zr,Wn){var In=v.exec(zr.slice(Wn));return In?(Tr.w=C[In[0].toLowerCase()],Wn+In[0].length):-1},b:function A(Tr,zr,Wn){var In=pe.exec(zr.slice(Wn));return In?(Tr.m=Ve[In[0].toLowerCase()],Wn+In[0].length):-1},B:function H(Tr,zr,Wn){var In=q.exec(zr.slice(Wn));return In?(Tr.m=ae[In[0].toLowerCase()],Wn+In[0].length):-1},c:function ee(Tr,zr,Wn){return at(Tr,r,zr,Wn)},d:vX,e:vX,f:eye,H:yX,I:yX,j:Jve,L:$ve,m:Kve,M:Qve,p:function Ct(Tr,zr,Wn){var In=f.exec(zr.slice(Wn));return In?(Tr.p=h[In[0].toLowerCase()],Wn+In[0].length):-1},Q:nye,s:rye,S:Xve,u:jve,U:zve,V:Wve,w:Hve,W:Vve,x:function re(Tr,zr,Wn){return at(Tr,e,zr,Wn)},X:function ge(Tr,zr,Wn){return at(Tr,i,zr,Wn)},y:Gve,Y:Yve,Z:qve,"%":tye};function ht(Tr,zr){return function(Wn){var qr,Go,Gi,In=[],yr=-1,kn=0,Br=Tr.length;for(Wn instanceof Date||(Wn=new Date(+Wn));++yr<Br;)37===Tr.charCodeAt(yr)&&(In.push(Tr.slice(kn,yr)),null!=(Go=gX[qr=Tr.charAt(++yr)])?qr=Tr.charAt(++yr):Go="e"===qr?" ":"0",(Gi=zr[qr])&&(qr=Gi(Wn,Go)),In.push(qr),kn=yr+1);return In.push(Tr.slice(kn,yr)),In.join("")}}function Pe(Tr,zr){return function(Wn){var kn,Br,In=lx(1900);if(at(In,Tr,Wn+="",0)!=Wn.length)return null;if("Q"in In)return new Date(In.Q);if("p"in In&&(In.H=In.H%12+12*In.p),"V"in In){if(In.V<1||In.V>53)return null;"w"in In||(In.w=1),"Z"in In?(Br=(kn=x5(lx(In.y))).getUTCDay(),kn=Br>4||0===Br?Dy.ceil(kn):Dy(kn),kn=JS.offset(kn,7*(In.V-1)),In.y=kn.getUTCFullYear(),In.m=kn.getUTCMonth(),In.d=kn.getUTCDate()+(In.w+6)%7):(Br=(kn=zr(lx(In.y))).getDay(),kn=Br>4||0===Br?Sy.ceil(kn):Sy(kn),kn=KS.offset(kn,7*(In.V-1)),In.y=kn.getFullYear(),In.m=kn.getMonth(),In.d=kn.getDate()+(In.w+6)%7)}else("W"in In||"U"in In)&&("w"in In||(In.w="u"in In?In.u%7:"W"in In?1:0),Br="Z"in In?x5(lx(In.y)).getUTCDay():zr(lx(In.y)).getDay(),In.m=0,In.d="W"in In?(In.w+6)%7+7*In.W-(Br+5)%7:In.w+7*In.U-(Br+6)%7);return"Z"in In?(In.H+=In.Z/100|0,In.M+=In.Z%100,x5(In)):zr(In)}}function at(Tr,zr,Wn,In){for(var qr,Go,yr=0,kn=zr.length,Br=Wn.length;yr<kn;){if(In>=Br)return-1;if(37===(qr=zr.charCodeAt(yr++))){if(qr=zr.charAt(yr++),!(Go=pt[qr in gX?zr.charAt(yr++):qr])||(In=Go(Tr,Wn,In))<0)return-1}else if(qr!=Wn.charCodeAt(In++))return-1}return In}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Be.x=ht(e,Be),Be.X=ht(i,Be),Be.c=ht(r,Be),{format:function(zr){var Wn=ht(zr+="",Me);return Wn.toString=function(){return zr},Wn},parse:function(zr){var Wn=Pe(zr+="",Nve);return Wn.toString=function(){return zr},Wn},utcFormat:function(zr){var Wn=ht(zr+="",Be);return Wn.toString=function(){return zr},Wn},utcParse:function(zr){var Wn=Pe(zr,x5);return Wn.toString=function(){return zr},Wn}}}var RC,SX,xX,F9,U9,gX={"-":"",_:" ",0:"0"},al=/^\s*\d+/,Bve=/^%/,Fve=/[\\^$*+?|[\]().{}]/g;function Ro(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Uve(t){return t.replace(Fve,"\\$&")}function ux(t){return new RegExp("^(?:"+t.map(Uve).join("|")+")","i")}function cx(t){for(var r={},e=-1,i=t.length;++e<i;)r[t[e].toLowerCase()]=e;return r}function Hve(t,r,e){var i=al.exec(r.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function jve(t,r,e){var i=al.exec(r.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function zve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function Wve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function Vve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function Yve(t,r,e){var i=al.exec(r.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function Gve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function qve(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Kve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function vX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Jve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function yX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Qve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Xve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function $ve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function eye(t,r,e){var i=al.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function tye(t,r,e){var i=Bve.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function nye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function rye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=1e3*+i[0],e+i[0].length):-1}function bX(t,r){return Ro(t.getDate(),r,2)}function iye(t,r){return Ro(t.getHours(),r,2)}function oye(t,r){return Ro(t.getHours()%12||12,r,2)}function aye(t,r){return Ro(1+KS.count(Hd(t),t),r,3)}function CX(t,r){return Ro(t.getMilliseconds(),r,3)}function sye(t,r){return CX(t,r)+"000"}function lye(t,r){return Ro(t.getMonth()+1,r,2)}function uye(t,r){return Ro(t.getMinutes(),r,2)}function cye(t,r){return Ro(t.getSeconds(),r,2)}function dye(t){var r=t.getDay();return 0===r?7:r}function fye(t,r){return Ro(s5.count(Hd(t),t),r,2)}function pye(t,r){var e=t.getDay();return t=e>=4||0===e?Ah(t):Ah.ceil(t),Ro(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function hye(t){return t.getDay()}function mye(t,r){return Ro(Sy.count(Hd(t),t),r,2)}function _ye(t,r){return Ro(t.getFullYear()%100,r,2)}function gye(t,r){return Ro(t.getFullYear()%1e4,r,4)}function vye(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ro(r/60|0,"0",2)+Ro(r%60,"0",2)}function wX(t,r){return Ro(t.getUTCDate(),r,2)}function yye(t,r){return Ro(t.getUTCHours(),r,2)}function bye(t,r){return Ro(t.getUTCHours()%12||12,r,2)}function Cye(t,r){return Ro(1+JS.count(jd(t),t),r,3)}function kX(t,r){return Ro(t.getUTCMilliseconds(),r,3)}function wye(t,r){return kX(t,r)+"000"}function kye(t,r){return Ro(t.getUTCMonth()+1,r,2)}function Tye(t,r){return Ro(t.getUTCMinutes(),r,2)}function Eye(t,r){return Ro(t.getUTCSeconds(),r,2)}function Mye(t){var r=t.getUTCDay();return 0===r?7:r}function Sye(t,r){return Ro(u5.count(jd(t),t),r,2)}function xye(t,r){var e=t.getUTCDay();return t=e>=4||0===e?Oh(t):Oh.ceil(t),Ro(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function Dye(t){return t.getUTCDay()}function Aye(t,r){return Ro(Dy.count(jd(t),t),r,2)}function Oye(t,r){return Ro(t.getUTCFullYear()%100,r,2)}function Iye(t,r){return Ro(t.getUTCFullYear()%1e4,r,4)}function Pye(){return"+0000"}function TX(){return"%"}function EX(t){return+t}function MX(t){return Math.floor(+t/1e3)}function DX(t){return RC=_X(t),SX=RC.format,xX=RC.parse,F9=RC.utcFormat,U9=RC.utcParse,RC}DX({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 AX="%Y-%m-%dT%H:%M:%S.%LZ";var Lye=Date.prototype.toISOString?function Rye(t){return t.toISOString()}:F9(AX),Zye=Lye;var Bye=+new Date("2000-01-01T00:00:00.000Z")?function Nye(t){var r=new Date(t);return isNaN(r)?null:r}:U9(AX),Fye=Bye;function Uye(t,r,e){var i=new mS,o=r;return null==r?(i.restart(t,r,e),i):(r=+r,e=null==e?H_():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),t(s)},r,e),i)}function Hye(){}function H9(t){return null==t?Hye:function(){return this.querySelector(t)}}function zye(){return[]}function OX(t){return null==t?zye:function(){return this.querySelectorAll(t)}}function IX(t){return function(){return this.matches(t)}}function PX(t){return new Array(t.length)}function D5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}D5.prototype={constructor:D5,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 qye(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new D5(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Kye(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new D5(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function n0e(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}var j9="http://www.w3.org/1999/xhtml",LX={svg:"http://www.w3.org/2000/svg",xhtml:j9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function A5(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),LX.hasOwnProperty(r)?{space:LX[r],local:t}:t}function u0e(t){return function(){this.removeAttribute(t)}}function c0e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function d0e(t,r){return function(){this.setAttribute(t,r)}}function f0e(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function p0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function h0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function ZX(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _0e(t){return function(){this.style.removeProperty(t)}}function g0e(t,r,e){return function(){this.style.setProperty(t,r,e)}}function v0e(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function LC(t,r){return t.style.getPropertyValue(r)||ZX(t).getComputedStyle(t,null).getPropertyValue(r)}function b0e(t){return function(){delete this[t]}}function C0e(t,r){return function(){this[t]=r}}function w0e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function NX(t){return t.trim().split(/^|\s+/)}function z9(t){return t.classList||new BX(t)}function BX(t){this._node=t,this._names=NX(t.getAttribute("class")||"")}function FX(t,r){for(var e=z9(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function UX(t,r){for(var e=z9(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function T0e(t){return function(){FX(this,t)}}function E0e(t){return function(){UX(this,t)}}function M0e(t,r){return function(){(r.apply(this,arguments)?FX:UX)(this,t)}}function x0e(){this.textContent=""}function D0e(t){return function(){this.textContent=t}}function A0e(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function I0e(){this.innerHTML=""}function P0e(t){return function(){this.innerHTML=t}}function R0e(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function Z0e(){this.nextSibling&&this.parentNode.appendChild(this)}function B0e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function U0e(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===j9&&r.documentElement.namespaceURI===j9?r.createElement(t):r.createElementNS(e,t)}}function H0e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function HX(t){var r=A5(t);return(r.local?H0e:U0e)(r)}function z0e(){return null}function V0e(){var t=this.parentNode;t&&t.removeChild(this)}function G0e(){var t=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}function q0e(){var t=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}BX.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 jX={},Zy=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(jX={mouseenter:"mouseover",mouseleave:"mouseout"}));function X0e(t,r,e){return t=zX(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function zX(t,r,e){return function(i){var o=Zy;Zy=i;try{t.call(this,this.__data__,r,e)}finally{Zy=o}}}function $0e(t){return t.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 ebe(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function tbe(t,r,e){var i=jX.hasOwnProperty(t.type)?X0e:zX;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function WX(t,r,e){var i=ZX(t),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)),t.dispatchEvent(o)}function rbe(t,r){return function(){return WX(this,t,r)}}function ibe(t,r){return function(){return WX(this,t,r.apply(this,arguments))}}var abe=[null];function zd(t,r){this._groups=t,this._parents=r}function VX(){return new zd([[document.documentElement]],abe)}zd.prototype=VX.prototype={constructor:zd,select:function jye(t){"function"!=typeof t&&(t=H9(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new zd(i,this._parents)},selectAll:function Wye(t){"function"!=typeof t&&(t=OX(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new zd(i,o)},filter:function Vye(t){"function"!=typeof t&&(t=IX(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new zd(i,this._parents)},data:function Jye(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?Kye:qye,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function Gye(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Be,pt,Ve=0,Me=0;Ve<G;++Ve)if(Be=q[Ve]){for(Ve>=Me&&(Me=Ve+1);!(pt=ae[Me])&&++Me<G;);Be._next=pt||null}}return(s=new zd(s,i))._enter=l,s._exit=u,s},enter:function Yye(){return new zd(this._enter||this._groups.map(PX),this._parents)},exit:function Qye(){return new zd(this._exit||this._groups.map(PX),this._parents)},join:function Xye(t,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function $ye(t){for(var r=this._groups,e=t._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],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new zd(s,this._parents)},order:function e0e(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 t0e(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=n0e);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new zd(o,this._parents).order()},call:function r0e(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function i0e(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function o0e(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function a0e(){var t=0;return this.each(function(){++t}),t},empty:function s0e(){return!this.node()},each:function l0e(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function m0e(t,r){var e=A5(t);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?c0e:u0e:"function"==typeof r?e.local?h0e:p0e:e.local?f0e:d0e)(e,r))},style:function y0e(t,r,e){return arguments.length>1?this.each((null==r?_0e:"function"==typeof r?v0e:g0e)(t,r,null==e?"":e)):LC(this.node(),t)},property:function k0e(t,r){return arguments.length>1?this.each((null==r?b0e:"function"==typeof r?w0e:C0e)(t,r)):this.node()[t]},classed:function S0e(t,r){var e=NX(t+"");if(arguments.length<2){for(var i=z9(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?M0e:r?T0e:E0e)(e,r))},text:function O0e(t){return arguments.length?this.each(null==t?x0e:("function"==typeof t?A0e:D0e)(t)):this.node().textContent},html:function L0e(t){return arguments.length?this.each(null==t?I0e:("function"==typeof t?R0e:P0e)(t)):this.node().innerHTML},raise:function N0e(){return this.each(Z0e)},lower:function F0e(){return this.each(B0e)},append:function j0e(t){var r="function"==typeof t?t:HX(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function W0e(t,r){var e="function"==typeof t?t:HX(t),i=null==r?z0e:"function"==typeof r?r:H9(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Y0e(){return this.each(V0e)},clone:function K0e(t){return this.select(t?q0e:G0e)},datum:function J0e(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function nbe(t,r,e){var o,s,i=$0e(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?tbe:ebe,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,f=l.length;u<f;++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 obe(t,r){return this.each(("function"==typeof r?ibe:rbe)(t,r))}};var dx=VX,sbe=Ff("start","end","interrupt"),lbe=[];function P5(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function ube(t,r,e){var o,i=t.__transition;function a(f){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var h,v,C,B;if(1!==e.state)return u();for(h in i)if((B=i[h]).name===e.name){if(3===B.state)return gS(s);4===B.state?(B.state=6,B.timer.stop(),B.on.call("interrupt",t,t.__data__,B.index,B.group),delete i[h]):+h<r&&(B.state=6,B.timer.stop(),delete i[h])}if(gS(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(f))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,v=-1;h<C;++h)(B=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(o[++v]=B);o.length=v+1}}function l(f){for(var h=f<e.duration?e.ease.call(null,f/e.duration):(e.timer.restart(u),e.state=5,1),v=-1,C=o.length;++v<C;)o[v].call(null,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var f in e.state=6,e.timer.stop(),delete i[r],i)return;delete t.__transition}i[r]=e,e.timer=_S(a,0,e.time)}(t,e,{name:r,index:i,group:o,on:sbe,tween:lbe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function G9(t,r){var e=Wd(t,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function Ny(t,r){var e=Wd(t,r);if(e.state>2)throw new Error("too late; already started");return e}function Wd(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function qX(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}function $_(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}var fx,K9,QX,R5,KX=180/Math.PI,q9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function JX(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*KX,skewX:Math.atan(u)*KX,scaleX:s,scaleY:l}}function XX(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:$_(f,v)},{i:q-2,x:$_(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:$_(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:$_(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:$_(f,v)},{i:q-2,x:$_(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var pbe=XX(function dbe(t){return"none"===t?q9:(fx||(fx=document.createElement("DIV"),K9=document.documentElement,QX=document.defaultView),fx.style.transform=t,t=QX.getComputedStyle(K9.appendChild(fx),null).getPropertyValue("transform"),K9.removeChild(fx),JX(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),hbe=XX(function fbe(t){return null!=t&&(R5||(R5=document.createElementNS("http://www.w3.org/2000/svg","g")),R5.setAttribute("transform",t),t=R5.transform.baseVal.consolidate())?JX((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):q9},", ",")",")");function mbe(t,r){var e,i;return function(){var o=Ny(this,t),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 _be(t,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=Ny(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,f=o.length;u<f;++u)if(o[u].name===r){o[u]=l;break}u===f&&o.push(l)}a.tween=o}}function J9(t,r,e){var i=t._id;return t.each(function(){var o=Ny(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Wd(o,i).value[r]}}function Q9(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function $X(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function px(){}var L5=1/.7,ZC="\\s*([+-]?\\d+)\\s*",mx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",np="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vbe=/^#([0-9a-f]{3,8})$/,ybe=new RegExp("^rgb\\("+[ZC,ZC,ZC]+"\\)$"),bbe=new RegExp("^rgb\\("+[np,np,np]+"\\)$"),Cbe=new RegExp("^rgba\\("+[ZC,ZC,ZC,mx]+"\\)$"),wbe=new RegExp("^rgba\\("+[np,np,np,mx]+"\\)$"),kbe=new RegExp("^hsl\\("+[mx,np,np]+"\\)$"),Tbe=new RegExp("^hsla\\("+[mx,np,np,mx]+"\\)$"),e$={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 t$(){return this.rgb().formatHex()}function n$(){return this.rgb().formatRgb()}function _x(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=vbe.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?r$(r):3===e?new qu(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Z5(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Z5(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=ybe.exec(t))?new qu(r[1],r[2],r[3],1):(r=bbe.exec(t))?new qu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Cbe.exec(t))?Z5(r[1],r[2],r[3],r[4]):(r=wbe.exec(t))?Z5(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=kbe.exec(t))?a$(r[1],r[2]/100,r[3]/100,1):(r=Tbe.exec(t))?a$(r[1],r[2]/100,r[3]/100,r[4]):e$.hasOwnProperty(t)?r$(e$[t]):"transparent"===t?new qu(NaN,NaN,NaN,0):null}function r$(t){return new qu(t>>16&255,t>>8&255,255&t,1)}function Z5(t,r,e,i){return i<=0&&(t=r=e=NaN),new qu(t,r,e,i)}function Mbe(t){return t instanceof px||(t=_x(t)),t?new qu((t=t.rgb()).r,t.g,t.b,t.opacity):new qu}function N5(t,r,e,i){return 1===arguments.length?Mbe(t):new qu(t,r,e,null==i?1:i)}function qu(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function i$(){return"#"+X9(this.r)+X9(this.g)+X9(this.b)}function o$(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function X9(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function a$(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new rp(t,r,e,i)}function s$(t){if(t instanceof rp)return new rp(t.h,t.s,t.l,t.opacity);if(t instanceof px||(t=_x(t)),!t)return new rp;if(t instanceof rp)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 rp(s,l,u,t.opacity)}function rp(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function $9(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function l$(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function u$(t){return function(){return t}}function c$(t,r){return function(e){return t+e*r}}function Obe(t){return 1==(t=+t)?d$:function(r,e){return e-r?function Abe(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):u$(isNaN(r)?e:r)}}function d$(t,r){var e=r-t;return e?c$(t,e):u$(isNaN(t)?r:t)}Q9(px,_x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:t$,formatHex:t$,formatHsl:function Ebe(){return s$(this).formatHsl()},formatRgb:n$,toString:n$}),Q9(qu,N5,$X(px,{brighter:function(r){return r=null==r?L5:Math.pow(L5,r),new qu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new qu(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:i$,formatHex:i$,formatRgb:o$,toString:o$})),Q9(rp,function Sbe(t,r,e,i){return 1===arguments.length?s$(t):new rp(t,r,e,null==i?1:i)},$X(px,{brighter:function(r){return r=null==r?L5:Math.pow(L5,r),new rp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rp(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 qu($9(r>=240?r-240:r+120,a,o),$9(r,a,o),$9(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 f$=function t(r){var e=Obe(r);function i(o,a){var s=e((o=N5(o)).r,(a=N5(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=d$(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function p$(t){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=N5(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}p$(function xbe(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return l$((e-i/r)*r,s,o,a,l)}}),p$(function Dbe(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return l$((e-i/r)*r,o,a,s,l)}});var eH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tH=new RegExp(eH.source,"g");function Rbe(t,r){var i,o,a,e=eH.lastIndex=tH.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=eH.exec(t))&&(o=tH.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:$_(i,o)})),e=tH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function Pbe(t){return function(r){return t(r)+""}}(u[0].x):function Ibe(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function h$(t,r){var e;return("number"==typeof r?$_:r instanceof _x?f$:(e=_x(r))?(r=e,f$):Rbe)(t,r)}function Lbe(t){return function(){this.removeAttribute(t)}}function Zbe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nbe(t,r,e){var i,o;return function(){var a=this.getAttribute(t);return a===e?null:a===i?o:o=r(i=a,e)}}function Bbe(t,r,e){var i,o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===e?null:a===i?o:o=r(i=a,e)}}function Fbe(t,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function Ube(t,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function jbe(t,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(t.space,t.local,o(a))}}return e._value=r,e}function zbe(t,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(t,o(a))}}return e._value=r,e}function Vbe(t,r){return function(){G9(this,t).delay=+r.apply(this,arguments)}}function Ybe(t,r){return r=+r,function(){G9(this,t).delay=r}}function qbe(t,r){return function(){Ny(this,t).duration=+r.apply(this,arguments)}}function Kbe(t,r){return r=+r,function(){Ny(this,t).duration=r}}function Qbe(t,r){if("function"!=typeof r)throw new Error;return function(){Ny(this,t).ease=r}}function n1e(t,r,e){var i,o,a=function t1e(t){return(t+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?G9:Ny;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var l1e=dx.prototype.constructor;function m1e(t,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(t,a(s),e)}}return i._value=r,i}var C1e=0;function ip(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function m$(t){return dx().transition(t)}function _$(){return++C1e}var NC=dx.prototype;ip.prototype=m$.prototype={constructor:ip,select:function a1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=H9(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,v,l=i[s],u=l.length,f=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(v=t.call(h,h.__data__,C,l))&&("__data__"in h&&(v.__data__=h.__data__),f[C]=v,P5(f[C],r,e,C,f,Wd(h,e)));return new ip(a,this._parents,r,e)},selectAll:function s1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=OX(t));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],f=u.length,v=0;v<f;++v)if(h=u[v]){for(var B,C=t.call(h,h.__data__,v,u),G=Wd(h,e),q=0,ae=C.length;q<ae;++q)(B=C[q])&&P5(B,r,e,q,C,G);a.push(C),s.push(h)}return new ip(a,s,r,e)},filter:function $be(t){"function"!=typeof t&&(t=IX(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new ip(i,this._parents,this._name,this._id)},merge:function e1e(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,e=t._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],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new ip(s,this._parents,this._name,this._id)},selection:function u1e(){return new l1e(this._groups,this._parents)},transition:function b1e(){for(var t=this._name,r=this._id,e=_$(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)if(u=s[f]){var h=Wd(u,r);P5(u,t,e,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ip(i,this._parents,t,e)},call:NC.call,nodes:NC.nodes,node:NC.node,size:NC.size,empty:NC.empty,each:NC.each,on:function r1e(t,r){var e=this._id;return arguments.length<2?Wd(this.node(),e).on.on(t):this.each(n1e(e,t,r))},attr:function Hbe(t,r){var e=A5(t),i="transform"===e?hbe:h$;return this.attrTween(t,"function"==typeof r?(e.local?Ube:Fbe)(e,i,J9(this,"attr."+t,r)):null==r?(e.local?Zbe:Lbe)(e):(e.local?Bbe:Nbe)(e,i,r+""))},attrTween:function Wbe(t,r){var e="attr."+t;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=A5(t);return this.tween(e,(i.local?jbe:zbe)(i,r))},style:function h1e(t,r,e){var i="transform"==(t+="")?pbe:h$;return null==r?this.styleTween(t,function c1e(t,r){var e,i,o;return function(){var a=LC(this,t),s=(this.style.removeProperty(t),LC(this,t));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(t,i)).on("end.style."+t,function d1e(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof r?function p1e(t,r,e){var i,o,a;return function(){var s=LC(this,t),l=e(this);return null==l&&(this.style.removeProperty(t),l=LC(this,t)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(t,i,J9(this,"style."+t,r)):function f1e(t,r,e){var i,o;return function(){var a=LC(this,t);return a===e?null:a===i?o:o=r(i=a,e)}}(t,i,r+""),e)},styleTween:function _1e(t,r,e){var i="style."+(t+="");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,m1e(t,r,null==e?"":e))},text:function y1e(t){return this.tween("text","function"==typeof t?function v1e(t){return function(){var r=t(this);this.textContent=null==r?"":r}}(J9(this,"text",t)):function g1e(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function o1e(){return this.on("end.remove",function i1e(t){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==t)return;r&&r.removeChild(this)}}(this._id))},tween:function gbe(t,r){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Wd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===t)return s.value;return null}return this.each((null==r?mbe:_be)(e,t,r))},delay:function Gbe(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Vbe:Ybe)(r,t)):Wd(this.node(),r).delay},duration:function Jbe(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?qbe:Kbe)(r,t)):Wd(this.node(),r).duration},ease:function Xbe(t){var r=this._id;return arguments.length?this.each(Qbe(r,t)):Wd(this.node(),r).ease}};var nH={time:null,delay:0,duration:250,ease:zR};function w1e(t,r){for(var e;!(e=t.__transition)||!(e=e[r]);)if(!(t=t.parentNode))return nH.time=H_(),nH;return e}dx.prototype.interrupt=function cbe(t){return this.each(function(){qX(this,t)})},dx.prototype.transition=function k1e(t){var r,e;t instanceof ip?(r=t._id,t=t._name):(r=_$(),(e=nH).time=H_(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)(u=s[f])&&P5(u,t,r,f,s,e||w1e(u,r));return new ip(i,this._parents,t,r)};var T1e=[null];function E1e(t,r){var i,o,e=t.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new ip([[t]],T1e,r,+o);return null}function g$(t){return function(){return t}}function M1e(t){return t[0]}function S1e(t){return t[1]}function rH(){this._=null}function B5(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function gx(t,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function vx(t,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function v$(t){for(;t.L;)t=t.L;return t}rH.prototype={constructor:rH,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=v$(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&&(gx(this,i),i=(r=i).U),i.C=!1,o.C=!0,vx(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(vx(this,i),i=(r=i).U),i.C=!1,o.C=!0,gx(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?v$(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,gx(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,vx(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,gx(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,vx(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,gx(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,vx(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var y$=rH;function yx(t,r,e,i){var o=[null,null],a=El.push(o)-1;return o.left=t,o.right=r,e&&F5(o,t,r,e),i&&F5(o,r,t,i),Ku[t.index].halfedges.push(a),Ku[r.index].halfedges.push(a),o}function bx(t,r,e){var i=[r,e];return i.left=t,i}function F5(t,r,e,i){t[0]||t[1]?t.left===e?t[1]=i:t[0]=i:(t[0]=i,t.left=r,t.right=e)}function x1e(t,r,e,i,o){var q,a=t[0],s=t[1],l=a[0],u=a[1],v=0,C=1,B=s[0]-l,G=s[1]-u;if(q=r-l,B||!(q>0)){if(q/=B,B<0){if(q<v)return;q<C&&(C=q)}else if(B>0){if(q>C)return;q>v&&(v=q)}if(q=i-l,B||!(q<0)){if(q/=B,B<0){if(q>C)return;q>v&&(v=q)}else if(B>0){if(q<v)return;q<C&&(C=q)}if(q=e-u,G||!(q>0)){if(q/=G,G<0){if(q<v)return;q<C&&(C=q)}else if(G>0){if(q>C)return;q>v&&(v=q)}if(q=o-u,G||!(q<0)){if(q/=G,G<0){if(q>C)return;q>v&&(v=q)}else if(G>0){if(q<v)return;q<C&&(C=q)}return!(v>0)&&!(C<1)||(v>0&&(t[0]=[l+v*B,u+v*G]),C<1&&(t[1]=[l+C*B,u+C*G])),!0}}}}}function D1e(t,r,e,i,o){var a=t[1];if(a)return!0;var q,ae,s=t[0],l=t.left,u=t.right,f=l[0],h=l[1],v=u[0],C=u[1],B=(f+v)/2,G=(h+C)/2;if(C===h){if(B<r||B>=i)return;if(f>v){if(s){if(s[1]>=o)return}else s=[B,e];a=[B,o]}else{if(s){if(s[1]<e)return}else s=[B,o];a=[B,e]}}else if(ae=G-(q=(f-v)/(C-h))*B,q<-1||q>1)if(f>v){if(s){if(s[1]>=o)return}else s=[(e-ae)/q,e];a=[(o-ae)/q,o]}else{if(s){if(s[1]<e)return}else s=[(o-ae)/q,o];a=[(e-ae)/q,e]}else if(h<C){if(s){if(s[0]>=i)return}else s=[r,q*r+ae];a=[i,q*i+ae]}else{if(s){if(s[0]<r)return}else s=[i,q*i+ae];a=[r,q*r+ae]}return t[0]=s,t[1]=a,!0}function I1e(t,r){var e=t.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 b$(t,r){return r[+(r.left!==t.site)]}function P1e(t,r){return r[+(r.left===t.site)]}var iH,C$=[];function Z1e(){B5(this),this.x=this.y=this.arc=this.site=this.cy=null}function BC(t){var r=t.P,e=t.N;if(r&&e){var i=r.site,o=t.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,f=i[1]-l,h=a[0]-s,v=a[1]-l,C=2*(u*v-f*h);if(!(C>=-H1e)){var B=u*u+f*f,G=h*h+v*v,q=(v*B-f*G)/C,ae=(u*G-h*B)/C,pe=C$.pop()||new Z1e;pe.arc=t,pe.site=o,pe.x=q+s,pe.y=(pe.cy=ae+l)+Math.sqrt(q*q+ae*ae),t.circle=pe;for(var Ve=null,Me=Cx._;Me;)if(pe.y<Me.y||pe.y===Me.y&&pe.x<=Me.x){if(!Me.L){Ve=Me.P;break}Me=Me.L}else{if(!Me.R){Ve=Me;break}Me=Me.R}Cx.insert(Ve,pe),Ve||(iH=pe)}}}}function FC(t){var r=t.circle;r&&(r.P||(iH=r.N),Cx.remove(r),C$.push(r),B5(r),t.circle=null)}var w$=[];function N1e(){B5(this),this.edge=this.site=this.circle=null}function k$(t){var r=w$.pop()||new N1e;return r.site=t,r}function oH(t){FC(t),UC.remove(t),w$.push(t),B5(t)}function B1e(t){var r=t.circle,e=r.x,i=r.cy,o=[e,i],a=t.P,s=t.N,l=[t];oH(t);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<Lo&&Math.abs(i-u.circle.cy)<Lo;)a=u.P,l.unshift(u),oH(u),u=a;l.unshift(u),FC(u);for(var f=s;f.circle&&Math.abs(e-f.circle.x)<Lo&&Math.abs(i-f.circle.cy)<Lo;)s=f.N,l.push(f),oH(f),f=s;l.push(f),FC(f);var v,h=l.length;for(v=1;v<h;++v)f=l[v],u=l[v-1],F5(f.edge,u.site,f.site,o);u=l[0],(f=l[h-1]).edge=yx(u.site,f.site,null,o),BC(u),BC(f)}function F1e(t){for(var i,o,a,s,r=t[0],e=t[1],l=UC._;l;)if((a=T$(l,e)-r)>Lo)l=l.L;else{if(!((s=r-U1e(l,e))>Lo)){a>-Lo?(i=l.P,o=l):s>-Lo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function O1e(t){return Ku[t.index]={site:t,halfedges:[]}}(t);var u=k$(t);if(UC.insert(i,u),i||o){if(i===o)return FC(i),o=k$(i.site),UC.insert(u,o),u.edge=o.edge=yx(i.site,u.site),BC(i),void BC(o);if(!o)return void(u.edge=yx(i.site,u.site));FC(i),FC(o);var f=i.site,h=f[0],v=f[1],C=t[0]-h,B=t[1]-v,G=o.site,q=G[0]-h,ae=G[1]-v,pe=2*(C*ae-B*q),Ve=C*C+B*B,Me=q*q+ae*ae,Be=[(ae*Ve-B*Me)/pe+h,(C*Me-q*Ve)/pe+v];F5(o.edge,f,G,Be),u.edge=yx(f,t,null,Be),o.edge=yx(t,G,null,Be),BC(i),BC(o)}}function T$(t,r){var e=t.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=t.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],f=u-r;if(!f)return l;var h=l-i,v=1/a-1/f,C=h/f;return v?(-C+Math.sqrt(C*C-2*v*(h*h/(-2*f)-u+f/2+o-a/2)))/v+i:(i+l)/2}function U1e(t,r){var e=t.N;if(e)return T$(e,r);var i=t.site;return i[1]===r?i[0]:1/0}var UC,Ku,Cx,El,Lo=1e-6,H1e=1e-12;function j1e(t,r,e){return(t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1])}function z1e(t,r){return r[1]-t[1]||r[0]-t[0]}function aH(t,r){var i,o,a,e=t.sort(z1e).pop();for(El=[],Ku=new Array(t.length),UC=new y$,Cx=new y$;;)if(a=iH,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(F1e(e),i=e[0],o=e[1]),e=t.pop();else{if(!a)break;B1e(a.arc)}if(function R1e(){for(var e,i,o,a,t=0,r=Ku.length;t<r;++t)if((e=Ku[t])&&(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]=I1e(e,El[i[o]]);for(s.sort(function(u,f){return l[f]-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],f=+r[1][1];(function A1e(t,r,e,i){for(var a,o=El.length;o--;)D1e(a=El[o],t,r,e,i)&&x1e(a,t,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>Lo||Math.abs(a[0][1]-a[1][1])>Lo)||delete El[o]})(s,l,u,f),function L1e(t,r,e,i){var a,s,l,u,f,h,v,C,B,G,q,ae,o=Ku.length,pe=!0;for(a=0;a<o;++a)if(s=Ku[a]){for(l=s.site,u=(f=s.halfedges).length;u--;)El[f[u]]||f.splice(u,1);for(u=0,h=f.length;u<h;)q=(G=P1e(s,El[f[u]]))[0],ae=G[1],C=(v=b$(s,El[f[++u%h]]))[0],B=v[1],(Math.abs(q-C)>Lo||Math.abs(ae-B)>Lo)&&(f.splice(u,0,El.push(bx(l,G,Math.abs(q-t)<Lo&&i-ae>Lo?[t,Math.abs(C-t)<Lo?B:i]:Math.abs(ae-i)<Lo&&e-q>Lo?[Math.abs(B-i)<Lo?C:e,i]:Math.abs(q-e)<Lo&&ae-r>Lo?[e,Math.abs(C-e)<Lo?B:r]:Math.abs(ae-r)<Lo&&q-t>Lo?[Math.abs(B-r)<Lo?C:t,r]:null))-1),++h);h&&(pe=!1)}if(pe){var Ve,Me,Be,pt=1/0;for(a=0,pe=null;a<o;++a)(s=Ku[a])&&(Be=(Ve=(l=s.site)[0]-t)*Ve+(Me=l[1]-r)*Me)<pt&&(pt=Be,pe=s);if(pe){var ht=[t,r],Pe=[t,i],at=[e,i],Ct=[e,r];pe.halfedges.push(El.push(bx(l=pe.site,ht,Pe))-1,El.push(bx(l,Pe,at))-1,El.push(bx(l,at,Ct))-1,El.push(bx(l,Ct,ht))-1)}}for(a=0;a<o;++a)(s=Ku[a])&&(s.halfedges.length||delete Ku[a])}(s,l,u,f)}this.edges=El,this.cells=Ku,UC=Cx=El=Ku=null}function W1e(){var t=M1e,r=S1e,e=null;function i(o){return new aH(o.map(function(a,s){var l=[Math.round(t(a,s,o)/Lo)*Lo,Math.round(r(a,s,o)/Lo)*Lo];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?(t="function"==typeof o?o:g$(+o),i):t},i.y=function(o){return arguments.length?(r="function"==typeof o?o:g$(+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}aH.prototype={constructor:aH,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return b$(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,f,a=i.site,l=-1,h=e[s[u-1]],v=h.left===a?h.right:h.left;++l<u;)f=v,v=(h=e[s[l]]).left===a?h.right:h.left,f&&v&&o<f.index&&o<v.index&&j1e(a,f,v)<0&&r.push([a.data,f.data,v.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 f=r-u.site[0],h=e-u.site[1],v=f*f+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var B=o.edges[C],G=B.left;if(G!==u.site&&G||(G=B.right)){var q=r-G[0],ae=e-G[1],pe=q*q+ae*ae;pe<v&&(v=pe,s=G.index)}})}while(null!==s);return o._found=a,null==i||v<=i*i?u.site:null}};var wx=Math.SQRT2;function M$(t){return((t=Math.exp(t))+1/t)/2}function q1e(t,r){var v,C,e=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2],u=a-e,f=s-i,h=u*u+f*f;if(h<1e-12)C=Math.log(l/o)/wx,v=function(Me){return[e+Me*u,i+Me*f,o*Math.exp(wx*Me*C)]};else{var B=Math.sqrt(h),G=(l*l-o*o+4*h)/(2*o*2*B),q=(l*l-o*o-4*h)/(2*l*2*B),ae=Math.log(Math.sqrt(G*G+1)-G),pe=Math.log(Math.sqrt(q*q+1)-q);C=(pe-ae)/wx,v=function(Me){var Be=Me*C,pt=M$(ae),ht=o/(2*B)*(pt*function G1e(t){return((t=Math.exp(2*t))-1)/(t+1)}(wx*Be+ae)-function Y1e(t){return((t=Math.exp(t))-1/t)/2}(ae));return[e+ht*u,i+ht*f,o*pt/M$(wx*Be+ae)]}}return v.duration=1e3*C,v}function U5(t){return function(){return t}}function K1e(t,r,e){this.target=t,this.type=r,this.transform=e}function Rh(t,r,e){this.k=t,this.x=r,this.y=e}Rh.prototype={constructor:Rh,scale:function(r){return 1===r?this:new Rh(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new Rh(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 H5=new Rh(1,0,0);function S$(t){return t.__zoom||H5}function lH(){Kn.stopImmediatePropagation()}function kx(){Kn.preventDefault(),Kn.stopImmediatePropagation()}function J1e(){return!Kn.ctrlKey&&!Kn.button}function Q1e(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function x$(){return this.__zoom||H5}function X1e(){return-Kn.deltaY*(1===Kn.deltaMode?.05:Kn.deltaMode?1:.002)}function $1e(){return navigator.maxTouchPoints||"ontouchstart"in this}function eCe(t,r,e){var i=t.invertX(r[0][0])-e[0][0],o=t.invertX(r[1][0])-e[1][0],a=t.invertY(r[0][1])-e[0][1],s=t.invertY(r[1][1])-e[1][1];return t.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 D$(){var h,v,t=J1e,r=Q1e,e=eCe,i=X1e,o=$1e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=q1e,f=Ff("start","zoom","end"),C=500,G=0;function q(A){A.property("__zoom",x$).on("wheel.zoom",ht).on("mousedown.zoom",Pe).on("dblclick.zoom",at).filter(o).on("touchstart.zoom",Ct).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ae(A,H){return(H=Math.max(a[0],Math.min(a[1],H)))===A.k?A:new Rh(H,A.x,A.y)}function pe(A,H,ee){var re=H[0]-ee[0]*A.k,ge=H[1]-ee[1]*A.k;return re===A.x&&ge===A.y?A:new Rh(A.k,re,ge)}function Ve(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function Me(A,H,ee){A.on("start.zoom",function(){Be(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Be(this,arguments).end()}).tween("zoom",function(){var re=this,ge=arguments,ft=Be(re,ge),St=r.apply(re,ge),be=ee||Ve(St),rt=Math.max(St[1][0]-St[0][0],St[1][1]-St[0][1]),Pt=re.__zoom,Bn="function"==typeof H?H.apply(re,ge):H,er=u(Pt.invert(be).concat(rt/Pt.k),Bn.invert(be).concat(rt/Bn.k));return function(Rn){if(1===Rn)Rn=Bn;else{var gn=er(Rn),ma=rt/gn[2];Rn=new Rh(ma,be[0]-gn[0]*ma,be[1]-gn[1]*ma)}ft.zoom(null,Rn)}})}function Be(A,H,ee){return!ee&&A.__zooming||new pt(A,H)}function pt(A,H){this.that=A,this.args=H,this.active=0,this.extent=r.apply(A,H),this.taps=0}function ht(){if(t.apply(this,arguments)){var A=Be(this,arguments),H=this.__zoom,ee=Math.max(a[0],Math.min(a[1],H.k*Math.pow(2,i.apply(this,arguments)))),re=Rd(this);H.k!==ee&&(A.wheel?((A.mouse[0][0]!==re[0]||A.mouse[0][1]!==re[1])&&(A.mouse[1]=H.invert(A.mouse[0]=re)),clearTimeout(A.wheel)):(A.mouse=[re,H.invert(re)],iC(this),A.start()),kx(),A.wheel=setTimeout(ge,150),A.zoom("mouse",e(pe(ae(H,ee),A.mouse[0],A.mouse[1]),A.extent,s)))}function ge(){A.wheel=null,A.end()}}function Pe(){if(!v&&t.apply(this,arguments)){var A=Be(this,arguments,!0),H=gi(Kn.view).on("mousemove.zoom",ft,!0).on("mouseup.zoom",St,!0),ee=Rd(this),re=Kn.clientX,ge=Kn.clientY;jf(Kn.view),lH(),A.mouse=[ee,this.__zoom.invert(ee)],iC(this),A.start()}function ft(){if(kx(),!A.moved){var be=Kn.clientX-re,rt=Kn.clientY-ge;A.moved=be*be+rt*rt>G}A.zoom("mouse",e(pe(A.that.__zoom,A.mouse[0]=Rd(A.that),A.mouse[1]),A.extent,s))}function St(){H.on("mousemove.zoom mouseup.zoom",null),X1(Kn.view,A.moved),kx(),A.end()}}function at(){if(t.apply(this,arguments)){var A=this.__zoom,H=Rd(this),ee=A.invert(H),re=A.k*(Kn.shiftKey?.5:2),ge=e(pe(ae(A,re),H,ee),r.apply(this,arguments),s);kx(),l>0?gi(this).transition().duration(l).call(Me,ge,H):gi(this).call(q.transform,ge)}}function Ct(){if(t.apply(this,arguments)){var re,ge,ft,St,A=Kn.touches,H=A.length,ee=Be(this,arguments,Kn.changedTouches.length===H);for(lH(),ge=0;ge<H;++ge)St=[St=mU(this,A,(ft=A[ge]).identifier),this.__zoom.invert(St),ft.identifier],ee.touch0?ee.touch1||(ee.touch1=St,ee.taps=0):(ee.touch0=St,re=!0,ee.taps=1+!!h);h&&(h=clearTimeout(h)),re&&(ee.taps<2&&(h=setTimeout(function(){h=null},C)),iC(this),ee.start())}}function E(){if(this.__zooming){var re,ge,ft,St,A=Be(this,arguments),H=Kn.changedTouches,ee=H.length;for(kx(),h&&(h=clearTimeout(h)),A.taps=0,re=0;re<ee;++re)ft=mU(this,H,(ge=H[re]).identifier),A.touch0&&A.touch0[2]===ge.identifier?A.touch0[0]=ft:A.touch1&&A.touch1[2]===ge.identifier&&(A.touch1[0]=ft);if(ge=A.that.__zoom,A.touch1){var be=A.touch0[0],rt=A.touch0[1],Pt=A.touch1[0],Bn=A.touch1[1],er=(er=Pt[0]-be[0])*er+(er=Pt[1]-be[1])*er,Rn=(Rn=Bn[0]-rt[0])*Rn+(Rn=Bn[1]-rt[1])*Rn;ge=ae(ge,Math.sqrt(er/Rn)),ft=[(be[0]+Pt[0])/2,(be[1]+Pt[1])/2],St=[(rt[0]+Bn[0])/2,(rt[1]+Bn[1])/2]}else{if(!A.touch0)return;ft=A.touch0[0],St=A.touch0[1]}A.zoom("touch",e(pe(ge,ft,St),A.extent,s))}}function _(){if(this.__zooming){var re,ge,A=Be(this,arguments),H=Kn.changedTouches,ee=H.length;for(lH(),v&&clearTimeout(v),v=setTimeout(function(){v=null},C),re=0;re<ee;++re)ge=H[re],A.touch0&&A.touch0[2]===ge.identifier?delete A.touch0:A.touch1&&A.touch1[2]===ge.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),2===A.taps){var ft=gi(this).on("dblclick.zoom");ft&&ft.apply(this,arguments)}}}return q.transform=function(A,H){var ee=A.selection?A.selection():A;ee.property("__zoom",x$),A!==ee?Me(A,H):ee.interrupt().each(function(){Be(this,arguments).start().zoom(null,"function"==typeof H?H.apply(this,arguments):H).end()})},q.scaleBy=function(A,H){q.scaleTo(A,function(){var ee=this.__zoom.k,re="function"==typeof H?H.apply(this,arguments):H;return ee*re})},q.scaleTo=function(A,H){q.transform(A,function(){var ee=r.apply(this,arguments),re=this.__zoom,ge=Ve(ee),ft=re.invert(ge),St="function"==typeof H?H.apply(this,arguments):H;return e(pe(ae(re,St),ge,ft),ee,s)})},q.translateBy=function(A,H,ee){q.transform(A,function(){return e(this.__zoom.translate("function"==typeof H?H.apply(this,arguments):H,"function"==typeof ee?ee.apply(this,arguments):ee),r.apply(this,arguments),s)})},q.translateTo=function(A,H,ee){q.transform(A,function(){var re=r.apply(this,arguments),ge=this.__zoom,ft=Ve(re);return e(H5.translate(ft[0],ft[1]).scale(ge.k).translate("function"==typeof H?-H.apply(this,arguments):-H,"function"==typeof ee?-ee.apply(this,arguments):-ee),re,s)})},pt.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,ee){return this.mouse&&"mouse"!==H&&(this.mouse[1]=ee.invert(this.mouse[0])),this.touch0&&"touch"!==H&&(this.touch0[1]=ee.invert(this.touch0[0])),this.touch1&&"touch"!==H&&(this.touch1[1]=ee.invert(this.touch1[0])),this.that.__zoom=ee,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){Q1(new K1e(q,H,this.that.__zoom),f.apply,f,[H,this.that,this.args])}},q.wheelDelta=function(A){return arguments.length?(i="function"==typeof A?A:U5(+A),q):i},q.filter=function(A){return arguments.length?(t="function"==typeof A?A:U5(!!A),q):t},q.touchable=function(A){return arguments.length?(o="function"==typeof A?A:U5(!!A),q):o},q.extent=function(A){return arguments.length?(r="function"==typeof A?A:U5([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),q):r},q.scaleExtent=function(A){return arguments.length?(a[0]=+A[0],a[1]=+A[1],q):[a[0],a[1]]},q.translateExtent=function(A){return arguments.length?(s[0][0]=+A[0][0],s[1][0]=+A[1][0],s[0][1]=+A[0][1],s[1][1]=+A[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(A){return arguments.length?(e=A,q):e},q.duration=function(A){return arguments.length?(l=+A,q):l},q.interpolate=function(A){return arguments.length?(u=A,q):u},q.on=function(){var A=f.on.apply(f,arguments);return A===f?q:A},q.clickDistance=function(A){return arguments.length?(G=(A=+A)*A,q):Math.sqrt(G)},q}S$.prototype=Rh.prototype;var uH=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getD3",value:function(){return z}}]),t}();uH=function(t,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(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[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,n.GSi)(),function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)}("design:paramtypes",[])],uH);var op=m(8723);function rCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"linearGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.outerLinearGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function iCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"radialGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.radialGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function oCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.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 aCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.Q2q("fill","url(#",e.svg.radialGradient.id,")"),n.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 sCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,oCe,1,7,"circle",2),n.YNc(2,aCe,1,7,"circle",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",e.options.backgroundGradient)}}function lCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(2);n.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 uCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.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 cCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.Q2q("stroke","url(#",e.svg.outerLinearGradient.id,")"),n.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function dCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,uCe,1,5,"path",2),n.YNc(2,cCe,1,5,"path",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",e.options.outerStrokeGradient)}}function fCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function pCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,fCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.title.tspans)}}function hCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=n.oxw(3);n.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),n.xp6(1),n.Oqu(e.svg.units.text)}}function mCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function _Ce(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,mCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.subtitle.tspans)}}function gCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"text",7),n.YNc(1,pCe,2,1,"ng-container",2),n.YNc(2,hCe,2,4,"tspan",2),n.YNc(3,_Ce,2,1,"ng-container",2),n.qZA()),2&t){var e=n.oxw(2);n.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),n.xp6(1),n.Q6J("ngIf",e.options.showTitle),n.xp6(1),n.Q6J("ngIf",e.options.showUnits),n.xp6(1),n.Q6J("ngIf",e.options.showSubtitle)}}function vCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"image",9)),2&t){var e=n.oxw(2);n.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 yCe(t,r){if(1&t){var e=n.EpF();n.O4$(),n.TgZ(0,"svg",1),n.NdJ("click",function(a){return n.CHM(e),n.oxw().emitClickEvent(a)}),n.TgZ(1,"defs"),n.YNc(2,rCe,3,5,"linearGradient",2),n.YNc(3,iCe,3,5,"radialGradient",2),n.qZA(),n.YNc(4,sCe,3,2,"ng-container",2),n.YNc(5,lCe,1,6,"circle",2),n.YNc(6,dCe,3,2,"ng-container",2),n.YNc(7,gCe,4,6,"text",3),n.YNc(8,vCe,1,5,"image",4),n.qZA()}if(2&t){var i=n.oxw();n.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),n.xp6(2),n.Q6J("ngIf",i.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",i.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",i.options.showBackground),n.xp6(1),n.Q6J("ngIf",i.options.showInnerStroke),n.xp6(1),n.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),n.xp6(1),n.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),n.xp6(1),n.Q6J("ngIf",i.options.showImage)}}var Tx=(0,V.Z)(function t(){(0,j.Z)(this,t),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=void 0,this.imageWidth=void 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}),By=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.elRef=e,this.document=i,this.onClick=new n.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new n.vpe,this._viewportChangedSubscriber=null,this.options=new Tx,this.defaultOptions=new Tx,this._lastPercent=0,this._gradientUUID=null,this.render=function(){o.applyOptions(),o.options.lazy?(null===o.svgElement&&o.draw(o._lastPercent),o.isInViewport&&(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)):(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)},this.polarToCartesian=function(a,s,l,u){var f=u*Math.PI/180;return{x:a+Math.sin(f)*l,y:s-Math.cos(f)*l}},this.draw=function(a){var s=(a=void 0===a?o.options.percent:Math.abs(a))>100?100:a,l=2*o.options.radius+2*o.options.outerStrokeWidth;o.options.showBackground&&(l+=2*o.options.backgroundStrokeWidth+o.max(0,2*o.options.backgroundPadding));var v,C,u={x:l/2,y:l/2},f={x:u.x,y:u.y-o.options.radius},h=o.polarToCartesian(u.x,u.y,o.options.radius,360*(o.options.clockwise?s:100-s)/100);if(100===s&&(h.x=h.x+(o.options.clockwise?-.01:.01)),s>50){var B=o.options.clockwise?[1,1]:[1,0],G=(0,Ut.Z)(B,2);v=G[0],C=G[1]}else{var q=o.options.clockwise?[0,1]:[0,0],ae=(0,Ut.Z)(q,2);v=ae[0],C=ae[1]}var pe=o.options.animateTitle?a:o.options.percent,Ve=pe>o.options.maxPercent?"".concat(o.options.maxPercent.toFixed(o.options.toFixed),"+"):pe.toFixed(o.options.toFixed),Me=o.options.animateSubtitle?a:o.options.percent,Be={x:u.x,y:u.y,textAnchor:"middle",color:o.options.titleColor,fontSize:o.options.titleFontSize,fontWeight:o.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.titleFormat&&"Function"===o.options.titleFormat.constructor.name){var pt=o.options.titleFormat(pe);pt instanceof Array?Be.texts=(0,$t.Z)(pt):Be.texts.push(pt.toString())}else"auto"===o.options.title?Be.texts.push(Ve):o.options.title instanceof Array?Be.texts=(0,$t.Z)(o.options.title):Be.texts.push(o.options.title.toString());var ht={x:u.x,y:u.y,textAnchor:"middle",color:o.options.subtitleColor,fontSize:o.options.subtitleFontSize,fontWeight:o.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.subtitleFormat&&"Function"===o.options.subtitleFormat.constructor.name){var Pe=o.options.subtitleFormat(Me);Pe instanceof Array?ht.texts=(0,$t.Z)(Pe):ht.texts.push(Pe.toString())}else o.options.subtitle instanceof Array?ht.texts=(0,$t.Z)(o.options.subtitle):ht.texts.push(o.options.subtitle.toString());var at={text:"".concat(o.options.units),fontSize:o.options.unitsFontSize,fontWeight:o.options.unitsFontWeight,color:o.options.unitsColor},Ct=0,E=1;if(o.options.showTitle&&(Ct+=Be.texts.length),o.options.showSubtitle&&(Ct+=ht.texts.length),o.options.showTitle){var A,_=(0,cn.Z)(Be.texts);try{for(_.s();!(A=_.n()).done;){var H=A.value;Be.tspans.push({span:H,dy:o.getRelativeY(E,Ct)}),E++}}catch(ft){_.e(ft)}finally{_.f()}}if(o.options.showSubtitle){var re,ee=(0,cn.Z)(ht.texts);try{for(ee.s();!(re=ee.n()).done;){var ge=re.value;ht.tspans.push({span:ge,dy:o.getRelativeY(E,Ct)}),E++}}catch(ft){ee.e(ft)}finally{ee.f()}}null===o._gradientUUID&&(o._gradientUUID=o.uuid()),o.svg={viewBox:"0 0 ".concat(l," ").concat(l),width:o.options.responsive?"100%":l,height:o.options.responsive?"100%":l,backgroundCircle:{cx:u.x,cy:u.y,r:o.options.radius+o.options.outerStrokeWidth/2+o.options.backgroundPadding,fill:o.options.backgroundColor,fillOpacity:o.options.backgroundOpacity,stroke:o.options.backgroundStroke,strokeWidth:o.options.backgroundStrokeWidth},path:{d:"M ".concat(f.x," ").concat(f.y,"\n A ").concat(o.options.radius," ").concat(o.options.radius," 0 ").concat(v," ").concat(C," ").concat(h.x," ").concat(h.y),stroke:o.options.outerStrokeColor,strokeWidth:o.options.outerStrokeWidth,strokeLinecap:o.options.outerStrokeLinecap,fill:"none"},circle:{cx:u.x,cy:u.y,r:o.options.radius-o.options.space-o.options.outerStrokeWidth/2-o.options.innerStrokeWidth/2,fill:"none",stroke:o.options.innerStrokeColor,strokeWidth:o.options.innerStrokeWidth},title:Be,units:at,subtitle:ht,image:{x:u.x-o.options.imageWidth/2,y:u.y-o.options.imageHeight/2,src:o.options.imageSrc,width:o.options.imageWidth,height:o.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+o._gradientUUID,colorStop1:o.options.outerStrokeColor,colorStop2:"transparent"===o.options.outerStrokeGradientStopColor?"#FFF":o.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+o._gradientUUID,colorStop1:o.options.backgroundColor,colorStop2:"transparent"===o.options.backgroundGradientStopColor?"#FFF":o.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(a,s){var u,f,h,v=o.options.startFromZero||a<0?0:a,C=s<0?0:o.min(s,o.options.maxPercent),B=Math.abs(Math.round(C-v));return B>=100?(u=100,f=o.options.animateTitle||o.options.animateSubtitle?Math.round(B/u):1):(u=B,f=1),(h=Math.round(o.options.animationDuration/u))<10&&(h=10,u=o.options.animationDuration/h,f=!o.options.animateTitle&&!o.options.animateSubtitle&&B>100?Math.round(100/u):Math.round(B/u)),f<1&&(f=1),{times:u,step:f,interval:h}},this.animate=function(a,s){o._timerSubscription&&!o._timerSubscription.closed&&o._timerSubscription.unsubscribe();var l=o.options.startFromZero?0:a,u=s,f=o.getAnimationParameters(l,u),h=f.step,v=f.interval,C=l;o._timerSubscription=l<u?(0,op.H)(0,v).subscribe(function(){(C+=h)<=u?!o.options.animateTitle&&!o.options.animateSubtitle&&C>=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())}):(0,op.H)(0,v).subscribe(function(){(C-=h)>=u?!o.options.animateTitle&&!o.options.animateSubtitle&&u>=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())})},this.emitClickEvent=function(a){o.options.renderOnClick&&o.animate(0,o.options.percent),o.onClick.emit(a)},this.applyOptions=function(){for(var a=0,s=Object.keys(o.options);a<s.length;a++){var l=s[a];o.hasOwnProperty(l)&&void 0!==o[l]?o.options[l]=o[l]:o.templateOptions&&void 0!==o.templateOptions[l]&&(o.options[l]=o.templateOptions[l])}o.options.radius=Math.abs(+o.options.radius),o.options.space=+o.options.space,o.options.percent=+o.options.percent>0?+o.options.percent:0,o.options.maxPercent=Math.abs(+o.options.maxPercent),o.options.animationDuration=Math.abs(o.options.animationDuration),o.options.outerStrokeWidth=Math.abs(+o.options.outerStrokeWidth),o.options.innerStrokeWidth=Math.abs(+o.options.innerStrokeWidth),o.options.backgroundPadding=+o.options.backgroundPadding},this.getRelativeY=function(a,s){return(1*(a-s/2)-.18).toFixed(2)+"em"},this.min=function(a,s){return a<s?a:s},this.max=function(a,s){return a>s?a:s},this.uuid=function(){var a=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var u=(a+16*Math.random())%16|0;return a=Math.floor(a/16),("x"==l?u:3&u|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var a=this.elRef.nativeElement.getElementsByTagName("svg");a.length>0&&(this.svgElement=a[0])}},this.checkViewport=function(){o.findSvgElement();var a=o.isInViewport;o.isInViewport=o.isElementInViewport(o.svgElement),a!==o.isInViewport&&o.onViewportChanged.emit({oldValue:a,newValue:o.isInViewport})},this.onScroll=function(a){o.checkViewport()},this.loadEventsForLazyMode=function(){if(o.options.lazy){o.document.addEventListener("scroll",o.onScroll,!0),o.window.addEventListener("resize",o.onScroll,!0),null===o._viewportChangedSubscriber&&(o._viewportChangedSubscriber=o.onViewportChanged.subscribe(function(s){s.oldValue;s.newValue&&o.render()}));var a=(0,op.H)(0,50).subscribe(function(){null===o.svgElement?o.checkViewport():a.unsubscribe()})}},this.unloadEventsForLazyMode=function(){o.document.removeEventListener("scroll",o.onScroll,!0),o.window.removeEventListener("resize",o.onScroll,!0),null!==o._viewportChangedSubscriber&&(o._viewportChangedSubscriber.unsubscribe(),o._viewportChangedSubscriber=null)},this.document=i,this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,V.Z)(t,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{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())}}]),t}();By.\u0275fac=function(r){return new(r||By)(n.Y36(Tx),n.Y36(n.SBq),n.Y36(wt.K0))},By.\u0275cmp=n.Xpm({type:By,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:[n.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&&n.YNc(0,yCe,9,11,"svg",0),2&r&&n.Q6J("ngIf",e.svg)},directives:[wt.O5,wt.sg],encapsulation:2}),By.ctorParameters=function(){return[{type:Tx},{type:n.SBq},{type:void 0,decorators:[{type:n.tBr,args:[wt.K0]}]}]},By.propDecorators={onClick:[{type:n.r_U}],name:[{type:n.IIB}],class:[{type:n.IIB}],backgroundGradient:[{type:n.IIB}],backgroundColor:[{type:n.IIB}],backgroundGradientStopColor:[{type:n.IIB}],backgroundOpacity:[{type:n.IIB}],backgroundStroke:[{type:n.IIB}],backgroundStrokeWidth:[{type:n.IIB}],backgroundPadding:[{type:n.IIB}],radius:[{type:n.IIB}],space:[{type:n.IIB}],percent:[{type:n.IIB}],toFixed:[{type:n.IIB}],maxPercent:[{type:n.IIB}],renderOnClick:[{type:n.IIB}],units:[{type:n.IIB}],unitsFontSize:[{type:n.IIB}],unitsFontWeight:[{type:n.IIB}],unitsColor:[{type:n.IIB}],outerStrokeGradient:[{type:n.IIB}],outerStrokeWidth:[{type:n.IIB}],outerStrokeColor:[{type:n.IIB}],outerStrokeGradientStopColor:[{type:n.IIB}],outerStrokeLinecap:[{type:n.IIB}],innerStrokeColor:[{type:n.IIB}],innerStrokeWidth:[{type:n.IIB}],titleFormat:[{type:n.IIB}],title:[{type:n.IIB}],titleColor:[{type:n.IIB}],titleFontSize:[{type:n.IIB}],titleFontWeight:[{type:n.IIB}],subtitleFormat:[{type:n.IIB}],subtitle:[{type:n.IIB}],subtitleColor:[{type:n.IIB}],subtitleFontSize:[{type:n.IIB}],subtitleFontWeight:[{type:n.IIB}],imageSrc:[{type:n.IIB}],imageHeight:[{type:n.IIB}],imageWidth:[{type:n.IIB}],animation:[{type:n.IIB}],animateTitle:[{type:n.IIB}],animateSubtitle:[{type:n.IIB}],animationDuration:[{type:n.IIB}],showTitle:[{type:n.IIB}],showSubtitle:[{type:n.IIB}],showUnits:[{type:n.IIB}],showImage:[{type:n.IIB}],showBackground:[{type:n.IIB}],showInnerStroke:[{type:n.IIB}],clockwise:[{type:n.IIB}],responsive:[{type:n.IIB}],startFromZero:[{type:n.IIB}],showZeroOuterStroke:[{type:n.IIB}],lazy:[{type:n.IIB}],templateOptions:[{type:n.IIB,args:["options"]}]};var HC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[{provide:Tx,useValue:e}]}}}]),t}();HC.\u0275fac=function(r){return new(r||HC)},HC.\u0275mod=n.oAB({type:HC}),HC.\u0275inj=n.cJS({imports:[[wt.ez]]});var cH=function(){function t(r){(0,j.Z)(this,t),this.rawFile=r;var e=function bCe(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}(r),i=e?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,V.Z)(t,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+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}}]),t}(),CCe=function(){function t(r,e,i){(0,j.Z)(this,t),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.index=void 0,this.uploader=r,this.some=e,this.options=i,this.file=new cH(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,V.Z)(t,[{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}}]),t}(),jC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"getMimeClass",value:function(e){var i="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?i="image":e.type.match("video.*")?i="video":e.type.match("audio.*")?i="audio":"application/pdf"===e.type?i="pdf":-1!==this.mime_compress.indexOf(e.type)?i="compress":-1!==this.mime_doc.indexOf(e.type)?i="doc":-1!==this.mime_xsl.indexOf(e.type)?i="xls":-1!==this.mime_ppt.indexOf(e.type)&&(i="ppt"),"application"===i&&(i=this.fileTypeDetection(e.name)),i}},{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]}}]),t}();jC.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"],jC.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"],jC.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"],jC.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],jC.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 eg=function(){function t(r){(0,j.Z)(this,t),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},this.setOptions(r),this.response=new n.vpe}return(0,V.Z)(t,[{key:"setOptions",value:function(e){this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;i<this.queue.length;i++)this.queue[i].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var u,a=this,s=[],l=(0,cn.Z)(e);try{for(l.s();!(u=l.n()).done;){var f=u.value;s.push(f)}}catch(B){l.e(B)}finally{l.f()}var h=this._getFilters(o),v=this.queue.length,C=[];s.map(function(B){i||(i=a.options);var G=new cH(B);if(a._isValidFile(G,h,i)){var q=new CCe(a,B,i);C.push(q),a.queue.push(q),a._onAfterAddingFile(q)}else{var ae=h[a._failFilterIndex];a._onWhenAddingFileFailed(G,ae,i)}}),this.queue.length!==v&&(this._onAfterAddingAll(C),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 wCe(t){return File&&t instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof cH}},{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:"destroy",value:function(){}},{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){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.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(jC.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)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(G){var q=i.options.additionalParameter[G];"string"==typeof q&&q.indexOf("{{file_name}}")>=0&&(q=q.replace("{{file_name}}",e.file.name)),s.append(G,q)}),this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(G){var q=Math.round(G.lengthComputable?100*G.loaded/G.total:0);i._onProgressItem(e,q)},a.onload=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G),ae=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+ae+"Item"](e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onerror=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onErrorItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onabort=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onCancelItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var f,u=(0,cn.Z)(this.options.headers);try{for(u.s();!(f=u.n()).done;){var h=f.value;a.setRequestHeader(h.name,h.value)}}catch(G){u.e(G)}finally{u.f()}}if(e.headers.length){var C,v=(0,cn.Z)(e.headers);try{for(v.s();!(C=v.n()).done;){var B=C.value;a.setRequestHeader(B.name,B.value)}}catch(G){v.e(G)}finally{v.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(G){return a.send(JSON.stringify(G))}):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){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){var i=e.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.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++,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)}}]),t}(),Zc=function(){function t(r){(0,j.Z)(this,t),this.onFileSelected=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e=this.element.nativeElement.files,i=this.getOptions(),o=this.getFilters();this.uploader.addToQueue(e,i,o),this.onFileSelected.emit(e),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),t}();Zc.\u0275fac=function(r){return new(r||Zc)(n.Y36(n.SBq))},Zc.\u0275dir=n.lG2({type:Zc,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&n.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),Zc.ctorParameters=function(){return[{type:n.SBq}]},Zc.propDecorators={uploader:[{type:n.IIB}],onFileSelected:[{type:n.r_U}],onChange:[{type:n.L6J,args:["change"]}]};var zC=function(){function t(r){(0,j.Z)(this,t),this.fileOver=new n.vpe,this.onFileDrop=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"onDrop",value:function(e){var i=this._getTransfer(e);if(i){var o=this.getOptions(),a=this.getFilters();this._preventAndStop(e),this.uploader.addToQueue(i.files,o,a),this.fileOver.emit(!1),this.onFileDrop.emit(i.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"))}}]),t}();zC.\u0275fac=function(r){return new(r||zC)(n.Y36(n.SBq))},zC.\u0275dir=n.lG2({type:zC,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&n.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"}}),zC.ctorParameters=function(){return[{type:n.SBq}]},zC.propDecorators={uploader:[{type:n.IIB}],fileOver:[{type:n.r_U}],onFileDrop:[{type:n.r_U}],onDrop:[{type:n.L6J,args:["drop",["$event"]]}],onDragOver:[{type:n.L6J,args:["dragover",["$event"]]}],onDragLeave:[{type:n.L6J,args:["dragleave",["$event"]]}]};var WC=(0,V.Z)(function t(){(0,j.Z)(this,t)});WC.\u0275fac=function(r){return new(r||WC)},WC.\u0275mod=n.oAB({type:WC}),WC.\u0275inj=n.cJS({imports:[[wt.ez]]});var dH=function(){function t(){}return Object.defineProperty(t.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(t.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),t}(),kCe=function(){var t=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}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),A$=function(t){function r(){return t.call(this)||this}return kCe(r,t),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=n.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(dH);A$.ctorParameters=function(){return[]};var O$=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:dH,useClass:A$}]}),t}();O$.ctorParameters=function(){return[]};var sl=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),Fy=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this)}return(0,V.Z)(e)}(sl);Fy.\u0275fac=function(r){return new(r||Fy)},Fy.\u0275prov=n.Yz7({token:Fy,factory:Fy.\u0275fac}),Fy.ctorParameters=function(){return[]};var VC=(0,V.Z)(function t(){(0,j.Z)(this,t)});VC.\u0275fac=function(r){return new(r||VC)},VC.\u0275mod=n.oAB({type:VC}),VC.\u0275inj=n.cJS({providers:[{provide:sl,useClass:Fy}]});var Ex=m(4942),Mx=m(7326),YC=m(1737),TCe=m(4450),I$=m(1961),j5=m(8514),Uy=m(8896),ECe=m(1762),P$=m(2014),Vd=m(7221),Sx=m(1406),MCe=m(8127),GC=m(7224),SCe=m(4327),R$=m(537),fH=m(9146),Lh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.id=r,this.url=e}),z5=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=l,a}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),Zh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Lh),pH=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).reason=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),L$=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).error=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Lh),xCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),DCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),ACe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u}return(0,V.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}(Lh),OCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),ICe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),Z$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),N$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),PCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),t}(),RCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),t}(),LCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),t}(),ZCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),t}(),B$=function(){function t(r,e,i){(0,j.Z)(this,t),this.routerEvent=r,this.position=e,this.anchor=i}return(0,V.Z)(t,[{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,"')")}}]),t}(),Fi="primary",NCe=function(){function t(r){(0,j.Z)(this,t),this.params=r||{}}return(0,V.Z)(t,[{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)}}]),t}();function qC(t){return new NCe(t)}var F$="ngNavigationCancelingError";function hH(t){var r=Error("NavigationCancelingError: "+t);return r[F$]=!0,r}function FCe(t,r,e){var i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<t.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function ap(t,r){var e=t?Object.keys(t):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(!U$(t[o=e[a]],r[o]))return!1;return!0}function U$(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;var e=(0,$t.Z)(t).sort(),i=(0,$t.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return t===r}function H$(t){return Array.prototype.concat.apply([],t)}function j$(t){return t.length>0?t[t.length-1]:null}function ll(t,r){for(var e in t)t.hasOwnProperty(e)&&r(t[e],e)}function sp(t){return(0,n.CqO)(t)?t:(0,n.QGY)(t)?(0,el.D)(Promise.resolve(t)):(0,pr.of)(t)}var jCe={exact:function V$(t,r,e){if(!jy(t.segments,r.segments)||!W5(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!t.children[i]||!V$(t.children[i],r.children[i],e))return!1;return!0},subset:Y$},z$={exact:function zCe(t,r){return ap(t,r)},subset:function WCe(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(function(e){return U$(t[e],r[e])})},ignored:function(){return!0}};function W$(t,r,e){return jCe[e.paths](t.root,r.root,e.matrixParams)&&z$[e.queryParams](t.queryParams,r.queryParams)&&!("exact"===e.fragment&&t.fragment!==r.fragment)}function Y$(t,r,e){return G$(t,r,r.segments,e)}function G$(t,r,e,i){if(t.segments.length>e.length){var o=t.segments.slice(0,e.length);return!(!jy(o,e)||r.hasChildren()||!W5(o,e,i))}if(t.segments.length===e.length){if(!jy(t.segments,e)||!W5(t.segments,e,i))return!1;for(var a in r.children)if(!t.children[a]||!Y$(t.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,t.segments.length),l=e.slice(t.segments.length);return!!(jy(t.segments,s)&&W5(t.segments,s,i)&&t.children[Fi])&&G$(t.children[Fi],r,l,i)}function W5(t,r,e){return r.every(function(i,o){return z$[e](t[o].parameters,i.parameters)})}var Hy=function(){function t(r,e,i){(0,j.Z)(this,t),this.root=r,this.queryParams=e,this.fragment=i}return(0,V.Z)(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return GCe.serialize(this)}}]),t}(),Vi=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this.segments=r,this.children=e,this.parent=null,ll(e,function(o,a){return o.parent=i})}return(0,V.Z)(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return V5(this)}}]),t}(),xx=function(){function t(r,e){(0,j.Z)(this,t),this.path=r,this.parameters=e}return(0,V.Z)(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=qC(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return X$(this)}}]),t}();function jy(t,r){return t.length===r.length&&t.every(function(e,i){return e.path===r[i].path})}var q$=(0,V.Z)(function t(){(0,j.Z)(this,t)}),K$=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"parse",value:function(e){var i=new nwe(e);return new Hy(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(Dx(e.root,!0)),o=function JCe(t){var r=Object.keys(t).map(function(e){var i=t[e];return Array.isArray(i)?i.map(function(o){return"".concat(Y5(e),"=").concat(Y5(o))}).join("&"):"".concat(Y5(e),"=").concat(Y5(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function qCe(t){return encodeURI(t)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),t}(),GCe=new K$;function V5(t){return t.segments.map(function(r){return X$(r)}).join("/")}function Dx(t,r){if(!t.hasChildren())return V5(t);if(r){var e=t.children[Fi]?Dx(t.children[Fi],!1):"",i=[];return ll(t.children,function(a,s){s!==Fi&&i.push("".concat(s,":").concat(Dx(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function YCe(t,r){var e=[];return ll(t.children,function(i,o){o===Fi&&(e=e.concat(r(i,o)))}),ll(t.children,function(i,o){o!==Fi&&(e=e.concat(r(i,o)))}),e}(t,function(a,s){return s===Fi?[Dx(t.children[Fi],!1)]:["".concat(s,":").concat(Dx(a,!1))]});return 1===Object.keys(t.children).length&&null!=t.children[Fi]?"".concat(V5(t),"/").concat(o[0]):"".concat(V5(t),"/(").concat(o.join("//"),")")}function J$(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Y5(t){return J$(t).replace(/%3B/gi,";")}function mH(t){return J$(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function G5(t){return decodeURIComponent(t)}function Q$(t){return G5(t.replace(/\+/g,"%20"))}function X$(t){return"".concat(mH(t.path)).concat(function KCe(t){return Object.keys(t).map(function(r){return";".concat(mH(r),"=").concat(mH(t[r]))}).join("")}(t.parameters))}var QCe=/^[^\/()?;=#]+/;function q5(t){var r=t.match(QCe);return r?r[0]:""}var XCe=/^[^=?&#]+/;var ewe=/^[^&#]+/;var nwe=function(){function t(r){(0,j.Z)(this,t),this.url=r,this.remaining=r}return(0,V.Z)(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vi([],{}):new Vi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(o[Fi]=new Vi(e,i)),o}},{key:"parseSegment",value:function(){var e=q5(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new xx(G5(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=q5(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=q5(this.remaining);a&&(o=a,this.capture(o))}e[G5(i)]=G5(o)}}},{key:"parseQueryParam",value:function(e){var i=function $Ce(t){var r=t.match(XCe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function twe(t){var r=t.match(ewe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=Q$(i),l=Q$(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=q5(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Fi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[Fi]:new Vi([],l),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),t}(),$$=function(){function t(r){(0,j.Z)(this,t),this._root=r}return(0,V.Z)(t,[{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=_H(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=_H(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=gH(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 gH(e,this._root).map(function(i){return i.value})}}]),t}();function _H(t,r){if(t===r.value)return r;var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=_H(t,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function gH(t,r){if(t===r.value)return[r];var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=gH(t,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var Nh=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.children=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function KC(t){var r={};return t&&t.children.forEach(function(e){return r[e.value.outlet]=e}),r}var eee=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,i)).snapshot=o,vH((0,Mx.Z)(a),i),a}return(0,V.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}($$);function tee(t,r){var e=function rwe(t,r){var s=new K5([],{},{},"",{},Fi,r,null,t.root,-1,{});return new ree("",new Nh(s,[]))}(t,r),i=new go.X([new xx("",{})]),o=new go.X({}),a=new go.X({}),s=new go.X({}),l=new go.X(""),u=new xr(i,o,s,l,a,Fi,r,e.root);return u.snapshot=e.root,new eee(new Nh(u,[]),e)}var xr=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this._futureSnapshot=u}return(0,V.Z)(t,[{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,mr.U)(function(e){return qC(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mr.U)(function(e){return qC(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function nee(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=t.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 iwe(e.slice(i))}function iwe(t){return t.reduce(function(r,e){return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign({},r.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var K5=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=h,this._resolve=v}return(0,V.Z)(t,[{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=qC(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(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,"')")}}]),t}(),ree=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).url=i,vH((0,Mx.Z)(a),o),a}return(0,V.Z)(e,[{key:"toString",value:function(){return iee(this._root)}}]),e}($$);function vH(t,r){r.value._routerState=t,r.children.forEach(function(e){return vH(t,e)})}function iee(t){var r=t.children.length>0?" { ".concat(t.children.map(iee).join(", ")," } "):"";return"".concat(t.value).concat(r)}function yH(t){if(t.snapshot){var r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ap(r.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),r.fragment!==e.fragment&&t.fragment.next(e.fragment),ap(r.params,e.params)||t.params.next(e.params),function UCe(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;++e)if(!ap(t[e],r[e]))return!1;return!0}(r.url,e.url)||t.url.next(e.url),ap(r.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function bH(t,r){var e=ap(t.params,r.params)&&function VCe(t,r){return jy(t,r)&&t.every(function(e,i){return ap(e.parameters,r[i].parameters)})}(t.url,r.url),i=!t.parent!=!r.parent;return e&&!i&&(!t.parent||bH(t.parent,r.parent))}function Ax(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function awe(t,r,e){return r.children.map(function(i){var a,o=(0,cn.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(t.shouldReuseRoute(i.value,s.value.snapshot))return Ax(t,i,s)}}catch(l){o.e(l)}finally{o.f()}return Ax(t,i)})}(t,r,e);return new Nh(i,o)}if(t.shouldAttach(r.value)){var a=t.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(f){return Ax(t,f)}),s}}var l=function swe(t){return new xr(new go.X(t.url),new go.X(t.params),new go.X(t.queryParams),new go.X(t.fragment),new go.X(t.data),t.outlet,t.component,t)}(r.value),u=r.children.map(function(f){return Ax(t,f)});return new Nh(l,u)}function lwe(t,r,e,i,o){if(0===e.length)return CH(r.root,r.root,r.root,i,o);var a=function uwe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new aee(!0,0,t);var r=0,e=!1,i=t.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return ll(a.outlets,function(u,f){l[f]="string"==typeof u?u.split("/"):u}),[].concat((0,$t.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,$t.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,$t.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,f){0==f&&"."===u||(0==f&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,$t.Z)(o),[a])},[]);return new aee(e,r,i)}(e);if(a.toRoot())return CH(r.root,r.root,new Vi([],{}),i,o);var s=function cwe(t,r,e){if(t.isAbsolute)return new wH(r.root,!0,0);if(-1===e.snapshot._lastPathIndex){var i=e.snapshot._urlSegment,o=i===r.root;return new wH(i,o,0)}var a=J5(t.commands[0])?0:1,s=e.snapshot._lastPathIndex+a;return function dwe(t,r,e){for(var i=t,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new wH(i,!1,o-a)}(e.snapshot._urlSegment,s,t.numberOfDoubleDots)}(a,r,t),l=s.processChildren?Q5(s.segmentGroup,s.index,a.commands):see(s.segmentGroup,s.index,a.commands);return CH(r.root,s.segmentGroup,l,i,o)}function J5(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ox(t){return"object"==typeof t&&null!=t&&t.outlets}function CH(t,r,e,i,o){var a={};if(i&&ll(i,function(l,u){a[u]=Array.isArray(l)?l.map(function(f){return"".concat(f)}):"".concat(l)}),t===r)return new Hy(e,a,o);var s=oee(t,r,e);return new Hy(s,a,o)}function oee(t,r,e){var i={};return ll(t.children,function(o,a){i[a]=o===r?e:oee(o,r,e)}),new Vi(t.segments,i)}var aee=function(){function t(r,e,i){if((0,j.Z)(this,t),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&J5(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(Ox);if(o&&o!==j$(i))throw new Error("{outlets:{}} has to be the last command")}return(0,V.Z)(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}();var wH=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.segmentGroup=r,this.processChildren=e,this.index=i});function see(t,r,e){if(t||(t=new Vi([],{})),0===t.segments.length&&t.hasChildren())return Q5(t,r,e);var i=function pwe(t,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(i>=e.length)return a;var s=t.segments[o],l=e[i];if(Ox(l))break;var u="".concat(l),f=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!uee(u,f,s))return a;i+=2}else{if(!uee(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){var a=new Vi(t.segments.slice(0,i.pathIndex),{});return a.children[Fi]=new Vi(t.segments.slice(i.pathIndex),t.children),Q5(a,0,o)}return i.match&&0===o.length?new Vi(t.segments,{}):i.match&&!t.hasChildren()?kH(t,r,e):i.match?Q5(t,0,o):kH(t,r,e)}function Q5(t,r,e){if(0===e.length)return new Vi(t.segments,{});var i=function fwe(t){return Ox(t[0])?t[0].outlets:(0,Ex.Z)({},Fi,t)}(e),o={};return ll(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=see(t.children[s],r,a))}),ll(t.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new Vi(t.segments,o)}function kH(t,r,e){for(var i=t.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(Ox(a)){var s=hwe(a.outlets);return new Vi(i,s)}if(0===o&&J5(e[0])){var l=t.segments[r];i.push(new xx(l.path,lee(e[0]))),o++}else{var u=Ox(a)?a.outlets[Fi]:"".concat(a),f=o<e.length-1?e[o+1]:null;u&&f&&J5(f)?(i.push(new xx(u,lee(f))),o+=2):(i.push(new xx(u,{})),o++)}}return new Vi(i,{})}function hwe(t){var r={};return ll(t,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=kH(new Vi([],{}),0,e))}),r}function lee(t){var r={};return ll(t,function(e,i){return r[i]="".concat(e)}),r}function uee(t,r,e){return t==e.path&&ap(r,e.parameters)}var _we=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,V.Z)(t,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),yH(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=KC(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=KC(e),l=0,u=Object.keys(s);l<u.length;l++){var f=u[l];this.deactivateRouteAndItsChildren(s[f],a)}if(o&&o.outlet){var h=o.outlet.detach(),v=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:v})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=KC(e),l=0,u=Object.keys(s);l<u.length;l++){var f=u[l];this.deactivateRouteAndItsChildren(s[f],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=KC(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new ZCe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new RCe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a=e.value,s=i?i.value:null;if(yH(a),a===s)if(a.component){var l=o.getOrCreateContext(a.outlet);this.activateChildRoutes(e,i,l.children)}else this.activateChildRoutes(e,i,o);else if(a.component){var u=o.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){var f=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),u.children.onOutletReAttached(f.contexts),u.attachRef=f.componentRef,u.route=f.route.value,u.outlet&&u.outlet.attach(f.componentRef,f.route.value),yH(f.route.value),this.activateChildRoutes(e,null,u.children)}else{var h=function gwe(t){for(var r=t.parent;r;r=r.parent){var e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(a.snapshot),v=h?h.module.componentFactoryResolver:null;u.attachRef=null,u.route=a,u.resolver=v,u.outlet&&u.outlet.activateWith(a,v),this.activateChildRoutes(e,null,u.children)}}else this.activateChildRoutes(e,null,o)}}]),t}();var TH=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.routes=r,this.module=e});function tg(t){return"function"==typeof t}function zy(t){return t instanceof Hy}var Ix=Symbol("INITIAL_VALUE");function Px(){return(0,xo.w)(function(t){return(0,uh.aj)(t.map(function(r){return r.pipe((0,no.q)(1),(0,ua.O)(Ix))})).pipe((0,P$.R)(function(r,e){var i=!1;return e.reduce(function(o,a,s){return o!==Ix?o:(a===Ix&&(i=!0),i||!1!==a&&s!==e.length-1&&!zy(a)?o:a)},r)},Ix),(0,Ei.h)(function(r){return r!==Ix}),(0,mr.U)(function(r){return zy(r)?r:!0===r}),(0,no.q)(1))})}var kwe=(0,V.Z)(function t(){(0,j.Z)(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rx,this.attachRef=null}),Rx=function(){function t(){(0,j.Z)(this,t),this.contexts=new Map}return(0,V.Z)(t,[{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 kwe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),t}(),Bh=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.parentContexts=r,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=o||Fi,r.onChildOutletCreated(this.name,this)}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){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.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;var a=e._futureSnapshot.routeConfig.component,s=(i=i||this.resolver).resolveComponentFactory(a),l=this.parentContexts.getOrCreateContext(this.name).children,u=new Twe(e,l,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),t}();Bh.\u0275fac=function(r){return new(r||Bh)(n.Y36(Rx),n.Y36(n.s_b),n.Y36(n._Vd),n.$8M("name"),n.Y36(n.sBO))},Bh.\u0275dir=n.lG2({type:Bh,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var Twe=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.childContexts=e,this.parent=i}return(0,V.Z)(t,[{key:"get",value:function(e,i){return e===xr?this.route:e===Rx?this.childContexts:this.parent.get(e,i)}}]),t}(),JC=(0,V.Z)(function t(){(0,j.Z)(this,t)});function cee(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=0;e<t.length;e++){var i=t[e],o=Mwe(r,i);Ewe(i,o)}}function Ewe(t,r){t.children&&cee(t.children,r)}function Mwe(t,r){return r?t||r.path?t&&!r.path?"".concat(t,"/"):!t&&r.path?r.path:"".concat(t,"/").concat(r.path):"":t}function EH(t){var r=t.children&&t.children.map(EH),e=r?Object.assign(Object.assign({},t),{children:r}):Object.assign({},t);return!e.component&&(r||e.loadChildren)&&e.outlet&&e.outlet!==Fi&&(e.component=JC),e}function Nc(t){return t.outlet||Fi}function dee(t,r){var e=t.filter(function(i){return Nc(i)===r});return e.push.apply(e,(0,$t.Z)(t.filter(function(i){return Nc(i)!==r}))),e}JC.\u0275fac=function(r){return new(r||JC)},JC.\u0275cmp=n.Xpm({type:JC,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,e){1&r&&n._UZ(0,"router-outlet")},directives:[Bh],encapsulation:2});var fee={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function X5(t,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},fee):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||FCe)(e,t,r);if(!a)return Object.assign({},fee);var s={};ll(a.posParams,function(u,f){s[f]=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 $5(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Dwe(t,e,i)){var a=new Vi(r,xwe(t,r,i,new Vi(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Awe(t,e,i)){var s=new Vi(t.segments,Swe(t,r,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new Vi(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Swe(t,r,e,i,o,a){var u,s={},l=(0,cn.Z)(i);try{for(l.s();!(u=l.n()).done;){var f=u.value;if(eZ(t,e,f)&&!o[Nc(f)]){var h=new Vi([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:r.length,s[Nc(f)]=h}}}catch(v){l.e(v)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function xwe(t,r,e,i){var o={};o[Fi]=i,i._sourceSegment=t,i._segmentIndexShift=r.length;var s,a=(0,cn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&Nc(l)!==Fi){var u=new Vi([],{});u._sourceSegment=t,u._segmentIndexShift=r.length,o[Nc(l)]=u}}}catch(f){a.e(f)}finally{a.f()}return o}function Dwe(t,r,e){return e.some(function(i){return eZ(t,r,i)&&Nc(i)!==Fi})}function Awe(t,r,e){return e.some(function(i){return eZ(t,r,i)})}function eZ(t,r,e){return(!(t.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function pee(t,r,e,i){return!!(Nc(t)===i||i!==Fi&&eZ(r,e,t))&&("**"===t.path||X5(r,t,e).matched)}function hee(t,r,e){return 0===r.length&&!t.children[e]}var tZ=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.segmentGroup=r||null}),mee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.urlTree=r});function Lx(t){return(0,YC._)(new tZ(t))}function _ee(t){return(0,YC._)(new mee(t))}function Owe(t){return(0,YC._)(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}var Rwe=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(n.h0i)}return(0,V.Z)(t,[{key:"apply",value:function(){var e=this,i=$5(this.urlTree.root,[],[],this.config).segmentGroup,o=new Vi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,Fi).pipe((0,mr.U)(function(l){return e.createUrlTree(MH(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Vd.K)(function(l){if(l instanceof mee)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof tZ?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Fi).pipe((0,mr.U)(function(s){return i.createUrlTree(MH(s),e.queryParams,e.fragment)})).pipe((0,Vd.K)(function(s){throw s instanceof tZ?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,i,o){var a=e.segments.length>0?new Vi([],(0,Ex.Z)({},Fi,e)):e;return new Hy(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,mr.U)(function(s){return new Vi([],s)})):this.expandSegment(e,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(e,i,o){for(var a=this,s=[],l=0,u=Object.keys(o.children);l<u.length;l++){var f=u[l];"primary"===f?s.unshift(f):s.push(f)}return(0,el.D)(s).pipe((0,Sx.b)(function(h){var v=o.children[h],C=dee(i,h);return a.expandSegmentGroup(e,C,v,h).pipe((0,mr.U)(function(B){return{segment:B,outlet:h}}))}),(0,P$.R)(function(h,v){return h[v.outlet]=v.segment,h},{}),(0,MCe.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,el.D)(o).pipe((0,Sx.b)(function(f){return u.expandSegmentAgainstRoute(e,i,o,f,a,s,l).pipe((0,Vd.K)(function(v){if(v instanceof tZ)return(0,pr.of)(null);throw v}))}),(0,GC.P)(function(f){return!!f}),(0,Vd.K)(function(f,h){if(f instanceof TCe.K||"EmptyError"===f.name)return hee(i,a,s)?(0,pr.of)(new Vi([],{})):Lx(i);throw f}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return pee(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):Lx(i):Lx(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("/")?_ee(l):this.lineralizeSegments(o,l).pipe((0,Ea.zg)(function(u){var f=new Vi(u,{});return s.expandSegment(e,f,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,f=X5(i,a,s),h=f.matched,v=f.consumedSegments,C=f.remainingSegments,B=f.positionalParamSegments;if(!h)return Lx(i);var G=this.applyRedirectCommands(v,a.redirectTo,B);return a.redirectTo.startsWith("/")?_ee(G):this.lineralizeSegments(a,G).pipe((0,Ea.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;if("**"===o.path)return o.loadChildren?(o._loadedConfig?(0,pr.of)(o._loadedConfig):this.configLoader.load(e.injector,o)).pipe((0,mr.U)(function(G){return o._loadedConfig=G,new Vi(a,{})})):(0,pr.of)(new Vi(a,{}));var f=X5(i,o,a),h=f.matched,v=f.consumedSegments,C=f.remainingSegments;return h?this.getChildConfig(e,o,a).pipe((0,Ea.zg)(function(G){var q=G.module,ae=G.routes,pe=$5(i,v,C,ae),Ve=pe.segmentGroup,Me=pe.slicedSegments,Be=new Vi(Ve.segments,Ve.children);if(0===Me.length&&Be.hasChildren())return l.expandChildren(q,ae,Be).pipe((0,mr.U)(function(at){return new Vi(v,at)}));if(0===ae.length&&0===Me.length)return(0,pr.of)(new Vi(v,{}));var ht=Nc(o)===s;return l.expandSegment(q,Be,ae,Me,ht?Fi:s,!0).pipe((0,mr.U)(function(at){return new Vi(v.concat(at.segments),at.children)}))})):Lx(i)}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,pr.of)(new TH(i.children,e)):i.loadChildren?void 0!==i._loadedConfig?(0,pr.of)(i._loadedConfig):this.runCanLoadGuards(e.injector,i,o).pipe((0,Ea.zg)(function(s){return s?a.configLoader.load(e.injector,i).pipe((0,mr.U)(function(l){return i._loadedConfig=l,l})):function Iwe(t){return(0,YC._)(hH("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}(i)})):(0,pr.of)(new TH([],e))}},{key:"runCanLoadGuards",value:function(e,i,o){var a=this,s=i.canLoad;if(!s||0===s.length)return(0,pr.of)(!0);var l=s.map(function(u){var h,f=e.get(u);if(function ywe(t){return t&&tg(t.canLoad)}(f))h=f.canLoad(i,o);else{if(!tg(f))throw new Error("Invalid CanLoad guard");h=f(i,o)}return sp(h)});return(0,pr.of)(l).pipe(Px(),(0,ms.b)(function(u){if(zy(u)){var f=hH('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw f.url=u,f}}),(0,mr.U)(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,pr.of)(o);if(a.numberOfChildren>1||!a.children[Fi])return Owe(e.redirectTo);a=a.children[Fi]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreatreUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new Hy(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(f,h){u[h]=s.createSegmentGroup(e,f,o,a)}),new Vi(l,u)}},{key:"createSegments",value:function(e,i,o,a){var s=this;return i.map(function(l){return l.path.startsWith(":")?s.findPosParam(e,l,a):s.findOrReturn(l,o)})}},{key:"findPosParam",value:function(e,i,o){var a=o[i.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,cn.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}}]),t}();function MH(t){for(var r={},e=0,i=Object.keys(t.children);e<i.length;e++){var o=i[e],s=MH(t.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function Lwe(t){if(1===t.numberOfChildren&&t.children[Fi]){var r=t.children[Fi];return new Vi(t.segments.concat(r.segments),r.children)}return t}(new Vi(t.segments,r))}function Zwe(t,r,e,i){return(0,xo.w)(function(o){return function Pwe(t,r,e,i,o){return new Rwe(t,r,e,i,o).apply()}(t,r,e,o.extractedUrl,i).pipe((0,mr.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var gee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.path=r,this.route=this.path[this.path.length-1]}),nZ=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.component=r,this.route=e});function Nwe(t,r,e){var i=t._root;return Zx(i,r?r._root:null,e,[i.value])}function rZ(t,r,e){var i=function Fwe(t){if(!t)return null;for(var r=t.parent;r;r=r.parent){var e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(r);return(i?i.module.injector:e).get(t)}function Zx(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=KC(r);return t.children.forEach(function(s){Uwe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),ll(a,function(s,l){return Nx(s,e.getContext(l),o)}),o}function Uwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=r?r.value:null,l=e?e.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Hwe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new gee(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?Zx(t,r,l?l.children:null,i,o):Zx(t,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new nZ(l.outlet.component,s))}else s&&Nx(r,l,o),o.canActivateChecks.push(new gee(i)),a.component?Zx(t,null,l?l.children:null,i,o):Zx(t,null,e,i,o);return o}function Hwe(t,r,e){if("function"==typeof e)return e(t,r);switch(e){case"pathParamsChange":return!jy(t.url,r.url);case"pathParamsOrQueryParamsChange":return!jy(t.url,r.url)||!ap(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bH(t,r)||!ap(t.queryParams,r.queryParams);default:return!bH(t,r)}}function Nx(t,r,e){var i=KC(t),o=t.value;ll(i,function(a,s){o.component?Nx(a,r?r.children.getContext(s):null,e):Nx(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new nZ(r.outlet.component,o)):e.canDeactivateChecks.push(new nZ(null,o))}function jwe(t,r){return(0,Ea.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,pr.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function zwe(t,r,e,i){return(0,el.D)(t).pipe((0,Ea.zg)(function(o){return function Kwe(t,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,pr.of)(!0);var s=a.map(function(l){var f,u=rZ(l,r,o);if(function wwe(t){return t&&tg(t.canDeactivate)}(u))f=sp(u.canDeactivate(t,r,e,i));else{if(!tg(u))throw new Error("Invalid CanDeactivate guard");f=sp(u(t,r,e,i))}return f.pipe((0,GC.P)())});return(0,pr.of)(s).pipe(Px())}(o.component,o.route,e,r,i)}),(0,GC.P)(function(o){return!0!==o},!0))}(l,i,o,t).pipe((0,Ea.zg)(function(u){return u&&function vwe(t){return"boolean"==typeof t}(u)?function Wwe(t,r,e,i){return(0,el.D)(r).pipe((0,Sx.b)(function(o){return(0,I$.z)(function Ywe(t,r){return null!==t&&r&&r(new PCe(t)),(0,pr.of)(!0)}(o.route.parent,i),function Vwe(t,r){return null!==t&&r&&r(new LCe(t)),(0,pr.of)(!0)}(o.route,i),function qwe(t,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Bwe(t){var r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,j5.P)(function(){var l=s.guards.map(function(u){var h,f=rZ(u,s.node,e);if(function Cwe(t){return t&&tg(t.canActivateChild)}(f))h=sp(f.canActivateChild(i,t));else{if(!tg(f))throw new Error("Invalid CanActivateChild guard");h=sp(f(i,t))}return h.pipe((0,GC.P)())});return(0,pr.of)(l).pipe(Px())})});return(0,pr.of)(a).pipe(Px())}(t,o.path,e),function Gwe(t,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,pr.of)(!0);var o=i.map(function(a){return(0,j5.P)(function(){var l,s=rZ(a,r,e);if(function bwe(t){return t&&tg(t.canActivate)}(s))l=sp(s.canActivate(r,t));else{if(!tg(s))throw new Error("Invalid CanActivate guard");l=sp(s(r,t))}return l.pipe((0,GC.P)())})});return(0,pr.of)(o).pipe(Px())}(t,o.route,e))}),(0,GC.P)(function(o){return!0!==o},!0))}(i,s,t,r):(0,pr.of)(u)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}var Jwe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function vee(t){return new fo.y(function(r){return r.error(t)})}var Xwe=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.rootComponentType=r,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,V.Z)(t,[{key:"recognize",value:function(){var e=$5(this.urlTree.root,[],[],this.config.filter(function(l){return void 0===l.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,e,Fi);if(null===i)return null;var o=new K5([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Nh(o,i),s=new ree(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=nee(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){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,i):this.processSegment(e,i,i.segments,o)}},{key:"processChildren",value:function(e,i){for(var o=[],a=0,s=Object.keys(i.children);a<s.length;a++){var l=s[a],u=i.children[l],f=dee(e,l),h=this.processSegmentGroup(f,u,l);if(null===h)return null;o.push.apply(o,(0,$t.Z)(h))}var v=yee(o);return function $we(t){t.sort(function(r,e){return r.value.outlet===Fi?-1:e.value.outlet===Fi?1:r.value.outlet.localeCompare(e.value.outlet)})}(v),v}},{key:"processSegment",value:function(e,i,o,a){var l,s=(0,cn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,f=this.processSegmentAgainstRoute(u,i,o,a);if(null!==f)return f}}catch(h){s.e(h)}finally{s.f()}return hee(i,o,a)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a){if(e.redirectTo||!pee(e,i,o,a))return null;var s,l=[],u=[];if("**"===e.path){var f=o.length>0?j$(o).parameters:{};s=new K5(o,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wee(e),Nc(e),e.component,e,bee(i),Cee(i)+o.length,kee(e))}else{var h=X5(i,e,o);if(!h.matched)return null;l=h.consumedSegments,u=h.remainingSegments,s=new K5(l,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wee(e),Nc(e),e.component,e,bee(i),Cee(i)+l.length,kee(e))}var v=function eke(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),C=$5(i,l,u,v.filter(function(Ve){return void 0===Ve.redirectTo}),this.relativeLinkResolution),B=C.segmentGroup,G=C.slicedSegments;if(0===G.length&&B.hasChildren()){var q=this.processChildren(v,B);return null===q?null:[new Nh(s,q)]}if(0===v.length&&0===G.length)return[new Nh(s,[])];var ae=Nc(e)===a,pe=this.processSegment(v,B,G,ae?Fi:a);return null===pe?null:[new Nh(s,pe)]}}]),t}();function yee(t){var o,r=[],e=new Set,i=(0,cn.Z)(t);try{var a=function(){var C=o.value;if(!function tke(t){var r=t.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(C))return r.push(C),"continue";var G,B=r.find(function(q){return C.value.routeConfig===q.value.routeConfig});void 0!==B?((G=B.children).push.apply(G,(0,$t.Z)(C.children)),e.add(B)):r.push(C)};for(i.s();!(o=i.n()).done;)a()}catch(v){i.e(v)}finally{i.f()}var u,l=(0,cn.Z)(e);try{for(l.s();!(u=l.n()).done;){var f=u.value,h=yee(f.children);r.push(new Nh(f.value,h))}}catch(v){l.e(v)}finally{l.f()}return r.filter(function(v){return!e.has(v)})}function bee(t){for(var r=t;r._sourceSegment;)r=r._sourceSegment;return r}function Cee(t){for(var r=t,e=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)e+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return e-1}function wee(t){return t.data||{}}function kee(t){return t.resolve||{}}function nke(t,r,e,i,o){return(0,Ea.zg)(function(a){return function Qwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Xwe(t,r,e,i,o,a).recognize();return null===s?vee(new Jwe):(0,pr.of)(s)}catch(l){return vee(l)}}(t,r,a.urlAfterRedirects,e(a.urlAfterRedirects),i,o).pipe((0,mr.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}function rke(t,r){return(0,Ea.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,pr.of)(e);var a=0;return(0,el.D)(o).pipe((0,Sx.b)(function(s){return function ike(t,r,e,i){return function oke(t,r,e,i){var o=Tee(t);if(0===o.length)return(0,pr.of)({});var a={};return(0,el.D)(o).pipe((0,Ea.zg)(function(s){return function ake(t,r,e,i){var o=rZ(t,r,i);return o.resolve?sp(o.resolve(r,e)):sp(o(r,e))}(t[s],r,e,i).pipe((0,ms.b)(function(l){a[s]=l}))}),(0,LM.h)(1),(0,Ea.zg)(function(){return Tee(a).length===o.length?(0,pr.of)(a):Uy.E}))}(t._resolve,t,r,i).pipe((0,mr.U)(function(a){return t._resolvedData=a,t.data=Object.assign(Object.assign({},t.data),nee(t,e).resolve),null}))}(s.route,i,t,r)}),(0,ms.b)(function(){return a++}),(0,LM.h)(1),(0,Ea.zg)(function(s){return a===o.length?(0,pr.of)(e):Uy.E}))})}function Tee(t){return[].concat((0,$t.Z)(Object.keys(t)),(0,$t.Z)(Object.getOwnPropertySymbols(t)))}function SH(t){return(0,xo.w)(function(r){var e=t(r);return e?(0,el.D)(e).pipe((0,mr.U)(function(){return r})):(0,pr.of)(r)})}var ske=(0,V.Z)(function t(){(0,j.Z)(this,t)}),lke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),uke=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(lke),xH=new n.OlP("ROUTES"),Eee=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.injector=r,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,V.Z)(t,[{key:"load",value:function(e,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,mr.U)(function(l){o.onLoadEndListener&&o.onLoadEndListener(i);var u=l.create(e);return new TH(H$(u.injector.get(xH,void 0,n.XFs.Self|n.XFs.Optional)).map(EH),u)}),(0,Vd.K)(function(l){throw i._loader$=void 0,l}));return i._loader$=new ECe.c(s,function(){return new qn.xQ}).pipe((0,SCe.x)()),i._loader$}},{key:"loadModuleFactory",value:function(e){var i=this;return sp(e()).pipe((0,Ea.zg)(function(o){return o instanceof n.YKP?(0,pr.of)(o):(0,el.D)(i.compiler.compileModuleAsync(o))}))}}]),t}(),cke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),dke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),t}();function fke(t){throw t}function pke(t,r,e){return r.parse("/")}function Mee(t,r){return(0,pr.of)(null)}var hke={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mke={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kr=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),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 qn.xQ,this.errorHandler=fke,this.malformedUriErrorHandler=pke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mee,afterPreactivation:Mee},this.urlHandlingStrategy=new dke,this.routeReuseStrategy=new uke,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.ngModule=a.get(n.h0i),this.console=a.get(n.c2e);var v=a.get(n.R0b);this.isNgZoneEnabled=v instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function HCe(){return new Hy(new Vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Eee(a,s,function(B){return u.triggerEvent(new Z$(B))},function(B){return u.triggerEvent(new N$(B))}),this.routerState=tee(this.currentUrlTree,this.rootComponentType),this.transitions=new go.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,V.Z)(t,[{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,Ei.h)(function(a){return 0!==a.id}),(0,mr.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,xo.w)(function(a){var s=!1,l=!1;return(0,pr.of)(a).pipe((0,ms.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,xo.w)(function(u){var f=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==f||f!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return See(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,pr.of)(u).pipe((0,xo.w)(function(Be){var pt=i.transitions.getValue();return o.next(new z5(Be.id,i.serializeUrl(Be.extractedUrl),Be.source,Be.restoredState)),pt!==i.transitions.getValue()?Uy.E:Promise.resolve(Be)}),Zwe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,ms.b)(function(Be){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Be.urlAfterRedirects})}),nke(i.rootComponentType,i.config,function(Be){return i.serializeUrl(Be)},i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,ms.b)(function(Be){if("eager"===i.urlUpdateStrategy){if(!Be.extras.skipLocationChange){var pt=i.urlHandlingStrategy.merge(Be.urlAfterRedirects,Be.rawUrl);i.setBrowserUrl(pt,Be)}i.browserUrlTree=Be.urlAfterRedirects}var ht=new xCe(Be.id,i.serializeUrl(Be.extractedUrl),i.serializeUrl(Be.urlAfterRedirects),Be.targetSnapshot);o.next(ht)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var B=u.id,G=u.extractedUrl,q=u.source,ae=u.restoredState,pe=u.extras,Ve=new z5(B,i.serializeUrl(G),q,ae);o.next(Ve);var Me=tee(G,i.rootComponentType).snapshot;return(0,pr.of)(Object.assign(Object.assign({},u),{targetSnapshot:Me,urlAfterRedirects:G,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=u.rawUrl,u.resolve(null),Uy.E}),SH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.beforePreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,ms.b)(function(u){var f=new DCe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(f)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},u),{guards:Nwe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),jwe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,ms.b)(function(u){if(zy(u.guardsResult)){var f=hH('Redirecting to "'.concat(i.serializeUrl(u.guardsResult),'"'));throw f.url=u.guardsResult,f}var h=new ACe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(h)}),(0,Ei.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,""),!1)}),SH(function(u){if(u.guards.canActivateChecks.length)return(0,pr.of)(u).pipe((0,ms.b)(function(f){var h=new OCe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}),(0,xo.w)(function(f){var h=!1;return(0,pr.of)(f).pipe(rke(i.paramsInheritanceStrategy,i.ngModule.injector),(0,ms.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(f),i.cancelNavigationTransition(f,"At least one route resolver didn't emit any value."))}}))}),(0,ms.b)(function(f){var h=new ICe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}))}),SH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.afterPreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,mr.U)(function(u){var f=function owe(t,r,e){var i=Ax(t,r._root,e?e._root:void 0);return new eee(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:f})}),(0,ms.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,mr.U)(function(o){return new _we(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,ms.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,R$.x)(function(){var u;if(!s&&!l){var f="Navigation ID ".concat(a.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(a,f)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,Vd.K)(function(u){if(l=!0,function BCe(t){return t&&t[F$]}(u)){var f=zy(u.url);f||(i.navigated=!0,i.restoreHistory(a,!0));var h=new pH(a.id,i.serializeUrl(a.extractedUrl),u.message);o.next(h),f?setTimeout(function(){var C=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),B={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||See(a.source)};i.scheduleNavigation(C,"imperative",null,B,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{i.restoreHistory(a,!0);var v=new L$(a.id,i.serializeUrl(a.extractedUrl),u);o.next(v);try{a.resolve(i.errorHandler(u))}catch(C){a.reject(C)}}return Uy.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?void 0: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 f=e.parseUrl(i.url);e.scheduleNavigation(f,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){cee(e),this.config=e.map(EH),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,f=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,v=null;switch(l){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}return null!==v&&(v=this.removeEmptyProps(v)),lwe(f,this.currentUrlTree,e,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=zy(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 _ke(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({},hke):!1===i?Object.assign({},mke):i,zy(e))return W$(this.currentUrlTree,e,o);var a=this.parseUrl(e);return W$(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){e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new Zh(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,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,f,h,v;if(this.disposed)return Promise.resolve(!1);s?(f=s.resolve,h=s.reject,v=s.promise):v=new Promise(function(q,ae){f=q,h=ae});var B,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),B=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):B=0;return this.setTransition({id:C,targetPageId:B,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:f,reject:h,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.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){var o=new pH(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),t}();function _ke(t){for(var r=0;r<t.length;r++){var e=t[r];if(null==e)throw new Error("The requested path contains ".concat(e," segment at index ").concat(r))}}function See(t){return"imperative"!==t}kr.\u0275fac=function(r){n.$Z()},kr.\u0275prov=n.Yz7({token:kr,factory:kr.\u0275fac});var na=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.commands=null,this.onChanges=new qn.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,V.Z)(t,[{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:QC(this.skipLocationChange),replaceUrl:QC(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:QC(this.preserveFragment)})}}]),t}();na.\u0275fac=function(r){return new(r||na)(n.Y36(kr),n.Y36(xr),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},na.\u0275dir=n.lG2({type:na,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]});var Ws=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.router=r,this.route=e,this.locationStrategy=i,this.commands=null,this.href=null,this.onChanges=new qn.xQ,this.subscription=r.events.subscribe(function(a){a instanceof Zh&&o.updateTargetUrlAndHref()})}return(0,V.Z)(t,[{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:QC(this.skipLocationChange),replaceUrl:QC(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:QC(this.preserveFragment)})}}]),t}();function QC(t){return""===t||!!t}Ws.\u0275fac=function(r){return new(r||Ws)(n.Y36(kr),n.Y36(xr),n.Y36(wt.S$))},Ws.\u0275dir=n.lG2({type:Ws,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&n.uIk("target",e.target)("href",e.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]});var XC=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),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 n.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof Zh&&l.update()})}return(0,V.Z)(t,[{key:"ngAfterContentInit",value:function(){var e=this;(0,pr.of)(this.links.changes,this.linksWithHrefs.changes,(0,pr.of)(null)).pipe((0,fH.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,$t.Z)(this.links.toArray()),(0,$t.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,el.D)(o).pipe((0,fH.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)}),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function gke(t){return!!t.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)}}]),t}();XC.\u0275fac=function(r){return new(r||XC)(n.Y36(kr),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(na,8),n.Y36(Ws,8))},XC.\u0275dir=n.lG2({type:XC,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,na,5),n.Suo(i,Ws,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.links=o),n.iGM(o=n.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.TTD]});var xee=(0,V.Z)(function t(){(0,j.Z)(this,t)}),vke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"preload",value:function(e,i){return i().pipe((0,Vd.K)(function(){return(0,pr.of)(null)}))}}]),t}(),Dee=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"preload",value:function(e,i){return(0,pr.of)(null)}}]),t}(),Wy=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.router=r,this.injector=i,this.preloadingStrategy=o;this.loader=new Eee(i,e,function(u){return r.triggerEvent(new Z$(u))},function(u){return r.triggerEvent(new N$(u))})}return(0,V.Z)(t,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,Ei.h)(function(i){return i instanceof Zh}),(0,Sx.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(n.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var s,o=[],a=(0,cn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.loadChildren&&!l.canLoad&&l._loadedConfig){var u=l._loadedConfig;o.push(this.processRoutes(u.module,u.routes))}else l.loadChildren&&!l.canLoad?o.push(this.preloadConfig(e,l)):l.children&&o.push(this.processRoutes(e,l.children))}}catch(f){a.e(f)}finally{a.f()}return(0,el.D)(o).pipe((0,fH.J)(),(0,mr.U)(function(f){}))}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){return(i._loadedConfig?(0,pr.of)(i._loadedConfig):o.loader.load(e.injector,i)).pipe((0,Ea.zg)(function(s){return i._loadedConfig=s,o.processRoutes(s.module,s.routes)}))})}}]),t}();Wy.\u0275fac=function(r){return new(r||Wy)(n.LFG(kr),n.LFG(n.Sil),n.LFG(n.zs3),n.LFG(xee))},Wy.\u0275prov=n.Yz7({token:Wy,factory:Wy.\u0275fac});var Vy=function(){function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,j.Z)(this,t),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,V.Z)(t,[{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 z5?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Zh&&(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 B$&&(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 B$(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();Vy.\u0275fac=function(r){n.$Z()},Vy.\u0275prov=n.Yz7({token:Vy,factory:Vy.\u0275fac});var Yy=new n.OlP("ROUTER_CONFIGURATION"),Aee=new n.OlP("ROUTER_FORROOT_GUARD"),yke=[wt.Ye,{provide:q$,useClass:K$},{provide:kr,useFactory:function Tke(t,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,f=new kr(null,t,r,e,i,o,H$(a));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),Eke(s,f),s.enableTracing&&f.events.subscribe(function(h){var v,C;null===(v=console.group)||void 0===v||v.call(console,"Router Event: ".concat(h.constructor.name)),console.log(h.toString()),console.log(h),null===(C=console.groupEnd)||void 0===C||C.call(console)}),f},deps:[q$,Rx,wt.Ye,n.zs3,n.Sil,xH,Yy,[cke,new n.FiY],[ske,new n.FiY]]},Rx,{provide:xr,useFactory:function Mke(t){return t.routerState.root},deps:[kr]},Wy,Dee,vke,{provide:Yy,useValue:{enableTracing:!1}}];function bke(){return new n.PXZ("Router",kr)}var Gy=function(){function t(r,e){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[yke,Oee(e),{provide:Aee,useFactory:kke,deps:[[kr,new n.FiY,new n.tp0]]},{provide:Yy,useValue:i||{}},{provide:wt.S$,useFactory:wke,deps:[wt.lw,[new n.tBr(wt.mr),new n.FiY],Yy]},{provide:Vy,useFactory:Cke,deps:[kr,wt.EM,Yy]},{provide:xee,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Dee},{provide:n.PXZ,multi:!0,useFactory:bke},[ng,{provide:n.ip1,multi:!0,useFactory:Ske,deps:[ng]},{provide:Iee,useFactory:xke,deps:[ng]},{provide:n.tb,multi:!0,useExisting:Iee}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Oee(e)]}}}]),t}();function Cke(t,r,e){return e.scrollOffset&&r.setOffset(e.scrollOffset),new Vy(t,r,e)}function wke(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.useHash?new wt.Do(t,r):new wt.b0(t,r)}function kke(t){return"guarded"}function Oee(t){return[{provide:n.deG,multi:!0,useValue:t},{provide:xH,multi:!0,useValue:t}]}function Eke(t,r){t.errorHandler&&(r.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(r.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(r.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(r.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(r.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(r.canceledNavigationResolution=t.canceledNavigationResolution)}Gy.\u0275fac=function(r){return new(r||Gy)(n.LFG(Aee,8),n.LFG(kr,8))},Gy.\u0275mod=n.oAB({type:Gy}),Gy.\u0275inj=n.cJS({});var ng=function(){function t(r){(0,j.Z)(this,t),this.injector=r,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qn.xQ}return(0,V.Z)(t,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(wt.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var o=null,a=new Promise(function(u){return o=u}),s=e.injector.get(kr),l=e.injector.get(Yy);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),o(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?(0,pr.of)(null):(e.initNavigation=!0,o(!0),e.resultOfPreactivationDone)},s.initialNavigation()):o(!0),a})}},{key:"bootstrapListener",value:function(e){var i=this.injector.get(Yy),o=this.injector.get(Wy),a=this.injector.get(Vy),s=this.injector.get(kr),l=this.injector.get(n.z2F);e===l.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),a.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();function Ske(t){return t.appInitializer.bind(t)}function xke(t){return t.bootstrapListener.bind(t)}ng.\u0275fac=function(r){return new(r||ng)(n.LFG(n.zs3))},ng.\u0275prov=n.Yz7({token:ng,factory:ng.\u0275fac});var Iee=new n.OlP("Router Initializer");new n.GfV("13.3.11");var iZ=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Wo=m(2437),vr=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new qn.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,V.Z)(t,[{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 f=u.find(function(v){return"bundled"===v.location});if(f)f.host=e,f.port=i,f.protocol=location.protocol,o.update(f).then(function(v){s(v)},l);else{var h=new iZ;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(v){s(v)},l)}},l)})}}]),t}();vr.\u0275fac=function(r){return new(r||vr)(n.LFG(Wo.zw))},vr.\u0275prov=n.Yz7({token:vr,factory:vr.\u0275fac});var Bx=(0,V.Z)(function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.visible=r,this.error=e,this.clear=i}),ul=function(){function t(){(0,j.Z)(this,t),this.state=new go.X(new Bx(!1))}return(0,V.Z)(t,[{key:"setError",value:function(e){this.state.next(new Bx(!1,e.error))}},{key:"clear",value:function(){this.state.next(new Bx(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new Bx(!0))}},{key:"deactivate",value:function(){this.state.next(new Bx(!1))}}]),t}();function Ake(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.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)),n.uIk("r",e._getCircleRadius())}}function Oke(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),n.uIk("r",e._getCircleRadius())}}ul.\u0275fac=function(r){return new(r||ul)},ul.\u0275prov=n.Yz7({token:ul,factory:ul.\u0275fac});var Pke=(0,sn.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),Rke=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Lke(){return{diameter:100}}});var Kl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;(0,j.Z)(this,e),(v=r.call(this,i))._document=a,v._diameter=100,v._value=0,v._resizeSubscription=Io.w.EMPTY,v.mode="determinate";var C=e._diameters;return v._spinnerAnimationLabel=v._getSpinnerAnimationLabel(),C.has(a.head)||C.set(a.head,new Set([100])),v._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(v.mode="indeterminate"),l&&(l.diameter&&(v.diameter=l.diameter),l.strokeWidth&&(v.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&f&&u&&h&&(v._resizeSubscription=f.change(150).subscribe(function(){"indeterminate"===v.mode&&h.run(function(){return u.markForCheck()})})),v}return(0,V.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,Hn.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,Hn.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,Hn.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,Zi.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}(Pke);Kl._diameters=new WeakMap,Kl.\u0275fac=function(r){return new(r||Kl)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(wt.K0,8),n.Y36(Ta.Qb,8),n.Y36(Rke),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(n.R0b))},Kl.\u0275cmp=n.Xpm({type:Kl,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&&(n.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),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,Ake,1,11,"circle",2),n.YNc(3,Oke,1,9,"circle",3),n.qZA()),2&r&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[wt.RF,wt.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});var $C=(0,V.Z)(function t(){(0,j.Z)(this,t)});$C.\u0275fac=function(r){return new(r||$C)},$C.\u0275mod=n.oAB({type:$C}),$C.\u0275inj=n.cJS({imports:[[sn.BQ,wt.ez],sn.BQ]});var oZ,Bc=m(567);function Fx(t){var r;return(null===(r=function Bke(){if(void 0===oZ&&(oZ=null,"undefined"!=typeof window)){var t=window;void 0!==t.trustedTypes&&(oZ=t.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return oZ}())||void 0===r?void 0:r.createHTML(t))||t}function Pee(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Ree(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Lee(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var qy=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.url=r,this.svgText=e,this.options=i}),lp=function(){function t(r,e,i,o){(0,j.Z)(this,t),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",this._document=i}return(0,V.Z)(t,[{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 qy(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(n.q3G.HTML,o);if(!s)throw Lee(o);var l=Fx(s);return this._addSvgIconConfig(e,i,new qy("",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 qy(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(n.q3G.HTML,i);if(!a)throw Lee(i);var s=Fx(a);return this._addSvgIconSetConfig(e,new qy("",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(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!o)throw Ree(e);var a=this._cachedIconsByUrl.get(o);return a?(0,pr.of)(aZ(a)):this._loadSvgIconFromConfig(new qy(e,null)).pipe((0,ms.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,mr.U)(function(s){return aZ(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Zee(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,YC._)(Pee(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,pr.of)(aZ(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,mr.U)(function(i){return aZ(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,pr.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,Vd.K)(function(u){var f=o._sanitizer.sanitize(n.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(f," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,pr.of)(null)}))});return(0,Bc.D)(s).pipe((0,mr.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Pee(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,ms.b)(function(o){return e.svgText=o}),(0,mr.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,pr.of)(null):this._fetchIcon(e).pipe((0,ms.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(Fx("<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(Fx("<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 f=0;f<e.childNodes.length;f++)e.childNodes[f].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[f].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 Fke(){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(n.q3G.RESOURCE_URL,a);if(!u)throw Ree(a);var f=this._inProgressUrlFetches.get(u);if(f)return f;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,mr.U)(function(v){return Fx(v)}),(0,R$.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,ch.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set(Zee(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 Hke(a)?new qy(a.url,null,a.options):new qy(a,null)}}}]),t}();lp.\u0275fac=function(r){return new(r||lp)(n.LFG(zu.eN,8),n.LFG(An.H7),n.LFG(wt.K0,8),n.LFG(n.qLn))},lp.\u0275prov=n.Yz7({token:lp,factory:lp.\u0275fac,providedIn:"root"});new n.FiY,new n.tp0,new n.FiY,zu.eN,An.H7,n.qLn,new n.FiY,wt.K0;function aZ(t){return t.cloneNode(!0)}function Zee(t,r){return t+":"+r}function Hke(t){return!(!t.url||!t.options)}var jke=(0,sn.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()),zke=new n.OlP("mat-icon-location",{providedIn:"root",factory:function Wke(){var t=(0,n.f3M)(wt.K0),r=t?t.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var Nee=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Vke=Nee.map(function(t){return"[".concat(t,"]")}).join(", "),Yke=/^url\(['"]?#(.*?)['"]?\)$/,Vn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i))._iconRegistry=o,u._location=s,u._errorHandler=l,u._inline=!1,u._currentIconFetch=Io.w.EMPTY,a||i.nativeElement.setAttribute("aria-hidden","true"),u}return(0,V.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,Hn.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):this._iconRegistry.getDefaultFontSetClass();a!=this._previousFontSetClass&&(this._previousFontSetClass&&o.classList.remove(this._previousFontSetClass),a&&o.classList.add(a),this._previousFontSetClass=a),this.fontIcon!=this._previousFontIconClass&&(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(Vke),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){Nee.forEach(function(v){var C=a[h],B=C.getAttribute(v),G=B?B.match(Yke):null;if(G){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:v,value:G[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,Ut.Z)(s,2),u=l[0],f=l[1];u&&(this._svgNamespace=u),f&&(this._svgName=f),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(f,u).pipe((0,no.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var v="Error retrieving icon ".concat(u,":").concat(f,"! ").concat(h.message);a._errorHandler.handleError(new Error(v))})}}}]),e}(jke);Vn.\u0275fac=function(r){return new(r||Vn)(n.Y36(n.SBq),n.Y36(lp),n.$8M("aria-hidden"),n.Y36(zke),n.Y36(n.qLn))},Vn.\u0275cmp=n.Xpm({type:Vn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(r,e){2&r&&(n.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),n.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:[n.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.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}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0});var rg=(0,V.Z)(function t(){(0,j.Z)(this,t)});rg.\u0275fac=function(r){return new(r||rg)},rg.\u0275mod=n.oAB({type:rg}),rg.\u0275inj=n.cJS({imports:[[sn.BQ],sn.BQ]});var Bee=["mat-button",""],Fee=["*"],Kke=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Jke=(0,sn.pj)((0,sn.Id)((0,sn.Kr)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()))),Tn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;(0,j.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,cn.Z)(Kke);try{for(l.s();!(u=l.n()).done;){var f=u.value;s._hasHostAttributes(f)&&s._getHostElement().classList.add(f)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,V.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}(Jke);Tn.\u0275fac=function(r){return new(r||Tn)(n.Y36(n.SBq),n.Y36(Oi.tE),n.Y36(Ta.Qb,8))},Tn.\u0275cmp=n.Xpm({type:Tn,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&&n.Gf(sn.wG,5),2&r)&&(n.iGM(i=n.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(n.uIk("disabled",e.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Bee,ngContentSelectors:Fee,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&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&r&&(n.xp6(2),n.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),n.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[sn.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:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.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:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.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-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.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-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var ig=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.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,V.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ht.Z)((0,ln.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,Ht.Z)((0,ln.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(Tn);ig.\u0275fac=function(r){return new(r||ig)(n.Y36(Oi.tE),n.Y36(n.SBq),n.Y36(Ta.Qb,8),n.Y36(n.R0b,8))},ig.\u0275cmp=n.Xpm({type:ig,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&&(n.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),n.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:[n.qOj],attrs:Bee,ngContentSelectors:Fee,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&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&r&&(n.xp6(2),n.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),n.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[sn.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:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.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:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.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-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.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-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var Fh=(0,V.Z)(function t(){(0,j.Z)(this,t)});Fh.\u0275fac=function(r){return new(r||Fh)},Fh.\u0275mod=n.oAB({type:Fh}),Fh.\u0275inj=n.cJS({imports:[[sn.si,sn.BQ],sn.BQ]});var Qke=m(1307),Ux=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ux.\u0275fac=function(r){return new(r||Ux)},Ux.\u0275mod=n.oAB({type:Ux}),Ux.\u0275inj=n.cJS({});var ew,Uee=new Set,tw=function(){function t(r){(0,j.Z)(this,t),this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$ke}return(0,V.Z)(t,[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Xke(t){if(!Uee.has(t))try{ew||((ew=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ew)),ew.sheet&&(ew.sheet.insertRule("@media ".concat(t," {body{ }}"),0),Uee.add(t))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}]),t}();function $ke(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}tw.\u0275fac=function(r){return new(r||tw)(n.LFG(Zi.t4))},tw.\u0275prov=n.Yz7({token:tw,factory:tw.\u0275fac,providedIn:"root"});var Uh=function(){function t(r,e){(0,j.Z)(this,t),this._mediaMatcher=r,this._zone=e,this._queries=new Map,this._destroySubject=new qn.xQ}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var i=this;return Hee((0,Hn.Eq)(e)).some(function(a){return i._registerQuery(a).mql.matches})}},{key:"observe",value:function(e){var i=this,a=Hee((0,Hn.Eq)(e)).map(function(l){return i._registerQuery(l).observable}),s=(0,uh.aj)(a);return(s=(0,I$.z)(s.pipe((0,no.q)(1)),s.pipe((0,Qke.T)(1),(0,O6.b)(0)))).pipe((0,mr.U)(function(l){var u={matches:!1,breakpoints:{}};return l.forEach(function(f){var h=f.matches,v=f.query;u.matches=u.matches||h,u.breakpoints[v]=h}),u}))}},{key:"_registerQuery",value:function(e){var i=this;if(this._queries.has(e))return this._queries.get(e);var o=this._mediaMatcher.matchMedia(e),s={observable:new fo.y(function(l){var u=function(h){return i._zone.run(function(){return l.next(h)})};return o.addListener(u),function(){o.removeListener(u)}}).pipe((0,ua.O)(o),(0,mr.U)(function(l){var u=l.matches;return{query:e,matches:u}}),(0,Yr.R)(this._destroySubject)),mql:o};return this._queries.set(e,s),s}}]),t}();function Hee(t){return t.map(function(r){return r.split(",")}).reduce(function(r,e){return r.concat(e)}).map(function(r){return r.trim()})}Uh.\u0275fac=function(r){return new(r||Uh)(n.LFG(tw),n.LFG(n.R0b))},Uh.\u0275prov=n.Yz7({token:Uh,factory:Uh.\u0275fac,providedIn:"root"});var og_Medium="(min-width: 960px) and (max-width: 1279.98px)",og_Large="(min-width: 1280px) and (max-width: 1919.98px)",og_XLarge="(min-width: 1920px)",og_Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",og_HandsetPortrait="(max-width: 599.98px) and (orientation: portrait)",yo=m(7429),eTe=["tooltip"],jee="tooltip-panel",zee=(0,Zi.i$)({passive:!0});var Wee=new n.OlP("mat-tooltip-scroll-strategy");var iTe={provide:Wee,deps:[Ao.aV],useFactory:function rTe(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},oTe=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function aTe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var sZ=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){var B=this;(0,j.Z)(this,t),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=v,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 qn.xQ,this._scrollStrategy=f,this._document=C,v&&(v.position&&(this.position=v.position),v.touchGestures&&(this.touchGestures=v.touchGestures)),h.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){B._overlayRef&&B._updatePosition(B._overlayRef)})}return(0,V.Z)(t,[{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,Hn.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Hn.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Hn.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,Yr.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,Ut.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,zee)}),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 e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var o=this._createOverlay();this._detach(),this._portal=this._portal||new yo.C5(this._tooltipComponent,this._viewContainerRef);var a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{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,Yr.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(jee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Gr.hY&&!(0,Gr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),(null===(i=this._defaultOptions)||void 0===i?void 0: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,no.q)(1),(0,Yr.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(jee,"-");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?void 0: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,Ut.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,zee)})}},{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"}}}]),t}();sZ.\u0275fac=function(r){n.$Z()},sZ.\u0275dir=n.lG2({type:sZ,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var vi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C,B,G){var q;return(0,j.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,f,h,v,C,B,G))._tooltipComponent=jx,q}return(0,V.Z)(e)}(sZ);vi.\u0275fac=function(r){return new(r||vi)(n.Y36(Ao.aV),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Zi.t4),n.Y36(Oi.$s),n.Y36(Oi.tE),n.Y36(Wee),n.Y36(Es.Is,8),n.Y36(oTe,8),n.Y36(wt.K0))},vi.\u0275dir=n.lG2({type:vi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]});var Hx=function(){function t(r,e){(0,j.Z)(this,t),this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qn.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,V.Z)(t,[{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(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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.hide(this._mouseLeaveHideDelay)}},{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:"_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))}}]),t}();Hx.\u0275fac=function(r){return new(r||Hx)(n.Y36(n.sBO),n.Y36(Ta.Qb,8))},Hx.\u0275dir=n.lG2({type:Hx});var jx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(og_Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,V.Z)(e)}(Hx);jx.\u0275fac=function(r){return new(r||jx)(n.Y36(n.sBO),n.Y36(Uh),n.Y36(Ta.Qb,8))},jx.\u0275cmp=n.Xpm({type:jx,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(eTe,7),2&r)&&(n.iGM(i=n.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&n.Udp("zoom",e.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&r)&&(n.ekj("mat-tooltip-handset",null==(i=n.lcZ(2,4,e._isHandset))?null:i.matches),n.Q6J("ngClass",e.tooltipClass),n.xp6(3),n.Oqu(e.message))},directives:[wt.mk],pipes:[wt.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}\n"],encapsulation:2,changeDetection:0});var Ky=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ky.\u0275fac=function(r){return new(r||Ky)},Ky.\u0275mod=n.oAB({type:Ky}),Ky.\u0275inj=n.cJS({providers:[iTe],imports:[[Oi.rt,wt.ez,Ao.U8,sn.BQ],sn.BQ,ka.ZD]});(0,rn.X$)("state",[(0,rn.SB)("initial, void, hidden",(0,rn.oB)({opacity:0,transform:"scale(0)"})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)"})),(0,rn.eR)("* => visible",(0,rn.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.F4)([(0,rn.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,rn.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,rn.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,rn.eR)("* => hidden",(0,rn.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({opacity:0})))]);function sTe(t,r){1&t&&(n.TgZ(0,"div",4),n._UZ(1,"mat-spinner",5),n.qZA())}function lTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),n._uU(3,"error_outline"),n.qZA()(),n.TgZ(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"div")(7,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refresh()}),n.TgZ(8,"mat-icon"),n._uU(9,"refresh"),n.qZA()(),n.TgZ(10,"button",9)(11,"mat-icon"),n._uU(12,"home"),n.qZA()()()()}if(2&t){var i=n.oxw(2);n.xp6(5),n.hij("Error occurred: ",i.error.message,"")}}function uTe(t,r){if(1&t&&(n.TgZ(0,"div",1),n.YNc(1,sTe,2,0,"div",2),n.YNc(2,lTe,13,1,"div",3),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.visible&&!e.error),n.xp6(1),n.Q6J("ngIf",e.error)}}var Jy=function(){function t(r,e){(0,j.Z)(this,t),this.progressService=r,this.router=e,this.visible=!1}return(0,V.Z)(t,[{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()}}]),t}();Jy.\u0275fac=function(r){return new(r||Jy)(n.Y36(ul),n.Y36(kr))},Jy.\u0275cmp=n.Xpm({type:Jy,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&&n.YNc(0,uTe,3,2,"div",0),2&r&&n.Q6J("ngIf",e.visible||e.error)},directives:[wt.O5,Kl,Vn,Tn,vi,na],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom: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 zx=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,V.Z)(t,[{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)}}]),t}();zx.\u0275fac=function(r){return new(r||zx)(n.Y36(kr),n.Y36(vr),n.Y36(ul),n.Y36(wt.K0))},zx.\u0275cmp=n.Xpm({type:zx,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&n._UZ(0,"app-progress")},directives:[Jy],styles:[""]});function Yi(t,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{f(i.next(h))}catch(v){s(v)}}function u(h){try{f(i.throw(h))}catch(v){s(v)}}function f(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)}f((i=i.apply(t,r||[])).next())})}Object.create;Object.create;var up=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{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()))}}]),t}();function fTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"button",3),n.NdJ("click",function(){return n.CHM(e),n.oxw().action()}),n._uU(2),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.action)}}function pTe(t,r){}up.\u0275fac=function(r){return new(r||up)},up.\u0275prov=n.Yz7({token:up,factory:up.\u0275fac});var OH=new n.OlP("MatSnackBarData"),uZ=(0,V.Z)(function t(){(0,j.Z)(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),hTe=Math.pow(2,31)-1,cZ=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this._overlayRef=e,this._afterDismissed=new qn.xQ,this._afterOpened=new qn.xQ,this._onAction=new qn.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,V.Z)(t,[{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,hTe))}},{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}}]),t}(),Wx=function(){function t(r,e){(0,j.Z)(this,t),this.snackBarRef=r,this.data=e}return(0,V.Z)(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();Wx.\u0275fac=function(r){return new(r||Wx)(n.Y36(cZ),n.Y36(OH))},Wx.\u0275cmp=n.Xpm({type:Wx,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&&(n.TgZ(0,"span",0),n._uU(1),n.qZA(),n.YNc(2,fTe,3,1,"div",1)),2&r&&(n.xp6(1),n.Oqu(e.data.message),n.xp6(1),n.Q6J("ngIf",e.hasAction))},directives:[Tn,wt.O5],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}\n"],encapsulation:2,changeDetection:0});var mTe={snackBarState:(0,rn.X$)("state",[(0,rn.SB)("void, hidden",(0,rn.oB)({transform:"scale(0.8)",opacity:0})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)",opacity:1})),(0,rn.eR)("* => visible",(0,rn.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,rn.eR)("* => void, * => hidden",(0,rn.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,rn.oB)({opacity:0})))])},Vx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.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 qn.xQ,u._onExit=new qn.xQ,u._onEnter=new qn.xQ,u._animationState="void",u.attachDomPortal=function(f){return u._assertNotAttached(),u._applySnackBarClasses(),u._portalOutlet.attachDomPortal(f)},"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,V.Z)(e,[{key:"attachComponentPortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(o)}},{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,no.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_applySnackBarClasses",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)),"center"===this.snackBarConfig.horizontalPosition&&o.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&o.classList.add("mat-snack-bar-top")}},{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}(yo.en);Vx.\u0275fac=function(r){return new(r||Vx)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Zi.t4),n.Y36(uZ))},Vx.\u0275cmp=n.Xpm({type:Vx,selectors:[["snack-bar-container"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&n.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&n.d8E("@state",e._animationState)},features:[n.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n.YNc(1,pTe,0,0,"ng-template",1),n.qZA(),n._UZ(2,"div")),2&r&&(n.xp6(2),n.uIk("aria-live",e._live)("role",e._role))},directives:[yo.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%}\n"],encapsulation:2,data:{animation:[mTe.snackBarState]}});var Qy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qy.\u0275fac=function(r){return new(r||Qy)},Qy.\u0275mod=n.oAB({type:Qy}),Qy.\u0275inj=n.cJS({imports:[[Ao.U8,yo.eL,wt.ez,Fh,sn.BQ],sn.BQ]});var qee=new n.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function _Te(){return new uZ}});var Xy=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,V.Z)(t,[{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=n.zs3.create({parent:o||this._injector,providers:[{provide:uZ,useValue:i}]}),s=new yo.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 uZ),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new cZ(l,s);if(e instanceof n.Rgc){var f=new yo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(f)}else{var h=this._createInjector(a,u),v=new yo.C5(e,void 0,h),C=l.attachComponentPortal(v);u.instance=C.instance}return this._breakpointObserver.observe(og_HandsetPortrait).pipe((0,Yr.R)(s.detachments())).subscribe(function(B){s.overlayElement.classList.toggle(o.handsetCssClass,B.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 Ao.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 n.zs3.create({parent:o||this._injector,providers:[{provide:cZ,useValue:i},{provide:OH,useValue:e.data}]})}}]),t}();Xy.\u0275fac=function(r){return new(r||Xy)(n.LFG(Ao.aV),n.LFG(Oi.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Xy,12),n.LFG(qee))},Xy.\u0275prov=n.Yz7({token:Xy,factory:Xy.\u0275fac});var Fc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=Wx,f.snackBarContainerComponent=Vx,f.handsetCssClass="mat-snack-bar-handset",f}return(0,V.Z)(e)}(Xy);Fc.\u0275fac=function(r){return new(r||Fc)(n.LFG(Ao.aV),n.LFG(Oi.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Fc,12),n.LFG(qee))},Fc.\u0275prov=n.Yz7({token:Fc,factory:Fc.\u0275fac,providedIn:Qy});var $n=function(){function t(r,e){(0,j.Z)(this,t),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,V.Z)(t,[{key:"error",value:function(e){var i=this;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)})}}]),t}();$n.\u0275fac=function(r){return new(r||$n)(n.LFG(Fc),n.LFG(n.R0b))},$n.\u0275prov=n.Yz7({token:$n,factory:$n.\u0275fac});var gTe=["*",[["mat-card-footer"]]],yTe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],CTe=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],$y=(0,V.Z)(function t(){(0,j.Z)(this,t)});$y.\u0275fac=function(r){return new(r||$y)},$y.\u0275dir=n.lG2({type:$y,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var nw=(0,V.Z)(function t(){(0,j.Z)(this,t)});nw.\u0275fac=function(r){return new(r||nw)},nw.\u0275dir=n.lG2({type:nw,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var rw=(0,V.Z)(function t(){(0,j.Z)(this,t)});rw.\u0275fac=function(r){return new(r||rw)},rw.\u0275dir=n.lG2({type:rw,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var Yx=(0,V.Z)(function t(){(0,j.Z)(this,t),this.align="start"});Yx.\u0275fac=function(r){return new(r||Yx)},Yx.\u0275dir=n.lG2({type:Yx,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var dZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});dZ.\u0275fac=function(r){return new(r||dZ)},dZ.\u0275dir=n.lG2({type:dZ,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var fZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});fZ.\u0275fac=function(r){return new(r||fZ)},fZ.\u0275dir=n.lG2({type:fZ,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var pZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});pZ.\u0275fac=function(r){return new(r||pZ)},pZ.\u0275dir=n.lG2({type:pZ,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var hZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});hZ.\u0275fac=function(r){return new(r||hZ)},hZ.\u0275dir=n.lG2({type:hZ,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var mZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});mZ.\u0275fac=function(r){return new(r||mZ)},mZ.\u0275dir=n.lG2({type:mZ,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var _Z=(0,V.Z)(function t(){(0,j.Z)(this,t)});_Z.\u0275fac=function(r){return new(r||_Z)},_Z.\u0275dir=n.lG2({type:_Z,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var gZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});gZ.\u0275fac=function(r){return new(r||gZ)},gZ.\u0275dir=n.lG2({type:gZ,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var Si=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._animationMode=r});Si.\u0275fac=function(r){return new(r||Si)(n.Y36(Ta.Qb,8))},Si.\u0275cmp=n.Xpm({type:Si,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(gTe),n.Hsn(0),n.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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0});var vZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});vZ.\u0275fac=function(r){return new(r||vZ)},vZ.\u0275cmp=n.Xpm({type:vZ,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&&(n.F$t(yTe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var yZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});yZ.\u0275fac=function(r){return new(r||yZ)},yZ.\u0275cmp=n.Xpm({type:yZ,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&&(n.F$t(CTe),n.TgZ(0,"div"),n.Hsn(1),n.qZA(),n.Hsn(2,1),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var iw=(0,V.Z)(function t(){(0,j.Z)(this,t)});iw.\u0275fac=function(r){return new(r||iw)},iw.\u0275mod=n.oAB({type:iw}),iw.\u0275inj=n.cJS({imports:[[sn.BQ],sn.BQ]});var Un=m(7322),kTe=m(7568),Kee=(0,Zi.i$)({passive:!0}),e0=function(){function t(r,e){(0,j.Z)(this,t),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,V.Z)(t,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return Uy.E;var o=(0,Hn.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new qn.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,Kee),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,Kee)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Hn.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)})}}]),t}();e0.\u0275fac=function(r){return new(r||e0)(n.LFG(Zi.t4),n.LFG(n.R0b))},e0.\u0275prov=n.Yz7({token:e0,factory:e0.\u0275fac,providedIn:"root"});var bZ=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();bZ.\u0275fac=function(r){return new(r||bZ)(n.Y36(n.SBq),n.Y36(e0))},bZ.\u0275dir=n.lG2({type:bZ,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var CZ=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new qn.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,V.Z)(t,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Hn.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Hn.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Hn.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,Pf.R)(i,"resize").pipe((0,kTe.e)(16),(0,Yr.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)}}]),t}();CZ.\u0275fac=function(r){return new(r||CZ)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(wt.K0,8))},CZ.\u0275dir=n.lG2({type:CZ,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&n.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var t0=(0,V.Z)(function t(){(0,j.Z)(this,t)});t0.\u0275fac=function(r){return new(r||t0)},t0.\u0275mod=n.oAB({type:t0}),t0.\u0275inj=n.cJS({});var TTe=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),ETe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],MTe=0,STe=(0,sn.FD)(function(){return(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o})}()),sr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C){var B;(0,j.Z)(this,e),(B=r.call(this,u,s,l,a))._elementRef=i,B._platform=o,B._autofillMonitor=h,B._formField=C,B._uid="mat-input-".concat(MTe++),B.focused=!1,B.stateChanges=new qn.xQ,B.controlType="mat-input",B.autofilled=!1,B._disabled=!1,B._type="text",B._readonly=!1,B._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(ae){return(0,Zi.qK)().has(ae)}),B._iOSKeyupListener=function(ae){var pe=ae.target;!pe.value&&0===pe.selectionStart&&0===pe.selectionEnd&&(pe.setSelectionRange(1,1),pe.setSelectionRange(0,0))};var G=B._elementRef.nativeElement,q=G.nodeName.toLowerCase();return B._inputValueAccessor=f||G,B._previousNativeValue=B.value,B.id=B.id,o.IOS&&v.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",B._iOSKeyupListener)}),B._isServer=!B._platform.isBrowser,B._isNativeSelect="select"===q,B._isTextarea="textarea"===q,B._isInFormField=!!C,B._isNativeSelect&&(B.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select"),B}return(0,V.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Hn.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(ne.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Hn.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Zi.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,Hn.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,s=(null===(a=null===(o=this._formField)||void 0===o?void 0:o._hideControlPlaceholder)||void 0===a?void 0:a.call(o))?null:this.placeholder;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(){ETe.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}(STe);sr.\u0275fac=function(r){return new(r||sr)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(ne.a5,10),n.Y36(ne.F,8),n.Y36(ne.sg,8),n.Y36(sn.rD),n.Y36(TTe,10),n.Y36(e0),n.Y36(n.R0b),n.Y36(Un.G_,8))},sr.\u0275dir=n.lG2({type:sr,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&&n.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(n.Ikx("disabled",e.disabled)("required",e.required),n.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),n.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:[n._Bn([{provide:Un.Eo,useExisting:sr}]),n.qOj,n.TTD]});var ow=(0,V.Z)(function t(){(0,j.Z)(this,t)});ow.\u0275fac=function(r){return new(r||ow)},ow.\u0275mod=n.oAB({type:ow}),ow.\u0275inj=n.cJS({providers:[sn.rD],imports:[[t0,Un.lN,sn.BQ],t0,Un.lN]});var xi=m(4107);function n0(){n0=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function xTe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function DTe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}function ATe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}var Gx=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:")})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){return Yi(this,void 0,void 0,n0().mark(function e(){var i=this;return n0().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,n0().mark(function l(){return n0().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s&&this.getControllers();case 1:case"end":return f.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return Yi(this,void 0,void 0,n0().mark(function e(){var o,a,i=this;return n0().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 iZ;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")}}]),t}();Gx.\u0275fac=function(r){return new(r||Gx)(n.Y36(vr),n.Y36(up),n.Y36(xr),n.Y36(kr),n.Y36($n))},Gx.\u0275cmp=n.Xpm({type:Gx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Add new controller"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),n._UZ(9,"input",7),n.YNc(10,xTe,2,0,"mat-error",8),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",9),n.YNc(13,DTe,2,2,"mat-option",10),n.qZA()(),n.TgZ(14,"mat-form-field")(15,"mat-select",11),n.YNc(16,ATe,2,2,"mat-option",10),n.qZA()()()(),n.TgZ(17,"div",12)(18,"button",13),n.NdJ("click",function(){return e.createController()}),n._uU(19,"Add controller"),n.qZA()()()()),2&r&&(n.Q6J("hidden",!e.controllerOptionsVisibility),n.xp6(7),n.Q6J("formGroup",e.controllerForm),n.xp6(3),n.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),n.xp6(3),n.Q6J("ngForOf",e.locations),n.xp6(3),n.Q6J("ngForOf",e.protocols))},directives:[Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,xi.gD,wt.sg,sn.ey,Tn],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var OTe=0,IH=new n.OlP("CdkAccordion"),aw=function(){function t(){(0,j.Z)(this,t),this._stateChanges=new qn.xQ,this._openCloseAllActions=new qn.xQ,this.id="cdk-accordion-".concat(OTe++),this._multi=!1}return(0,V.Z)(t,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Hn.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()}}]),t}();aw.\u0275fac=function(r){return new(r||aw)},aw.\u0275dir=n.lG2({type:aw,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:IH,useExisting:aw}]),n.TTD]});var ITe=0,qx=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Io.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-".concat(ITe++),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,V.Z)(t,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,Hn.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,Hn.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)})}}]),t}();qx.\u0275fac=function(r){return new(r||qx)(n.Y36(IH,12),n.Y36(n.sBO),n.Y36(po.A8))},qx.\u0275dir=n.lG2({type:qx,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:IH,useValue:void 0}])]});var sw=(0,V.Z)(function t(){(0,j.Z)(this,t)});sw.\u0275fac=function(r){return new(r||sw)},sw.\u0275mod=n.oAB({type:sw}),sw.\u0275inj=n.cJS({});var PTe=["body"];function RTe(t,r){}var LTe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function NTe(t,r){if(1&t&&n._UZ(0,"span",2),2&t){var e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}var BTe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],PH=new n.OlP("MAT_ACCORDION"),Jee="225ms cubic-bezier(0.4,0.0,0.2,1)",Qee={indicatorRotate:(0,rn.X$)("indicatorRotate",[(0,rn.SB)("collapsed, void",(0,rn.oB)({transform:"rotate(0deg)"})),(0,rn.SB)("expanded",(0,rn.oB)({transform:"rotate(180deg)"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(Jee))]),bodyExpansion:(0,rn.X$)("bodyExpansion",[(0,rn.SB)("collapsed, void",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(Jee))])},Kx=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._template=r});Kx.\u0275fac=function(r){return new(r||Kx)(n.Y36(n.Rgc))},Kx.\u0275dir=n.lG2({type:Kx,selectors:[["ng-template","matExpansionPanelContent",""]]});var UTe=0,Xee=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Jl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new n.vpe,h.afterCollapse=new n.vpe,h._inputChanges=new qn.xQ,h._headerId="mat-expansion-panel-header-".concat(UTe++),h._bodyAnimationDone=new qn.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,OM.x)(function(v,C){return v.fromState===C.fromState&&v.toState===C.toState})).subscribe(function(v){"void"!==v.fromState&&("expanded"===v.toState?h.afterExpand.emit():"collapsed"===v.toState&&h.afterCollapse.emit())}),f&&(h.hideToggle=f.hideToggle),h}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Hn.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.opened.pipe((0,ua.O)(null),(0,Ei.h)(function(){return o.expanded&&!o._portal}),(0,no.q)(1)).subscribe(function(){o._portal=new yo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,ln.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}(qx);Jl.\u0275fac=function(r){return new(r||Jl)(n.Y36(PH,12),n.Y36(n.sBO),n.Y36(po.A8),n.Y36(n.s_b),n.Y36(wt.K0),n.Y36(Ta.Qb,8),n.Y36(Xee,8))},Jl.\u0275cmp=n.Xpm({type:Jl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Kx,5),2&r)&&(n.iGM(o=n.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&n.Gf(PTe,5),2&r)&&(n.iGM(i=n.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:PH,useValue:void 0}]),n.qOj,n.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&&(n.F$t(LTe),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,RTe,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[yo.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}\n'],encapsulation:2,data:{animation:[Qee.bodyExpansion]},changeDetection:0});var wZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});wZ.\u0275fac=function(r){return new(r||wZ)},wZ.\u0275dir=n.lG2({type:wZ,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var HTe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Ql=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;(0,j.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=Io.w.EMPTY;var v=i.accordion?i.accordion._stateChanges.pipe((0,Ei.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):Uy.E;return h.tabIndex=parseInt(f||"")||0,h._parentChangeSubscription=(0,To.T)(i.opened,i.closed,v,i._inputChanges.pipe((0,Ei.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,Ei.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,V.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 Gr.L_:case Gr.K5:(0,Gr.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,sn.sb)(HTe));Ql.\u0275fac=function(r){return new(r||Ql)(n.Y36(Jl,1),n.Y36(n.SBq),n.Y36(Oi.tE),n.Y36(n.sBO),n.Y36(Xee,8),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Ql.\u0275cmp=n.Xpm({type:Ql,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(n.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.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:[n.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(n.F$t(BTe),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,NTe,1,1,"span",1)),2&r&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[wt.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Qee.indicatorRotate]},changeDetection:0});var Jx=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jx.\u0275fac=function(r){return new(r||Jx)},Jx.\u0275dir=n.lG2({type:Jx,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var hu=(0,V.Z)(function t(){(0,j.Z)(this,t)});hu.\u0275fac=function(r){return new(r||hu)},hu.\u0275dir=n.lG2({type:hu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var Ml=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new n.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Hn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,ua.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Oi.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,Ht.Z)((0,ln.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(aw);Ml.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ml)))(e||Ml)}}(),Ml.\u0275dir=n.lG2({type:Ml,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ql,5),2&r)&&(n.iGM(o=n.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:PH,useExisting:Ml}]),n.qOj]});var lw=(0,V.Z)(function t(){(0,j.Z)(this,t)});lw.\u0275fac=function(r){return new(r||lw)},lw.\u0275mod=n.oAB({type:lw}),lw.\u0275inj=n.cJS({imports:[[wt.ez,sn.BQ,sw,yo.eL]]});var ag=m(4834),RH=["*"],$ee='.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n',zTe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],VTe=["text"];function YTe(t,r){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",5),2&t){var e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var GTe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],ete=(0,sn.Id)((0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),KTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),tte=new n.OlP("MatList"),nte=new n.OlP("MatNavList"),Vs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new qn.xQ,i}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(ete);Vs.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Vs)))(e||Vs)}}(),Vs.\u0275cmp=n.Xpm({type:Vs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:nte,useExisting:Vs}]),n.qOj,n.TTD],ngContentSelectors:RH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0});var Hh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new qn.xQ,"action-list"===o._getListType()&&i.nativeElement.classList.add("mat-action-list"),o}return(0,V.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}(ete);Hh.\u0275fac=function(r){return new(r||Hh)(n.Y36(n.SBq))},Hh.\u0275cmp=n.Xpm({type:Hh,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:tte,useExisting:Hh}]),n.qOj,n.TTD],ngContentSelectors:RH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[$ee],encapsulation:2,changeDetection:0});var uw=(0,V.Z)(function t(){(0,j.Z)(this,t)});uw.\u0275fac=function(r){return new(r||uw)},uw.\u0275dir=n.lG2({type:uw,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var cw=(0,V.Z)(function t(){(0,j.Z)(this,t)});cw.\u0275fac=function(r){return new(r||cw)},cw.\u0275dir=n.lG2({type:cw,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var kZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});kZ.\u0275fac=function(r){return new(r||kZ)},kZ.\u0275dir=n.lG2({type:kZ,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var qa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;(0,j.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new qn.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,Yr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Hn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,sn.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}(KTe);qa.\u0275fac=function(r){return new(r||qa)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(nte,8),n.Y36(tte,8))},qa.\u0275cmp=n.Xpm({type:qa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,sn.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(r,e){2&r&&n.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.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&&(n.F$t(zTe),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[sn.wG],encapsulation:2,changeDetection:0});var JTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),QTe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),XTe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return dw}),multi:!0},$Te=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.source=r,this.option=e,this.options=i}),Qx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.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 n.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,V.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,Hn.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,Hn.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,sn.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}(QTe);Qx.\u0275fac=function(r){return new(r||Qx)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return dw})))},Qx.\u0275cmp=n.Xpm({type:Qx,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,sn.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(VTe,5),2&r)&&(n.iGM(i=n.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&&n.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(n.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),n.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:[n.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&&(n.F$t(GTe),n.TgZ(0,"div",0),n._UZ(1,"div",1),n.YNc(2,YTe,1,2,"mat-pseudo-checkbox",2),n.TgZ(3,"div",3,4),n.Hsn(5),n.qZA(),n.Hsn(6,1),n.qZA()),2&r&&(n.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),n.xp6(1),n.Q6J("ngIf",e.selectionList.multiple))},directives:[sn.nP,sn.wG,wt.O5],encapsulation:2,changeDetection:0});var dw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this))._element=i,l._changeDetector=a,l._focusMonitor=s,l._multiple=!0,l._contentInitialized=!1,l.selectionChange=new n.vpe,l.tabIndex=0,l.color="accent",l.compareWith=function(u,f){return u===f},l._disabled=!1,l.selectedOptions=new po.Ov(l._multiple),l._tabIndex=-1,l._onChange=function(u){},l._destroyed=new qn.xQ,l._onTouched=function(){},l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Hn.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Hn.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new po.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var a,o=this;this._contentInitialized=!0,this._keyManager=new Oi.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,ua.O)(null),(0,Yr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){if(s.added){var u,l=(0,cn.Z)(s.added);try{for(l.s();!(u=l.n()).done;){u.value.selected=!0}}catch(B){l.e(B)}finally{l.f()}}if(s.removed){var v,h=(0,cn.Z)(s.removed);try{for(h.s();!(v=h.n()).done;){v.value.selected=!1}}catch(B){h.e(B)}finally{h.f()}}}),null===(a=this._focusMonitor)||void 0===a||a.monitor(this._element).pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){var l;if("keyboard"===s||"program"===s){for(var u=0,f=0;f<o.options.length;f++)if(null===(l=o.options.get(f))||void 0===l?void 0:l.selected){u=f;break}o._keyManager.setActiveItem(u)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){var o;null===(o=this._focusMonitor)||void 0===o||o.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,Gr.Vb)(o);switch(a){case Gr.L_:case Gr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Gr.A&&this.multiple&&(0,Gr.Vb)(o,"ctrlKey")&&!s.isTyping()){var f=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(f,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Gr.LH||a===Gr.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 $Te(this,o[0],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}(JTe);dw.\u0275fac=function(r){return new(r||dw)(n.Y36(n.SBq),n.$8M("tabindex"),n.Y36(n.sBO),n.Y36(Oi.tE))},dw.\u0275cmp=n.Xpm({type:dw,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Qx,5),2&r)&&(n.iGM(o=n.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&n.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&n.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[n._Bn([XTe]),n.qOj,n.TTD],ngContentSelectors:RH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[$ee],encapsulation:2,changeDetection:0});var fw=(0,V.Z)(function t(){(0,j.Z)(this,t)});fw.\u0275fac=function(r){return new(r||fw)},fw.\u0275mod=n.oAB({type:fw}),fw.\u0275inj=n.cJS({imports:[[sn.uc,sn.si,sn.BQ,sn.us,wt.ez],sn.uc,sn.BQ,sn.us,ag.t]});var Xx=function(){function t(r){(0,j.Z)(this,t),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,V.Z)(t,[{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/"}}]),t}();Xx.\u0275fac=function(r){return new(r||Xx)(n.Y36(zu.eN))},Xx.\u0275cmp=n.Xpm({type:Xx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Help"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),n._uU(10," Useful shortcuts "),n.qZA()(),n.TgZ(11,"mat-list")(12,"mat-list-item"),n._uU(13," ctrl + + to zoom in "),n.qZA(),n.TgZ(14,"mat-list-item"),n._uU(15," ctrl + - to zoom out "),n.qZA(),n.TgZ(16,"mat-list-item"),n._uU(17," ctrl + 0 to reset zoom "),n.qZA(),n.TgZ(18,"mat-list-item"),n._uU(19," ctrl + h to hide toolbar "),n.qZA(),n.TgZ(20,"mat-list-item"),n._uU(21," ctrl + a to select all items on map "),n.qZA(),n.TgZ(22,"mat-list-item"),n._uU(23," ctrl + shift + a to deselect all items on map "),n.qZA(),n.TgZ(24,"mat-list-item"),n._uU(25," ctrl + shift + s to go to preferences "),n.qZA()()(),n.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),n._uU(29," Third party components "),n.qZA()(),n.TgZ(30,"a",4),n._UZ(31,"div",5),n.qZA()(),n.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),n._uU(35," Release notes "),n.qZA()(),n._UZ(36,"div",5),n.qZA()()(),n.TgZ(37,"button",6),n.NdJ("click",function(){return e.goToDocumentation()}),n._uU(38,"Go to documentation"),n.qZA()()()),2&r&&(n.xp6(31),n.Q6J("innerHTML",e.thirdpartylicenses,n.oJD),n.xp6(5),n.Q6J("innerHTML",e.releasenotes,n.oJD))},directives:[Ml,Jl,Ql,hu,Hh,qa,Tn],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 as=m(4766),r0=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{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}}]),t}();r0.\u0275fac=function(r){return new(r||r0)(n.LFG(sl))},r0.\u0275prov=n.Yz7({token:r0,factory:r0.\u0275fac});var i0=function(){function t(r){(0,j.Z)(this,t),this.platformService=r}return(0,V.Z)(t,[{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 as.N.solarputty_download_url&&(i.resource=as.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),t}();i0.\u0275fac=function(r){return new(r||i0)(n.LFG(r0))},i0.\u0275prov=n.Yz7({token:i0,factory:i0.\u0275fac});var o0=function(){function t(r,e){(0,j.Z)(this,t),this.electronService=r,this.externalSoftwareDefinition=e}return(0,V.Z)(t,[{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})}}]),t}();o0.\u0275fac=function(r){return new(r||o0)(n.LFG(sl),n.LFG(i0))},o0.\u0275prov=n.Yz7({token:o0,factory:o0.\u0275fac});var eEe=[[["caption"]],[["colgroup"],["col"]]];function nEe(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function rEe(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}var $x=(0,V.Z)(function t(){(0,j.Z)(this,t)});$x.\u0275fac=function(r){return new(r||$x)},$x.\u0275dir=n.lG2({type:$x,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var ca=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,V.Z)(e)}(Sc);ca.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(ca)))(e||ca)}}(),ca.\u0275cmp=n.Xpm({type:ca,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:po.k,useClass:po.yy},{provide:Sc,useExisting:ca},{provide:k_,useExisting:ca},{provide:P1,useClass:xf},{provide:Af,useValue:null}]),n.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(n.F$t(eEe),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Sd,oh,Of,xd],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}\n"],encapsulation:2});var da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(fu);da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(da)))(e||da)}}(),da.\u0275dir=n.lG2({type:da,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:fu,useExisting:da}]),n.qOj]});var fa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Mc);fa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(fa)))(e||fa)}}(),fa.\u0275dir=n.lG2({type:fa,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Mc,useExisting:fa}]),n.qOj]});var a0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(kd);a0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(a0)))(e||a0)}}(),a0.\u0275dir=n.lG2({type:a0,selectors:[["","matFooterCellDef",""]],features:[n._Bn([{provide:kd,useExisting:a0}]),n.qOj]});var aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(kl);aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(aa)))(e||aa)}}(),aa.\u0275dir=n.lG2({type:aa,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:kl,useExisting:aa},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:aa}]),n.qOj]});var Sa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(eh);Sa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Sa)))(e||Sa)}}(),Sa.\u0275dir=n.lG2({type:Sa,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]});var pw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(T_);pw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(pw)))(e||pw)}}(),pw.\u0275dir=n.lG2({type:pw,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.qOj]});var xa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(th);xa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xa)))(e||xa)}}(),xa.\u0275dir=n.lG2({type:xa,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]});var Da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Td);Da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Da)))(e||Da)}}(),Da.\u0275dir=n.lG2({type:Da,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:Td,useExisting:Da}]),n.qOj]});var s0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Hu);s0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(s0)))(e||s0)}}(),s0.\u0275dir=n.lG2({type:s0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n._Bn([{provide:Hu,useExisting:s0}]),n.qOj]});var Aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Ed);Aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Aa)))(e||Aa)}}(),Aa.\u0275dir=n.lG2({type:Aa,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:Ed,useExisting:Aa}]),n.qOj]});var Oa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(rh);Oa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Oa)))(e||Oa)}}(),Oa.\u0275cmp=n.Xpm({type:Oa,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:rh,useExisting:Oa}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var l0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ih);l0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(l0)))(e||l0)}}(),l0.\u0275cmp=n.Xpm({type:l0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n._Bn([{provide:ih,useExisting:l0}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Ia=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Md);Ia.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ia)))(e||Ia)}}(),Ia.\u0275cmp=n.Xpm({type:Ia,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Md,useExisting:Ia}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var u0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,V.Z)(e)}(Df);u0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(u0)))(e||u0)}}(),u0.\u0275dir=n.lG2({type:u0,selectors:[["ng-template","matNoDataRow",""]],features:[n._Bn([{provide:Df,useExisting:u0}]),n.qOj]});var hw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(If);hw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(hw)))(e||hw)}}(),hw.\u0275cmp=n.Xpm({type:hw,selectors:[["mat-text-column"]],features:[n.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&&(n.ynx(0,0),n.YNc(1,nEe,2,3,"th",1),n.YNc(2,rEe,2,3,"td",2),n.BQk())},directives:[aa,fa,Sa,da,xa],encapsulation:2});var mw=(0,V.Z)(function t(){(0,j.Z)(this,t)});mw.\u0275fac=function(r){return new(r||mw)},mw.\u0275mod=n.oAB({type:mw}),mw.\u0275inj=n.cJS({imports:[[ju,sn.BQ],sn.BQ]});var iEe=9007199254740991,oEe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,j.Z)(this,e),(i=r.call(this))._renderData=new go.X([]),i._filter=new go.X(""),i._internalPageChanges=new qn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Hn.t6)(l)){var u=Number(l);return u<iEe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(f,h){var v=i.sortingDataAccessor(f,l),C=i.sortingDataAccessor(h,l),B=typeof v,G=typeof C;B!==G&&("number"===B&&(v+=""),"number"===G&&(C+=""));var q=0;return null!=v&&null!=C?v>C?q=1:v<C&&(q=-1):null!=v?q=1:null!=C&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(f,h){return f+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new go.X(o),i._updateChangeSubscription(),i}return(0,V.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,To.T)(this._sort.sortChange,this._sort.initialized):(0,pr.of)(null),l=this._paginator?(0,To.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,pr.of)(null),u=this._data,f=(0,uh.aj)([u,this._filter]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._filterData(G)})),h=(0,uh.aj)([f,s]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._orderData(G)})),v=(0,uh.aj)([h,l]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._pageData(G)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=v.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}(po.o2),_w=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(oEe),Ju=m(4068),aEe=function(r,e){return{hidden:r,lightTheme:e}},sEe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,gw=function(){function t(r,e,i){(0,j.Z)(this,t),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,V.Z)(t,[{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?void 0:a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=sEe.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}))}}]),t}();function lEe(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.buttonText)}}gw.\u0275fac=function(r){return new(r||gw)(n.Y36(zu.eN),n.Y36(Ju.f),n.Y36(wt.Ye))},gw.\u0275cmp=n.Xpm({type:gw,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),n._uU(4),n.qZA()(),n.TgZ(5,"button")(6,"a",3),n._uU(7),n.qZA()()(),n.TgZ(8,"mat-icon",4),n.NdJ("click",function(){return e.hide()}),n._uU(9,"close"),n.qZA()()),2&r&&(n.Q6J("ngClass",n.WLB(5,aEe,!e.isVisible,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("href",e.adUrl,n.LSH),n.xp6(1),n.Oqu(e.adBody),n.xp6(2),n.Q6J("href",e.adUrl,n.LSH),n.xp6(1),n.Oqu(e.buttonLabel))},directives:[wt.mk,Vn],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 e2=function(){function t(r){(0,j.Z)(this,t),this.electronService=r,this.installedChanged=new n.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,V.Z)(t,[{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"}}]),t}();function uEe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}function cEe(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){var e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function dEe(t,r){1&t&&(n.ynx(0),n._UZ(1,"app-adbutler",14),n.BQk())}function fEe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,cEe,2,1,"ng-container",13),n.YNc(2,dEe,2,0,"ng-container",13),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("ngIf","adbutler"!==e.type),n.xp6(1),n.Q6J("ngIf","adbutler"===e.type)}}function pEe(t,r){1&t&&n._UZ(0,"mat-header-cell")}function hEe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-install-software",17),n.NdJ("installedChanged",function(a){return n.CHM(e),n.oxw(2).onInstalled(a)}),n.qZA()}if(2&t){var i=n.oxw().$implicit;n.Q6J("software",i)}}function mEe(t,r){if(1&t&&(n.TgZ(0,"mat-cell",15),n.YNc(1,hEe,1,1,"app-install-software",16),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("ngIf","adbutler"!==e.type)}}function _Ee(t,r){1&t&&n._UZ(0,"mat-header-row")}function gEe(t,r){1&t&&n._UZ(0,"mat-row")}e2.\u0275fac=function(r){return new(r||e2)(n.Y36(sl))},e2.\u0275cmp=n.Xpm({type:e2,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[n.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.install()}),n.YNc(1,lEe,2,1,"ng-container",1),n.qZA()),2&r&&(n.Q6J("disabled",e.disabled),n.xp6(1),n.Q6J("ngIf",e.readyToInstall))},directives:[Tn,wt.O5],styles:[""]});var t2=function(){function t(r,e){(0,j.Z)(this,t),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.dataSource=new vEe(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),t}();t2.\u0275fac=function(r){return new(r||t2)(n.Y36(o0),n.Y36(n.sBO))},t2.\u0275cmp=n.Xpm({type:t2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Installed software"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),n.ynx(8,6),n.YNc(9,uEe,2,0,"mat-header-cell",7),n.YNc(10,fEe,3,2,"mat-cell",8),n.BQk(),n.ynx(11,9),n.YNc(12,pEe,1,0,"mat-header-cell",7),n.YNc(13,mEe,2,1,"mat-cell",10),n.BQk(),n.YNc(14,_Ee,1,0,"mat-header-row",11),n.YNc(15,gEe,1,0,"mat-row",12),n.qZA()()()()),2&r&&(n.xp6(6),n.Q6J("dataSource",e.dataSource),n.xp6(8),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ca,aa,fa,Sa,da,xa,wt.O5,gw,e2,Da,Oa,Aa,Ia],styles:[""]});var vEe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new go.X([]),o}return(0,V.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}(po.o2);m(5561);function LH(){LH=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var jh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.controller_id=""}return(0,V.Z)(t,[{key:"login",value:function(e,i,o){var a=(new zu.LE).set("username",i).set("password",o),s={headers:(new zu.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return Yi(this,void 0,void 0,LH().mark(function o(){return LH().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/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)}))}}]),t}();jh.\u0275fac=function(r){return new(r||jh)(n.LFG(Wo.zw))},jh.\u0275prov=n.Yz7({token:jh,factory:jh.\u0275fac});var zh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),t}();zh.\u0275fac=function(r){return new(r||zh)(n.LFG(Wo.zw))},zh.\u0275prov=n.Yz7({token:zh,factory:zh.\u0275fac});var TZ=m(7144),yEe=["input"],bEe=function(r){return{enterDuration:r}},wEe=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:rte});function rte(){return{color:"accent",clickAction:"check-indeterminate"}}var kEe=0,ite={color:"accent",clickAction:"check-indeterminate"},TEe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return Ui}),multi:!0},EEe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),MEe=(0,sn.sb)((0,sn.pj)((0,sn.Kr)((0,sn.Id)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}())))),Ui=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i))._changeDetectorRef=o,h._focusMonitor=a,h._ngZone=s,h._animationMode=u,h._options=f,h.ariaLabel="",h.ariaLabelledby=null,h._uniqueId="mat-checkbox-".concat(++kEe),h.id=h._uniqueId,h.labelPosition="after",h.name=null,h.change=new n.vpe,h.indeterminateChange=new n.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||ite,h.color=h.defaultColor=h._options.color||ite.color,h.tabIndex=parseInt(l)||0,h}return(0,V.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,Hn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Hn.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,Hn.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,Hn.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._elementRef.nativeElement;if(a!==o&&(this._currentAnimationClass.length>0&&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(){var o=new EEe;o.source=this,o.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(o),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_onInputClick",value:function(o){var s,a=this,l=null===(s=this._options)||void 0===s?void 0:s.clickAction;o.stopPropagation(),this.disabled||"noop"===l?!this.disabled&&"noop"===l&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==l&&Promise.resolve().then(function(){a._indeterminate=!1,a.indeterminateChange.emit(a._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";var s="";switch(o){case 0:if(1===a)s="unchecked-checked";else{if(3!=a)return"";s="unchecked-indeterminate"}break;case 2:s=1===a?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===a?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===a?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(MEe);Ui.\u0275fac=function(r){return new(r||Ui)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Oi.tE),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(Ta.Qb,8),n.Y36(wEe,8))},Ui.\u0275cmp=n.Xpm({type:Ui,selectors:[["mat-checkbox"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(yEe,5),n.Gf(sn.wG,5)),2&r)&&(n.iGM(i=n.CRH())&&(e._inputElement=i.first),n.iGM(i=n.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(n.Ikx("id",e.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.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",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"},exportAs:["matCheckbox"],features:[n._Bn([TEe]),n.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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&r){var i=n.MAs(1),o=n.MAs(13);n.uIk("for",e.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),n.xp6(1),n.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),n.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,bEe,"NoopAnimations"===e._animationMode?0:150))}},directives:[sn.wG,TZ.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.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:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-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:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0});var SEe={provide:ne.Cf,useExisting:(0,n.Gpc)(function(){return vw}),multi:!0},vw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ne.Zs);vw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(vw)))(e||vw)}}(),vw.\u0275dir=n.lG2({type:vw,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[n._Bn([SEe]),n.qOj]});var c0=(0,V.Z)(function t(){(0,j.Z)(this,t)});c0.\u0275fac=function(r){return new(r||c0)},c0.\u0275mod=n.oAB({type:c0}),c0.\u0275inj=n.cJS({});var d0=(0,V.Z)(function t(){(0,j.Z)(this,t)});function n2(){n2=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function xEe(t,r){1&t&&n._UZ(0,"mat-icon",15)}function DEe(t,r){1&t&&n._UZ(0,"mat-icon",16)}function AEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter username"),n.qZA())}function OEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter password"),n.qZA())}function IEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Authentication was unsuccessful"),n.qZA())}d0.\u0275fac=function(r){return new(r||d0)},d0.\u0275mod=n.oAB({type:d0}),d0.\u0275inj=n.cJS({imports:[[sn.si,sn.BQ,TZ.Q8,c0],sn.BQ,c0]});var r2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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.isRememberMeCheked=!1,this.loginForm=new ne.cw({username:new ne.NI("",[ne.kI.required]),password:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e;return Yi(this,void 0,void 0,n2().mark(function i(){var a,s,o=this;return n2().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(f){o.controller=f,f.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.isRememberMeCheked=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,n2().mark(function s(){var l;return n2().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,f.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 f.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.isRememberMeCheked=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)}}]),t}();r2.\u0275fac=function(r){return new(r||r2)(n.Y36(jh),n.Y36(vr),n.Y36(up),n.Y36(xr),n.Y36(kr),n.Y36($n),n.Y36(zh),n.Y36(Ju.f))},r2.\u0275cmp=n.Xpm({type:r2,selectors:[["app-login"]],decls:26,vars:9,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),n.YNc(5,xEe,1,0,"mat-icon",5),n.YNc(6,DEe,1,0,"mat-icon",6),n.TgZ(7,"div")(8,"h1"),n._uU(9,"GNS3"),n.qZA(),n.TgZ(10,"h6"),n._uU(11),n.qZA()()()(),n.TgZ(12,"form",7)(13,"mat-form-field"),n._UZ(14,"input",8),n.YNc(15,AEe,2,0,"mat-error",9),n.qZA(),n.TgZ(16,"mat-form-field"),n._UZ(17,"input",10),n.YNc(18,OEe,2,0,"mat-error",9),n.qZA()(),n.TgZ(19,"mat-checkbox",11),n.NdJ("change",function(o){return e.rememberMe(o)}),n._uU(20,"Remember me"),n.qZA(),n.TgZ(21,"div",12)(22,"button",13),n.NdJ("click",function(){return e.login()}),n._uU(23,"Login"),n.qZA()()(),n.TgZ(24,"div",14),n.YNc(25,IEe,2,0,"mat-error",9),n.qZA()()()),2&r&&(n.xp6(5),n.Q6J("ngIf",!e.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",e.isLightThemeEnabled),n.xp6(5),n.hij("v",e.version,""),n.xp6(1),n.Q6J("formGroup",e.loginForm),n.xp6(3),n.Q6J("ngIf",e.loginForm.get("username").hasError("required")),n.xp6(3),n.Q6J("ngIf",e.loginForm.get("password").hasError("required")),n.xp6(1),n.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeCheked),n.xp6(6),n.Q6J("ngIf",e.loginError))},directives:[Si,wt.O5,Vn,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Un.TO,Ui,Tn],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 i2=(0,V.Z)(function t(){(0,j.Z)(this,t)});i2.\u0275fac=function(r){return new(r||i2)},i2.\u0275cmp=n.Xpm({type:i2,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&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"br"),n.TgZ(3,"h1"),n._uU(4,"404 Page not found"),n.qZA(),n.TgZ(5,"button",2),n._uU(6,"Navigate to homepage"),n.qZA()()())},directives:[Tn,na],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var o2=function(){function t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();o2.\u0275fac=function(r){return new(r||o2)(n.Y36(xr))},o2.\u0275cmp=n.Xpm({type:o2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"Built-in templates"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),n._uU(14," Ethernet hub templates "),n.qZA(),n.TgZ(15,"mat-list-item",9),n._uU(16," Ethernet switch templates "),n.qZA(),n.TgZ(17,"mat-list-item",9),n._uU(18," Cloud node templates "),n.qZA()()()()()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",e.controllerId,"/preferences"),n.xp6(9),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},directives:[Tn,na,Vn,Vs,qa],styles:["",".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 EZ,PEe=new Uint8Array(16);function REe(){if(!EZ&&!(EZ="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 EZ(PEe)}var LEe=/^(?:[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 NEe=function ZEe(t){return"string"==typeof t&&LEe.test(t)},cl=[],ZH=0;ZH<256;++ZH)cl.push((ZH+256).toString(16).substr(1));var FEe=function BEe(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(cl[t[r+0]]+cl[t[r+1]]+cl[t[r+2]]+cl[t[r+3]]+"-"+cl[t[r+4]]+cl[t[r+5]]+"-"+cl[t[r+6]]+cl[t[r+7]]+"-"+cl[t[r+8]]+cl[t[r+9]]+"-"+cl[t[r+10]]+cl[t[r+11]]+cl[t[r+12]]+cl[t[r+13]]+cl[t[r+14]]+cl[t[r+15]]).toLowerCase();if(!NEe(e))throw TypeError("Stringified UUID is invalid");return e};var _s=function UEe(t,r,e){var i=(t=t||{}).random||(t.rng||REe)();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 FEe(i)},Xl=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();Xl.\u0275fac=function(r){return new(r||Xl)(n.LFG(Wo.zw))},Xl.\u0275prov=n.Yz7({token:Xl,factory:Xl.\u0275fac});var Sl=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getQemuTemplate",value:function(){return(0,pr.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",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:""})}},{key:"getVpcsTemplate",value:function(){return(0,pr.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,pr.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,pr.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,pr.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,pr.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,pr.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",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,pr.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,pr.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",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,pr.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,pr.of)([])}}]),t}();Sl.\u0275fac=function(r){return new(r||Sl)},Sl.\u0275prov=n.Yz7({token:Sl,factory:Sl.\u0275fac});var Yd=m(5542),HEe=["input"],jEe=function(r){return{enterDuration:r}},WEe=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function VEe(){return{color:"accent"}}});var ote=0,YEe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return gs}),multi:!0},ate=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.value=e}),ste=new n.OlP("MatRadioGroup"),a2=function(){function t(r){(0,j.Z)(this,t),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(ote++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new n.vpe}return(0,V.Z)(t,[{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,Hn.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,Hn.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 ate(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()}}]),t}();a2.\u0275fac=function(r){return new(r||a2)(n.Y36(n.sBO))},a2.\u0275dir=n.lG2({type:a2,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var gs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(a2);gs.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(gs)))(e||gs)}}(),gs.\u0275dir=n.lG2({type:gs,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ys,5),2&r)&&(n.iGM(o=n.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([YEe,{provide:ste,useExisting:gs}]),n.qOj]});var GEe=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r}),MZ=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this,o))._changeDetector=a,v._focusMonitor=s,v._radioDispatcher=l,v._providerOverride=f,v._uniqueId="mat-radio-".concat(++ote),v.id=v._uniqueId,v.change=new n.vpe,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===u,h&&(v.tabIndex=(0,Hn.su)(h,0)),v._removeUniqueSelectionListener=l.listen(function(C,B){C!==v.id&&B===v.name&&(v.checked=!1)}),v}return(0,V.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Hn.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,Hn.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,Hn.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 ate(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,sn.Kr)((0,sn.sb)(GEe)));MZ.\u0275fac=function(r){n.$Z()},MZ.\u0275dir=n.lG2({type:MZ,viewQuery:function(r,e){var i;(1&r&&n.Gf(HEe,5),2&r)&&(n.iGM(i=n.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:[n.qOj]});var Ys=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){return(0,j.Z)(this,e),r.call(this,i,o,a,s,l,u,f,h)}return(0,V.Z)(e)}(MZ);Ys.\u0275fac=function(r){return new(r||Ys)(n.Y36(ste,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Oi.tE),n.Y36(po.A8),n.Y36(Ta.Qb,8),n.Y36(WEe,8),n.$8M("tabindex"))},Ys.\u0275cmp=n.Xpm({type:Ys,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.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:[n.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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&r){var i=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,jEe,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[sn.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;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}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0});var yw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function KEe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}yw.\u0275fac=function(r){return new(r||yw)},yw.\u0275mod=n.oAB({type:yw}),yw.\u0275inj=n.cJS({imports:[[sn.si,sn.BQ],sn.BQ]});var s2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),t}();s2.\u0275fac=function(r){return new(r||s2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36(kr),n.Y36($n),n.Y36(Sl),n.Y36(ne.qu),n.Y36(Yd.X))},s2.\u0275cmp=n.Xpm({type:s2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,KEe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New cloud node template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the cloud node locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA()()(),n.TgZ(16,"div",14)(17,"button",15),n.NdJ("click",function(){return e.goBack()}),n._uU(18,"Cancel"),n.qZA(),n.TgZ(19,"button",16),n.NdJ("click",function(){return e.addTemplate()}),n._uU(20,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[wt.O5,Tn,Vn,Si,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,ne.Fj,sr,ne.JJ,ne.u],styles:["",".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 Qu=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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"]}}]),t}();Qu.\u0275fac=function(r){return new(r||Qu)},Qu.\u0275prov=n.Yz7({token:Qu,factory:Qu.\u0275fac});var JEe=m(5154),cp=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.symbols=new go.X([]),this.maximumSymbolSize=80}return(0,V.Z)(t,[{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,JEe.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(as.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),t}();cp.\u0275fac=function(r){return new(r||cp)(n.LFG(Wo.zw))},cp.\u0275prov=n.Yz7({token:cp,factory:cp.\u0275fac});var l2=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),t}();l2.\u0275fac=function(r){return new(r||l2)},l2.\u0275pipe=n.Yjl({name:"filenamefilter",type:l2,pure:!0});var XEe=function(r){return{buttonSelected:r}},$Ee=function(r){return{imageSelected:r}};function eMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"button",13),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().setSelected(l.symbol_id)}),n._UZ(2,"img",14),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(3,XEe,o.isSelected===i.symbol_id)),n.xp6(1),n.Q6J("ngClass",n.VKq(5,$Ee,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),n.LSH)}}var tMe=function(){return{standalone:!0}},bw=function(){function t(r){(0,j.Z)(this,t),this.symbolService=r,this.symbolChanged=new n.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,V.Z)(t,[{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,f=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,f).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(as.N.current_version,"/symbols/").concat(e,"/raw")}}]),t}();bw.\u0275fac=function(r){return new(r||bw)(n.Y36(cp))},bw.\u0275cmp=n.Xpm({type:bw,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=n.EpF();n.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),n.NdJ("click",function(){return e.setFilter("all")}),n._uU(3,"All symbols"),n.qZA(),n.TgZ(4,"mat-radio-button",3),n.NdJ("click",function(){return e.setFilter("builtin")}),n._uU(5,"Built-in symbols"),n.qZA(),n.TgZ(6,"mat-radio-button",4),n.NdJ("click",function(){return e.setFilter("custom")}),n._uU(7,"Custom symbols"),n.qZA()(),n.TgZ(8,"input",5,6),n.NdJ("change",function(a){return e.uploadSymbolFile(a)}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return n.CHM(i),n.MAs(9).click()}),n.TgZ(11,"mat-icon"),n._uU(12,"add"),n.qZA(),n._uU(13," Add symbol "),n.qZA()(),n.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),n.NdJ("ngModelChange",function(a){return e.searchText=a}),n.qZA()()(),n.TgZ(17,"div",10),n.YNc(18,eMe,3,7,"div",11),n.ALo(19,"filenamefilter"),n.qZA()}2&r&&(n.xp6(16),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(6,tMe)),n.xp6(2),n.Q6J("ngForOf",n.xi3(19,3,e.filteredSymbols,e.searchText)))},directives:[gs,Ys,Tn,Vn,ne._Y,ne.JL,ne.F,Un.KE,sr,ne.Fj,ne.JJ,ne.On,wt.sg,wt.mk],pipes:[l2],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 mu=function(){function t(){(0,j.Z)(this,t),this.symbolChangedEmitter=new n.vpe,this.chosenSymbol=""}return(0,V.Z)(t,[{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)}}]),t}();function nMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function rMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function iMe(t,r){if(1&t&&(n.TgZ(0,"div",7)(1,"div",7),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function oMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function aMe(t,r){if(1&t&&(n.TgZ(0,"div",7)(1,"div",7),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function sMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Name "),n.qZA())}function lMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function uMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Local port "),n.qZA())}function cMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.rport," ")}}function dMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Type "),n.qZA())}function fMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.rhost," ")}}function pMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Remote port "),n.qZA())}function hMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.lport," ")}}function mMe(t,r){1&t&&n._UZ(0,"tr",45)}function _Me(t,r){1&t&&n._UZ(0,"tr",46)}function gMe(t,r){if(1&t&&(n.TgZ(0,"table",34),n.ynx(1,35),n.YNc(2,sMe,2,0,"th",36),n.YNc(3,lMe,2,1,"td",37),n.BQk(),n.ynx(4,38),n.YNc(5,uMe,2,0,"th",36),n.YNc(6,cMe,2,1,"td",37),n.BQk(),n.ynx(7,39),n.YNc(8,dMe,2,0,"th",36),n.YNc(9,fMe,2,1,"td",37),n.BQk(),n.ynx(10,40),n.YNc(11,pMe,2,0,"th",36),n.YNc(12,hMe,2,1,"td",37),n.BQk(),n.YNc(13,mMe,1,0,"tr",41),n.YNc(14,_Me,1,0,"tr",42),n.qZA()),2&t){var e=n.oxw(2);n.Q6J("dataSource",e.dataSourceUdp),n.xp6(13),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function vMe(t,r){1&t&&n._UZ(0,"br")}mu.\u0275fac=function(r){return new(r||mu)},mu.\u0275cmp=n.Xpm({type:mu,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Symbol selection"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return e.cancelChooseSymbol()}),n._uU(6,"Cancel"),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.chooseSymbol()}),n._uU(8,"Choose symbol"),n.qZA()()(),n.TgZ(9,"div",6)(10,"app-symbols",7),n.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),n.qZA()()()),2&r&&(n.xp6(10),n.Q6J("controller",e.controller)("symbol",e.symbol))},directives:[Tn,bw],styles:["",".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 yMe=function(){return{standalone:!0}};function bMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General "),n.qZA()(),n.TgZ(6,"mat-form-field",7)(7,"input",8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.name=a}),n.qZA()(),n.TgZ(8,"mat-form-field",7)(9,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.default_name_format=a}),n.qZA()(),n.TgZ(10,"mat-form-field",7)(11,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.symbol=a}),n.qZA()(),n.TgZ(12,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(13,"Choose symbol"),n.qZA(),n._UZ(14,"br")(15,"br"),n.TgZ(16,"mat-form-field",7)(17,"mat-select",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.category=a}),n.YNc(18,nMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(19,"mat-form-field",14)(20,"mat-select",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.console_type=a}),n.YNc(21,rMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(22,"mat-form-field",7)(23,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_host=a}),n.qZA()(),n.TgZ(24,"mat-form-field",7)(25,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_port=a}),n.qZA()(),n.TgZ(26,"mat-form-field",7)(27,"input",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_http_path=a}),n.qZA()()(),n.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),n._uU(31," Ethernet interfaces "),n.qZA()(),n.YNc(32,iMe,5,1,"div",19),n.TgZ(33,"mat-form-field",14)(34,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetInterface=a}),n.YNc(35,oMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(36,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddEthernetInterface()}),n._uU(37,"Add"),n.qZA()(),n.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),n._uU(41," TAP interfaces "),n.qZA()(),n.YNc(42,aMe,5,1,"div",19),n.TgZ(43,"mat-form-field",7)(44,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().tapInterface=a}),n.qZA()(),n.TgZ(45,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddTapInterface()}),n._uU(46,"Add"),n.qZA()(),n.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),n._uU(50," UDP tunnels "),n.qZA()(),n.YNc(51,gMe,15,3,"table",23),n.YNc(52,vMe,1,0,"br",24),n.TgZ(53,"mat-form-field",7)(54,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.name=a}),n.qZA()(),n.TgZ(55,"mat-form-field",7)(56,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.lport=a}),n.qZA()(),n.TgZ(57,"mat-form-field",7)(58,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.rhost=a}),n.qZA()(),n.TgZ(59,"mat-form-field",7)(60,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.rport=a}),n.qZA()(),n.TgZ(61,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddUdpInterface()}),n._uU(62,"Add"),n.qZA()(),n.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),n._uU(66," Usage "),n.qZA()(),n.TgZ(67,"mat-form-field",7)(68,"textarea",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.usage=a}),n.qZA()()()(),n.TgZ(69,"div",30)(70,"button",31),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(71,"Cancel"),n.qZA(),n.TgZ(72,"button",32),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(73,"Save"),n.qZA(),n._UZ(74,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(7),n.Q6J("ngModel",i.cloudNodeTemplate.name),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.symbol),n.xp6(6),n.Q6J("ngModel",i.cloudNodeTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),n.xp6(5),n.Q6J("ngForOf",i.portsMappingEthernet),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(23,yMe))("ngModel",i.ethernetInterface),n.xp6(1),n.Q6J("ngForOf",i.ethernetInterfaces),n.xp6(7),n.Q6J("ngForOf",i.portsMappingTap),n.xp6(2),n.Q6J("ngModel",i.tapInterface),n.xp6(7),n.Q6J("ngIf",i.dataSourceUdp.length),n.xp6(1),n.Q6J("ngIf",i.dataSourceUdp.length),n.xp6(2),n.Q6J("ngModel",i.newPort.name),n.xp6(2),n.Q6J("ngModel",i.newPort.lport),n.xp6(2),n.Q6J("ngModel",i.newPort.rhost),n.xp6(2),n.Q6J("ngModel",i.newPort.rport),n.xp6(8),n.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function CMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",47),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var wMe=function(r){return{shadowed:r}},u2=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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,V.Z)(t,[{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,$t.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,$t.Z)(this.portsMappingEthernet),(0,$t.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}}]),t}();function kMe(t,r){}u2.\u0275fac=function(r){return new(r||u2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36($n),n.Y36(Qu),n.Y36(kr))},u2.\u0275cmp=n.Xpm({type:u2,selectors:[["app-cloud-nodes-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[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"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",1,"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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Cloud configuration"),n.qZA()(),n.YNc(5,bMe,75,24,"div",4),n.qZA(),n.YNc(6,CMe,1,2,"app-symbols-menu",5),n.qZA()),2&r&&(n.Q6J("ngClass",n.VKq(3,wMe,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.cloudNodeTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},directives:[wt.mk,wt.O5,Ml,Jl,Ql,hu,Un.KE,sr,ne.Fj,ne.JJ,ne.On,Tn,xi.gD,wt.sg,sn.ey,ca,aa,fa,Sa,da,xa,Da,Oa,Aa,Ia,ne.wV,mu],styles:["",".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 NH=(0,V.Z)(function t(){(0,j.Z)(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}),TMe={dialogContainer:(0,rn.X$)("dialogContainer",[(0,rn.SB)("void, exit",(0,rn.oB)({opacity:0,transform:"scale(0.7)"})),(0,rn.SB)("enter",(0,rn.oB)({transform:"none"})),(0,rn.eR)("* => enter",(0,rn.ru)([(0,rn.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({transform:"none",opacity:1})),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])),(0,rn.eR)("* => void, * => exit",(0,rn.ru)([(0,rn.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,rn.oB)({opacity:0})),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})]))])};var c2=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this))._elementRef=i,v._focusTrapFactory=o,v._changeDetectorRef=a,v._config=l,v._interactivityChecker=u,v._ngZone=f,v._focusMonitor=h,v._animationStateChanged=new n.vpe,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(C){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(C)},v._ariaLabelledBy=l.ariaLabelledBy||null,v._document=s,v}return(0,V.Z)(e,[{key:"_initializeWithAttachedContent",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Zi.ht)())}},{key:"attachComponentPortal",value:function(o){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(o)}},{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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&o&&"function"==typeof o.focus){var a=(0,Zi.ht)(),s=this._elementRef.nativeElement;(!a||a===this._document.body||a===s||s.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(o,this._closeInteractionType),this._closeInteractionType=null):o.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,Zi.ht)();return o===a||o.contains(a)}}]),e}(yo.en);c2.\u0275fac=function(r){return new(r||c2)(n.Y36(n.SBq),n.Y36(Oi.qV),n.Y36(n.sBO),n.Y36(wt.K0,8),n.Y36(NH),n.Y36(Oi.ic),n.Y36(n.R0b),n.Y36(Oi.tE))},c2.\u0275dir=n.lG2({type:c2,viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},features:[n.qOj]});var Cw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._state="enter",i}return(0,V.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===a&&(this._restoreFocus(),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:"_initializeWithAttachedContent",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"_initializeWithAttachedContent",this).call(this),this._config.delayFocusTrap||this._trapFocus()}}]),e}(c2);Cw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Cw)))(e||Cw)}}(),Cw.\u0275cmp=n.Xpm({type:Cw,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(r,e){1&r&&n.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(n.Ikx("id",e._id),n.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),n.d8E("@dialogContainer",e._state))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&n.YNc(0,kMe,0,0,"ng-template",0)},directives:[yo.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[TMe.dialogContainer]}});var EMe=0,Dr=function(){function t(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(EMe++);(0,j.Z)(this,t),this._overlayRef=r,this._containerInstance=e,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qn.xQ,this._afterClosed=new qn.xQ,this._beforeClosed=new qn.xQ,this._state=0,e._id=o,e._animationStateChanged.pipe((0,Ei.h)(function(a){return"opened"===a.state}),(0,no.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ei.h)(function(a){return"closed"===a.state}),(0,no.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),r.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),r.keydownEvents().pipe((0,Ei.h)(function(a){return a.keyCode===Gr.hY&&!i.disableClose&&!(0,Gr.Vb)(a)})).subscribe(function(a){a.preventDefault(),BH(i,"keyboard")}),r.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():BH(i,"mouse")})}return(0,V.Z)(t,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,Ei.h)(function(o){return"closing"===o.state}),(0,no.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._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._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var i=this._getPositionStrategy();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._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._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function BH(t,r,e){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=r),t.close(e)}var Vo=new n.OlP("MatDialogData"),MMe=new n.OlP("mat-dialog-default-options"),lte=new n.OlP("mat-dialog-scroll-strategy");var xMe={provide:lte,deps:[Ao.aV],useFactory:function SMe(t){return function(){return t.scrollStrategies.block()}}},SZ=function(){function t(r,e,i,o,a,s,l,u,f,h){var v=this;(0,j.Z)(this,t),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qn.xQ,this._afterOpenedAtThisLevel=new qn.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,j5.P)(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe((0,ua.O)(void 0))}),this._scrollStrategy=s}return(0,V.Z)(t,[{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 o=this;i=function DMe(t,r){return Object.assign(Object.assign({},r),t)}(i,this._defaultOptions||new NH),i.id&&this.getDialogById(i.id);var a=this._createOverlay(i),s=this._attachDialogContainer(a,i),l=this._attachDialogContent(e,s,a,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return o._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{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:"_createOverlay",value:function(e){var i=this._getOverlayConfig(e);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(e){var i=new Ao.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachDialogContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=n.zs3.create({parent:o||this._injector,providers:[{provide:NH,useValue:i}]}),s=new yo.C5(this._dialogContainerType,i.viewContainerRef,a,i.componentFactoryResolver);return e.attach(s).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){var s=new this._dialogRefConstructor(o,i,a.id);if(e instanceof n.Rgc)i.attachTemplatePortal(new yo.UE(e,null,{$implicit:a.data,dialogRef:s}));else{var l=this._createInjector(a,s,i),u=i.attachComponentPortal(new yo.C5(e,a.viewContainerRef,l,a.componentFactoryResolver));s.componentInstance=u.instance}return s.updateSize(a.width,a.height).updatePosition(a.position),s}},{key:"_createInjector",value:function(e,i,o){var a=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!a||!a.get(Es.Is,null,n.XFs.Optional))&&s.push({provide:Es.Is,useValue:{value:e.direction,change:(0,pr.of)()}}),n.zs3.create({parent:a||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(e){var i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(o,a){o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),t}();SZ.\u0275fac=function(r){n.$Z()},SZ.\u0275dir=n.lG2({type:SZ});var ri=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){return(0,j.Z)(this,e),r.call(this,i,o,s,u,f,l,Dr,Cw,Vo,h)}return(0,V.Z)(e)}(SZ);ri.\u0275fac=function(r){return new(r||ri)(n.LFG(Ao.aV),n.LFG(n.zs3),n.LFG(wt.Ye,8),n.LFG(MMe,8),n.LFG(lte),n.LFG(ri,12),n.LFG(Ao.Xj),n.LFG(Ta.Qb,8))},ri.\u0275prov=n.Yz7({token:ri,factory:ri.\u0275fac});var AMe=0,sg=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ute(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){BH(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();sg.\u0275fac=function(r){return new(r||sg)(n.Y36(Dr,8),n.Y36(n.SBq),n.Y36(ri))},sg.\u0275dir=n.lG2({type:sg,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&n.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:[n.TTD]});var Vr=function(){function t(r,e,i){(0,j.Z)(this,t),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(AMe++)}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=ute(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),t}();Vr.\u0275fac=function(r){return new(r||Vr)(n.Y36(Dr,8),n.Y36(n.SBq),n.Y36(ri))},Vr.\u0275dir=n.lG2({type:Vr,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var _u=(0,V.Z)(function t(){(0,j.Z)(this,t)});_u.\u0275fac=function(r){return new(r||_u)},_u.\u0275dir=n.lG2({type:_u,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var Zr=(0,V.Z)(function t(){(0,j.Z)(this,t)});function ute(t,r){for(var e=t.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}Zr.\u0275fac=function(r){return new(r||Zr)},Zr.\u0275dir=n.lG2({type:Zr,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]});var ww=(0,V.Z)(function t(){(0,j.Z)(this,t)});ww.\u0275fac=function(r){return new(r||ww)},ww.\u0275mod=n.oAB({type:ww}),ww.\u0275inj=n.cJS({providers:[ri,xMe],imports:[[Ao.U8,yo.eL,sn.BQ],sn.BQ]});var d2=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),t}();d2.\u0275fac=function(r){return new(r||d2)(n.Y36(Dr),n.Y36(Vo))},d2.\u0275cmp=n.Xpm({type:d2,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2,"Delete template"),n.qZA(),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n._UZ(5,"div",3),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return e.onNoClick()}),n._uU(8,"No"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){return e.onYesClick()}),n._uU(10," Yes "),n.qZA()()()),2&r&&(n.xp6(4),n.hij("Are you sure you want to delete template ",e.templateName,"?"))},directives:[Vr,_u,Zr,Tn],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var Gd=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.newTemplateCreated=new qn.xQ}return(0,V.Z)(t,[{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"})}}]),t}();Gd.\u0275fac=function(r){return new(r||Gd)(n.LFG(Wo.zw))},Gd.\u0275prov=n.Yz7({token:Gd,factory:Gd.\u0275fac});var pa=function(){function t(r,e,i){(0,j.Z)(this,t),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new n.vpe}return(0,V.Z)(t,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(d2,{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."))})})}}]),t}();pa.\u0275fac=function(r){return new(r||pa)(n.Y36(Gd),n.Y36(ri),n.Y36($n))},pa.\u0275cmp=n.Xpm({type:pa,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){},styles:[""]});var gu=(0,V.Z)(function t(){(0,j.Z)(this,t),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});gu.\u0275fac=function(r){return new(r||gu)},gu.\u0275cmp=n.Xpm({type:gu,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&&(n.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),n._uU(3),n.qZA()()()),2&r&&(n.xp6(3),n.hij(" ",e.emptyTemplatesListMessage," "))},directives:[Si],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var cte=m(9931),FH=m(943);function IMe(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}var dte=["*"];function PMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(a){return n.CHM(e),n.oxw()._handleKeydown(a)})("click",function(){return n.CHM(e),n.oxw().closed.emit("click")})("@transformMenu.start",function(a){return n.CHM(e),n.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return n.CHM(e),n.oxw()._onAnimationDone(a)}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),n.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var xZ={transformMenu:(0,rn.X$)("transformMenu",[(0,rn.SB)("void",(0,rn.oB)({opacity:0,transform:"scale(0.8)"})),(0,rn.eR)("void => enter",(0,rn.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({opacity:1,transform:"scale(1)"}))),(0,rn.eR)("* => void",(0,rn.jt)("100ms 25ms linear",(0,rn.oB)({opacity:0})))]),fadeInItems:(0,rn.X$)("fadeInItems",[(0,rn.SB)("showing",(0,rn.oB)({opacity:1})),(0,rn.eR)("void => *",[(0,rn.oB)({opacity:0}),(0,rn.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fte=(xZ.fadeInItems,xZ.transformMenu,new n.OlP("MatMenuContent")),f2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new qn.xQ}return(0,V.Z)(t,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new yo.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new yo.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()}}]),t}();f2.\u0275fac=function(r){return new(r||f2)(n.Y36(n.Rgc),n.Y36(n._Vd),n.Y36(n.z2F),n.Y36(n.zs3),n.Y36(n.s_b),n.Y36(wt.K0),n.Y36(n.sBO))},f2.\u0275dir=n.lG2({type:f2});var kw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(f2);kw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(kw)))(e||kw)}}(),kw.\u0275dir=n.lG2({type:kw,selectors:[["ng-template","matMenuContent",""]],features:[n._Bn([{provide:fte,useExisting:kw}]),n.qOj]});var UH=new n.OlP("MAT_MENU_PANEL"),RMe=(0,sn.Kr)((0,sn.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),Hr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f;return(0,j.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 qn.xQ,u._focused=new qn.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(f=null==s?void 0:s.addItem)||void 0===f||f.call(s,(0,Mx.Z)(u)),u}return(0,V.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}(RMe);Hr.\u0275fac=function(r){return new(r||Hr)(n.Y36(n.SBq),n.Y36(wt.K0),n.Y36(Oi.tE),n.Y36(UH,8),n.Y36(n.sBO))},Hr.\u0275cmp=n.Xpm({type:Hr,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(n.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),n.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:[n.qOj],attrs:["mat-menu-item",""],ngContentSelectors:dte,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&&(n.F$t(),n.Hsn(0),n._UZ(1,"div",0),n.YNc(2,IMe,2,0,"svg",1)),2&r&&(n.xp6(1),n.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),n.xp6(1),n.Q6J("ngIf",e._triggersSubmenu))},directives:[sn.wG,wt.O5],encapsulation:2,changeDetection:0});var pte=new n.OlP("mat-menu-default-options",{providedIn:"root",factory:function LMe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var ZMe=0,Wh=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 n.n_E,this._tabSubscription=Io.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new qn.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(ZMe++)}return(0,V.Z)(t,[{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,Hn.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,Hn.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 Oi.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,ua.O)(this._directDescendantItems),(0,xo.w)(function(i){return To.T.apply(void 0,(0,$t.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,ua.O)(this._directDescendantItems),(0,xo.w)(function(i){return To.T.apply(void 0,(0,$t.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 Gr.hY:(0,Gr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case Gr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Gr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===Gr.LH||i===Gr.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,no.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,ua.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),t}();Wh.\u0275fac=function(r){return new(r||Wh)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(pte),n.Y36(n.sBO))},Wh.\u0275dir=n.lG2({type:Wh,contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,fte,5),n.Suo(i,Hr,5),n.Suo(i,Hr,4)),2&r)&&(n.iGM(o=n.CRH())&&(e.lazyContent=o.first),n.iGM(o=n.CRH())&&(e._allItems=o),n.iGM(o=n.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(n.Rgc,5),2&r)&&(n.iGM(i=n.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 ss=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,V.Z)(e)}(Wh);ss.\u0275fac=function(r){return new(r||ss)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(pte),n.Y36(n.sBO))},ss.\u0275cmp=n.Xpm({type:ss,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:UH,useExisting:ss}]),n.qOj],ngContentSelectors:dte,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&&(n.F$t(),n.YNc(0,PMe,3,6,"ng-template"))},directives:[wt.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}.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:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[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}\n'],encapsulation:2,data:{animation:[xZ.transformMenu,xZ.fadeInItems]},changeDetection:0});var hte=new n.OlP("mat-menu-scroll-strategy");var BMe={provide:hte,deps:[Ao.aV],useFactory:function NMe(t){return function(){return t.scrollStrategies.reposition()}}},_te=(0,Zi.i$)({passive:!0}),p2=function(){function t(r,e,i,o,a,s,l,u,f){var h=this;(0,j.Z)(this,t),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Io.w.EMPTY,this._hoverSubscription=Io.w.EMPTY,this._menuCloseSubscription=Io.w.EMPTY,this._handleTouchStart=function(v){(0,Oi.yG)(v)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Wh?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,_te),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,V.Z)(t,[{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._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,_te),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;if(!this._menuOpen){this._checkMenu();var i=this._createOverlay(),o=i.getConfig(),a=o.positionStrategy;this._setPosition(a),o.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,i.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Wh&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,Yr.R)(this.menu.close)).subscribe(function(){a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){this.menu.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 i=this;if(this._overlayRef&&this.menuOpen){var o=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,o instanceof Wh?(o._resetAnimation(),o.lazyContent?o._animationDone.pipe((0,Ei.h)(function(a){return"void"===a.toState}),(0,no.q)(1),(0,Yr.R)(o.lazyContent._attached)).subscribe({next:function(){return o.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),o.lazyContent&&o.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,i=this.menu.parentMenu;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){this.menu}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Ao.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var i=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(o){var a="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";i._ngZone?i._ngZone.run(function(){return i.menu.setPositionClasses(a,s)}):i.menu.setPositionClasses(a,s)})}},{key:"_setPosition",value:function(e){var i="before"===this.menu.xPosition?["end","start"]:["start","end"],o=(0,Ut.Z)(i,2),a=o[0],s=o[1],l="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],u=(0,Ut.Z)(l,2),f=u[0],h=u[1],v=f,C=h,B=a,G=s,q=0;this.triggersSubmenu()?(G=a="before"===this.menu.xPosition?"start":"end",s=B="end"===a?"start":"end",q="bottom"===f?8:-8):this.menu.overlapTrigger||(v="top"===f?"bottom":"top",C="top"===h?"bottom":"top"),e.withPositions([{originX:a,originY:v,overlayX:B,overlayY:f,offsetY:q},{originX:s,originY:v,overlayX:G,overlayY:f,offsetY:q},{originX:a,originY:C,overlayX:B,overlayY:h,offsetY:-q},{originX:s,originY:C,overlayX:G,overlayY:h,offsetY:-q}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,pr.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ei.h)(function(l){return l!==e._menuItemInstance}),(0,Ei.h)(function(){return e._menuOpen})):(0,pr.of)();return(0,To.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Oi.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===Gr.K5||i===Gr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===Gr.SV&&"ltr"===this.dir||i===Gr.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,Ei.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,FH.g)(0,cte.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Wh&&e.menu._isAnimating?e.menu._animationDone.pipe((0,no.q)(1),(0,FH.g)(0,cte.E),(0,Yr.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new yo.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();p2.\u0275fac=function(r){return new(r||p2)(n.Y36(Ao.aV),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(hte),n.Y36(UH,8),n.Y36(Hr,10),n.Y36(Es.Is,8),n.Y36(Oi.tE),n.Y36(n.R0b))},p2.\u0275dir=n.lG2({type:p2,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&n.uIk("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 Pa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p2);Pa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Pa)))(e||Pa)}}(),Pa.\u0275dir=n.lG2({type:Pa,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]});var lg=(0,V.Z)(function t(){(0,j.Z)(this,t)});function FMe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function UMe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function HMe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function jMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function zMe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,jMe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.cloudNodesTemplates)}}function WMe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,zMe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}lg.\u0275fac=function(r){return new(r||lg)},lg.\u0275mod=n.oAB({type:lg}),lg.\u0275inj=n.cJS({providers:[BMe],imports:[[wt.ez,sn.BQ,sn.si,Ao.U8],ka.ZD,sn.BQ]});var h2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();function VMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}h2.\u0275fac=function(r){return new(r||h2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl))},h2.\u0275cmp=n.Xpm({type:h2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,FMe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Cloud nodes templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,UMe,3,1,"button",7),n.qZA()()(),n.YNc(10,HMe,1,0,"app-empty-templates-list",8),n.YNc(11,WMe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.cloudNodesTemplates.length),n.xp6(1),n.Q6J("ngIf",e.cloudNodesTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),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()})}}}]),t}();function YMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function GMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",22),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}m2.\u0275fac=function(r){return new(r||m2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36(kr),n.Y36($n),n.Y36(Sl),n.Y36(ne.qu),n.Y36(Yd.X))},m2.\u0275cmp=n.Xpm({type:m2,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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,VMe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New Ethernet hub template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the Ethernet Hub locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA(),n.TgZ(16,"mat-form-field",12),n._UZ(17,"input",14),n.qZA()()(),n.TgZ(18,"div",15)(19,"button",16),n.NdJ("click",function(){return e.goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",17),n.NdJ("click",function(){return e.addTemplate()}),n._uU(22,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[wt.O5,Tn,Vn,Si,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,ne.Fj,sr,ne.JJ,ne.u,ne.wV],styles:["",".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 gte=function(){return{standalone:!0}};function qMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",12)(6,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.default_name_format=a}),n.qZA()(),n.TgZ(7,"mat-form-field",12)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.symbol=a}),n.qZA()(),n.TgZ(9,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(10,"Choose symbol"),n.qZA(),n._UZ(11,"br")(12,"br"),n.TgZ(13,"mat-form-field",12)(14,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.category=a}),n.YNc(15,GMe,2,2,"mat-option",18),n.qZA()(),n.TgZ(16,"mat-form-field",12)(17,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().numberOfPorts=a}),n.qZA()()()(),n.TgZ(18,"div",20)(19,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(22,"Save"),n.qZA(),n._UZ(23,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.name),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(9,gte))("ngModel",i.ethernetHubTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",n.DdM(10,gte))}}function KMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",23),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var JMe=function(r){return{shadowed:r}},_2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function QMe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function XMe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function $Me(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function eSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function tSe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,eSe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.ethernetHubsTemplates)}}function nSe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,tSe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}_2.\u0275fac=function(r){return new(r||_2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36($n),n.Y36(ne.qu),n.Y36(Qu),n.Y36(kr))},_2.\u0275cmp=n.Xpm({type:_2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,YMe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet hub settings"),n.qZA()()()(),n.YNc(8,qMe,24,11,"div",7),n.qZA(),n.YNc(9,KMe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,JMe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.ethernetHubTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ne.wV,mu],styles:["",".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 g2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();function rSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}g2.\u0275fac=function(r){return new(r||g2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl))},g2.\u0275cmp=n.Xpm({type:g2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,QMe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet hubs templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,XMe,3,1,"button",7),n.qZA()()(),n.YNc(10,$Me,1,0,"app-empty-templates-list",8),n.YNc(11,nSe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.ethernetHubsTemplates.length),n.xp6(1),n.Q6J("ngIf",e.ethernetHubsTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),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()})}}}]),t}();function iSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Port number"),n.qZA())}function oSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.port_number)}}function aSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"VLAN"),n.qZA())}function sSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.vlan)}}function lSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Type"),n.qZA())}function uSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.type)}}function cSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"EtherType"),n.qZA())}function dSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.ethertype)}}function fSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Actions"),n.qZA())}function pSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().delete(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"delete"),n.qZA()()()}}function hSe(t,r){1&t&&n._UZ(0,"tr",22)}function mSe(t,r){1&t&&n._UZ(0,"tr",23)}function _Se(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function gSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}v2.\u0275fac=function(r){return new(r||v2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36(kr),n.Y36($n),n.Y36(Sl),n.Y36(ne.qu),n.Y36(Yd.X))},v2.\u0275cmp=n.Xpm({type:v2,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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,rSe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New Ethernet switch template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the Ethernet switch locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA(),n.TgZ(16,"mat-form-field",12),n._UZ(17,"input",14),n.qZA()()(),n.TgZ(18,"div",15)(19,"button",16),n.NdJ("click",function(){return e.goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",17),n.NdJ("click",function(){return e.addTemplate()}),n._uU(22,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[wt.O5,Tn,Vn,Si,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,ne.Fj,sr,ne.JJ,ne.u,ne.wV],styles:["",".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 vte=function(){return{standalone:!0}},ug=function(){function t(r){(0,j.Z)(this,t),this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAdd",value:function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.ethernetPorts=this.ethernetPorts.filter(function(i){return i!==e})}}]),t}();function vSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function ySe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function bSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}ug.\u0275fac=function(r){return new(r||ug)(n.Y36(Qu))},ug.\u0275cmp=n.Xpm({type:ug,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-table","",1,"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","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","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&&(n.TgZ(0,"table",0),n.ynx(1,1),n.YNc(2,iSe,2,0,"th",2),n.YNc(3,oSe,2,1,"td",3),n.BQk(),n.ynx(4,4),n.YNc(5,aSe,2,0,"th",2),n.YNc(6,sSe,2,1,"td",3),n.BQk(),n.ynx(7,5),n.YNc(8,lSe,2,0,"th",2),n.YNc(9,uSe,2,1,"td",3),n.BQk(),n.ynx(10,6),n.YNc(11,cSe,2,0,"th",2),n.YNc(12,dSe,2,1,"td",3),n.BQk(),n.ynx(13,7),n.YNc(14,fSe,2,0,"th",2),n.YNc(15,pSe,4,0,"td",3),n.BQk(),n.YNc(16,hSe,1,0,"tr",8),n.YNc(17,mSe,1,0,"tr",9),n.qZA(),n._UZ(18,"br"),n.TgZ(19,"mat-form-field",10)(20,"input",11),n.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),n.qZA()(),n.TgZ(21,"mat-form-field",10)(22,"input",12),n.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),n.qZA()(),n.TgZ(23,"mat-form-field",13)(24,"mat-select",14),n.NdJ("ngModelChange",function(o){return e.newPort.type=o}),n.YNc(25,_Se,2,2,"mat-option",15),n.qZA()(),n.TgZ(26,"mat-form-field",13)(27,"mat-select",16),n.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),n.YNc(28,gSe,2,2,"mat-option",15),n.qZA()(),n.TgZ(29,"button",17),n.NdJ("click",function(){return e.onAdd()}),n._uU(30,"Add"),n.qZA()),2&r&&(n.Q6J("dataSource",e.ethernetPorts),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(3),n.Q6J("ngModel",e.newPort.port_number),n.xp6(2),n.Q6J("ngModel",e.newPort.vlan),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(11,vte))("ngModel",e.newPort.type),n.xp6(1),n.Q6J("ngForOf",e.portTypes),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(12,vte))("ngModel",e.newPort.ethertype),n.xp6(1),n.Q6J("ngForOf",e.etherTypes))},directives:[ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,Un.KE,sr,ne.wV,ne.Fj,ne.JJ,ne.On,xi.gD,wt.sg,sn.ey],styles:[".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 yte=function(){return{standalone:!0}};function CSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",12)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",12)(12,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",12)(18,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.category=a}),n.YNc(19,ySe,2,2,"mat-option",18),n.qZA()(),n.TgZ(20,"mat-form-field",19)(21,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.console_type=a}),n.YNc(22,bSe,2,2,"mat-option",18),n.qZA()()()(),n.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),n._uU(26," Port settings "),n.qZA()(),n._UZ(27,"app-ports",21,22),n.qZA()(),n.TgZ(29,"div",23)(30,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(31,"Cancel"),n.qZA(),n.TgZ(32,"button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(33,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.name),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(11,yte))("ngModel",i.ethernetSwitchTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(12,yte))("ngModel",i.ethernetSwitchTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(5),n.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function wSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",27),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var kSe=function(r){return{shadowed:r}},y2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function TSe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function ESe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function MSe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function SSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function xSe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,SSe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function DSe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,xSe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}y2.\u0275fac=function(r){return new(r||y2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl),n.Y36($n),n.Y36(ne.qu),n.Y36(Qu),n.Y36(kr))},y2.\u0275cmp=n.Xpm({type:y2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(ug,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,vSe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet switch configuration"),n.qZA()()()(),n.YNc(8,CSe,34,13,"div",7),n.qZA(),n.YNc(9,wSe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,kSe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.ethernetSwitchTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ug,mu],styles:["",".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 b2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();b2.\u0275fac=function(r){return new(r||b2)(n.Y36(xr),n.Y36(vr),n.Y36(Xl))},b2.\u0275cmp=n.Xpm({type:b2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,TSe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet switches templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,ESe,3,1,"button",7),n.qZA()()(),n.YNc(10,MSe,1,0,"app-empty-templates-list",8),n.YNc(11,DSe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),n.xp6(1),n.Q6J("ngIf",e.ethernetSwitchesTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 HH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Uc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();Uc.\u0275fac=function(r){return new(r||Uc)(n.LFG(Wo.zw))},Uc.\u0275prov=n.Yz7({token:Uc,factory:Uc.\u0275fac});var dp=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","vnc","http","https","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"]}}]),t}();function ASe(t,r){1&t&&n.Hsn(0)}dp.\u0275fac=function(r){return new(r||dp)},dp.\u0275prov=n.Yz7({token:dp,factory:dp.\u0275fac});var Tw=function(){function t(r){(0,j.Z)(this,t),this._elementRef=r}return(0,V.Z)(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();Tw.\u0275fac=function(r){return new(r||Tw)(n.Y36(n.SBq))},Tw.\u0275dir=n.lG2({type:Tw,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var Ew=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});Ew.\u0275fac=function(r){return new(r||Ew)(n.Y36(n.Rgc))},Ew.\u0275dir=n.lG2({type:Ew,selectors:[["","cdkStepLabel",""]]});var ISe=0,Vh_NUMBER="number",Vh_EDIT="edit",Vh_DONE="done",Vh_ERROR="error",bte=new n.OlP("STEPPER_GLOBAL_OPTIONS"),f0=function(){function t(r,e){(0,j.Z)(this,t),this._stepper=r,this.interacted=!1,this.interactedStream=new n.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,V.Z)(t,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,Hn.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,Hn.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,Hn.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,Hn.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}}]),t}();f0.\u0275fac=function(r){return new(r||f0)(n.Y36((0,n.Gpc)(function(){return fp})),n.Y36(bte,8))},f0.\u0275cmp=n.Xpm({type:f0,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ew,5),2&r)&&(n.iGM(o=n.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&n.Gf(n.Rgc,7),2&r)&&(n.iGM(i=n.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:[n.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.YNc(0,ASe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var fp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new qn.xQ,this.steps=new n.n_E,this._sortedHeaders=new n.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new n.vpe,this._orientation="horizontal",this._groupId=ISe++}return(0,V.Z)(t,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,Hn.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,Hn.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,ua.O)(this._steps),(0,Yr.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,ua.O)(this._stepHeader),(0,Yr.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 Oi.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,pr.of)()).pipe((0,ua.O)(this._layoutDirection()),(0,Yr.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]:Vh_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?Vh_ERROR:!e.completed||i?Vh_NUMBER:e.editable?Vh_EDIT:Vh_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vh_NUMBER;return e._showError()&&e.hasError&&!i?Vh_ERROR:e.completed&&!i?Vh_DONE:e.completed&&i?o:e.editable&&i?Vh_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,Gr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==Gr.L_&&o!==Gr.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,Zi.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),t}();fp.\u0275fac=function(r){return new(r||fp)(n.Y36(Es.Is,8),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(wt.K0))},fp.\u0275dir=n.lG2({type:fp,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,f0,5),n.Suo(i,Tw,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._steps=o),n.iGM(o=n.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var C2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._stepper=r,this.type="submit"});C2.\u0275fac=function(r){return new(r||C2)(n.Y36(fp))},C2.\u0275dir=n.lG2({type:C2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._stepper.next()}),2&r&&n.Ikx("type",e.type)},inputs:{type:"type"}});var w2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._stepper=r,this.type="button"});w2.\u0275fac=function(r){return new(r||w2)(n.Y36(fp))},w2.\u0275dir=n.lG2({type:w2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._stepper.previous()}),2&r&&n.Ikx("type",e.type)},inputs:{type:"type"}});var Mw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function PSe(t,r){if(1&t&&n.GkF(0,8),2&t){var e=n.oxw();n.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function RSe(t,r){if(1&t&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function LSe(t,r){if(1&t&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.completedLabel)}}function ZSe(t,r){if(1&t&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.editableLabel)}}function NSe(t,r){if(1&t&&(n.TgZ(0,"mat-icon",13),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function BSe(t,r){if(1&t&&(n.ynx(0,9),n.YNc(1,RSe,2,1,"span",10),n.YNc(2,LSe,2,1,"span",11),n.YNc(3,ZSe,2,1,"span",11),n.YNc(4,NSe,2,1,"mat-icon",12),n.BQk()),2&t){var e=n.oxw();n.Q6J("ngSwitch",e.state),n.xp6(1),n.Q6J("ngSwitchCase","number"),n.xp6(1),n.Q6J("ngIf","done"===e.state),n.xp6(1),n.Q6J("ngIf","edit"===e.state)}}function FSe(t,r){if(1&t&&(n.TgZ(0,"div",15),n.GkF(1,16),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function USe(t,r){if(1&t&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.label)}}function HSe(t,r){if(1&t&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e._intl.optionalLabel)}}function jSe(t,r){if(1&t&&(n.TgZ(0,"div",18),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.errorMessage)}}function zSe(t,r){}function WSe(t,r){if(1&t&&(n.Hsn(0),n.YNc(1,zSe,0,0,"ng-template",0)),2&t){var e=n.oxw();n.xp6(1),n.Q6J("cdkPortalOutlet",e._portal)}}Mw.\u0275fac=function(r){return new(r||Mw)},Mw.\u0275mod=n.oAB({type:Mw}),Mw.\u0275inj=n.cJS({imports:[[Es.vT]]});function YSe(t,r){1&t&&n._UZ(0,"div",9)}var Cte=function(r,e){return{step:r,i:e}};function GSe(t,r){if(1&t&&(n.ynx(0),n.GkF(1,7),n.YNc(2,YSe,1,0,"div",8),n.BQk()),2&t){var e=r.$implicit,i=r.index,o=r.last;n.oxw(2);var a=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(3,Cte,e,i)),n.xp6(1),n.Q6J("ngIf",!o)}}function qSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10),n.NdJ("@horizontalStepTransition.done",function(l){return n.CHM(e),n.oxw(2)._animationDone.next(l)}),n.GkF(1,11),n.qZA()}if(2&t){var i=r.$implicit,o=r.index,a=n.oxw(2);n.Q6J("@horizontalStepTransition",a._getAnimationDirection(o))("id",a._getStepContentId(o)),n.uIk("aria-labelledby",a._getStepLabelId(o))("aria-expanded",a.selectedIndex===o),n.xp6(1),n.Q6J("ngTemplateOutlet",i.content)}}function KSe(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",3),n.YNc(2,GSe,3,6,"ng-container",4),n.qZA(),n.TgZ(3,"div",5),n.YNc(4,qSe,2,5,"div",6),n.qZA(),n.BQk()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngForOf",e.steps),n.xp6(2),n.Q6J("ngForOf",e.steps)}}function JSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",13),n.GkF(1,7),n.TgZ(2,"div",14)(3,"div",15),n.NdJ("@verticalStepTransition.done",function(f){return n.CHM(e),n.oxw(2)._animationDone.next(f)}),n.TgZ(4,"div",16),n.GkF(5,11),n.qZA()()()()}if(2&t){var i=r.$implicit,o=r.index,a=r.last,s=n.oxw(2),l=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",n.WLB(9,Cte,i,o)),n.xp6(1),n.ekj("mat-stepper-vertical-line",!a),n.xp6(1),n.Q6J("@verticalStepTransition",s._getAnimationDirection(o))("id",s._getStepContentId(o)),n.uIk("aria-labelledby",s._getStepLabelId(o))("aria-expanded",s.selectedIndex===o),n.xp6(2),n.Q6J("ngTemplateOutlet",i.content)}}function QSe(t,r){if(1&t&&(n.ynx(0),n.YNc(1,JSe,6,12,"div",12),n.BQk()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.steps)}}function XSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-step-header",17),n.NdJ("click",function(){return n.CHM(e).step.select()})("keydown",function(l){return n.CHM(e),n.oxw()._onKeydown(l)}),n.qZA()}if(2&t){var i=r.step,o=r.i,a=n.oxw();n.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),n.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),n.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 Yh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Ew);Yh.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Yh)))(e||Yh)}}(),Yh.\u0275dir=n.lG2({type:Yh,selectors:[["","matStepLabel",""]],features:[n.qOj]});var Gh=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});Gh.\u0275fac=function(r){return new(r||Gh)},Gh.\u0275prov=n.Yz7({token:Gh,factory:Gh.\u0275fac,providedIn:"root"});var exe={provide:Gh,deps:[[new n.FiY,new n.tp0,Gh]],useFactory:function $Se(t){return t||new Gh}},txe=(0,sn.pj)(function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){return(0,j.Z)(this,e),r.call(this,i)}return(0,V.Z)(e)}(Tw),"primary"),Sw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.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,V.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 Yh?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof Yh?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}(txe);Sw.\u0275fac=function(r){return new(r||Sw)(n.Y36(Gh),n.Y36(Oi.tE),n.Y36(n.SBq),n.Y36(n.sBO))},Sw.\u0275cmp=n.Xpm({type:Sw,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:[n.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&&(n._UZ(0,"div",0),n.TgZ(1,"div")(2,"div",1),n.YNc(3,PSe,1,2,"ng-container",2),n.YNc(4,BSe,5,4,"ng-container",3),n.qZA()(),n.TgZ(5,"div",4),n.YNc(6,FSe,2,1,"div",5),n.YNc(7,USe,2,1,"div",5),n.YNc(8,HSe,2,1,"div",6),n.YNc(9,jSe,2,1,"div",7),n.qZA()),2&r&&(n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),n.xp6(1),n.Gre("mat-step-icon-state-",e.state," mat-step-icon"),n.ekj("mat-step-icon-selected",e.selected),n.xp6(1),n.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),n.xp6(1),n.Q6J("ngIf",e._templateLabel()),n.xp6(1),n.Q6J("ngIf",e._stringLabel()),n.xp6(1),n.Q6J("ngIf",e.optional&&"error"!=e.state),n.xp6(1),n.Q6J("ngIf","error"==e.state))},directives:[Vn,sn.wG,wt.RF,wt.n9,wt.tP,wt.ED,wt.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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}\n"],encapsulation:2,changeDetection:0});var wte={horizontalStepTransition:(0,rn.X$)("horizontalStepTransition",[(0,rn.SB)("previous",(0,rn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,rn.SB)("current",(0,rn.oB)({transform:"none",visibility:"inherit"})),(0,rn.SB)("next",(0,rn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,rn.eR)("* => *",(0,rn.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,rn.X$)("verticalStepTransition",[(0,rn.SB)("previous",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("next",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("current",(0,rn.oB)({height:"*",visibility:"inherit"})),(0,rn.eR)("* <=> current",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},k2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});k2.\u0275fac=function(r){return new(r||k2)(n.Y36(n.Rgc))},k2.\u0275dir=n.lG2({type:k2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var T2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._template=r});T2.\u0275fac=function(r){return new(r||T2)(n.Y36(n.Rgc))},T2.\u0275dir=n.lG2({type:T2,selectors:[["ng-template","matStepContent",""]]});var Hc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=Io.w.EMPTY,l}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,xo.w)(function(){return o._stepper.selectionChange.pipe((0,mr.U)(function(a){return a.selectedStep===o}),(0,ua.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new yo.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}(f0);Hc.\u0275fac=function(r){return new(r||Hc)(n.Y36((0,n.Gpc)(function(){return Xu})),n.Y36(sn.rD,4),n.Y36(n.s_b),n.Y36(bte,8))},Hc.\u0275cmp=n.Xpm({type:Hc,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Yh,5),n.Suo(i,T2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.stepLabel=o.first),n.iGM(o=n.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[n._Bn([{provide:sn.rD,useExisting:Hc},{provide:f0,useExisting:Hc}]),n.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(n.F$t(),n.YNc(0,WSe,2,1,"ng-template"))},directives:[yo.Pl],encapsulation:2,changeDetection:0});var p0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(fp);p0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(p0)))(e||p0)}}(),p0.\u0275dir=n.lG2({type:p0,features:[n.qOj]});var xw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p0);xw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xw)))(e||xw)}}(),xw.\u0275dir=n.lG2({type:xw,selectors:[["mat-horizontal-stepper"]],features:[n.qOj]});var Dw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p0);Dw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Dw)))(e||Dw)}}(),Dw.\u0275dir=n.lG2({type:Dw,selectors:[["mat-vertical-stepper"]],features:[n.qOj]});var Xu=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;(0,j.Z)(this,e),(l=r.call(this,i,o,a,s)).steps=new n.n_E,l.animationDone=new n.vpe,l.labelPosition="end",l._iconOverrides={},l._animationDone=new qn.xQ;var u=a.nativeElement.nodeName.toLowerCase();return l.orientation="mat-vertical-stepper"===u?"vertical":"horizontal",l}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;(0,Ht.Z)((0,ln.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,Yr.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,OM.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Yr.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}}]),e}(fp);Xu.\u0275fac=function(r){return new(r||Xu)(n.Y36(Es.Is,8),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(wt.K0))},Xu.\u0275cmp=n.Xpm({type:Xu,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Hc,5),n.Suo(i,k2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._steps=o),n.iGM(o=n.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(Sw,5),2&r)&&(n.iGM(i=n.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(r,e){2&r&&(n.uIk("aria-orientation",e.orientation),n.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))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[n._Bn([{provide:fp,useExisting:Xu},{provide:xw,useExisting:Xu},{provide:Dw,useExisting:Xu}]),n.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",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&&(n.ynx(0,0),n.YNc(1,KSe,5,2,"ng-container",1),n.YNc(2,QSe,2,1,"ng-container",1),n.BQk(),n.YNc(3,XSe,1,23,"ng-template",null,2,n.W1O)),2&r&&(n.Q6J("ngSwitch",e.orientation),n.xp6(1),n.Q6J("ngSwitchCase","horizontal"),n.xp6(1),n.Q6J("ngSwitchCase","vertical"))},directives:[Sw,wt.RF,wt.n9,wt.sg,wt.tP,wt.O5],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-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-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.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-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[wte.horizontalStepTransition,wte.verticalStepTransition]},changeDetection:0});var Aw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(C2);Aw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Aw)))(e||Aw)}}(),Aw.\u0275dir=n.lG2({type:Aw,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("type",e.type)},inputs:{type:"type"},features:[n.qOj]});var Ow=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(w2);Ow.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ow)))(e||Ow)}}(),Ow.\u0275dir=n.lG2({type:Ow,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("type",e.type)},inputs:{type:"type"},features:[n.qOj]});var Iw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function nxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.image," ")}}Iw.\u0275fac=function(r){return new(r||Iw)},Iw.\u0275mod=n.oAB({type:Iw}),Iw.\u0275inj=n.cJS({providers:[exe,sn.rD],imports:[[sn.BQ,wt.ez,yo.eL,Fh,Mw,rg,sn.si],sn.BQ]});var kte=function(){return{standalone:!0}};function rxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedImage=a}),n.YNc(1,nxe,2,2,"mat-option",24),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("ngModelOptions",n.DdM(3,kte))("ngModel",i.selectedImage),n.xp6(1),n.Q6J("ngForOf",i.dockerImages)}}function ixe(t,r){1&t&&(n.TgZ(0,"div")(1,"mat-form-field",16),n._UZ(2,"input",32),n.qZA()())}function oxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var E2=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new HH,this.virtualMachineForm=this.formBuilder.group({filename:new ne.NI(null,ne.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new ne.NI("1",ne.kI.required)})}return(0,V.Z)(t,[{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.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=_s(),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()}))}}]),t}();function axe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}E2.\u0275fac=function(r){return new(r||E2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Sl),n.Y36(dp),n.Y36(Yd.X))},E2.\u0275cmp=n.Xpm({type:E2,selectors:[["app-add-docker-template"]],decls:43,vars:18,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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"New Docker container template"),n.qZA()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(11,"Run this Docker container locally"),n.qZA()()(),n.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(16,"Existing image"),n.qZA(),n.TgZ(17,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(18,"New image"),n.qZA()(),n.YNc(19,rxe,2,4,"mat-select",13),n.YNc(20,ixe,3,0,"div",14),n.qZA()(),n.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),n._UZ(24,"input",17),n.qZA()()(),n.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),n._UZ(28,"input",19),n.qZA()()(),n.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),n.qZA()()(),n.TgZ(32,"mat-step",22)(33,"mat-select",23),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),n.YNc(34,oxe,2,2,"mat-option",24),n.qZA()(),n.TgZ(35,"mat-step",25)(36,"mat-form-field",16)(37,"textarea",26),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),n.qZA()()()()(),n.TgZ(38,"div",27)(39,"button",28),n.NdJ("click",function(){return e.goBack()}),n._uU(40,"Cancel"),n.qZA(),n.TgZ(41,"button",29),n.NdJ("click",function(){return e.addTemplate()}),n._uU(42,"Add template"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),n.xp6(1),n.Q6J("formGroup",e.virtualMachineForm),n.xp6(6),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected),n.xp6(1),n.Q6J("completed",e.containerNameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.containerNameForm),n.xp6(3),n.Q6J("completed",e.networkAdaptersForm.get("adapters").value),n.xp6(1),n.Q6J("formGroup",e.networkAdaptersForm),n.xp6(3),n.Q6J("completed",e.dockerTemplate.start_command),n.xp6(2),n.Q6J("ngModel",e.dockerTemplate.start_command),n.xp6(1),n.Q6J("completed",e.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(17,kte))("ngModel",e.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(3),n.Q6J("ngModel",e.dockerTemplate.environment))},directives:[Xu,Hc,gs,Ys,ne._Y,ne.JL,ne.sg,wt.O5,xi.gD,ne.JJ,ne.On,wt.sg,sn.ey,Un.KE,sr,ne.Fj,ne.u,ne.wV,Tn],styles:["",".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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function sxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function lxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function uxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function cxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}M2.\u0275fac=function(r){return new(r||M2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},M2.\u0275cmp=n.Xpm({type:M2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,axe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy Docker container template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[wt.O5,Tn,Vn,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u],styles:["",".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 h0=function(){return{standalone:!0}};function dxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",12)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",12)(12,"mat-select",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.category=a}),n.YNc(13,lxe,2,2,"mat-option",16),n.qZA()(),n.TgZ(14,"mat-form-field",12)(15,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.symbol=a}),n.qZA()(),n.TgZ(16,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(17,"Choose symbol"),n.qZA(),n._UZ(18,"br")(19,"br"),n.TgZ(20,"mat-form-field",12)(21,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.start_command=a}),n.qZA()(),n.TgZ(22,"mat-form-field",12)(23,"input",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.adapters=a}),n.qZA()(),n.TgZ(24,"mat-form-field",21)(25,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_type=a}),n.YNc(26,uxe,2,2,"mat-option",16),n.qZA()(),n.TgZ(27,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_auto_start=a}),n._uU(28," Auto start console "),n.qZA(),n.TgZ(29,"mat-form-field",21)(30,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_resolution=a}),n.YNc(31,cxe,2,2,"mat-option",16),n.qZA()(),n.TgZ(32,"mat-form-field",12)(33,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_http_port=a}),n.qZA()(),n.TgZ(34,"mat-form-field",12)(35,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_http_path=a}),n.qZA()()(),n.TgZ(36,"h6"),n._uU(37,"Environment"),n.qZA(),n.TgZ(38,"mat-form-field",12)(39,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.environment=a}),n.qZA()()(),n.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),n._uU(43," Advanced "),n.qZA()(),n.TgZ(44,"h6"),n._uU(45,"Extra hosts"),n.qZA(),n.TgZ(46,"mat-form-field",12)(47,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.extra_hosts=a}),n.qZA()()(),n.TgZ(48,"mat-expansion-panel")(49,"mat-expansion-panel-header")(50,"mat-panel-title"),n._uU(51," Usage "),n.qZA()(),n.TgZ(52,"mat-form-field",12)(53,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.usage=a}),n.qZA()()()(),n.TgZ(54,"div",28)(55,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(56,"Cancel"),n.qZA(),n.TgZ(57,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(58,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.name),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.default_name_format),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(25,h0))("ngModel",i.dockerTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(26,h0))("ngModel",i.dockerTemplate.start_command),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.adapters),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(27,h0))("ngModel",i.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(28,h0))("ngModel",i.dockerTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(29,h0))("ngModel",i.dockerTemplate.console_resolution),n.xp6(1),n.Q6J("ngForOf",i.consoleResolutions),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(30,h0))("ngModel",i.dockerTemplate.console_http_port),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(31,h0))("ngModel",i.dockerTemplate.console_http_path),n.xp6(4),n.Q6J("ngModel",i.dockerTemplate.environment),n.xp6(8),n.Q6J("ngModel",i.dockerTemplate.extra_hosts),n.xp6(6),n.Q6J("ngModel",i.dockerTemplate.usage)}}function fxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",31),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var pxe=function(r){return{shadowed:r}},S2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.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}}]),t}();function hxe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function mxe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function _xe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function gxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(19,"mat-icon"),n._uU(20,"delete"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function vxe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,gxe,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.dockerTemplates)}}function yxe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,vxe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}S2.\u0275fac=function(r){return new(r||S2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(dp),n.Y36(ne.qu),n.Y36(kr))},S2.\u0275cmp=n.Xpm({type:S2,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"],["formControlName","adapter","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,sxe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Docker image configuration"),n.qZA()()()(),n.YNc(8,dxe,59,32,"div",7),n.qZA(),n.YNc(9,fxe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,pxe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.dockerTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,ne.Fj,sr,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ne.wV,Ui,mu],styles:["",".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 x2=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();x2.\u0275fac=function(r){return new(r||x2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36(kr))},x2.\u0275cmp=n.Xpm({type:x2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,hxe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Docker container templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,mxe,3,1,"button",7),n.qZA()()(),n.YNc(10,_xe,1,0,"app-empty-templates-list",8),n.YNc(11,yxe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.dockerTemplates.length),n.xp6(1),n.Q6J("ngIf",e.dockerTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 jc=function(){function t(){(0,j.Z)(this,t),this.countSource=new qn.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new qn.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,V.Z)(t,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),t}();jc.\u0275fac=function(r){return new(r||jc)},jc.\u0275prov=n.Yz7({token:jc,factory:jc.\u0275fac,providedIn:"root"});var bxe=["primaryValueBar"],Cxe=(0,sn.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),wxe=new n.OlP("mat-progress-bar-location",{providedIn:"root",factory:function kxe(){var t=(0,n.f3M)(wt.K0),r=t?t.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var Txe=new n.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Exe=0,m0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;(0,j.Z)(this,e),(f=r.call(this,i))._ngZone=o,f._animationMode=a,f._changeDetectorRef=u,f._isNoopAnimation=!1,f._value=0,f._bufferValue=0,f.animationEnd=new n.vpe,f._animationEndSubscription=Io.w.EMPTY,f.mode="determinate",f.progressbarId="mat-progress-bar-".concat(Exe++);var h=s?s.getPathname().split("#")[0]:"";return f._rectangleFillValue="url('".concat(h,"#").concat(f.progressbarId,"')"),f._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(f.color=f.defaultColor=l.color),f.mode=l.mode||f.mode),f}return(0,V.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=Tte((0,Hn.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=Tte(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,Pf.R)(a,"transitionend").pipe((0,Ei.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}(Cxe);function Tte(t){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,t))}m0.\u0275fac=function(r){return new(r||m0)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ta.Qb,8),n.Y36(wxe,8),n.Y36(Txe,8),n.Y36(n.sBO))},m0.\u0275cmp=n.Xpm({type:m0,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(bxe,5),2&r)&&(n.iGM(i=n.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&&(n.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.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&&(n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),n._UZ(4,"circle",3),n.qZA()(),n._UZ(5,"rect",4),n.qZA(),n.kcU(),n._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),n.qZA()),2&r&&(n.xp6(3),n.Q6J("id",e.progressbarId),n.xp6(2),n.uIk("fill",e._rectangleFillValue),n.xp6(1),n.Q6J("ngStyle",e._bufferTransform()),n.xp6(1),n.Q6J("ngStyle",e._primaryTransform()))},directives:[wt.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.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)}}\n'],encapsulation:2,changeDetection:0});var Pw=(0,V.Z)(function t(){(0,j.Z)(this,t)});Pw.\u0275fac=function(r){return new(r||Pw)},Pw.\u0275mod=n.oAB({type:Pw}),Pw.\u0275inj=n.cJS({imports:[[wt.ez,sn.BQ],sn.BQ]});var qh=function(){function t(r,e,i){(0,j.Z)(this,t),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,V.Z)(t,[{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()}}]),t}();qh.\u0275fac=function(r){return new(r||qh)(n.Y36(OH),n.Y36(cZ),n.Y36(jc))},qh.\u0275cmp=n.Xpm({type:qh,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&&(n.TgZ(0,"p"),n._uU(1),n.qZA(),n.TgZ(2,"div",0)(3,"div",1),n._UZ(4,"mat-progress-bar",2),n.qZA(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return e.cancelItem()}),n._uU(7,"Cancel"),n.qZA()()()),2&r&&(n.xp6(1),n.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),n.xp6(3),n.Q6J("value",e.uploadProgress))},directives:[m0,Tn],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var jH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),zc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();zc.\u0275fac=function(r){return new(r||zc)(n.LFG(Wo.zw))},zc.\u0275prov=n.Yz7({token:zc,factory:zc.\u0275fac});var Kh=function(){function t(){(0,j.Z)(this,t),this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],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"]}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{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:192,c3620:192,c3640:192,c3660:192,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:"getNetworkModules",value:function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}}},{key:"getNetworkAdapters",value:function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}}},{key:"getNetworkAdaptersForPlatform",value:function(){var e={};return e.c2691={0:["GT96100-FE"],1:this.c3700_nms},e.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},e.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},e.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}}}]),t}();function Mxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function Sxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function xxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Dxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Axe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",20)(1,"mat-select",39),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw(2).onChassisChosen(a)}),n.YNc(2,Dxe,2,2,"mat-option",22),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function Oxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-checkbox",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).isEtherSwitchRouter=a}),n._uU(1," This is an EtherSwitch router "),n.qZA()}if(2&t){var i=n.oxw(2);n.Q6J("ngModel",i.isEtherSwitchRouter)}}function Ixe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}Kh.\u0275fac=function(r){return new(r||Kh)},Kh.\u0275prov=n.Yz7({token:Kh,factory:Kh.\u0275fac});var Ete=function(){return{standalone:!0}};function Pxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",43),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,Ixe,2,2,"mat-option",22),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,Ete)),n.xp6(1),n.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function Rxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Pxe,2,5,"mat-select",42),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][e])}}var Lxe=function(){return[0,1,2,3,4,5,6,7]};function Zxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Rxe,2,1,"div",41),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Lxe)))}function Nxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Bxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",43),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkModulesForTemplate[l]=s}),n.YNc(1,Nxe,2,2,"mat-option",22),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","WIC ",i,""),n.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",n.DdM(4,Ete)),n.xp6(1),n.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function Fxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Bxe,2,5,"mat-select",42),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][e])}}var Uxe=function(){return[0,1,2,3]};function Hxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Fxe,2,1,"div",41),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Uxe)))}function jxe(t,r){if(1&t){var e=n.EpF();n.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),n.NdJ("click",function(){return n.CHM(e),n.oxw().setControllerType("local")}),n._uU(6,"Run this IOS router locally"),n.qZA()()(),n.TgZ(7,"mat-step",15)(8,"input",16,17),n.NdJ("change",function(a){return n.CHM(e),n.oxw().addImage(a)}),n.qZA(),n.TgZ(10,"button",18),n.NdJ("click",function(){return n.CHM(e),n.MAs(9).click()}),n._uU(11,"Click to add image"),n.qZA(),n._uU(12," or create from existing one "),n.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().onImageChosen(a)}),n.YNc(16,Sxe,2,2,"mat-option",22),n.qZA()()()(),n.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),n._UZ(20,"input",24),n.qZA(),n.TgZ(21,"mat-form-field",20)(22,"mat-select",25),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().onPlatformChosen(a)}),n.YNc(23,xxe,2,2,"mat-option",22),n.qZA()(),n.YNc(24,Axe,3,1,"mat-form-field",26),n.qZA(),n.YNc(25,Oxe,2,1,"mat-checkbox",27),n.qZA(),n.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),n._UZ(29,"input",29),n.TgZ(30,"span",30),n._uU(31,"MB"),n.qZA()(),n.TgZ(32,"mat-label")(33,"a",31),n._uU(34,"Check for minimum and maximum RAM requirement"),n.qZA()()()(),n.TgZ(35,"mat-step",32),n.YNc(36,Zxe,2,2,"div",33),n.qZA(),n.TgZ(37,"mat-step",34),n.YNc(38,Hxe,2,2,"div",33),n.qZA(),n.TgZ(39,"mat-step",35)(40,"mat-form-field",20)(41,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlepc=a}),n.qZA()()()()(),n.TgZ(42,"div",37)(43,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(44,"Cancel"),n.qZA(),n.TgZ(45,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(46,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",i.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",i.iosImageForm.get("imageName").value),n.xp6(1),n.Q6J("uploader",i.uploader),n.xp6(5),n.Q6J("formGroup",i.iosImageForm),n.xp6(3),n.Q6J("ngForOf",i.iosImages),n.xp6(1),n.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),n.xp6(1),n.Q6J("formGroup",i.iosNameForm),n.xp6(5),n.Q6J("ngForOf",i.platforms),n.xp6(1),n.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),n.xp6(1),n.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),n.xp6(1),n.Q6J("completed",i.iosMemoryForm.get("memory").value),n.xp6(1),n.Q6J("formGroup",i.iosMemoryForm),n.xp6(6),n.s9C("href",i.ciscoUrl,n.LSH),n.xp6(3),n.Q6J("ngIf",i.selectedPlatform),n.xp6(2),n.Q6J("ngIf",i.iosNameForm.get("platform").value),n.xp6(3),n.Q6J("ngModel",i.iosTemplate.idlepc)}}var D2=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.uploadServiceService=h,this.snackBar=v,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iosTemplate=new jH,this.iosImageForm=this.formBuilder.group({imageName:new ne.NI(null,[ne.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required]),platform:new ne.NI(null,[ne.kI.required]),chassis:new ne.NI(null,[ne.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),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()})})}},{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(qh,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}},{key:"addTemplate",value:function(){var e=this;!this.iosImageForm.invalid&&!this.iosMemoryForm.invalid&&this.iosNameForm.get("templateName").value&&this.iosNameForm.get("platform").value?(this.iosTemplate.template_id=_s(),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.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id="local",this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"completeAdaptersData",value:function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var e=0;e<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(var i=0;i<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;i++)this.networkAdaptersForTemplate[i]||(this.networkAdaptersForTemplate[i]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"completeModulesData",value:function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var e=0;e<Object.keys(this.networkModules[this.iosTemplate.platform]).length;e++)this.networkModulesForTemplate[e]||(this.networkModulesForTemplate[e]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])}},{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),"c1700"===e?this.iosNameForm.controls.chassis.setValue("1720"):"c2600"===e?this.iosNameForm.controls.chassis.setValue("2610"):this.iosNameForm.controls.chassis.setValue(""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[e])}},{key:"onPlatformChosen",value:function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]}},{key:"onChassisChosen",value:function(){this.networkAdaptersForTemplate=[]}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),t}();function zxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}D2.\u0275fac=function(r){return new(r||D2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(ne.qu),n.Y36(kr),n.Y36(Sl),n.Y36(Kh),n.Y36(Yd.X),n.Y36(jc),n.Y36(Fc))},D2.\u0275cmp=n.Xpm({type:D2,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"],["label","Idle-PC"],["matInput","","type","text","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"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,Mxe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New IOS router template"),n.qZA()()()(),n.YNc(8,jxe,47,17,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.iosTemplate))},directives:[wt.O5,Tn,Vn,Xu,Hc,gs,Ys,Zc,ne._Y,ne.JL,ne.sg,Un.KE,xi.gD,ne.JJ,ne.u,wt.sg,sn.ey,sr,ne.Fj,Ui,ne.On,ne.wV,Un.R9,Un.hX],styles:[".non-visible[_ngcontent-%COMP%]{display:none}",".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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function Wxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function Vxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Yxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}A2.\u0275fac=function(r){return new(r||A2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},A2.\u0275cmp=n.Xpm({type:A2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,zxe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy IOS router template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.formGroup),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u],styles:["",".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 Jh=function(){return{standalone:!0}};function Gxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",41),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,Yxe,2,2,"mat-option",14),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,Jh)),n.xp6(1),n.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function qxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Gxe,2,5,"mat-select",40),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][e])}}var Mte=function(){return[0,1,2,3,4,5,6,7]};function Kxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,qxe,2,1,"div",39),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Mte)))}function Jxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Qxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",41),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,Jxe,2,2,"mat-option",14),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,Jh)),n.xp6(1),n.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function Xxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Qxe,2,5,"mat-select",40),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][e])}}function $xe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Xxe,2,1,"div",39),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Mte)))}function e2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function t2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",42),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic0=a}),n.YNc(2,e2e,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function n2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function r2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",43),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic1=a}),n.YNc(2,n2e,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function i2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function o2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",44),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic2=a}),n.YNc(2,i2e,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function a2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",7)(7,"mat-form-field",8)(8,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",8)(10,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-label"),n._uU(12),n.qZA(),n._UZ(13,"br")(14,"br"),n.TgZ(15,"mat-label"),n._uU(16),n.qZA(),n._UZ(17,"br")(18,"br"),n.TgZ(19,"mat-form-field",8)(20,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.symbol=a}),n.qZA()(),n.TgZ(21,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(22,"Choose symbol"),n.qZA(),n._UZ(23,"br")(24,"br"),n.TgZ(25,"mat-form-field",8)(26,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.category=a}),n.YNc(27,Wxe,2,2,"mat-option",14),n.qZA()(),n.TgZ(28,"mat-form-field",8)(29,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.image=a}),n.qZA()(),n.TgZ(30,"mat-form-field",8)(31,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.startup_config=a}),n.qZA()(),n.TgZ(32,"mat-form-field",8)(33,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.private_config=a}),n.qZA()()(),n.TgZ(34,"mat-form-field",18)(35,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.console_type=a}),n.YNc(36,Vxe,2,2,"mat-option",14),n.qZA()(),n.TgZ(37,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.console_auto_start=a}),n._uU(38," Auto start console "),n.qZA()(),n.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),n._uU(42," Memories and disks "),n.qZA()(),n.TgZ(43,"form",7)(44,"mat-form-field",8)(45,"input",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.ram=a}),n.qZA(),n.TgZ(46,"span",22),n._uU(47,"MB"),n.qZA()(),n.TgZ(48,"mat-form-field",8)(49,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.nvram=a}),n.qZA(),n.TgZ(50,"span",22),n._uU(51,"MB"),n.qZA()(),n.TgZ(52,"mat-form-field",8)(53,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.iomem=a}),n.qZA()(),n.TgZ(54,"mat-form-field",8)(55,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.disk0=a}),n.qZA()(),n.TgZ(56,"mat-form-field",8)(57,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.disk1=a}),n.qZA()()(),n.TgZ(58,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.auto_delete_disks=a}),n._uU(59," Automatically delete NVRAM and disk files "),n.qZA()(),n.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),n._uU(63," Slots "),n.qZA()(),n.TgZ(64,"h6"),n._uU(65,"Adapters"),n.qZA(),n.YNc(66,Kxe,2,2,"div",27),n.YNc(67,$xe,2,2,"div",27),n._UZ(68,"br")(69,"br"),n.TgZ(70,"h6"),n._uU(71,"WICs"),n.qZA(),n.YNc(72,t2e,3,4,"div",27),n.YNc(73,r2e,3,4,"div",27),n.YNc(74,o2e,3,4,"div",27),n.qZA(),n.TgZ(75,"mat-expansion-panel")(76,"mat-expansion-panel-header")(77,"mat-panel-title"),n._uU(78," Advanced "),n.qZA()(),n.TgZ(79,"form",7)(80,"mat-form-field",8)(81,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.system_id=a}),n.qZA()(),n.TgZ(82,"mat-form-field",8)(83,"input",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.mac_addr=a}),n.qZA()(),n.TgZ(84,"mat-form-field",8)(85,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlepc=a}),n.qZA()(),n.TgZ(86,"mat-form-field",8)(87,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlemax=a}),n.qZA()(),n.TgZ(88,"mat-form-field",8)(89,"input",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlesleep=a}),n.qZA()(),n.TgZ(90,"mat-form-field",8)(91,"input",33),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.exec_area=a}),n.qZA()()(),n.TgZ(92,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.mmap=a}),n._uU(93," Enable mmap support "),n.qZA(),n._UZ(94,"br")(95,"br"),n.TgZ(96,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.sparsemem=a}),n._uU(97," Enable sparse memory supoport "),n.qZA()(),n.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),n._uU(101," Usage "),n.qZA()(),n.TgZ(102,"mat-form-field",8)(103,"textarea",34),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.usage=a}),n.qZA()()()(),n.TgZ(104,"div",35)(105,"button",36),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(106,"Cancel"),n.qZA(),n.TgZ(107,"button",37),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(108,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.name),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.default_name_format),n.xp6(2),n.hij("Platform - ",i.iosTemplate.platform,""),n.xp6(4),n.hij("Chassis - ",i.iosTemplate.chassis,""),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(40,Jh))("ngModel",i.iosTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.image),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.startup_config),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(41,Jh))("ngModel",i.iosTemplate.private_config),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.console_auto_start),n.xp6(6),n.Q6J("formGroup",i.memoryForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.ram),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.nvram),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.iomem),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.disk0),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.disk1),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.auto_delete_disks),n.xp6(8),n.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),n.xp6(5),n.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),n.xp6(5),n.Q6J("formGroup",i.advancedForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.system_id),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(42,Jh))("ngModel",i.iosTemplate.mac_addr),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(43,Jh))("ngModel",i.iosTemplate.idlepc),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.idlemax),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.idlesleep),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.exec_area),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.mmap),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.sparsemem),n.xp6(7),n.Q6J("ngModel",i.iosTemplate.usage)}}function s2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",45),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var l2e=function(r){return{shadowed:r}},O2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required),iomemory:new ne.NI("",ne.kI.required),disk0:new ne.NI("",ne.kI.required),disk1:new ne.NI("",ne.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new ne.NI("",ne.kI.required),idlemax:new ne.NI("",ne.kI.required),idlesleep:new ne.NI("",ne.kI.required),execarea:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.fillAdaptersData()})})}},{key:"getConfiguration",value:function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),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()}},{key:"fillAdaptersData",value:function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)}},{key:"completeAdaptersData",value:function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),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}}]),t}();function u2e(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function c2e(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function d2e(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function f2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22)(19,"mat-icon"),n._uU(20,"edit"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(15),n.s9C("routerLink",i.template_id)}}function p2e(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,f2e,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.iosTemplates)}}function h2e(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,p2e,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}O2.\u0275fac=function(r){return new(r||O2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(ne.qu),n.Y36(Kh),n.Y36(kr))},O2.\u0275cmp=n.Xpm({type:O2,selectors:[["app-ios-template-details"]],decls:7,vars:5,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],[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","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"],[3,"ngModel","ngModelChange"],["matInput","","type","number","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,"ngIf"],["matInput","","formControlName","systemId","type","text","placeholder","System ID",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Base MAC",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModelOptions","ngModel","ngModelChange"],["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-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Dynamips IOS Router configuration"),n.qZA()()(),n.YNc(5,a2e,109,44,"div",4),n.qZA(),n.YNc(6,s2e,1,2,"app-symbols-menu",5)),2&r&&(n.Q6J("ngClass",n.VKq(3,l2e,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.iosTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},directives:[wt.mk,wt.O5,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Un.hX,Tn,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,mu],styles:["",".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 t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();I2.\u0275fac=function(r){return new(r||I2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36(kr))},I2.\u0275cmp=n.Xpm({type:I2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,u2e,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"IOS router templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,c2e,3,1,"button",7),n.qZA()()(),n.YNc(10,d2e,1,0,"app-empty-templates-list",8),n.YNc(11,h2e,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.iosTemplates.length),n.xp6(1),n.Q6J("ngIf",e.iosTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 zH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Wc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();function m2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function _2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function g2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.path),n.xp6(1),n.hij(" ",e.path," ")}}Wc.\u0275fac=function(r){return new(r||Wc)(n.LFG(Wo.zw))},Wc.\u0275prov=n.Yz7({token:Wc,factory:Wc.\u0275fac});var Ste=function(){return{standalone:!0}};function v2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",15)(1,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.path=a}),n.YNc(2,g2e,2,2,"mat-option",20),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",n.DdM(3,Ste)),n.xp6(1),n.Q6J("ngForOf",i.iouImages)}}function y2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",28,29),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",30),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA(),n.TgZ(5,"mat-form-field",31),n._UZ(6,"input",32),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("uploader",i.uploader)}}var P2=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,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 zH,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{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=_s(),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()}}]),t}();function b2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}P2.\u0275fac=function(r){return new(r||P2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Sl),n.Y36(Yd.X),n.Y36(jc),n.Y36(Fc))},P2.\u0275cmp=n.Xpm({type:P2,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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,m2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New IOU device template"),n.qZA()()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(14,"Run this IOU device locally"),n.qZA()()(),n.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),n._UZ(18,"input",16),n.qZA()()(),n.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(23,"Existing image"),n.qZA(),n.TgZ(24,"mat-radio-button",18),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(25,"New image"),n.qZA()(),n.TgZ(26,"mat-form-field",15)(27,"mat-select",19),n.NdJ("ngModelChange",function(o){return e.selectedType=o}),n.YNc(28,_2e,2,2,"mat-option",20),n.qZA()(),n.YNc(29,v2e,3,4,"mat-form-field",21),n.YNc(30,y2e,7,1,"div",22),n.qZA()()()(),n.TgZ(31,"div",23)(32,"button",24),n.NdJ("click",function(){return e.goBack()}),n._uU(33,"Cancel"),n.qZA(),n.TgZ(34,"button",25),n.NdJ("click",function(){return e.addTemplate()}),n._uU(35,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.templateNameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.templateNameForm),n.xp6(4),n.Q6J("formGroup",e.imageForm),n.xp6(7),n.Q6J("ngModel",e.selectedType)("ngModelOptions",n.DdM(11,Ste)),n.xp6(1),n.Q6J("ngForOf",e.types),n.xp6(1),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected))},directives:[wt.O5,Tn,Vn,Xu,Hc,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Zc],styles:["",".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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),t}();R2.\u0275fac=function(r){return new(r||R2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},R2.\u0275cmp=n.Xpm({type:R2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,b2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy IOU device template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u],styles:["",".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 cg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),t}();function C2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function w2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function k2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function T2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",2)(1,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iouTemplate.ram=a}),n.qZA(),n.TgZ(2,"span",37),n._uU(3,"MB"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iouTemplate.ram)}}function E2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",2)(1,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iouTemplate.nvram=a}),n.qZA(),n.TgZ(2,"span",37),n._uU(3,"MB"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iouTemplate.nvram)}}cg.\u0275fac=function(r){return new(r||cg)},cg.\u0275prov=n.Yz7({token:cg,factory:cg.\u0275fac});var xte=function(){return{standalone:!0}};function M2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",2)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",2)(12,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",2)(18,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.category=a}),n.YNc(19,w2e,2,2,"mat-option",18),n.qZA()(),n.TgZ(20,"input",19,20),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(22,"button",21),n.NdJ("click",function(){return n.CHM(e),n.MAs(21).click()}),n._uU(23,"Browse"),n.qZA(),n.TgZ(24,"mat-form-field",22)(25,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.path=a}),n.qZA()(),n.TgZ(26,"mat-form-field",2)(27,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.startup_config=a}),n.qZA()(),n.TgZ(28,"mat-form-field",2)(29,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.private_config=a}),n.qZA()()(),n.TgZ(30,"mat-form-field",26)(31,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.console_type=a}),n.YNc(32,k2e,2,2,"mat-option",18),n.qZA()(),n.TgZ(33,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.console_auto_start=a}),n._uU(34," Auto start console "),n.qZA(),n._UZ(35,"br"),n.TgZ(36,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.l1_keepalives=a}),n._uU(37," Enable layer 1 keepalive messages (non-functional) "),n.qZA(),n._UZ(38,"br"),n.TgZ(39,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().defaultSettings=a}),n._uU(40," Use default IOU values for memories "),n.qZA(),n.YNc(41,T2e,4,1,"mat-form-field",29),n.YNc(42,E2e,4,1,"mat-form-field",29),n.qZA(),n.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),n._uU(46," Network "),n.qZA()(),n.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.ethernet_adapters=a}),n.qZA()(),n.TgZ(50,"mat-form-field",2)(51,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.serial_adapters=a}),n.qZA()()()(),n.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),n._uU(55," Usage "),n.qZA()(),n.TgZ(56,"mat-form-field",2)(57,"textarea",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.usage=a}),n.qZA()()()(),n.TgZ(58,"div",33)(59,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(60,"Cancel"),n.qZA(),n.TgZ(61,"button",34),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(62,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.name),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(22,xte))("ngModel",i.iouTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(6),n.Q6J("ngModel",i.iouTemplate.path),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.startup_config),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(23,xte))("ngModel",i.iouTemplate.private_config),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.iouTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.iouTemplate.l1_keepalives),n.xp6(3),n.Q6J("ngModel",i.defaultSettings),n.xp6(2),n.Q6J("ngIf",!i.defaultSettings),n.xp6(1),n.Q6J("ngIf",!i.defaultSettings),n.xp6(5),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.ethernet_adapters),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.serial_adapters),n.xp6(6),n.Q6J("ngModel",i.iouTemplate.usage)}}function S2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",39),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var x2e=function(r){return{shadowed:r}},L2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function D2e(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function A2e(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function O2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",16)(1,"mat-list-item",17),n._uU(2),n.qZA(),n.TgZ(3,"button",18)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,19)(8,"button",20),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",20),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",21)(19,"mat-icon"),n._uU(20,"edit"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(15),n.s9C("routerLink",i.template_id)}}function I2e(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,O2e,23,4,"div",15),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.iouTemplates)}}function P2e(t,r){if(1&t&&(n.TgZ(0,"div",13)(1,"div",14),n.YNc(2,I2e,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}L2.\u0275fac=function(r){return new(r||L2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(cg),n.Y36(kr),n.Y36(ne.qu))},L2.\u0275cmp=n.Xpm({type:L2,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","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","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),n.YNc(5,C2e,3,0,"button",5),n.qZA(),n.TgZ(6,"div",6)(7,"h1",7),n._uU(8,"IOU device configuration"),n.qZA()()()()(),n.YNc(9,M2e,63,24,"div",8),n.qZA(),n.YNc(10,S2e,1,2,"app-symbols-menu",9)),2&r&&(n.Q6J("ngClass",n.VKq(4,x2e,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.iouTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,mu],styles:["",".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 Z2=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();Z2.\u0275fac=function(r){return new(r||Z2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36(kr))},Z2.\u0275cmp=n.Xpm({type:Z2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"IOU device templates"),n.qZA()(),n.TgZ(10,"div",3),n.YNc(11,D2e,3,1,"button",7),n.qZA()()(),n.YNc(12,A2e,1,0,"app-empty-templates-list",8),n.YNc(13,P2e,3,1,"div",9),n.qZA(),n.TgZ(14,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),n.xp6(7),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.iouTemplates.length),n.xp6(1),n.Q6J("ngIf",e.iouTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Tn,na,Vn,wt.O5,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();N2.\u0275fac=function(r){return new(r||N2)(n.Y36(xr))},N2.\u0275cmp=n.Xpm({type:N2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"Template preferences"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),n._uU(14," Built-in "),n.qZA(),n.TgZ(15,"mat-list-item",9),n._uU(16," Dynamips "),n.qZA(),n.TgZ(17,"mat-list-item",9),n._uU(18," IOS on Unix "),n.qZA(),n.TgZ(19,"mat-list-item",9),n._uU(20," VPCS "),n.qZA(),n.TgZ(21,"mat-list-item",9),n._uU(22," QEMU "),n.qZA(),n.TgZ(23,"mat-list-item",9),n._uU(24," VirtualBox "),n.qZA(),n.TgZ(25,"mat-list-item",9),n._uU(26," VMware "),n.qZA(),n.TgZ(27,"mat-list-item",9),n._uU(28," Docker "),n.qZA()()()()()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",e.controllerId,"/projects"),n.xp6(9),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},directives:[Tn,na,Vn,Vs,qa],styles:[".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 WH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),vu=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();vu.\u0275fac=function(r){return new(r||vu)(n.LFG(Wo.zw))},vu.\u0275prov=n.Yz7({token:vu,factory:vu.\u0275fac});var Qh=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:"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:"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"]}}]),t}();function R2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function L2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Z2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function N2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.filename," ")}}Qh.\u0275fac=function(r){return new(r||Qh)},Qh.\u0275prov=n.Yz7({token:Qh,factory:Qh.\u0275fac});var VH=function(){return{standalone:!0}};function B2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedImage=a}),n.YNc(1,N2e,2,2,"mat-option",19),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("ngModelOptions",n.DdM(3,VH))("ngModel",i.selectedImage),n.xp6(1),n.Q6J("ngForOf",i.qemuImages)}}function F2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",33,34),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",35),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA(),n.TgZ(5,"mat-form-field",36)(6,"input",37),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().chosenImage=a}),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("uploader",i.uploader),n.xp6(5),n.Q6J("ngModel",i.chosenImage)}}var B2=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.snackBar=h,this.uploadServiceService=v,this.selectPlatform=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new WH,this.nameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new ne.NI("256",ne.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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()}),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(qh,{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=_s(),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()}))}}]),t}();function U2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}B2.\u0275fac=function(r){return new(r||B2)(n.Y36(xr),n.Y36(vr),n.Y36(vu),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Sl),n.Y36(Qh),n.Y36(Yd.X),n.Y36(Fc),n.Y36(jc))},B2.\u0275cmp=n.Xpm({type:B2,selectors:[["app-add-qemu-virtual-machine-template"]],decls:50,vars:19,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","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,R2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New QEMU VM template"),n.qZA()()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(14,"Run this QEMU VM locally"),n.qZA()()(),n.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),n._UZ(18,"input",16),n.qZA(),n._UZ(19,"br"),n.qZA()(),n.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),n.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),n.YNc(24,L2e,2,2,"mat-option",19),n.qZA()(),n._UZ(25,"br"),n.TgZ(26,"mat-form-field",15),n._UZ(27,"input",20),n.TgZ(28,"span",21),n._uU(29,"MB"),n.qZA()()()(),n.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),n.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),n.YNc(33,Z2e,2,2,"mat-option",19),n.qZA()()(),n.TgZ(34,"mat-step",24)(35,"form",14)(36,"mat-radio-group",11)(37,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(38,"Existing image"),n.qZA(),n.TgZ(39,"mat-radio-button",25),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(40,"New image"),n.qZA()(),n._UZ(41,"br")(42,"br"),n.YNc(43,B2e,2,4,"mat-select",26),n.YNc(44,F2e,7,2,"div",27),n.qZA()()()(),n.TgZ(45,"div",28)(46,"button",29),n.NdJ("click",function(){return e.goBack()}),n._uU(47,"Cancel"),n.qZA(),n.TgZ(48,"button",30),n.NdJ("click",function(){return e.addTemplate()}),n._uU(49,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.nameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.nameForm),n.xp6(4),n.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),n.xp6(1),n.Q6J("formGroup",e.memoryForm),n.xp6(2),n.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",n.DdM(17,VH)),n.xp6(1),n.Q6J("ngForOf",e.selectPlatform),n.xp6(6),n.Q6J("completed",e.qemuTemplate.console_type),n.xp6(2),n.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",n.DdM(18,VH)),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(2),n.Q6J("formGroup",e.diskForm),n.xp6(8),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected))},directives:[wt.O5,Tn,Vn,Xu,Hc,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ne.wV,Un.R9,Zc],styles:["",".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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=_s(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function H2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Adapter number"),n.qZA())}function j2e(t,r){if(1&t&&(n.TgZ(0,"td",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("Adapter ",e.adapter_number,"")}}function z2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Port name"),n.qZA())}function W2e(t,r){if(1&t&&(n.TgZ(0,"td",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("Ethernet ",e.adapter_number,"")}}function V2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Adapter type"),n.qZA())}function Y2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}function G2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",11)(1,"mat-select",12),n.NdJ("ngModelChange",function(s){return n.CHM(e).$implicit.adapter_type=s}),n.YNc(2,Y2e,2,2,"mat-option",13),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngModel",i.adapter_type),n.xp6(1),n.Q6J("ngForOf",o.networkTypes)}}function q2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Actions"),n.qZA())}function K2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",11)(1,"button",15),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().delete(a)}),n.TgZ(2,"mat-icon",16),n._uU(3,"delete"),n.qZA()()()}}function J2e(t,r){1&t&&n._UZ(0,"tr",17)}function Q2e(t,r){1&t&&n._UZ(0,"tr",18)}F2.\u0275fac=function(r){return new(r||F2)(n.Y36(xr),n.Y36(vr),n.Y36(vu),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},F2.\u0275cmp=n.Xpm({type:F2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,U2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy QEMU VM template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u],styles:["",".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 dg=function(){function t(){(0,j.Z)(this,t),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,V.Z)(t,[{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})}}]),t}();dg.\u0275fac=function(r){return new(r||dg)},dg.\u0275cmp=n.Xpm({type:dg,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",1,"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&&(n.TgZ(0,"table",0),n.ynx(1,1),n.YNc(2,H2e,2,0,"th",2),n.YNc(3,j2e,2,1,"td",3),n.BQk(),n.ynx(4,4),n.YNc(5,z2e,2,0,"th",2),n.YNc(6,W2e,2,1,"td",3),n.BQk(),n.ynx(7,5),n.YNc(8,V2e,2,0,"th",2),n.YNc(9,G2e,3,2,"td",3),n.BQk(),n.ynx(10,6),n.YNc(11,q2e,2,0,"th",2),n.YNc(12,K2e,4,0,"td",3),n.BQk(),n.YNc(13,J2e,1,0,"tr",7),n.YNc(14,Q2e,1,0,"tr",8),n.qZA(),n.TgZ(15,"button",9),n.NdJ("click",function(){return e.onAdd()}),n._uU(16,"Add"),n.qZA()),2&r&&(n.Q6J("dataSource",e.adapters),n.xp6(13),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ca,aa,fa,Sa,da,xa,xi.gD,ne.JJ,ne.On,wt.sg,sn.ey,Tn,vi,Vn,Da,Oa,Aa,Ia],styles:[".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 X2e=["customAdapters"],_0=function(){function t(){(0,j.Z)(this,t),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new n.vpe,this.saveConfigurationEmitter=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();_0.\u0275fac=function(r){return new(r||_0)},_0.\u0275cmp=n.Xpm({type:_0,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(X2e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Custom adapters configuration"),n.qZA()()(),n.TgZ(5,"div",4)(6,"div",5),n._UZ(7,"app-custom-adapters-table",6,7),n.qZA(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.configureCustomAdapters()}),n._uU(13,"Apply"),n.qZA(),n._UZ(14,"br"),n.qZA()()()),2&r&&(n.xp6(7),n.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},directives:[dg,Tn],styles:["",".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 $2e=["customAdaptersConfigurator"];function eDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function tDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function nDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function rDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function iDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function oDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function aDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function sDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function lDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function uDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function cDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.AsE("",e.name," (",e.value,") ")}}function dDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",14)(1,"input",58),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).qemuTemplate.cpu_throttling=a}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function fDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function pDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.symbol=a}),n.qZA()()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.category=a}),n.YNc(19,tDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",14)(21,"mat-select",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.platform=a}),n.YNc(22,nDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-form-field",14)(24,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.ram=a}),n.qZA(),n.TgZ(25,"span",23),n._uU(26,"MB"),n.qZA()(),n.TgZ(27,"mat-form-field",14)(28,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.cpus=a}),n.qZA()(),n.TgZ(29,"mat-form-field",14)(30,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.boot_priority=a}),n.YNc(31,rDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(32,"mat-form-field",14)(33,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.on_close=a}),n.YNc(34,iDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(35,"mat-form-field",27)(36,"mat-select",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.console_type=a}),n.YNc(37,oDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(38,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.console_auto_start=a}),n._uU(39," Auto start console "),n.qZA()(),n.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),n._uU(43," HDD "),n.qZA()(),n.TgZ(44,"mat-card"),n._UZ(45,"mat-card-title"),n.TgZ(46,"mat-card-subtitle"),n._uU(47," HDA (Primary Master) "),n.qZA(),n.TgZ(48,"mat-card-content")(49,"mat-form-field",14)(50,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hda_disk_image=a}),n.qZA()(),n.TgZ(51,"mat-form-field",14)(52,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hda_disk_interface=a}),n.YNc(53,aDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(54,"mat-card"),n._UZ(55,"mat-card-title"),n.TgZ(56,"mat-card-subtitle"),n._uU(57," HDB (Primary Slave) "),n.qZA(),n.TgZ(58,"mat-card-content")(59,"mat-form-field",14)(60,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdb_disk_image=a}),n.qZA()(),n.TgZ(61,"mat-form-field",14)(62,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdb_disk_interface=a}),n.YNc(63,sDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(64,"mat-card"),n._UZ(65,"mat-card-title"),n.TgZ(66,"mat-card-subtitle"),n._uU(67," HDC (Secondary Master) "),n.qZA(),n.TgZ(68,"mat-card-content")(69,"mat-form-field",14)(70,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdc_disk_image=a}),n.qZA()(),n.TgZ(71,"mat-form-field",14)(72,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdc_disk_interface=a}),n.YNc(73,lDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(74,"mat-card"),n._UZ(75,"mat-card-title"),n.TgZ(76,"mat-card-subtitle"),n._uU(77," HDD (Secondary Slave) "),n.qZA(),n.TgZ(78,"mat-card-content")(79,"mat-form-field",14)(80,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdd_disk_image=a}),n.qZA()(),n.TgZ(81,"mat-form-field",14)(82,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdd_disk_interface=a}),n.YNc(83,uDe,2,2,"mat-option",20),n.qZA()()()()(),n.TgZ(84,"mat-expansion-panel")(85,"mat-expansion-panel-header")(86,"mat-panel-title"),n._uU(87," CD/DVD "),n.qZA()(),n.TgZ(88,"div")(89,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(92).click()}),n._uU(90,"Browse"),n.qZA(),n.TgZ(91,"input",33,34),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadCdromImageFile(a)}),n.qZA(),n.TgZ(93,"mat-form-field",35)(94,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.cdrom_image=a}),n.qZA()()()(),n.TgZ(95,"mat-expansion-panel")(96,"mat-expansion-panel-header")(97,"mat-panel-title"),n._uU(98," Network "),n.qZA()(),n.TgZ(99,"mat-form-field",14)(100,"input",37),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.adapters=a}),n.qZA()(),n.TgZ(101,"mat-form-field",14)(102,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.first_port_name=a}),n.qZA()(),n.TgZ(103,"mat-form-field",14)(104,"input",39),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.port_name_format=a}),n.qZA()(),n.TgZ(105,"mat-form-field",14)(106,"input",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(107,"mat-form-field",14)(108,"input",41),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.mac_address=a}),n.qZA()(),n.TgZ(109,"mat-form-field",14)(110,"mat-select",42),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.adapter_type=a}),n.YNc(111,cDe,2,3,"mat-option",20),n.qZA()(),n.TgZ(112,"button",43),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(113," Configure custom adapters"),n.qZA(),n._UZ(114,"br"),n.qZA(),n.TgZ(115,"mat-expansion-panel")(116,"mat-expansion-panel-header")(117,"mat-panel-title"),n._uU(118," Advanced "),n.qZA()(),n.TgZ(119,"mat-card"),n._UZ(120,"mat-card-title"),n.TgZ(121,"mat-card-subtitle"),n._uU(122," Linux boot specific settings "),n.qZA(),n.TgZ(123,"mat-card-content")(124,"div")(125,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(128).click()}),n._uU(126,"Browse"),n.qZA(),n.TgZ(127,"input",33,44),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadInitrdFile(a)}),n.qZA(),n.TgZ(129,"mat-form-field",35)(130,"input",45),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.initrd=a}),n.qZA()()(),n.TgZ(131,"div")(132,"button",32),n.NdJ("click",function(){return n.CHM(e),n.oxw().filekerenelimage.click()}),n._uU(133," Browse "),n.qZA(),n.TgZ(134,"input",33,46),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadKernelImageFile(a)}),n.qZA(),n.TgZ(136,"mat-form-field",35)(137,"input",47),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.kernel_image=a}),n.qZA()()(),n.TgZ(138,"mat-form-field",14)(139,"input",48),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.kernel_command_line=a}),n.qZA()()()(),n.TgZ(140,"mat-card"),n._UZ(141,"mat-card-title"),n.TgZ(142,"mat-card-subtitle"),n._uU(143," Bios "),n.qZA(),n.TgZ(144,"mat-card-content")(145,"div")(146,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(149).click()}),n._uU(147,"Browse"),n.qZA(),n.TgZ(148,"input",33,49),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadBiosFile(a)}),n.qZA(),n.TgZ(150,"mat-form-field",35)(151,"input",50),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.bios_image=a}),n.qZA()()()()(),n.TgZ(152,"mat-card"),n._UZ(153,"mat-card-title"),n.TgZ(154,"mat-card-subtitle"),n._uU(155," Optimization "),n.qZA(),n.TgZ(156,"mat-card-content")(157,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().activateCpuThrottling=a}),n._uU(158," Activate CPU throttling "),n.qZA(),n.YNc(159,dDe,2,1,"mat-form-field",51),n.TgZ(160,"mat-form-field",14)(161,"mat-select",52),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.process_priority=a}),n.YNc(162,fDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(163,"mat-card"),n._UZ(164,"mat-card-title"),n.TgZ(165,"mat-card-subtitle"),n._uU(166," Additional settings "),n.qZA(),n.TgZ(167,"mat-card-content")(168,"mat-form-field",14)(169,"input",53),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.options=a}),n.qZA()(),n.TgZ(170,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.linked_clone=a}),n._uU(171," Use as a linked base VM "),n.qZA()()()(),n.TgZ(172,"mat-expansion-panel")(173,"mat-expansion-panel-header")(174,"mat-panel-title"),n._uU(175," Usage "),n.qZA()(),n.TgZ(176,"mat-form-field",14)(177,"textarea",54),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.usage=a}),n.qZA()()()(),n.TgZ(178,"div",55)(179,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(180,"Cancel"),n.qZA(),n.TgZ(181,"button",56),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(182,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.name),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.symbol),n.xp6(6),n.Q6J("ngModel",i.qemuTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.platform),n.xp6(1),n.Q6J("ngForOf",i.selectPlatform),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.ram),n.xp6(4),n.Q6J("ngModel",i.qemuTemplate.cpus),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.boot_priority),n.xp6(1),n.Q6J("ngForOf",i.bootPriorities),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.console_auto_start),n.xp6(12),n.Q6J("ngModel",i.qemuTemplate.hda_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(11),n.Q6J("ngModel",i.qemuTemplate.cdrom_image),n.xp6(6),n.Q6J("ngModel",i.qemuTemplate.adapters),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.mac_address),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(19),n.Q6J("ngModel",i.qemuTemplate.initrd),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.kernel_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.kernel_command_line),n.xp6(12),n.Q6J("ngModel",i.qemuTemplate.bios_image),n.xp6(6),n.Q6J("ngModel",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngIf",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.process_priority),n.xp6(1),n.Q6J("ngForOf",i.priorities),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.options),n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.linked_clone),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.usage)}}function hDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",59),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var mDe=function(r){return{shadowed:r}},U2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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.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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.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}}]),t}();function _De(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function gDe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function vDe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function yDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(19,"mat-icon"),n._uU(20,"delete"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function bDe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,yDe,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.qemuTemplates)}}function CDe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,bDe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}U2.\u0275fac=function(r){return new(r||U2)(n.Y36(xr),n.Y36(vr),n.Y36(vu),n.Y36($n),n.Y36(Qh),n.Y36(ne.qu),n.Y36(kr))},U2.\u0275cmp=n.Xpm({type:U2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf($2e,5),2&r)&&(n.iGM(i=n.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","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","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"],[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","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","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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,eDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"QEMU VM configuration"),n.qZA()()()(),n.YNc(8,pDe,183,48,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,hDe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,mDe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.qemuTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ne.wV,Un.R9,Ui,Si,nw,rw,$y,_0,mu],styles:["",".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 H2=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();H2.\u0275fac=function(r){return new(r||H2)(n.Y36(xr),n.Y36(vr),n.Y36(vu),n.Y36(kr))},H2.\u0275cmp=n.Xpm({type:H2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,_De,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"QEMU VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,gDe,3,1,"button",7),n.qZA()()(),n.YNc(10,vDe,1,0,"app-empty-templates-list",8),n.YNc(11,CDe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.qemuTemplates.length),n.xp6(1),n.Q6J("ngIf",e.qemuTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 Xh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.compute_id,"/virtualbox/vms"))}}]),t}();function wDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function kDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",18),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.vmname," ")}}function TDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedVM=a}),n.YNc(5,kDe,2,2,"mat-option",14),n.qZA()()(),n.TgZ(6,"mat-checkbox",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.linked_clone=a}),n._uU(7," Use as a linked base VM (experimental) "),n.qZA()(),n.TgZ(8,"div",16)(9,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(12,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.vmForm),n.xp6(2),n.Q6J("ngModel",i.selectedVM),n.xp6(1),n.Q6J("ngForOf",i.virtualMachines),n.xp6(1),n.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}Xh.\u0275fac=function(r){return new(r||Xh)(n.LFG(Wo.zw))},Xh.\u0275prov=n.Yz7({token:Xh,factory:Xh.\u0275fac});var j2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.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=_s(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),t}();j2.\u0275fac=function(r){return new(r||j2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh),n.Y36($n),n.Y36(Sl),n.Y36(kr),n.Y36(ne.qu))},j2.\u0275cmp=n.Xpm({type:j2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,wDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VirtualBox VM template"),n.qZA()()()(),n.YNc(8,TDe,13,4,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.virtualBoxTemplate))},directives:[wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,xi.gD,ne.JJ,ne.u,wt.sg,sn.ey,Ui,ne.On],styles:["",".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 fg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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)"]}}]),t}();fg.\u0275fac=function(r){return new(r||fg)},fg.\u0275prov=n.Yz7({token:fg,factory:fg.\u0275fac});var EDe=["customAdaptersConfigurator"];function MDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function SDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function xDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function DDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function ADe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var Rw=function(){return{standalone:!0}};function ODe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.category=a}),n.YNc(19,SDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",21)(21,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.console_type=a}),n.YNc(22,xDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.console_auto_start=a}),n._uU(24," Auto start console "),n.qZA(),n.TgZ(25,"mat-form-field",14)(26,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.ram=a}),n.qZA(),n.TgZ(27,"span",25),n._uU(28,"MB"),n.qZA()(),n.TgZ(29,"mat-form-field",14)(30,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.on_close=a}),n.YNc(31,DDe,2,2,"mat-option",20),n.qZA()()(),n.TgZ(32,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.headless=a}),n._uU(33," Start VM in headless mode "),n.qZA(),n._UZ(34,"br"),n.TgZ(35,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.linked_clone=a}),n._uU(36," Use as a linked base VM (experimental) "),n.qZA()(),n.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),n._uU(40," Network "),n.qZA()(),n.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.adapters=a}),n.qZA()(),n.TgZ(44,"mat-form-field",14)(45,"input",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.first_port_name=a}),n.qZA()(),n.TgZ(46,"mat-form-field",14)(47,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.port_name_format=a}),n.qZA()(),n.TgZ(48,"mat-form-field",14)(49,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(50,"mat-form-field",14)(51,"mat-select",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.adapter_type=a}),n.YNc(52,ADe,2,2,"mat-option",20),n.qZA()()(),n.TgZ(53,"button",33),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(54," Configure custom adapters"),n.qZA(),n._UZ(55,"br"),n.TgZ(56,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.use_any_adapter=a}),n._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),n.qZA()(),n.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),n._uU(61," Usage "),n.qZA()(),n.TgZ(62,"mat-form-field",14)(63,"textarea",34),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.usage=a}),n.qZA()()()(),n.TgZ(64,"div",35)(65,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(66,"Cancel"),n.qZA(),n.TgZ(67,"button",36),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(68,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.name),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(29,Rw))("ngModel",i.virtualBoxTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(30,Rw))("ngModel",i.virtualBoxTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(31,Rw))("ngModel",i.virtualBoxTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.virtualBoxTemplate.ram),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(32,Rw))("ngModel",i.virtualBoxTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.virtualBoxTemplate.headless),n.xp6(3),n.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),n.xp6(6),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.adapters),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(33,Rw))("ngModel",i.virtualBoxTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(34,Rw))("ngModel",i.virtualBoxTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(4),n.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),n.xp6(7),n.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function IDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",38),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var PDe=function(r){return{shadowed:r}},z2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new ne.NI("",ne.kI.required),nameFormat:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function RDe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function LDe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function ZDe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function NDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o)}}function BDe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,NDe,13,3,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.virtualBoxTemplates)}}function FDe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,BDe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}z2.\u0275fac=function(r){return new(r||z2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh),n.Y36($n),n.Y36(ne.qu),n.Y36(fg),n.Y36(kr))},z2.\u0275cmp=n.Xpm({type:z2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(EDe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,MDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VirtualBox VM configuration"),n.qZA()()()(),n.YNc(8,ODe,69,35,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,IDe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,PDe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.virtualBoxTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,_0,mu],styles:["",".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 t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();W2.\u0275fac=function(r){return new(r||W2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh))},W2.\u0275cmp=n.Xpm({type:W2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,RDe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VirtualBox VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,LDe,3,1,"button",7),n.qZA()()(),n.YNc(10,ZDe,1,0,"app-empty-templates-list",8),n.YNc(11,FDe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.virtualBoxTemplates.length),n.xp6(1),n.Q6J("ngIf",e.virtualBoxTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 $h=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.compute_id,"/vmware/vms"))}}]),t}();function UDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function HDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",18),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.vmname," ")}}$h.\u0275fac=function(r){return new(r||$h)(n.LFG(Wo.zw))},$h.\u0275prov=n.Yz7({token:$h,factory:$h.\u0275fac});var jDe=function(){return{standalone:!0}};function zDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedVM=a}),n.YNc(5,HDe,2,2,"mat-option",14),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-checkbox",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.linked_clone=a}),n._uU(8," Use as a linked base VM (experimental) "),n.qZA()()(),n.TgZ(9,"div",16)(10,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(13,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.templateNameForm),n.xp6(2),n.Q6J("ngModel",i.selectedVM),n.xp6(1),n.Q6J("ngForOf",i.virtualMachines),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(5,jDe))("ngModel",i.vmwareTemplate.linked_clone)}}var V2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{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.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=_s(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),t}();V2.\u0275fac=function(r){return new(r||V2)(n.Y36(xr),n.Y36(vr),n.Y36($h),n.Y36($n),n.Y36(Sl),n.Y36(kr),n.Y36(ne.qu))},V2.\u0275cmp=n.Xpm({type:V2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,UDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VMware VM template"),n.qZA()()()(),n.YNc(8,zDe,14,6,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vmwareTemplate))},directives:[wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,xi.gD,ne.JJ,ne.u,wt.sg,sn.ey,Ui,ne.On],styles:["",".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 t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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"]}}]),t}();pg.\u0275fac=function(r){return new(r||pg)},pg.\u0275prov=n.Yz7({token:pg,factory:pg.\u0275fac});var WDe=["customAdaptersConfigurator"];function VDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function YDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function GDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function qDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function KDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var Lw=function(){return{standalone:!0}};function JDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.category=a}),n.YNc(19,YDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",21)(21,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.console_type=a}),n.YNc(22,GDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.console_auto_start=a}),n._uU(24," Auto start console "),n.qZA(),n.TgZ(25,"mat-form-field",14)(26,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.on_close=a}),n.YNc(27,qDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(28,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.headless=a}),n._uU(29," Start VM in headless mode "),n.qZA(),n._UZ(30,"br")(31,"br"),n.TgZ(32,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.linked_clone=a}),n._uU(33," Use as a linked base VM (experimental) "),n.qZA()()(),n.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),n._uU(37," Network "),n.qZA()(),n.TgZ(38,"mat-form-field",14)(39,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.adapters=a}),n.qZA()(),n.TgZ(40,"mat-form-field",14)(41,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.first_port_name=a}),n.qZA()(),n.TgZ(42,"mat-form-field",14)(43,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.port_name_format=a}),n.qZA()(),n.TgZ(44,"mat-form-field",14)(45,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(46,"mat-form-field",14)(47,"mat-select",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.adapter_type=a}),n.YNc(48,KDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(49,"button",30),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(50," Configure custom adapters"),n.qZA(),n._UZ(51,"br"),n.TgZ(52,"mat-checkbox",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.use_any_adapter=a}),n._uU(53," Allow GNS3 to override non custom VMware adapter "),n.qZA()(),n.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),n._uU(57," Usage "),n.qZA()(),n.TgZ(58,"mat-form-field",14)(59,"textarea",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.usage=a}),n.qZA()()()(),n.TgZ(60,"div",33)(61,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(62,"Cancel"),n.qZA(),n.TgZ(63,"button",34),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(64,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.name),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(27,Lw))("ngModel",i.vmwareTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(28,Lw))("ngModel",i.vmwareTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(29,Lw))("ngModel",i.vmwareTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(30,Lw))("ngModel",i.vmwareTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(31,Lw))("ngModel",i.vmwareTemplate.headless),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(32,Lw))("ngModel",i.vmwareTemplate.linked_clone),n.xp6(7),n.Q6J("ngModel",i.vmwareTemplate.adapters),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(4),n.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),n.xp6(7),n.Q6J("ngModel",i.vmwareTemplate.usage)}}function QDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",36),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var XDe=function(r){return{shadowed:r}},Y2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function $De(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function eAe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function tAe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function nAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o)}}function rAe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,nAe,13,3,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.vmwareTemplates)}}function iAe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,rAe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}Y2.\u0275fac=function(r){return new(r||Y2)(n.Y36(xr),n.Y36(vr),n.Y36($h),n.Y36($n),n.Y36(ne.qu),n.Y36(pg),n.Y36(kr))},Y2.\u0275cmp=n.Xpm({type:Y2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(WDe,5),2&r)&&(n.iGM(i=n.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","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","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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,VDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VMware VM configuration"),n.qZA()()()(),n.YNc(8,JDe,65,33,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,QDe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,XDe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vmwareTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Ml,Jl,Ql,hu,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,_0,mu],styles:["",".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 G2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();G2.\u0275fac=function(r){return new(r||G2)(n.Y36(xr),n.Y36(vr),n.Y36($h))},G2.\u0275cmp=n.Xpm({type:G2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,$De,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VMware VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,eAe,3,1,"button",7),n.qZA()()(),n.YNc(10,tAe,1,0,"app-empty-templates-list",8),n.YNc(11,iAe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.vmwareTemplates.length),n.xp6(1),n.Q6J("ngIf",e.vmwareTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();function oAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}em.\u0275fac=function(r){return new(r||em)(n.LFG(Wo.zw))},em.\u0275prov=n.Yz7({token:em,factory:em.\u0275fac});var q2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{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=_s(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),t}();q2.\u0275fac=function(r){return new(r||q2)(n.Y36(xr),n.Y36(vr),n.Y36(em),n.Y36(kr),n.Y36($n),n.Y36(Sl),n.Y36(ne.qu),n.Y36(Yd.X))},q2.\u0275cmp=n.Xpm({type:q2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,oAe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VPCS node template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the VPCS node locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA()()(),n.TgZ(16,"div",14)(17,"button",15),n.NdJ("click",function(){return e.goBack()}),n._uU(18,"Cancel"),n.qZA(),n.TgZ(19,"button",16),n.NdJ("click",function(){return e.addTemplate()}),n._uU(20,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.templateNameForm))},directives:[wt.O5,Tn,Vn,Si,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u],styles:["",".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 tm=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),t}();function aAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function sAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function lAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}tm.\u0275fac=function(r){return new(r||tm)},tm.\u0275prov=n.Yz7({token:tm,factory:tm.\u0275fac});var YH=function(){return{standalone:!0}};function uAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",13)(6,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.default_name_format=a}),n.qZA()(),n.TgZ(7,"mat-form-field",13)(8,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.base_script_file=a}),n.qZA()(),n.TgZ(9,"mat-form-field",13)(10,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.symbol=a}),n.qZA()(),n.TgZ(11,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(12,"Choose symbol"),n.qZA(),n._UZ(13,"br")(14,"br"),n.TgZ(15,"mat-form-field",13)(16,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.category=a}),n.YNc(17,sAe,2,2,"mat-option",20),n.qZA()(),n.TgZ(18,"mat-form-field",21)(19,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.console_type=a}),n.YNc(20,lAe,2,2,"mat-option",20),n.qZA()(),n.TgZ(21,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.console_auto_start=a}),n._uU(22," Auto start console "),n.qZA()()(),n.TgZ(23,"div",24)(24,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(25,"Cancel"),n.qZA(),n.TgZ(26,"button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(27,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.name),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.base_script_file),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(13,YH))("ngModel",i.vpcsTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(14,YH))("ngModel",i.vpcsTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(15,YH))("ngModel",i.vpcsTemplate.console_auto_start)}}function cAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",27),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var dAe=function(r){return{shadowed:r}},K2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),scriptFile:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function fAe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function pAe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function hAe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function mAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"delete"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function _Ae(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,mAe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.vpcsTemplates)}}function gAe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,_Ae,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}K2.\u0275fac=function(r){return new(r||K2)(n.Y36(xr),n.Y36(vr),n.Y36(em),n.Y36($n),n.Y36(ne.qu),n.Y36(tm),n.Y36(kr))},K2.\u0275cmp=n.Xpm({type:K2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,aAe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VPCS device configuration"),n.qZA()()()(),n.YNc(8,uAe,28,16,"div",7),n.qZA(),n.YNc(9,cAe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,dAe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vpcsTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},directives:[wt.mk,wt.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,mu],styles:["",".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 t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();J2.\u0275fac=function(r){return new(r||J2)(n.Y36(xr),n.Y36(vr),n.Y36(em))},J2.\u0275cmp=n.Xpm({type:J2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,fAe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VPCS node templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,pAe,3,1,"button",7),n.qZA()()(),n.YNc(10,hAe,1,0,"app-empty-templates-list",8),n.YNc(11,gAe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.vpcsTemplates.length),n.xp6(1),n.Q6J("ngIf",e.vpcsTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[wt.O5,Tn,na,Vn,vi,gu,Vs,wt.sg,qa,Pa,ss,Hr,pa],styles:["",".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 dl=m(9971);function GH(){GH=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function vAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(null==e?null:e.name)}}function yAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function bAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"form",1),n.NdJ("ngSubmit",function(){n.CHM(e);var a=n.oxw();return a.export_project_form.valid&&a.exportPortableProject()}),n.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),n._uU(4,"Export Project"),n.qZA()(),n.TgZ(5,"div",5)(6,"button",6),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(7,"mat-icon"),n._uU(8,"close"),n.qZA()()()(),n._UZ(9,"mat-divider"),n.TgZ(10,"div",7)(11,"div",2)(12,"div",8),n._uU(13,"Compression:"),n.qZA(),n.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().selectCompression(a)}),n.YNc(17,vAe,2,2,"mat-option",12),n.qZA()()()(),n.TgZ(18,"div",2)(19,"div",8),n._uU(20,"Compression level:"),n.qZA(),n.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),n.YNc(24,yAe,2,2,"mat-option",12),n.qZA()()()(),n.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),n._uU(29," Include base images "),n.qZA()()()(),n.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),n._uU(34," Include snapshots "),n.qZA()()()(),n.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),n._uU(39," Reset MAC addresses"),n.qZA()()()()(),n._UZ(40,"mat-divider"),n.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),n._uU(45,"Export"),n.qZA(),n.TgZ(46,"button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n._uU(47,"Cancel"),n.qZA()()()()()}if(2&t){var i=n.oxw();n.Q6J("formGroup",i.export_project_form),n.xp6(17),n.Q6J("ngForOf",i.compression_methods),n.xp6(7),n.Q6J("ngForOf",i.compression_filter_value),n.xp6(20),n.Q6J("disabled",i.isExport)}}var Zw=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){return Yi(this,void 0,void 0,GH().mark(function e(){return GH().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:["",ne.kI.required],compression_level:[""],include_base_image:[!1,ne.kI.required],include_snapshots:[!1,ne.kI.required],reset_mac_address:[!1,ne.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()}}]),t}();Zw.\u0275fac=function(r){return new(r||Zw)(n.Y36(Dr),n.Y36(Vo),n.Y36(dl.Y),n.Y36(ne.qu))},Zw.\u0275cmp=n.Xpm({type:Zw,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&&n.YNc(0,bAe,48,4,"form",0),2&r&&n.Q6J("ngIf",e.export_project_form)},directives:[wt.O5,ne._Y,ne.JL,ne.sg,Vr,Tn,Vn,ag.d,Un.KE,xi.gD,ne.JJ,ne.u,ne.Q7,wt.sg,sn.ey,Ui,Zr],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 hg=m(7521),DZ=m(5735),AZ=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(DZ.o),nm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(AZ);nm.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(nm)))(e||nm)}}(),nm.\u0275prov=n.Yz7({token:nm,factory:nm.\u0275fac});var rm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(AZ);rm.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(rm)))(e||rm)}}(),rm.\u0275prov=n.Yz7({token:rm,factory:rm.\u0275fac});var im=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(AZ);im.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(im)))(e||im)}}(),im.\u0275prov=n.Yz7({token:im,factory:im.\u0275fac});var om=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(AZ);om.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(om)))(e||om)}}(),om.\u0275prov=n.Yz7({token:om,factory:om.\u0275fac});var g0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Nw=(0,V.Z)(function t(){(0,j.Z)(this,t)}),pp=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}}]),t}();function Dte(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,i)}return e}function Vc(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Dte(Object(e),!0).forEach(function(i){(0,Ex.Z)(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Dte(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}pp.\u0275fac=function(r){return new(r||pp)},pp.\u0275prov=n.Yz7({token:pp,factory:pp.\u0275fac});function Gs(t){return t>=48&&t<=57}function mg(t){return Gs(t)||t>=65&&t<=70||t>=97&&t<=102}function KH(t){return t>=65&&t<=90}function IZ(t){return function kAe(t){return KH(t)||function wAe(t){return t>=97&&t<=122}(t)}(t)||function TAe(t){return t>=128}(t)||95===t}function Ate(t){return IZ(t)||Gs(t)||45===t}function EAe(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t}function PZ(t){return 10===t||13===t||12===t}function v0(t){return PZ(t)||32===t||9===t}function _p(t,r){return!(92!==t||PZ(r)||0===r)}function RZ(t,r,e){return 45===t?IZ(r)||45===r||_p(r,e):!!IZ(t)||92===t&&_p(t,r)}function JH(t,r,e){return 43===t||45===t?Gs(r)?2:46===r&&Gs(e)?3:0:46===t?Gs(r)?2:0:Gs(t)?1:0}function Ote(t){return 65279===t||65534===t?1:0}for(var QH=new Array(128),_g=0;_g<QH.length;_g++)QH[_g]=(v0(_g)?130:Gs(_g)&&131)||IZ(_g)&&132||EAe(_g)&&133||_g||128;function $H(t){return t<128?QH[t]:132}function Bw(t,r){return r<t.length?t.charCodeAt(r):0}function ej(t,r,e){return 13===e&&10===Bw(t,r+1)?2:1}function Fw(t,r,e){var i=t.charCodeAt(r);return KH(i)&&(i|=32),i===e}function X2(t,r,e,i){if(e-r!==i.length||r<0||e>t.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=t.charCodeAt(o);if(KH(s)&&(s|=32),s!==a)return!1}return!0}function ZZ(t,r){for(;r<t.length&&v0(t.charCodeAt(r));r++);return r}function tj(t,r){for(;r<t.length&&Gs(t.charCodeAt(r));r++);return r}function Uw(t,r){if(mg(Bw(t,(r+=2)-1))){for(var e=Math.min(t.length,r+5);r<e&&mg(Bw(t,r));r++);var i=Bw(t,r);v0(i)&&(r+=ej(t,r,i))}return r}function NZ(t,r){for(;r<t.length;r++){var e=t.charCodeAt(r);if(!Ate(e)){if(_p(e,Bw(t,r+1))){r=Uw(t,r)-1;continue}break}}return r}function BZ(t,r){var e=t.charCodeAt(r);if((43===e||45===e)&&(e=t.charCodeAt(r+=1)),Gs(e)&&(r=tj(t,r+1),e=t.charCodeAt(r)),46===e&&Gs(t.charCodeAt(r+1))&&(r=tj(t,r+=2)),Fw(t,r,101)){var i=0;(45===(e=t.charCodeAt(r+1))||43===e)&&(i=1,e=t.charCodeAt(r+2)),Gs(e)&&(r=tj(t,r+1+i+1))}return r}function nj(t,r){for(;r<t.length;r++){var e=t.charCodeAt(r);if(41===e){r++;break}_p(e,Bw(t,r+1))&&(r=Uw(t,r))}return r}function Rte(t){if(1===t.length&&!mg(t.charCodeAt(0)))return t[0];var r=parseInt(t,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var Lte=["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 FZ(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===t||t.length<r?new Uint32Array(Math.max(r+1024,16384)):t}function Bte(t){for(var r=t.source,e=r.length,i=r.length>0?Ote(r.charCodeAt(0)):0,o=FZ(t.lines,e),a=FZ(t.columns,e),s=t.startLine,l=t.startColumn,u=i;u<e;u++){var f=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===f||13===f||12===f)&&(13===f&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,t.lines=o,t.columns=a,t.computed=!0}var AAe=function(){function t(){(0,j.Z)(this,t),this.lines=null,this.columns=null,this.computed=!1}return(0,V.Z)(t,[{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||Bte(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||Bte(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]}}}}]),t}(),Gc=16777215,OAe=new Map([[2,22],[21,22],[19,20],[23,24]]),IAe=function(){function t(r,e){(0,j.Z)(this,t),this.setSource(r,e)}return(0,V.Z)(t,[{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=FZ(this.offsetAndType,e.length+1),s=FZ(this.balance,e.length+1),l=0,u=0,f=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(C,B,G){switch(C){default:s[l]=o;break;case u:var q=f&Gc;for(f=s[q],u=f>>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]=f,u=OAe.get(C),f=u<<24|l}a[l++]=C<<24|G,-1===h&&(h=B)}),a[l]=0|o,s[l]=o,s[o]=o;0!==f;){var v=f&Gc;f=s[v],s[v]=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]&Gc:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&X2(this.source,this.offsetAndType[e-1]&Gc,this.offsetAndType[e]&Gc,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Gc:this.offsetAndType[this.tokenCount]&Gc: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]&Gc,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&Gc):(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&Gc):(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]&Gc: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&Gc;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:Lte[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),t}();function UZ(t,r){function e(C){return C<l?t.charCodeAt(C):0}function i(){return RZ(e(f=BZ(t,f)),e(f+1),e(f+2))?(h=12,void(f=NZ(t,f))):37===e(f)?(h=11,void f++):void(h=10)}function o(){var C=f;return f=NZ(t,f),X2(t,C,f,"url")&&40===e(f)?34===e(f=ZZ(t,f+1))||39===e(f)?(h=2,void(f=C+4)):void function s(){for(h=7,f=ZZ(t,f);f<t.length;f++){var C=t.charCodeAt(f);switch($H(C)){case 41:return void f++;case 130:return 41===e(f=ZZ(t,f))||f>=t.length?void(f<t.length&&f++):(f=nj(t,f),void(h=8));case 34:case 39:case 40:case 133:return f=nj(t,f),void(h=8);case 92:if(_p(C,e(f+1))){f=Uw(t,f)-1;break}return f=nj(t,f),void(h=8)}}}():40===e(f)?(h=2,void f++):void(h=1)}function a(C){for(C||(C=e(f++)),h=5;f<t.length;f++){var B=t.charCodeAt(f);switch($H(B)){case C:return void f++;case 130:if(PZ(B))return f+=ej(t,f,B),void(h=6);break;case 92:if(f===t.length-1)break;var G=e(f+1);PZ(G)?f+=ej(t,f+1,G):_p(B,G)&&(f=Uw(t,f)-1)}}}for(var h,l=(t=String(t||"")).length,u=Ote(e(0)),f=u;f<l;){var v=t.charCodeAt(f);switch($H(v)){case 130:h=13,f=ZZ(t,f+1);break;case 34:case 39:a();break;case 35:Ate(e(f+1))||_p(e(f+1),e(f+2))?(h=4,f=NZ(t,f+1)):(h=9,f++);break;case 40:h=21,f++;break;case 41:h=22,f++;break;case 43:case 46:JH(v,e(f+1),e(f+2))?i():(h=9,f++);break;case 44:h=18,f++;break;case 45:JH(v,e(f+1),e(f+2))?i():45===e(f+1)&&62===e(f+2)?(h=15,f+=3):RZ(v,e(f+1),e(f+2))?o():(h=9,f++);break;case 47:42===e(f+1)?(h=25,f=-1===(f=t.indexOf("*/",f+2))?t.length:f+2):(h=9,f++);break;case 58:h=16,f++;break;case 59:h=17,f++;break;case 60:33===e(f+1)&&45===e(f+2)&&45===e(f+3)?(h=14,f+=4):(h=9,f++);break;case 64:RZ(e(f+1),e(f+2),e(f+3))?(h=3,f=NZ(t,f+1)):(h=9,f++);break;case 91:h=19,f++;break;case 92:_p(v,e(f+1))?o():(h=9,f++);break;case 93:h=20,f++;break;case 123:h=23,f++;break;case 125:h=24,f++;break;case 131:i();break;case 132:o();break;default:h=9,f++}r(h,u,u=f)}}function rj(){rj=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var Hw=null,y0=function(t){function r(){(0,j.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,V.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Hw?(a=Hw,Hw=Hw.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=Hw,Hw=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:t,value:rj().mark(function e(){var i;return rj().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,cn.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(f){a.e(f)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,$t.Z)(this)}},{key:"toJSON",value:function(){return(0,$t.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,cn.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 HZ(t,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:t,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(t,": ").concat(r,"\n"))}})}function Hte(t,r){var e=t.source,i=t.line,o=t.column;function a(C,B){return s.slice(C,B).map(function(G,q){return String(C+q+1).padStart(f)+" |"+G}).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),f=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 v=l;v<=u;v++)v>=0&&v<s.length&&(s[v]=s[v].replace(/\t/g," "),s[v]=(h>0&&s[v].length>h?"\u2026":"")+s[v].substr(h,98)+(s[v].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+f+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function jte(t,r,e,i,o){return Object.assign(HZ("SyntaxError",t),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return Hte({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(t,"\n")+Hte({source:r,line:i,column:o},2)}})}function PAe(t){for(var r=this.createList(),e=!1,i={recognizer:t};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=t.getNode.call(this,i);if(void 0===o)break;e&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,r,i),r}var zte=function(){};function ZAe(t){return function(){return this[t]()}}function aj(t){var r=Object.create(null);for(var e in t){var i=t[e],o=i.parse||i;o&&(r[e]=o)}return r}function BAe(t){var r="",e="<unknown>",i=!1,o=zte,a=!1,s=new AAe,l=Object.assign(new IAe,function NAe(t){var r={context:Object.create(null),scope:Object.assign(Object.create(null),t.scope),atrule:aj(t.atrule),pseudo:aj(t.pseudo),node:aj(t.node)};for(var e in t.parseContext)switch(typeof t.parseContext[e]){case"function":r.context[e]=t.parseContext[e];break;case"string":r.context[e]=ZAe(t.parseContext[e])}return Vc(Vc({config:r},r),r.node)}(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:PAe,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 y0},createSingleNodeList:function(h){return(new y0).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,v){var C=this.tokenIndex;try{return h.call(this)}catch(G){if(a)throw G;var B=v.call(this,C);return a=!0,o(G,B),a=!1,B}},lookupNonWSType:function(h){var v;do{if(13!==(v=this.lookupType(h++)))return v}while(0!==v);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,v){return r.substring(h,v)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,v){return Fw(r,h,v)},cmpStr:function(h,v,C){return X2(r,h,v,C)},consume:function(h){var v=this.tokenStart;return this.eat(h),this.substrToCursor(v)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var v=r.substring(this.tokenStart,BZ(r,this.tokenStart));return this.eat(h),v},eat:function(h){if(this.tokenType!==h){var v=Lte[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(G){return G.toUpperCase()}),C="".concat(/[[\](){}]/.test(v)?'"'.concat(v,'"'):v," is expected"),B=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(B=this.tokenEnd-1,C="Identifier is expected but function found"):C="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),B++,C="Name is expected");break;case 11:10===this.tokenType&&(B=this.tokenEnd,C="Percent sign is expected")}this.error(C,B)}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,v){return i?s.getLocationRange(h,v,e):null},getLocationFromList:function(h){if(i){var v=this.getFirstListNode(h),C=this.getLastListNode(h);return s.getLocationRange(null!==v?v.loc.start.offset-s.startOffset:this.tokenStart,null!==C?C.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,v){var C=void 0!==v&&v<r.length?s.getLocation(v):this.eof?s.getLocation(function SAe(t,r){for(;r>=0&&v0(t.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new jte(h||"Unexpected input",r,C.offset,C.line,C.column)}});return Object.assign(function(h,v){r=h,v=v||{},l.setSource(r,UZ),s.setSource(r,v.offset,v.line,v.column),e=v.filename||"<unknown>",i=Boolean(v.positions),o="function"==typeof v.onParseError?v.onParseError:zte,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in v)||Boolean(v.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in v)||Boolean(v.parseRulePrelude),l.parseValue=!("parseValue"in v)||Boolean(v.parseValue),l.parseCustomProperty="parseCustomProperty"in v&&Boolean(v.parseCustomProperty);var C=v,B=C.context,G=void 0===B?"default":B,q=C.onComment;if(!(G in l.context))throw new Error("Unknown context `"+G+"`");"function"==typeof q&&l.forEachToken(function(pe,Ve,Me){if(25===pe){var Be=l.getLocation(Ve,Me),pt=X2(r,Me-2,Me,"*/")?r.slice(Ve+2,Me-2):r.slice(Ve+2,Me);q(pt,Be)}});var ae=l.context[G].call(l,v);return l.eof||l.error(),ae},{SyntaxError:jte,config:l.config})}var FAe=m(3058),Yte=new Set(["Atrule","Selector","Declaration"]);var sj=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},Gte=[[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],["/","*"]],zAe=Gte.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 qte(t){var r=new Set(t.map(function(e){var i=(0,Ut.Z)(e,2),o=i[0],a=i[1];return sj(o)<<16|sj(a)}));return function(e,i,o){var a=sj(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 WAe=qte(Gte),Kte=qte(zAe);function YAe(t,r){var e=this;if("function"!=typeof r)t.children.forEach(this.node,this);else{var i=null;t.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function GAe(t){var r=this;UZ(t,function(e,i,o){r.token(e,t.slice(i,o))})}function qAe(t){var r=new Map;for(var e in t.node){var i=t.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,f={node:function(C){if(!r.has(C.type))throw new Error("Unknown node type: "+C.type);r.get(C.type).call(h,C)},tokenBefore:Kte,token:function(C,B){u=this.tokenBefore(u,C,B),this.emit(B,C,!1),9===C&&92===B.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(C){l+=C},result:function(){return l}};s&&("function"==typeof s.decorator&&(f=s.decorator(f)),s.sourceMap&&(f=function UAe(t){var r=new FAe.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,f=t.node;t.node=function(C){if(C.loc&&C.loc.start&&Yte.has(C.type)){var B=C.loc.start.line,G=C.loc.start.column-1;(i.line!==B||i.column!==G)&&(i.line=B,i.column=G,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}))}f.call(this,C),u&&Yte.has(C.type)&&(o.line=s,o.column=l)};var h=t.emit;t.emit=function(C,B,G){for(var q=0;q<C.length;q++)10===C.charCodeAt(q)?(s++,l=0):l++;h(C,B,G)};var v=t.result;return t.result=function(){return u&&r.addMapping(a),{css:v(),map:r}},t}(f)),s.mode in Y&&(f.tokenBefore=Y[s.mode]));var h={node:function(C){return f.node(C)},children:YAe,token:function(C,B){return f.token(C,B)},tokenize:GAe};return f.node(a),f.result()}}var lj=Object.prototype.hasOwnProperty,$2=function(){};function Jte(t){return"function"==typeof t?t:$2}function Qte(t,r){return function(e,i,o){e.type===r&&t.call(this,e,i,o)}}function JAe(t,r){var e=r.structure,i=[];for(var o in e)if(!1!==lj.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,cn.Z)(a);try{for(l.s();!(u=l.n()).done;){var f=u.value;null===f?s.nullable=!0:"string"==typeof f?s.type="node":Array.isArray(f)&&(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 Xte(t,r){var e=t.fields.slice(),i=t.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var f;o&&(f=s[i],s[i]=a);var v,h=(0,cn.Z)(e);try{for(h.s();!(v=h.n()).done;){var C=v.value,B=a[C.name];if(!C.nullable||B)if("list"===C.type){if(r?B.reduceRight(u,!1):B.reduce(u,!1))return!0}else if(l(B))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=f)}}function $te(t){var r=t.StyleSheet,e=t.Atrule,i=t.Rule,o=t.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:t.DeclarationList}}}function XAe(t){var r=function QAe(t){var r={};for(var e in t.node)if(lj.call(t.node,e)){var i=t.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=JAe(0,i)}return r}(t),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)lj.call(r,s)&&null!==r[s]&&(e[s]=Xte(r[s],!1),i[s]=Xte(r[s],!0));var l=$te(e),u=$te(i),f=function(v,C){function B(Me,Be,pt){var ht=G.call(Ve,Me,Be,pt);return ht===o||ht!==a&&!!(ae.hasOwnProperty(Me.type)&&ae[Me.type](Me,Ve,B,pe)||q.call(Ve,Me,Be,pt)===o)}var G=$2,q=$2,ae=e,pe=function(Be,pt,ht,Pe){return Be||B(pt,ht,Pe)},Ve={break:o,skip:a,root:v,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof C)G=C;else if(C&&(G=Jte(C.enter),q=Jte(C.leave),C.reverse&&(ae=i),C.visit)){if(l.hasOwnProperty(C.visit))ae=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(", ")+")");G=Qte(G,C.visit),q=Qte(q,C.visit)}if(G===$2&&q===$2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");B(v)};return f.break=o,f.skip=a,f.find=function(h,v){var C=null;return f(h,function(B,G,q){if(v.call(this,B,G,q))return C=B,o}),C},f.findLast=function(h,v){var C=null;return f(h,{reverse:!0,enter:function(G,q,ae){if(v.call(this,G,q,ae))return C=G,o}}),C},f.findAll=function(h,v){var C=[];return f(h,function(B,G,q){v.call(this,B,G,q)&&C.push(B)}),C},f}function $Ae(t){return t}function uj(t,r,e,i){var o;switch(t.type){case"Group":o=function nOe(t,r,e,i){var o=" "===t.combinator||i?t.combinator:" "+t.combinator+" ",a=t.terms.map(function(s){return uj(s,r,e,i)}).join(o);return t.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(t,r,e,i)+(t.disallowEmpty?"!":"");break;case"Multiplier":return uj(t.term,r,e,i)+r(function eOe(t){var r=t.min,e=t.max,i=t.comma;return 0===r&&0===e?"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(t),t);case"Type":o="<"+t.name+(t.opts?r(function tOe(t){if("Range"===t.type)return" ["+(null===t.min?"-\u221e":t.min)+","+(null===t.max?"\u221e":t.max)+"]";throw new Error("Unknown node type `"+t.type+"`")}(t.opts),t.opts):"")+">";break;case"Property":o="<'"+t.name+"'>";break;case"Keyword":o=t.name;break;case"AtKeyword":o="@"+t.name;break;case"Function":o=t.name+"(";break;case"String":case"Token":o=t.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return r(o,t)}function cj(t,r){var e=$Ae,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)),uj(t,e,i,o)}var ene={offset:0,line:1,column:1};function jZ(t,r){var e=t&&t.loc&&t.loc[r];return e?"line"in e?eD(e):e:null}function eD(t,r){var a={offset:t.offset,line:t.line,column:t.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 tD=function(r,e){var i=HZ("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},iOe=function(r,e,i,o){var a=HZ("SyntaxMatchError",r),s=function rOe(t,r){for(var h,v,e=t.tokens,i=t.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,f="",C=0;C<e.length;C++){var B=e[C].value;C===i&&(l=B.length,s=f.length),null!==a&&e[C].node===a&&(C<=i?u++:u=0),f+=B}return i===e.length||u>1?(h=jZ(a||r,"end")||eD(ene,f),v=eD(h)):(h=jZ(a,"start")||eD(jZ(r,"start")||ene,f.slice(0,s)),v=jZ(a,"end")||eD(h,f.substr(s,l))),{css:f,mismatchOffset:s,mismatchLength:l,start:h,end:v}}(o,i),l=s.css,u=s.mismatchOffset,f=s.mismatchLength,h=s.start,v=s.end;return a.rawMessage=r,a.syntax=e?cj(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=f,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:v},a},zZ=new Map,jw=new Map,dj=function oOe(t){if(zZ.has(t))return zZ.get(t);var r=t.toLowerCase(),e=zZ.get(r);if(void 0===e){var i=fj(r,0),o=i?"":nne(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return zZ.set(t,e),e},tne=function aOe(t){if(jw.has(t))return jw.get(t);var r=t,e=t[0];"/"===e?e="/"===t[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=fj(r,e.length);if(!i&&(r=r.toLowerCase(),jw.has(r))){var o=jw.get(r);return jw.set(t,o),o}var a=i?"":nne(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 jw.set(t,l),l};function fj(t,r){return r=r||0,t.length-r>=2&&45===t.charCodeAt(r)&&45===t.charCodeAt(r+1)}function nne(t,r){if(r=r||0,t.length-r>=3&&45===t.charCodeAt(r)&&45!==t.charCodeAt(r+1)){var e=t.indexOf("-",r+2);if(-1!==e)return t.substring(r,e+1)}return""}var zw=!0;function hj(t,r){return null!==t&&9===t.type&&t.value.charCodeAt(0)===r}function rD(t,r,e){for(;null!==t&&(13===t.type||25===t.type);)t=e(++r);return r}function vg(t,r,e,i){if(!t)return 0;var o=t.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<t.value.length;r++)if(!Gs(t.value.charCodeAt(r)))return 0;return i+1}function mj(t,r,e){var i=!1,o=rD(t,r,e);if(null===(t=e(o)))return r;if(10!==t.type){if(!hj(t,43)&&!hj(t,45))return r;if(i=!0,o=rD(e(++o),o,e),null===(t=e(o))||10!==t.type)return 0}if(!i){var a=t.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return vg(t,i?0:1,i,o)}function _j(t,r){return null!==t&&9===t.type&&t.value.charCodeAt(0)===r}function iD(t,r,e){for(var i=0,o=r;o<t.value.length;o++){var a=t.value.charCodeAt(o);if(45===a&&e&&0!==i)return iD(t,r+i+1,!1),6;if(!mg(a)||++i>6)return 0}return i}function VZ(t,r,e){if(!t)return 0;for(;_j(e(r),63);){if(++t>6)return 0;r++}return r}var pOe=["unset","initial","inherit"],hOe=["calc(","-moz-calc(","-webkit-calc("],gj=new Map([[2,22],[21,22],[19,20],[23,24]]);function Kd(t,r){return r<t.length?t.charCodeAt(r):0}function vj(t,r){return X2(t,0,t.length,r)}function one(t,r){for(var e=0;e<r.length;e++)if(vj(t,r[e]))return!0;return!1}function ane(t,r){return r===t.length-2&&(92===Kd(t,r)&&Gs(Kd(t,r+1)))}function YZ(t,r,e){if(t&&"Range"===t.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==t.min&&i<t.min||null!==t.max&&i>t.max)return!0}return!1}function sne(t,r){var e=0,i=[],o=0;e:do{switch(t.type){case 24:case 22:case 20:if(t.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=gj.get(t.type)}o++}while(t=r(o));return o}function qc(t){return function(r,e,i){return null===r?0:2===r.type&&one(r.value,hOe)?sne(r,e):t(r,e,i)}}function ia(t){return function(r){return null===r||r.type!==t?0:1}}function am(t){return t&&(t=new Set(t)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=BZ(r.value,0);if(null!==t){var a=r.value.indexOf("\\",o),s=-1!==a&&ane(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===t.has(s.toLowerCase()))return 0}return YZ(i,r.value,o)?0:1}}function lne(t){return"function"!=typeof t&&(t=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:t(r,e,i)}}var yj={"ident-token":ia(1),"function-token":ia(2),"at-keyword-token":ia(3),"hash-token":ia(4),"string-token":ia(5),"bad-string-token":ia(6),"url-token":ia(7),"bad-url-token":ia(8),"delim-token":ia(9),"number-token":ia(10),"percentage-token":ia(11),"dimension-token":ia(12),"whitespace-token":ia(13),"CDO-token":ia(14),"CDC-token":ia(15),"colon-token":ia(16),"semicolon-token":ia(17),"comma-token":ia(18),"[-token":ia(19),"]-token":ia(20),"(-token":ia(21),")-token":ia(22),"{-token":ia(23),"}-token":ia(24),string:ia(5),ident:ia(1),"custom-ident":function TOe(t){if(null===t||1!==t.type)return 0;var r=t.value.toLowerCase();return one(r,pOe)||vj(r,"default")?0:1},"custom-property-name":function EOe(t){return null===t||1!==t.type||45!==Kd(t.value,0)||45!==Kd(t.value,1)?0:1},"hex-color":function MOe(t){if(null===t||4!==t.type)return 0;var r=t.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!mg(Kd(t.value,e)))return 0;return 1},"id-selector":function SOe(t){return null!==t&&4===t.type&&RZ(Kd(t.value,1),Kd(t.value,2),Kd(t.value,3))?1:0},"an-plus-b":function lOe(t,r){var e=0;if(!t)return 0;if(10===t.type)return vg(t,0,false,e);if(1===t.type&&45===t.value.charCodeAt(0)){if(!Fw(t.value,1,110))return 0;switch(t.value.length){case 2:return mj(r(++e),e,r);case 3:return 45!==t.value.charCodeAt(2)?0:(e=rD(r(++e),e,r),vg(t=r(e),0,zw,e));default:return 45!==t.value.charCodeAt(2)?0:vg(t,3,zw,e)}}else if(1===t.type||hj(t,43)&&1===r(e+1).type){if(1!==t.type&&(t=r(++e)),null===t||!Fw(t.value,0,110))return 0;switch(t.value.length){case 1:return mj(r(++e),e,r);case 2:return 45!==t.value.charCodeAt(1)?0:(e=rD(r(++e),e,r),vg(t=r(e),0,zw,e));default:return 45!==t.value.charCodeAt(1)?0:vg(t,2,zw,e)}}else if(12===t.type){for(var i=t.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<t.value.length&&Gs(t.value.charCodeAt(a));a++);return a!==o&&Fw(t.value,a,110)?a+1===t.value.length?mj(r(++e),e,r):45!==t.value.charCodeAt(a+1)?0:a+2===t.value.length?(e=rD(r(++e),e,r),vg(t=r(e),0,zw,e)):vg(t,a+2,zw,e):0}return 0},urange:function fOe(t,r){var e=0;if(null===t||1!==t.type||!Fw(t.value,0,117)||null===(t=r(++e)))return 0;if(_j(t,43))return null===(t=r(++e))?0:1===t.type?VZ(iD(t,0,!0),++e,r):_j(t,63)?VZ(1,++e,r):0;if(10===t.type){var i=iD(t,1,!0);return 0===i?0:null===(t=r(++e))?e:12===t.type||10===t.type?function dOe(t,r){return t.value.charCodeAt(0)===r}(t,45)&&iD(t,1,!1)?e+1:0:VZ(i,e,r)}return 12===t.type?VZ(iD(t,1,!0),++e,r):0},"declaration-value":function xOe(t,r){if(!t)return 0;var e=0,i=[],o=0;e:do{switch(t.type){case 6:case 8:break e;case 24:case 22:case 20:if(t.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===t.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=gj.get(t.type)}o++}while(t=r(o));return o},"any-value":function DOe(t,r){if(!t)return 0;var e=0,i=[],o=0;e:do{switch(t.type){case 6:case 8:break e;case 24:case 22:case 20:if(t.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=gj.get(t.type)}o++}while(t=r(o));return o},dimension:qc(am(null)),angle:qc(am(["deg","grad","rad","turn"])),decibel:qc(am(["db"])),frequency:qc(am(["hz","khz"])),flex:qc(am(["fr"])),length:qc(lne(am(["px","mm","cm","in","pt","pc","q","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]))),resolution:qc(am(["dpi","dpcm","dppx","x"])),semitones:qc(am(["st"])),time:qc(am(["s","ms"])),percentage:qc(function AOe(t,r,e){return null===t||11!==t.type||YZ(e,t.value,t.value.length-1)?0:1}),zero:lne(),number:qc(function OOe(t,r,e){if(null===t)return 0;var i=BZ(t.value,0);return!(i===t.value.length)&&!ane(t.value,i)||YZ(e,t.value,i)?0:1}),integer:qc(function IOe(t,r,e){if(null===t||10!==t.type)return 0;for(var i=43===Kd(t.value,0)||45===Kd(t.value,0)?1:0;i<t.value.length;i++)if(!Gs(Kd(t.value,i)))return 0;return YZ(e,t.value,i)?0:1}),"-ms-legacy-expression":function kOe(t){return t+="(",function(r,e){return null!==r&&vj(r.value,t)?sne(r,e):0}}("expression")};function POe(t,r,e){return Object.assign(HZ("SyntaxError",t),{input:r,offset:e,rawMessage:t,message:t+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var FOe=function(){function t(r){(0,j.Z)(this,t),this.str=r,this.pos=0}return(0,V.Z)(t,[{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 POe(e,this.str,this.pos)}}]),t}(),kj=new Uint8Array(128).map(function(t,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Cne={" ":1,"&&":2,"||":3,"|":4};function JZ(t){return t.substringToPos(t.findWsEnd(t.pos))}function QZ(t){for(var r=t.pos;r<t.str.length;r++){var e=t.str.charCodeAt(r);if(e>=128||0===kj[e])break}return t.pos===r&&t.error("Expect a keyword"),t.substringToPos(r)}function XZ(t){for(var r=t.pos;r<t.str.length;r++){var e=t.str.charCodeAt(r);if(e<48||e>57)break}return t.pos===r&&t.error("Expect a number"),t.substringToPos(r)}function GOe(t){var r=t.str.indexOf("'",t.pos+1);return-1===r&&(t.pos=t.str.length,t.error("Expect an apostrophe")),t.substringToPos(r+1)}function wne(t){var r,e=null;return t.eat(123),r=XZ(t),44===t.charCode()?(t.pos++,125!==t.charCode()&&(e=XZ(t))):e=r,t.eat(125),{min:Number(r),max:e?Number(e):0}}function oD(t,r){var e=function qOe(t){var r=null,e=!1;switch(t.charCode()){case 42:t.pos++,r={min:0,max:0};break;case 43:t.pos++,r={min:1,max:0};break;case 63:t.pos++,r={min:0,max:1};break;case 35:t.pos++,e=!0,r=123===t.charCode()?wne(t):{min:1,max:0};break;case 123:r=wne(t);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(t);return null!==e?(e.term=r,e):r}function Tj(t){var r=t.peek();return""===r?null:{type:"Token",value:r}}function QOe(t){var r,e=null;return t.eat(60),r=QZ(t),40===t.charCode()&&41===t.nextCharCode()&&(t.pos+=2,r+="()"),91===t.charCodeAt(t.findWsEnd(t.pos))&&(JZ(t),e=function JOe(t){var r=null,e=null,i=1;return t.eat(91),45===t.charCode()&&(t.peek(),i=-1),-1==i&&8734===t.charCode()?t.peek():r=i*Number(XZ(t)),JZ(t),t.eat(44),JZ(t),8734===t.charCode()?t.peek():(i=1,45===t.charCode()&&(t.peek(),i=-1),e=i*Number(XZ(t))),t.eat(93),null===r&&null===e?null:{type:"Range",min:r,max:e}}(t)),t.eat(62),oD(t,{type:"Type",name:r,opts:e})}function $Oe(t,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 Cne[l]-Cne[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<t.length;o++){var s=t[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),t.splice(o,1),o--):(-1!==a&&o-a>1&&(t.splice(a,o-a,e(t.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&t.splice(a,o-a,e(t.slice(a,o),i))}return i}function kne(t){for(var i,r=[],e={},o=null,a=t.pos;i=tIe(t);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(t.pos=a,t.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=t.pos);return null!==o&&"Combinator"===o.type&&(t.pos-=a,t.error("Unexpected combinator")),{type:"Group",terms:r,combinator:$Oe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function tIe(t){var r=t.charCode();if(r<128&&1===kj[r])return function XOe(t){var r=QZ(t);return 40===t.charCode()?(t.pos++,{type:"Function",name:r}):oD(t,{type:"Keyword",name:r})}(t);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return oD(t,function eIe(t){var r;return t.eat(91),r=kne(t),t.eat(93),r.explicit=!0,33===t.charCode()&&(t.pos++,r.disallowEmpty=!0),r}(t));case 60:return 39===t.nextCharCode()?function KOe(t){var r;return t.eat(60),t.eat(39),r=QZ(t),t.eat(39),t.eat(62),oD(t,{type:"Property",name:r})}(t):QOe(t);case 124:return{type:"Combinator",value:t.substringToPos(t.pos+(124===t.nextCharCode()?2:1))};case 38:return t.pos++,t.eat(38),{type:"Combinator",value:"&&"};case 44:return t.pos++,{type:"Comma"};case 39:return oD(t,{type:"String",value:GOe(t)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:JZ(t)};case 64:return(r=t.nextCharCode())<128&&1===kj[r]?(t.pos++,{type:"AtKeyword",name:QZ(t)}):Tj(t);case 123:if((r=t.nextCharCode())<48||r>57)return Tj(t);break;default:return Tj(t)}}function Tne(t){var r=new FOe(t),e=kne(r);return r.pos!==t.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var aD=function(){};function Ene(t){return"function"==typeof t?t:aD}var rIe={decorator:function(r){var e=[],i=null;return Vc(Vc({},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 oIe(t,r){return"string"==typeof t?function iIe(t){var r=[];return UZ(t,function(e,i,o){return r.push({type:e,value:t.slice(i,o),node:null})}),r}(t):r.generate(t,rIe)}var Mo={type:"Match"},No={type:"Mismatch"},Ej={type:"DisallowEmpty"};function Ol(t,r,e){return r===Mo&&e===No||t===Mo&&r===Mo&&e===Mo?t:("If"===t.type&&t.else===No&&r===Mo&&(r=t.then,t=t.match),{type:"If",match:t,then:r,else:e})}function Mne(t){return t.length>2&&40===t.charCodeAt(t.length-2)&&41===t.charCodeAt(t.length-1)}function Sne(t){return"Keyword"===t.type||"AtKeyword"===t.type||"Function"===t.type||"Type"===t.type&&Mne(t.name)}function Mj(t,r,e){switch(t){case" ":for(var i=Mo,o=r.length-1;o>=0;o--){i=Ol(r[o],i,No)}return i;case"|":for(var s=No,l=null,u=r.length-1;u>=0;u--){var f=r[u];if(Sne(f)&&(null===l&&u>0&&Sne(r[u-1])&&(s=Ol({type:"Enum",map:l=Object.create(null)},Mo,s)),null!==l)){var h=(Mne(f.name)?f.name.slice(0,-1):f.name).toLowerCase();if(!(h in l)){l[h]=f;continue}}l=null,s=Ol(f,Mo,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var v=No,C=function(Ve){var Me=r[Ve],Be=void 0;Be=r.length>1?Mj(t,r.filter(function(pt){return pt!==Me}),!1):Mo,v=Ol(Me,Be,v)},B=r.length-1;B>=0;B--)C(B);return v;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var G=e?Mo:No,q=function(Ve){var Me=r[Ve],Be=void 0;Be=r.length>1?Mj(t,r.filter(function(pt){return pt!==Me}),!0):Mo,G=Ol(Me,Be,G)},ae=r.length-1;ae>=0;ae--)q(ae);return G}}function Sj(t){if("function"==typeof t)return{type:"Generic",fn:t};switch(t.type){case"Group":var r=Mj(t.combinator,t.terms.map(Sj),!1);return t.disallowEmpty&&(r=Ol(r,Ej,No)),r;case"Multiplier":return function lIe(t){var r=Mo,e=Sj(t.term);if(0===t.max)e=Ol(e,Ej,No),(r=Ol(e,null,No)).then=Ol(Mo,Mo,r),t.comma&&(r.then.else=Ol({type:"Comma",syntax:t},r,No));else for(var i=t.min||1;i<=t.max;i++)t.comma&&r!==Mo&&(r=Ol({type:"Comma",syntax:t},r,No)),r=Ol(e,Ol(Mo,Mo,r),No);if(0===t.min)r=Ol(Mo,Mo,r);else for(var o=0;o<t.min-1;o++)t.comma&&r!==Mo&&(r=Ol({type:"Comma",syntax:t},r,No)),r=Ol(e,r,No);return r}(t);case"Type":case"Property":return{type:t.type,name:t.name,syntax:t};case"Keyword":return{type:t.type,name:t.name.toLowerCase(),syntax:t};case"AtKeyword":return{type:t.type,name:"@"+t.name.toLowerCase(),syntax:t};case"Function":return{type:t.type,name:t.name.toLowerCase()+"(",syntax:t};case"String":return 3===t.value.length?{type:"Token",value:t.value.charAt(1),syntax:t}:{type:t.type,value:t.value.substr(1,t.value.length-2).replace(/\\'/g,"'"),syntax:t};case"Token":return{type:t.type,value:t.value,syntax:t};case"Comma":return{type:t.type,syntax:t};default:throw new Error("Unknown node type:",t.type)}}function $Z(t,r){return"string"==typeof t&&(t=Tne(t)),{type:"MatchGraph",match:Sj(t),syntax:r||null,source:t}}var xne=Object.prototype.hasOwnProperty;function One(t){for(var r=null,e=null,i=t;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Dj(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;e++){var i=r.charCodeAt(e),o=t.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function Ine(t){return null===t||(18===t.type||2===t.type||21===t.type||19===t.type||23===t.type||function hIe(t){return 9===t.type&&"?"!==t.value}(t))}function Pne(t){return null===t||(22===t.type||20===t.type||24===t.type||9===t.type)}function Rne(t,r,e){function i(){do{Ve++,pe=Ve<t.length?t[Ve]:null}while(null!==pe&&(13===pe.type||25===pe.type))}function o(ft){var St=Ve+ft;return St<t.length?t[St]:null}function a(ft,St){return{nextState:ft,matchStack:Be,syntaxStack:v,thenStack:C,tokenIndex:Ve,prev:St}}function s(ft){C={nextState:ft,matchStack:Be,syntaxStack:v,prev:C}}function l(ft){B=a(ft,B)}function u(){Be={type:1,syntax:r.syntax,token:pe,prev:Be},i(),G=null,Ve>Me&&(Me=Ve)}function h(){Be=2===Be.type?Be.prev:{type:3,syntax:v.syntax,token:Be.token,prev:Be},v=v.prev}var v=null,C=null,B=null,G=null,q=0,ae=null,pe=null,Ve=-1,Me=0,Be={type:0,syntax:null,token:null,prev:null};for(i();null===ae&&++q<15e3;)switch(r.type){case"Match":if(null===C){if(null!==pe&&(Ve!==t.length-1||"\\0"!==pe.value&&"\\9"!==pe.value)){r=No;break}ae="Match";break}if((r=C.nextState)===Ej){if(C.matchStack===Be){r=No;break}r=Mo}for(;C.syntaxStack!==v;)h();C=C.prev;break;case"Mismatch":if(null!==G&&!1!==G)(null===B||Ve>B.tokenIndex)&&(B=G,G=!1);else if(null===B){ae="Mismatch";break}r=B.nextState,C=B.thenStack,v=B.syntaxStack,Be=B.matchStack,Ve=B.tokenIndex,pe=Ve<t.length?t[Ve]:null,B=B.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==No&&l(r.else),r.then!==Mo&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var pt=r.syntax.terms;if(r.index===pt.length){if(0===r.mask||r.syntax.all){r=No;break}r=Mo;break}if(r.mask===(1<<pt.length)-1){r=Mo;break}for(;r.index<pt.length;r.index++){var ht=1<<r.index;if(0==(r.mask&ht)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|ht}),r=pt[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==pe){var Pe=pe.value.toLowerCase();if(-1!==Pe.indexOf("\\")&&(Pe=Pe.replace(/\\[09].*$/,"")),xne.call(r.map,Pe)){r=r.map[Pe];break}}r=No;break;case"Generic":var at=null!==v?v.opts:null,Ct=Ve+Math.floor(r.fn(pe,o,at));if(!isNaN(Ct)&&Ct>Ve){for(;Ve<Ct;)u();r=Mo}else r=No;break;case"Type":case"Property":var E="Type"===r.type?"types":"properties",_=xne.call(e,E)?e[E][r.name]:null;if(!_||!_.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==G&&null!==pe&&"Type"===r.type)if("custom-ident"===r.name&&1===pe.type||"length"===r.name&&"0"===pe.value){null===G&&(G=a(r,B)),r=No;break}v={syntax:r.syntax,opts:r.syntax.opts||null!==v&&v.opts||null,prev:v},Be={type:2,syntax:r.syntax,token:Be.token,prev:Be},r=_.match;break;case"Keyword":var H=r.name;if(null!==pe){var ee=pe.value;if(-1!==ee.indexOf("\\")&&(ee=ee.replace(/\\[09].*$/,"")),Dj(ee,H)){u(),r=Mo;break}}r=No;break;case"AtKeyword":case"Function":if(null!==pe&&Dj(pe.value,r.name)){u(),r=Mo;break}r=No;break;case"Token":if(null!==pe&&pe.value===r.value){u(),r=Mo;break}r=No;break;case"Comma":null!==pe&&18===pe.type?Ine(Be.token)?r=No:(u(),r=Pne(pe)?No:Mo):r=Ine(Be.token)||Pne(pe)?Mo:No;break;case"String":for(var re="",ge=Ve;ge<t.length&&re.length<r.value.length;ge++)re+=t[ge].value;if(Dj(re,r.value)){for(;Ve<ge;)u();r=Mo}else r=No;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,ae){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),ae="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Be=null;break;case"Match":for(;null!==v;)h();break;default:Be=null}return{tokens:t,reason:ae,iterations:q,match:Be,longestMatch:Me}}function Lne(t,r,e){var i=Rne(t,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=One(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 Zne(t){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===t)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function mIe(t,r){return Aj(this,t,function(e){return"Type"===e.type&&e.name===r})}function _Ie(t,r){return Aj(this,t,function(e){return"Property"===e.type&&e.name===r})}function gIe(t){return Aj(this,t,function(r){return"Keyword"===r.type})}function Aj(t,r,e){var i=Zne.call(t,r);return null!==i&&i.some(e)}function Nne(t){return"node"in t?t.node:Nne(t.match[0])}function Bne(t){return"node"in t?t.node:Bne(t.match[t.match.length-1])}function Fne(t,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=Nne(l),f=Bne(l);t.syntax.walk(r,function(h,v,C){if(h===u){var B=new y0;do{if(B.appendData(v.data),v.data===f)break;v=v.next}while(null!==v);s.push({parent:C,nodes:B})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var sD=Object.prototype.hasOwnProperty;function Oj(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&t>=0}function Une(t){return Boolean(t)&&Oj(t.offset)&&Oj(t.line)&&Oj(t.column)}function vIe(t,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!==sD.call(i,a)){if("type"===a)i.type!==t&&o(i,"Wrong node type `"+i.type+"`, expected `"+t+"`");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(Une(i.loc.start)){if(Une(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 y0)}}}else o(i,"Unknown field `"+a+"` for "+t+" node type");s||o(i,"Bad value for `"+t+"."+a+"`")}}for(var f in r)sD.call(r,f)&&!1===sD.call(i,f)&&o(i,"Field `"+t+"."+f+"` is missed")}}function yIe(t,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+t+'"'};for(var a in e)if(!1!==sD.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 f=l[u];if(f===String||f===Boolean)s.push(f.name);else if(null===f)s.push("null");else if("string"==typeof f)s.push("<"+f+">");else{if(!Array.isArray(f))throw new Error("Wrong value `"+f+"` in `"+t+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:vIe(t,i)}}var CIe=$Z("inherit | initial | unset"),wIe=$Z("inherit | initial | unset | <-ms-legacy-expression>");function Ij(t,r,e){var i={};for(var o in t)t[o].syntax&&(i[o]=e?t[o].syntax:cj(t[o].syntax,{compact:r}));return i}function kIe(t,r,e){for(var i={},o=0,a=Object.entries(t);o<a.length;o++){var s=(0,Ut.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:cj(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&Ij(u.descriptors,r,e)}}return i}function Jd(t,r,e){return Vc({matched:t,iterations:e,error:r},S)}function lD(t,r,e,i){var a,o=oIe(e,t.syntax);return function TIe(t){for(var r=0;r<t.length;r++)if("var("===t[r].value.toLowerCase())return!0;return!1}(o)?Jd(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Lne(o,t.valueCommonSyntax,t)),i&&a.match||(a=Lne(o,r.match,t)).match?Jd(a.match,null,a.iterations):Jd(null,new iOe(a.reason,r.syntax,e,a),a.iterations))}var Hne=function(){function t(r,e,i){if((0,j.Z)(this,t),this.valueCommonSyntax=CIe,this.syntax=e,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function bIe(t){var r={};if(t.node)for(var e in t.node)if(sD.call(t.node,e)){var i=t.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=yIe(e,i)}return r}(r),r){if(r.types)for(var o in r.types)this.addType_(o,r.types[o]);if(r.generic)for(var a in this.generic=!0,yj)this.addType_(a,yj[a]);if(r.atrules)for(var s in r.atrules)this.addAtrule_(s,r.atrules[s]);if(r.properties)for(var l in r.properties)this.addProperty_(l,r.properties[l])}}return(0,V.Z)(t,[{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=$Z(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Tne(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:$Z(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),i===yj["-ms-legacy-expression"]&&(this.valueCommonSyntax=wIe))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new tD("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?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=dj(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new tD("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 tD("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);return o?Jd(null,o):i?lD(this,this.getAtrule(e).prelude,i,!1):Jd(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return Jd(null,a);var s=this.getAtrule(e),l=dj(i);return lD(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?Jd(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if(tne(e).custom)return Jd(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?Jd(null,o):lD(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?lD(this,o,i,!1):Jd(null,new tD("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")),lD(this,e,i,!1)):Jd(null,new tD("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return Fne(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return Fne(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=dj(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=tne(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,f,h){if(f.has(u))return f.get(u);f.set(u,!1),null!==h.syntax&&function nIe(t,r,e){var o=aD,a=aD;if("function"==typeof r?o=r:r&&(o=Ene(r.enter),a=Ene(r.leave)),o===aD&&a===aD)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)}(t)}(h.syntax,function(v){if("Type"===v.type||"Property"===v.type){var C="Type"===v.type?l.types:l.properties,B="Type"===v.type?i:o;(!hasOwnProperty.call(C,v.name)||e(l,v.name,B,C[v.name]))&&f.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,$t.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,$t.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,types:Ij(this.types,!i,e),properties:Ij(this.properties,!i,e),atrules:kIe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),t}(),Ww=Object.prototype.hasOwnProperty,EIe={generic:!0,types:Rj,atrules:{prelude:Wne,descriptors:Wne},properties:Rj,parseContext:function MIe(t,r){return Object.assign(t,r)},scope:function jne(t,r){for(var e in r)Ww.call(r,e)&&(tN(t[e])?jne(t[e],Pj(r[e])):t[e]=Pj(r[e]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function tN(t){return t&&t.constructor===Object}function Pj(t){return tN(t)?Vc({},t):t}function zne(t,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof t?t+r:r.replace(/^\s*\|\s*/,""):r||null}function Rj(t,r){if("string"==typeof r)return zne(t,r);var e=Vc({},t);for(var i in r)Ww.call(r,i)&&(e[i]=zne(Ww.call(t,i)?t[i]:void 0,r[i]));return e}function Wne(t,r){var e=Rj(t,r);return!tN(e)||Object.keys(e).length?e:null}function uD(t,r,e){for(var i in e)if(!1!==Ww.call(e,i))if(!0===e[i])i in r&&Ww.call(r,i)&&(t[i]=Pj(r[i]));else if(e[i])if("function"==typeof e[i]){var o=e[i];t[i]=o({},t[i]),t[i]=o(t[i]||{},r[i])}else if(tN(e[i])){var a={};for(var s in t[i])a[s]=uD({},t[i][s],e[i]);for(var l in r[i])a[l]=uD(a[l]||{},r[i][l],e[i]);t[i]=a}else if(Array.isArray(e[i])){for(var u={},f=e[i].reduce(function(ae,pe){return ae[pe]=!0,ae},{}),h=0,v=Object.entries(t[i]||{});h<v.length;h++){var C=(0,Ut.Z)(v[h],2),B=C[0],G=C[1];u[B]={},G&&uD(u[B],G,f)}for(var q in r[i])Ww.call(r[i],q)&&(u[q]||(u[q]={}),r[i]&&r[i][q]&&uD(u[q],r[i][q],f));t[i]=u}return t}var Lj=function(t,r){return uD(t,r,EIe)};function Vne(t){var r=BAe(t),e=XAe(t),i=qAe(t),o=function KAe(t){return{fromPlainObject:function(e){return t(e,{enter:function(o){o.children&&!(o.children instanceof y0)&&(o.children=(new y0).fromArray(o.children))}}),e},toPlainObject:function(e){return t(e,{leave:function(o){o.children&&o.children instanceof y0&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(f){return new Hne(f,l,l.lexer.structure)},tokenize:UZ,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(f){var h=Lj({},t);return Vne("function"==typeof f?f(h,Object.assign):Lj(h,f))}};return l.lexer=new Hne({generic:!0,types:t.types,atrules:t.atrules,properties:t.properties,node:t.node},l),l}var b0=!0;function rN(t,r){var e=this.tokenStart+t,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)Gs(this.charCodeAt(e))||this.error("Integer is expected",e)}function Vw(t){return rN.call(this,0,t)}function yg(t,r){if(!this.cmpChar(this.tokenStart+t,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+t)}}function Zj(){for(var t=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++t);if(10!==e){if(!this.isDelim(43,t)&&!this.isDelim(45,t))return null;r=this.isDelim(43,t)?43:45;do{e=this.lookupType(++t)}while(13===e||25===e);10!==e&&(this.skip(t),Vw.call(this,b0))}return t>0&&this.skip(t),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),Vw.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var AIe="AnPlusB",OIe={a:[String,null],b:[String,null]};function Yne(){var t=this.tokenStart,r=null,e=null;if(10===this.tokenType)Vw.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",yg.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=Zj.call(this);break;case 3:yg.call(this,2,45),this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10);break;default:yg.call(this,2,45),rN.call(this,3,b0),this.next(),e=this.substrToCursor(t+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()),yg.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=Zj.call(this);break;case 2:yg.call(this,1,45),this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10);break;default:yg.call(this,1,45),rN.call(this,2,b0),this.next(),e=this.substrToCursor(t+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&&Gs(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),yg.call(this,s-this.tokenStart,110),r=this.substring(t,s),s+1===this.tokenEnd?(this.next(),e=Zj.call(this)):(yg.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10)):(rN.call(this,s-this.tokenStart+2,b0),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(t,this.tokenStart),a:r,b:e}}function IIe(t){if(t.a){var r=("+1"===t.a||"1"===t.a?"n":"-1"===t.a&&"-n")||t.a+"n";if(t.b){var e="-"===t.b[0]||"+"===t.b[0]?t.b:"+"+t.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(t.b)}function Gne(t){return this.Raw(t,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function PIe(){for(var r,t=1;r=this.lookupType(t);t++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var RIe="Atrule",LIe="atrule",ZIe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function qne(){var r,e,t=this.tokenStart,i=null,o=null;switch(this.eat(3),e=(r=this.substrToCursor(t+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,r),Gne):Gne.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].block?this.atrule[e].block.call(this):this.Block(PIe.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:r,prelude:i,block:o}}function NIe(t){this.token(3,"@"+t.name),null!==t.prelude&&this.node(t.prelude),t.block?this.node(t.block):this.token(17,";")}var BIe="AtrulePrelude",FIe="atrulePrelude",UIe={children:[[]]};function Kne(t){var r=null;return null!==t&&(t=t.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,t)&&"function"==typeof this.atrule[t].prelude?this.atrule[t].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 HIe(t){this.children(t)}function VIe(){this.eof&&this.error("Unexpected end of input");var t=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(t,this.tokenStart),name:this.substrToCursor(t)}}function YIe(){var t=this.tokenStart,r=this.charCodeAt(t);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(t)}var GIe="AttributeSelector",qIe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Qne(){var r,t=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=VIe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=YIe.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(t,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function KIe(t){this.token(9,"["),this.node(t.name),null!==t.matcher&&(this.tokenize(t.matcher),this.node(t.value)),null!==t.flags&&this.token(1,t.flags),this.token(9,"]")}function Xne(t){return this.Raw(t,null,!0)}function JIe(){return this.parseWithFallback(this.Rule,Xne)}function $ne(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}function QIe(){if(17===this.tokenType)return $ne.call(this,this.tokenIndex);var t=this.parseWithFallback(this.Declaration,$ne);return 17===this.tokenType&&this.next(),t}var XIe="Block",$Ie="block",ePe={children:[["Atrule","Rule","Declaration"]]};function ere(t){var r=t?QIe:JIe,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,Xne));break;default:i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function tPe(t){var r=this;this.token(23,"{"),this.children(t,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var nPe="Brackets",rPe={children:[[]]};function tre(t,r){var i,e=this.tokenStart;return this.eat(19),i=t.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function iPe(t){this.token(9,"["),this.children(t),this.token(9,"]")}var oPe="CDC",aPe=[];function nre(){var t=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function sPe(){this.token(15,"--\x3e")}var lPe="CDO",uPe=[];function rre(){var t=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function cPe(){this.token(14,"\x3c!--")}var fPe="ClassSelector",pPe={name:String};function ire(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function hPe(t){this.token(9,"."),this.token(1,t.name)}var vPe="Combinator",yPe={name:String};function are(){var r,t=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(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:r}}function bPe(t){this.tokenize(t.name)}var kPe="Comment",TPe={value:String};function sre(){var t=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-t+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,r)}}function EPe(t){this.token(25,"/*"+t.value+"*/")}function OPe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!0)}function IPe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!1)}function PPe(){var t=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(t)&&this.error(),r}var RPe="Declaration",LPe="declaration",ZPe={important:[Boolean,String],property:String,value:["Value","Raw"]};function cre(){var l,t=this.tokenStart,r=this.tokenIndex,e=BPe.call(this),i=fj(e),o=i?this.parseCustomProperty:this.parseValue,a=i?IPe:OPe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(PPe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var f=u-this.tokenIndex;f<=0;f++)if(13===this.lookupType(f)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=FPe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:e,value:l}}function NPe(t){this.token(1,t.property),this.token(16,":"),this.node(t.value),t.important&&(this.token(9,"!"),this.token(1,!0===t.important?"important":t.important))}function BPe(){var t=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(t)}function FPe(){this.eat(9),this.skipSC();var t=this.consume(1);return"important"===t||t}function UPe(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}var HPe="DeclarationList",jPe={children:[["Declaration"]]};function dre(){for(var t=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:t.push(this.parseWithFallback(this.Declaration,UPe))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function zPe(t){var r=this;this.children(t,function(e){"Declaration"===e.type&&r.token(17,";")})}var WPe="Dimension",VPe={value:String,unit:String};function fre(){var t=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:r,unit:this.substring(t+r.length,this.tokenStart)}}function YPe(t){this.token(12,t.value+t.unit)}var GPe="Function",qPe="function",KPe={name:String,children:[[]]};function pre(t,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):t.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function JPe(t){this.token(2,t.name+"("),this.children(t),this.token(22,")")}var QPe="XXX",XPe="Hash",$Pe={value:String};function hre(){var t=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function e3e(t){this.token(4,"#"+t.value)}var t3e="Identifier",n3e={name:String};function mre(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function r3e(t){this.token(1,t.name)}var i3e="IdSelector",o3e={name:String};function _re(){var t=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function a3e(t){this.token(9,"#"+t.name)}var s3e="MediaFeature",l3e={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function gre(){var r,t=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(t,this.tokenStart),name:r,value:e}}function u3e(t){this.token(21,"("),this.token(1,t.name),null!==t.value&&(this.token(16,":"),this.node(t.value)),this.token(22,")")}var c3e="MediaQuery",d3e={children:[["Identifier","MediaFeature","WhiteSpace"]]};function vre(){var t=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}t.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}}function f3e(t){this.children(t)}var p3e="MediaQueryList",h3e={children:[["MediaQuery"]]};function yre(){var t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function m3e(t){var r=this;this.children(t,function(){return r.token(18,",")})}var _3e="Nth",g3e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function bre(){this.skipSC();var i,t=this.tokenStart,r=t,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(t,r),nth:i,selector:e}}function v3e(t){this.node(t.nth),null!==t.selector&&(this.token(1,"of"),this.node(t.selector))}var y3e="Number",b3e={value:String};function Cre(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function C3e(t){this.token(10,t.value)}var w3e="Operator",k3e={value:String};function wre(){var t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function T3e(t){this.tokenize(t.value)}var E3e="Parentheses",M3e={children:[[]]};function kre(t,r){var i,e=this.tokenStart;return this.eat(21),i=t.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function S3e(t){this.token(21,"("),this.children(t),this.token(22,")")}var x3e="Percentage",D3e={value:String};function Tre(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function A3e(t){this.token(11,t.value+"%")}var O3e="PseudoClassSelector",I3e="function",P3e={name:String,children:[["Raw"],null]};function Ere(){var e,i,t=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(t,this.tokenStart),name:e,children:r}}function R3e(t){this.token(16,":"),null===t.children?this.token(1,t.name):(this.token(2,t.name+"("),this.children(t),this.token(22,")"))}var L3e="PseudoElementSelector",Z3e="function",N3e={name:String,children:[["Raw"],null]};function Mre(){var e,i,t=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(t,this.tokenStart),name:e,children:r}}function B3e(t){this.token(16,":"),this.token(16,":"),null===t.children?this.token(1,t.name):(this.token(2,t.name+"("),this.children(t),this.token(22,")"))}function Sre(){this.skipSC();for(var t=this.consume(10),r=0;r<t.length;r++){var e=t.charCodeAt(r);!Gs(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-t.length+r)}return 0===Number(t)&&this.error("Zero number is not allowed",this.tokenStart-t.length),t}var H3e="Ratio",j3e={left:String,right:String};function xre(){var e,t=this.tokenStart,r=Sre.call(this);return this.skipSC(),this.eatDelim(47),e=Sre.call(this),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:r,right:e}}function z3e(t){this.token(10,t.left),this.token(9,"/"),this.token(10,t.right)}function W3e(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var V3e="Raw",Y3e={value:String};function Dre(t,r,e){var o,i=this.getTokenStart(t);return this.skipUntilBalanced(t,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?W3e.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function G3e(t){this.tokenize(t.value)}function Are(t){return this.Raw(t,this.consumeUntilLeftCurlyBracket,!0)}function q3e(){var t=this.SelectorList();return"Raw"!==t.type&&!1===this.eof&&23!==this.tokenType&&this.error(),t}var K3e="Rule",J3e="rule",Q3e={prelude:["SelectorList","Raw"],block:["Block"]};function Ore(){var e,i,t=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(q3e,Are):Are.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function X3e(t){this.node(t.prelude),this.node(t.block)}var $3e="Selector",e6e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Ire(){var t=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(t)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function t6e(t){this.children(t)}var n6e="SelectorList",r6e="selector",i6e={children:[["Selector","Raw"]]};function Pre(){for(var t=this.createList();!this.eof&&(t.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function o6e(t){var r=this;this.children(t,function(){return r.token(18,",")})}function Zre(t){for(var r=t.length,e=t.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&t.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=t.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=t.substr(s+1));break}if(_p(92,l=t.charCodeAt(++s))){var u=s-1,f=Uw(t,u);s=f-1,a+=Rte(t.substring(u+1,f))}else 13===l&&10===t.charCodeAt(s+1)&&s++}else a+=t[s]}return a}var s6e="String",l6e={value:String};function Nre(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Zre(this.consume(5))}}function u6e(t){this.token(5,function a6e(t,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<t.length;s++){var l=t.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+t.charAt(s),a=!1):(a&&(mg(l)||v0(l))&&(o+=" "),o+=t.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(t.value))}function Bre(t){return this.Raw(t,null,!1)}var d6e="StyleSheet",f6e="stylesheet",p6e={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Fre(){for(var e,t=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,Bre);break;default:e=this.parseWithFallback(this.Rule,Bre)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:r}}function h6e(t){this.children(t)}function Fj(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var _6e="TypeSelector",g6e={name:String};function Hre(){var t=this.tokenStart;return this.isDelim(124)?(this.next(),Fj.call(this)):(Fj.call(this),this.isDelim(124)&&(this.next(),Fj.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function v6e(t){this.tokenize(t.name)}function cD(t,r){for(var e=0,i=this.tokenStart+t;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return cD.call(this,t+e+1,!1),-1;mg(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 oN(t){for(var r=0;this.isDelim(63);)++r>t&&this.error("Too many question marks"),this.next()}function y6e(t){this.charCodeAt(this.tokenStart)!==t&&this.error((43===t?"Plus sign":"Hyphen minus")+" is expected")}function b6e(){var t=0;switch(this.tokenType){case 10:if(t=cD.call(this,1,!0),this.isDelim(63)){oN.call(this,6-t);break}if(12===this.tokenType||10===this.tokenType){y6e.call(this,45),cD.call(this,1,!1);break}break;case 12:(t=cD.call(this,1,!0))>0&&oN.call(this,6-t);break;default:if(this.eatDelim(43),1===this.tokenType){(t=cD.call(this,0,!0))>0&&oN.call(this,6-t);break}if(this.isDelim(63)){this.next(),oN.call(this,5);break}this.error("Hex digit or question mark is expected")}}var C6e="UnicodeRange",w6e={value:String};function Wre(){var t=this.tokenStart;return this.eatIdent("u"),b6e.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function k6e(t){this.tokenize(t.value)}var A6e="Url",O6e={value:String};function Yre(){var r,t=this.tokenStart;switch(this.tokenType){case 7:r=function x6e(t){for(var r=t.length,e=4,i=41===t.charCodeAt(r-1)?r-2:r-1,o="";e<i&&v0(t.charCodeAt(e));)e++;for(;e<i&&v0(t.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=t.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=t.substr(a+1));break}if(_p(92,s=t.charCodeAt(++a))){var l=a-1,u=Uw(t,l);a=u-1,o+=Rte(t.substring(l+1,u))}else 13===s&&10===t.charCodeAt(a+1)&&a++}else o+=t[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=Zre(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(t,this.tokenStart),value:r}}function I6e(t){this.token(7,function D6e(t){for(var r="",e=!1,i=0;i<t.length;i++){var o=t.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+="\\"+t.charAt(i),e=!1):(e&&mg(o)&&(r+=" "),r+=t.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(t.value))}var P6e="Value",R6e={children:[[]]};function Gre(){var t=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:r}}function L6e(t){this.children(t)}var Z6e=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),N6e="WhiteSpace",B6e={value:String};function qre(){return this.eat(13),Z6e}function F6e(t){this.token(13,t.value)}var U6e=Vc(Vc({generic:!0},{generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","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>",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>?","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-sum> )","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()>|<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()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",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>? )","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>","fit-content()":"fit-content( [<length>|<percentage>] )","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()>|<-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]]? )",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>","layer()":"layer( <layer-name> )","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> )","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] )","name-repeat":"repeat( [<positive-integer>|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> )","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>]]","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> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","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> )","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>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","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]","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-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}","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>",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>","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>","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","layer-name":"<ident> ['.' <ident>]*","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<integer> / <integer>",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb","single-animation-timeline":"auto|none|<timeline-name>","timeline-name":"<custom-ident>|<string>",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",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]>","positive-integer":"<integer [0,\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",animation:"<single-animation>#","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":"<box>#","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-color":"auto|<color>",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||layout||style||paint]",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>?]+|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-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>","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","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>"}}}}),{},{node:Lt});function Jre(t){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,t.recognizer);case 19:return this.Brackets(this.readSequence,t.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,t.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 Y6e={getNode:Jre};var nRe={onWhiteSpace:function eRe(t,r){null!==r.last&&"Combinator"!==r.last.type&&null!==t&&"Combinator"!==t.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function tRe(){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()}}}};function Xre(t){return null!==t&&"Operator"===t.type&&("-"===t.value[t.value.length-1]||"+"===t.value[t.value.length-1])}var oRe={getNode:Jre,onWhiteSpace:function(r,e){Xre(r)&&(r.value=" "+r.value),Xre(e.last)&&(e.last.value+=" ")},expression:function rRe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function iRe(){var t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),18===this.tokenType){t.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}t.push(e)}return t}},sRe={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 cRe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function dRe(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):$re.call(this)}function $re(){var r,t=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(cRe,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(dRe,this.scope.AtrulePrelude);break;default:break e}t.push(r)}return t}var fRe={parse:{prelude:function(){var r=$re.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){return this.Block(!1)}}},C0={parse:function(){return this.createSingleNodeList(this.SelectorList())}},eie={parse:function(){return this.createSingleNodeList(this.Identifier())}},aN={parse:function(){return this.createSingleNodeList(this.Nth())}},_Re={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:It,atrule:{"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:sRe,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:fRe},pseudo:{dir:eie,has:C0,lang:eie,matches:C0,is:C0,"-moz-any":C0,"-webkit-any":C0,where:C0,not:C0,"nth-child":aN,"nth-last-child":aN,"nth-last-of-type":aN,"nth-of-type":aN,slotted:{parse:function(){return this.createSingleNodeList(this.Selector())}}},node:on},gRe={node:Lt},Kc=function(t){return Vne(Lj({},t))}(Vc(Vc(Vc({},U6e),_Re),gRe));Kc.tokenize;var jj=Kc.parse,rie=Kc.generate,tc=(Kc.lexer,Kc.createLexer,Kc.walk,Kc.find,Kc.findLast,Kc.findAll,Kc.toPlainObject,Kc.fromPlainObject,Kc.fork,function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){var i=jj(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"))}})}),rie(i)}}]),t}());tc.\u0275fac=function(r){return new(r||tc)},tc.\u0275prov=n.Yz7({token:tc,factory:tc.\u0275fac});var vs=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){return e.font_family===t.DEFAULT_FONT&&e.font_size===t.DEFAULT_SIZE&&(e.font_family=t.REPLACE_BY_FONT,e.font_size=t.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=jj(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(v){"Identifier"===v.type&&(o=v),"String"===v.type&&(o=v,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(v){"Dimension"===v.type&&(a=v)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var f=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=f.font_family:o.value=f.font_family,a.value=f.font_size}return rie(i)}}]),t}();vs.DEFAULT_FONT="TypeWriter",vs.DEFAULT_SIZE=10,vs.REPLACE_BY_FONT="Noto Sans",vs.REPLACE_BY_SIZE=11,vs.\u0275fac=function(r){return new(r||vs)},vs.\u0275prov=n.Yz7({token:vs,factory:vs.\u0275fac});var bg=function(){function t(r,e,i){(0,j.Z)(this,t),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,V.Z)(t,[{key:"convert",value:function(e,i){var o=new Nw;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}}]),t}();bg.\u0275fac=function(r){return new(r||bg)(n.LFG(pp),n.LFG(tc),n.LFG(vs))},bg.\u0275prov=n.Yz7({token:bg,factory:bg.\u0275fac});var vRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Cg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new vRe;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}}]),t}();Cg.\u0275fac=function(r){return new(r||Cg)},Cg.\u0275prov=n.Yz7({token:Cg,factory:Cg.\u0275fac});var wg=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new g0;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.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}}]),t}();wg.\u0275fac=function(r){return new(r||wg)(n.LFG(bg),n.LFG(Cg),n.LFG(pp),n.LFG(tc),n.LFG(vs))},wg.\u0275prov=n.Yz7({token:wg,factory:wg.\u0275fac});var iie=(0,V.Z)(function t(){(0,j.Z)(this,t),this.isSelected=!1,this.isMultiplied=!1}),dD=(0,V.Z)(function t(){(0,j.Z)(this,t)}),w0=function(){function t(r){(0,j.Z)(this,t),this.labelToMapLabel=r}return(0,V.Z)(t,[{key:"convert",value:function(e,i){var o=new dD;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}}]),t}();w0.\u0275fac=function(r){return new(r||w0)(n.LFG(bg))},w0.\u0275prov=n.Yz7({token:w0,factory:w0.\u0275fac});var kg=function(){function t(r){(0,j.Z)(this,t),this.linkNodeToMapLinkNode=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new iie;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}}]),t}();kg.\u0275fac=function(r){return new(r||kg)(n.LFG(w0))},kg.\u0275prov=n.Yz7({token:kg,factory:kg.\u0275fac});var sm=(0,V.Z)(function t(){(0,j.Z)(this,t)}),lm=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new sm;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}}]),t}();lm.\u0275fac=function(r){return new(r||lm)},lm.\u0275prov=n.Yz7({token:lm,factory:lm.\u0275fac});var yRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),k0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new yRe;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),t}();k0.\u0275fac=function(r){return new(r||k0)},k0.\u0275prov=n.Yz7({token:k0,factory:k0.\u0275fac});var bRe=(0,V.Z)(function t(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,j.Z)(this,t),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),um=function(){function t(){(0,j.Z)(this,t),this.layers={}}return(0,V.Z)(t,[{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 bRe,this.layers[e].index=Number(e)),this.layers[e]}}]),t}();um.\u0275fac=function(r){return new(r||um)},um.\u0275prov=n.Yz7({token:um,factory:um.\u0275fac});var yp=function(){function t(){(0,j.Z)(this,t),this.LINK_WIDTH=2}return(0,V.Z)(t,[{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 f=Math.atan(a/s);l=-e*Math.cos(f),u=e*Math.sin(f)}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,f=l<u?l+","+u:u+","+l,h=1;f in o?h=o[f].push(s):o[f]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),t}();yp.\u0275fac=function(r){return new(r||yp)},yp.\u0275prov=n.Yz7({token:yp,factory:yp.\u0275fac});var bp=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.multiLinkCalculator=h}return(0,V.Z)(t,[{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())}}]),t}();bp.\u0275fac=function(r){return new(r||bp)(n.LFG(nm),n.LFG(rm),n.LFG(im),n.LFG(om),n.LFG(wg),n.LFG(kg),n.LFG(lm),n.LFG(k0),n.LFG(um),n.LFG(yp))},bp.\u0275prov=n.Yz7({token:bp,factory:bp.\u0275fac});var sN=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.x=r,this.y=e}),oie=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.width=r,this.height=e}),CRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.x=r,this.y=e,this.k=i}),qs=function(){function t(){(0,j.Z)(this,t),this.centerZeroZeroPoint=!0,this.size=new oie(0,0),this.transformation=new CRe(0,0,1)}return(0,V.Z)(t,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new sN(this.size.width/2,this.size.height/2):new sN(0,0)}}]),t}();qs.\u0275fac=function(r){return new(r||qs)},qs.\u0275prov=n.Yz7({token:qs,factory:qs.\u0275fac});var Cp=function(){function t(){(0,j.Z)(this,t),this.changesDetected=new n.vpe,this.hasBeenDrawn=!1}return(0,V.Z)(t,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),t}();Cp.\u0275fac=function(r){return new(r||Cp)},Cp.\u0275prov=n.Yz7({token:Cp,factory:Cp.\u0275fac});var Tg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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 oie(o,a)}}]),t}();Tg.\u0275fac=function(r){return new(r||Tg)},Tg.\u0275prov=n.Yz7({token:Tg,factory:Tg.\u0275fac});var Qd=(0,V.Z)(function t(){(0,j.Z)(this,t),this.isReadOnly=!1});Qd.\u0275fac=function(r){return new(r||Qd)},Qd.\u0275prov=n.Yz7({token:Qd,factory:Qd.\u0275fac});var zj=(0,V.Z)(function t(){(0,j.Z)(this,t)}),wRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(zj),kRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(zj),TRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(zj),lN=function(){function t(){(0,j.Z)(this,t),this.start=new n.vpe,this.drag=new n.vpe,this.end=new n.vpe}return(0,V.Z)(t,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return W_().on("start",function(s){o=Kn.sourceEvent.clientX,a=Kn.sourceEvent.clientY,(i=new wRe(s)).dx=Kn.dx,i.dy=Kn.dy,i.x=Kn.x,i.y=Kn.y,e.start.emit(i)}).on("drag",function(s){var l=new kRe(s);l.dx=Kn.sourceEvent.clientX-o,l.dy=Kn.sourceEvent.clientY-a,o=Kn.sourceEvent.clientX,a=Kn.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new TRe(s);l.dx=Kn.x-i.x,l.dy=Kn.y-i.y,e.end.emit(l)})}}]),t}(),ERe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.datum=r,this.dx=e,this.dy=i}),Yw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ERe),MRe=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),SRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.x=r,this.y=e}),xRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.datum=r,this.x=e,this.y=i}),DRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.savedText=r,this.x=e,this.y=i}),ARe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.textDrawingId=r,this.editedText=e,this.textElement=i}),ORe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.drawing=e}),Gw=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.link=e}),IRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.interfaceLabel=e}),PRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.label=e}),Il=function(){function t(){(0,j.Z)(this,t),this.selection={},this.selected=new n.vpe,this.unselected=new n.vpe}return(0,V.Z)(t,[{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}}]),t}();Il.\u0275fac=function(r){return new(r||Il)},Il.\u0275prov=n.Yz7({token:Il,factory:Il.\u0275fac});var Xd=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new n.vpe,this.draggable=new lN,this.enabled=!0}return(0,V.Z)(t,[{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(v){return[[v.source,v.nodes[0]],[v.target,v.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(v){return"translate(".concat(v[0].x,", ").concat(v[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(v){return i.enabled?[v[1]]:[]}),f=u.enter().append("g").classed("interface_label_container",!0);f.append("rect").attr("class","interface_label_selection"),f.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(v){return"".concat(v.id)});var h=u.merge(f).on("contextmenu",function(v,C){event.preventDefault(),o.onContextMenu.emit(new IRe(event,v))});h.select("text.interface_label").text(function(v){return v.label.text}).attr("style",function(v){var C=i.cssFixer.fix(v.label.style);return C=i.fontFixer.fixStyles(C)}).attr("x",function(v){return v.label.x}).attr("y",function(v){return v.label.y}).attr("transform",function(v){return"rotate(".concat(v.label.rotation,", ").concat(v.label.x,", ").concat(v.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(v){return i.selectionManager.isSelected(v)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(v){var C=gi(this),G=h.select('text[interface_label_id="'.concat(v.id,'"]')).node().getBBox();C.attr("width",G.width+4),C.attr("height",G.height+4),C.attr("x",G.x-2),C.attr("y",G.y-2),C.attr("transform","rotate(".concat(v.label.rotation,", ").concat(G.x-2,", ").concat(G.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),t}();Xd.SURROUNDING_TEXT_BORDER=5,Xd.\u0275fac=function(r){return new(r||Xd)(n.LFG(tc),n.LFG(vs),n.LFG(Il),n.LFG(Qd))},Xd.\u0275prov=n.Yz7({token:Xd,factory:Xd.\u0275fac});var aie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.width=i,this.height=o}),Eg=(0,V.Z)(function t(){(0,j.Z)(this,t),this.selected=new qn.xQ});Eg.\u0275fac=function(r){return new(r||Eg)},Eg.\u0275prov=n.Yz7({token:Eg,factory:Eg.\u0275fac});var wp=function(){function t(r,e){(0,j.Z)(this,t),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new qn.xQ,this.contextMenuOpened=new n.vpe,this.enabled=!1}return(0,V.Z)(t,[{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==Kn.button)return e.on("contextmenu",function(){Kn.preventDefault()}),void i.contextMenuOpened.emit(Kn);var o=gi(window),a=this.parentElement,s=i.transformation(Rd(a));i.startSelection(s),e.selectAll(t.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Rd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Rd(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 aie(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]}}]),t}();wp.SELECTABLE_CLASS=".selectable",wp.\u0275fac=function(r){return new(r||wp)(n.LFG(qs),n.LFG(Eg))},wp.\u0275prov=n.Yz7({token:wp,factory:wp.\u0275fac});var Mg=function(){function t(r){(0,j.Z)(this,t),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=D$().scaleExtent([.5,8])}return(0,V.Z)(t,[{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"===Kn.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Kn;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,f=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(f,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),t}();Mg.\u0275fac=function(r){return new(r||Mg)(n.LFG(qs))},Mg.\u0275prov=n.Yz7({token:Mg,factory:Mg.\u0275fac});var RRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.node=e}),sie=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(RRe),kp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new n.vpe,this.draggable=new lN}return(0,V.Z)(t,[{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 PRe(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=gi(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,'"]'))}}]),t}();kp.NODE_LABEL_MARGIN=3,kp.\u0275fac=function(r){return new(r||kp)(n.LFG(tc),n.LFG(vs),n.LFG(Il),n.LFG(Qd))},kp.\u0275prov=n.Yz7({token:kp,factory:kp.\u0275fac});var Jc=(0,V.Z)(function t(){(0,j.Z)(this,t),this.dragged=new n.vpe,this.labelDragged=new n.vpe,this.clicked=new n.vpe});Jc.\u0275fac=function(r){return new(r||Jc)},Jc.\u0275prov=n.Yz7({token:Jc,factory:Jc.\u0275fac});var fl=function(){function t(){(0,j.Z)(this,t),this.symbolScalingSubject=new qn.xQ,this.isScrollDisabled=new qn.xQ,this.isMapLocked=new qn.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new qn.xQ,this.mapRenderedEmitter=new n.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")}return(0,V.Z)(t,[{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:"getConsoleContextManuAction",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}},{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")}}]),t}();fl.\u0275fac=function(r){return new(r||fl)},fl.\u0275prov=n.Yz7({token:fl,factory:fl.\u0275fac,providedIn:"root"});var Sg=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new n.vpe,this.onContextConsoleMenu=new n.vpe,this.onNodeClicked=new n.vpe}return(0,V.Z)(t,[{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 xRe(u,Kn.pageX,Kn.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,f){Kn.preventDefault(),o.onContextMenu.emit(new sie(Kn,u))}).on("dblclick",function(u,f){Kn.preventDefault(),o.onContextConsoleMenu.emit(new sie(Kn,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){gi(this).attr("class","over")}).on("mouseout",function(u){gi(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)}}]),t}();Sg.\u0275fac=function(r){return new(r||Sg)(n.LFG(Il),n.LFG(kp),n.LFG(Jc),n.LFG(fl))},Sg.\u0275prov=n.Yz7({token:Sg,factory:Sg.\u0275fac});var Tp=function(){function t(r,e){(0,j.Z)(this,t),this.nodeWidget=r,this.mapSettings=e,this.draggable=new lN}return(0,V.Z)(t,[{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,'"]'))}}]),t}();Tp.NODE_LABEL_MARGIN=3,Tp.\u0275fac=function(r){return new(r||Tp)(n.LFG(Sg),n.LFG(Qd))},Tp.\u0275prov=n.Yz7({token:Tp,factory:Tp.\u0275fac});var LRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),xg=function(){function t(){(0,j.Z)(this,t),this.drawingLine=new LRe,this.drawing=!1,this.data={}}return(0,V.Z)(t,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new sN(e,i),this.drawingLine.end=new sN(e,i);this.selection.on("mousemove",function(u,f){var v=Rd(a.selection.select("g.canvas").node());a.drawingLine.end.x=v[0],a.drawingLine.end.y=v[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=y5(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),f=u.enter().append("path");u.merge(f).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),t}();xg.\u0275fac=function(r){return new(r||xg)},xg.\u0275prov=n.Yz7({token:xg,factory:xg.\u0275fac});var lie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.status=i,this.port=o}),T0=function(){function t(r){(0,j.Z)(this,t),this._mapSettingsService=r,this.mapSettingsService=r}return(0,V.Z)(t,[{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=gi(this),l=s.select("path"),u=[];if(l.node()){var f=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var v=a.nodes.find(function(ge){return ge.nodeId===a.source.id}).label.text,C=a.nodes.find(function(ge){return ge.nodeId===a.target.id}).label.text;u=[new lie(f.x,f.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,v),new lie(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 B=s.selectAll("rect.status_started").data(u.filter(function(ge){return"started"===ge.status})),G=B.enter().append("rect");B.merge(G).attr("class","status_started").attr("width",function(ge){return 8*ge.port.length+10}).attr("height",20).attr("x",function(ge){return ge.x-30}).attr("y",function(ge){return ge.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),B.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(ge){return"started"===ge.status})),ae=q.enter().append("text");q.merge(ae).attr("class","status_started_label").text(function(ge){return ge.port}).attr("x",function(ge){return ge.x-25}).attr("y",function(ge){return ge.y+5}).attr("fill","black"),q.exit().remove();var pe=s.selectAll("rect.status_stopped").data(u.filter(function(ge){return"stopped"===ge.status})),Ve=pe.enter().append("rect");pe.merge(Ve).attr("class","status_stopped").attr("width",function(ge){return 8*ge.port.length+10}).attr("height",20).attr("x",function(ge){return ge.x-30}).attr("y",function(ge){return ge.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),pe.exit().remove();var Me=s.selectAll("text.status_stopped_label").data(u.filter(function(ge){return"stopped"===ge.status})),Be=Me.enter().append("text");Me.merge(Be).attr("class","status_stopped_label").text(function(ge){return ge.port}).attr("x",function(ge){return ge.x-25}).attr("y",function(ge){return ge.y+5}).attr("fill","black"),Me.exit().remove();var pt=s.selectAll("rect.status_suspended").data(u.filter(function(ge){return"suspended"===ge.status})),ht=pt.enter().append("rect");pt.merge(ht).attr("class","status_suspended").attr("width",function(ge){return 8*ge.port.length+10}).attr("height",20).attr("x",function(ge){return ge.x-30}).attr("y",function(ge){return ge.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),pt.exit().remove();var Pe=s.selectAll("text.status_suspended_label").data(u.filter(function(ge){return"suspended"===ge.status})),at=Pe.enter().append("text");Pe.merge(at).attr("class","status_suspended_label").text(function(ge){return ge.port}).attr("x",function(ge){return ge.x-25}).attr("y",function(ge){return ge.y+5}).attr("fill","black"),Pe.exit().remove()}else{var Ct=s.selectAll("circle.status_started").data(u.filter(function(ge){return"started"===ge.status})),E=Ct.enter().append("circle");Ct.merge(E).attr("class","status_started").attr("cx",function(ge){return ge.x}).attr("cy",function(ge){return ge.y}).attr("r",6).attr("text",function(ge){return ge.port}).attr("fill","#2ecc71"),Ct.exit().remove();var _=s.selectAll("rect.status_stopped").data(u.filter(function(ge){return"stopped"===ge.status})),A=_.enter().append("rect");_.merge(A).attr("class","status_stopped").attr("x",function(ge){return ge.x-5}).attr("y",function(ge){return ge.y-5}).attr("width",10).attr("height",10).attr("fill","red"),_.exit().remove();var ee=s.selectAll("circle.status_suspended").data(u.filter(function(ge){return"suspended"===ge.status})),re=ee.enter().append("circle");ee.merge(re).attr("class","status_suspended").attr("cx",function(ge){return ge.x}).attr("cy",function(ge){return ge.y}).attr("r",6).attr("fill","#FFFF00"),ee.exit().remove()}})}}]),t}();T0.\u0275fac=function(r){return new(r||T0)(n.LFG(fl))},T0.\u0275prov=n.Yz7({token:T0,factory:T0.\u0275fac});var uie=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,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"}}]),t}(),ZRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.source=r,this.target=e,this.style=i}),Dg=function(){function t(){(0,j.Z)(this,t),this.onContextMenu=new n.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,V.Z)(t,[{key:"linktoEthernetLink",value:function(e){return new ZRe([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,f=event;i.onContextMenu.emit(new Gw(f,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return uie.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=Zd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),t}();Dg.\u0275fac=function(r){return new(r||Dg)},Dg.\u0275prov=n.Yz7({token:Dg,factory:Dg.\u0275fac});var NRe=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),Ag=function(){function t(){(0,j.Z)(this,t),this.onContextMenu=new n.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,V.Z)(t,[{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,f=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*f[0],i.y+s/2+15*f[1]],v=[o.x-a/2-15*f[0],o.y-s/2-15*f[1]];return new NRe([i.x,i.y],h,v,[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,f=event;i.onContextMenu.emit(new Gw(f,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 uie.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=Zd();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()})}}]),t}();Ag.\u0275fac=function(r){return new(r||Ag)},Ag.\u0275prov=n.Yz7({token:Ag,factory:Ag.\u0275fac});var Og=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new n.vpe}return(0,V.Z)(t,[{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=Kn;i.onContextMenu.emit(new Gw(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=Kn;i.onContextMenu.emit(new Gw(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.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Kn;i.onContextMenu.emit(new Gw(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.capturing&&l.suspend||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=Kn;i.onContextMenu.emit(new Gw(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)}}]),t}();Og.\u0275fac=function(r){return new(r||Og)(n.LFG(yp),n.LFG(Xd),n.LFG(T0),n.LFG(Il),n.LFG(Dg),n.LFG(Ag))},Og.\u0275prov=n.Yz7({token:Og,factory:Og.\u0275fac});var cm=function(){function t(r,e){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,V.Z)(t,[{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(f){return f.target&&f.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,'"]'))}}]),t}();cm.\u0275fac=function(r){return new(r||cm)(n.LFG(yp),n.LFG(Og))},cm.\u0275prov=n.Yz7({token:cm,factory:cm.\u0275fac});var BRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),sa=(0,V.Z)(function t(){(0,j.Z)(this,t)}),FRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new sa,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 f=e.attributes.getNamedItem("cx");f&&(i.cx=parseInt(f.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var v=e.attributes.getNamedItem("rx");v&&(i.rx=parseInt(v.value,10));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,10)),i}}]),t}(),uN=(0,V.Z)(function t(){(0,j.Z)(this,t)}),URe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new uN,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}}]),t}(),E0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),HRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new E0,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 f=e.attributes.getNamedItem("y1");f&&(i.y1=parseInt(f.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),t}(),dm=(0,V.Z)(function t(){(0,j.Z)(this,t)}),jRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new dm,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 f=e.attributes.getNamedItem("width");f&&(i.width=parseInt(f.value,10));var h=e.attributes.getNamedItem("height");return h&&(i.height=parseInt(h.value,10)),i}}]),t}(),M0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),zRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new M0;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 f=e.attributes.getNamedItem("text-decoration");return f&&(i.text_decoration=f.value),i}}]),t}(),Ep=function(){function t(){(0,j.Z)(this,t),this.parser=new DOMParser,this.elementParsers={text:new zRe,image:new URe,rect:new jRe,line:new HRe,ellipse:new FRe}}return(0,V.Z)(t,[{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 f=(l=a.children[u]).nodeName;if(f in this.elementParsers){s=this.elementParsers[f];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}}]),t}();Ep.\u0275fac=function(r){return new(r||Ep)},Ep.\u0275prov=n.Yz7({token:Ep,factory:Ep.\u0275fac});var Ig=function(){function t(r){(0,j.Z)(this,t),this.fontFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof M0?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var v=i.fontFixer.fix(h),C=[];return v.font_family&&C.push('font-family: "'.concat(h.font_family,'"')),v.font_size&&C.push("font-size: ".concat(h.font_size,"pt")),v.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,v){return 0===v?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=gi(this).selectAll("tspan"),v=this.getBBox().height/h.size();return"translate(".concat(t.MARGIN,", ").concat(v-t.MARGIN,")")}),o.exit().remove()}}]),t}();Ig.MARGIN=4,Ig.\u0275fac=function(r){return new(r||Ig)(n.LFG(vs))},Ig.\u0275prov=n.Yz7({token:Ig,factory:Ig.\u0275fac});var S0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof uN?[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()}}]),t}();S0.\u0275fac=function(r){return new(r||S0)},S0.\u0275prov=n.Yz7({token:S0,factory:S0.\u0275fac});var wu=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){if(e||""==e)return e in t.MAPPING?t.MAPPING[e]:e}}]),t}();wu.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"},wu.\u0275fac=function(r){return new(r||wu)},wu.\u0275prov=n.Yz7({token:wu,factory:wu.\u0275fac});var x0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof dm?[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}),o.exit().remove()}}]),t}();x0.\u0275fac=function(r){return new(r||x0)(n.LFG(wu))},x0.\u0275prov=n.Yz7({token:x0,factory:x0.\u0275fac});var D0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof E0?[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()}}]),t}();D0.\u0275fac=function(r){return new(r||D0)(n.LFG(wu))},D0.\u0275prov=n.Yz7({token:D0,factory:D0.\u0275fac});var A0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof sa?[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()}}]),t}();A0.\u0275fac=function(r){return new(r||A0)(n.LFG(wu))},A0.\u0275prov=n.Yz7({token:A0,factory:A0.\u0275fac});var O0=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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,V.Z)(t,[{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 dm||l.element instanceof sa}).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 dm||l.element instanceof sa}).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 sa?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof sa?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 sa?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof sa?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 sa?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof sa?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 sa?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof sa?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)})}}]),t}();O0.\u0275fac=function(r){return new(r||O0)(n.LFG(Ig),n.LFG(S0),n.LFG(x0),n.LFG(D0),n.LFG(A0),n.LFG(Il),n.LFG(fl))},O0.\u0275prov=n.Yz7({token:O0,factory:O0.\u0275fac});var Mp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new lN,this.draggingEnabled=!1,this.resizingFinished=new n.vpe,this.onContextMenu=new n.vpe,this.svgToDrawingConverter=new Ep}return(0,V.Z)(t,[{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(Pe){return Pe.drawings.forEach(function(at){try{at.element=i.svgToDrawingConverter.convert(at.svg)}catch(Ct){}}),Pe.drawings},function(Pe){return Pe.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(Pe){return Pe.id}).on("contextmenu",function(Pe){Kn.preventDefault(),i.onContextMenu.emit(new ORe(Kn,Pe))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,f,h,G,q,ae,pe,v=!1,C=W_().on("start",function(Pe){document.body.style.cursor="ns-resize",f=Pe.y}).on("drag",function(Pe){var at=Kn;v?(u=l-(at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Pe.element.height+u<0?(v=!1,l=f,Pe.element.height=Math.abs(Pe.element.height+at.dy)):(Pe.y=at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Pe.element.height+=u,Pe.element instanceof sa&&(Pe.element.cy=Pe.element.cy+u/2<0?1:Pe.element.cy+=u/2,Pe.element.ry=Pe.element.ry+u/2<0?1:Pe.element.ry+=u/2))):Pe.element.height+at.dy<0?(v=!0,l=f,Pe.element.height=Math.abs(Pe.element.height+at.dy)):(Pe.element.height+=at.dy,Pe.element instanceof sa&&(Pe.element.cy=Pe.element.cy+at.dy/2<0?1:Pe.element.cy+=at.dy/2,Pe.element.ry=Pe.element.ry+at.dy/2<0?1:Pe.element.ry+=at.dy/2)),i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))}),B=W_().on("start",function(Pe){l=Kn.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+Pe.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Pe){var at=Kn;v?Pe.element.height+at.dy<0?(v=!1,l=h,Pe.element.height=Math.abs(Pe.element.height+at.dy)):(Pe.element.height+=at.dy,Pe.element instanceof sa&&(Pe.element.cy=Pe.element.cy+at.dy/2<0?1:Pe.element.cy+=at.dy/2,Pe.element.ry=Pe.element.ry+at.dy/2<0?1:Pe.element.ry+=at.dy/2)):(u=l-(at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Pe.element.height+u<0?(l=h,v=!0,Pe.element.height=Math.abs(Pe.element.height+at.dy)):(Pe.y=at.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Pe.element.height+=u,Pe.element instanceof sa&&(Pe.element.cy=Pe.element.cy+u/2<0?1:Pe.element.cy+=u/2,Pe.element.ry=Pe.element.ry+u/2<0?1:Pe.element.ry+=u/2))),i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))}),Ve=!1,Me=W_().on("start",function(Pe){G=Kn.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),pe=G+Pe.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Pe){var at=Kn;Ve?Pe.element.width+at.dx<0?(G=pe,Ve=!1,Pe.element.width=Math.abs(Pe.element.width+at.dx)):(Pe.element instanceof sa&&(Pe.element.cx=Pe.element.cx+at.dx/2<0?1:Pe.element.cx+=at.dx/2,Pe.element.rx=Pe.element.rx+at.dx/2<0?1:Pe.element.rx+=at.dx/2),Pe.element.width=Pe.element.width+at.dx<0?1:Pe.element.width+=at.dx):(q=G-(at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),G=at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Pe.element.width+q<0?(G=pe,Ve=!0,Pe.element.width=Math.abs(Pe.element.width+at.dx)):(Pe.x=at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Pe.element.width+=q,Pe.element instanceof sa&&(Pe.element.cx=Pe.element.cx+q/2<0?1:Pe.element.cx+=q/2,Pe.element.rx=Pe.element.rx+q/2<0?1:Pe.element.rx+=q/2))),i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))}),Be=W_().on("start",function(Pe){document.body.style.cursor="ew-resize",ae=Pe.x}).on("drag",function(Pe){var at=Kn;Ve?(q=G-(at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),G=at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Pe.element.width+q<0?(G=ae,Ve=!1,Pe.element.width=Math.abs(Pe.element.width+at.dx)):(Pe.x=at.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Pe.element.width+=q,Pe.element instanceof sa&&(Pe.element.cx=Pe.element.cx+q/2<0?1:Pe.element.cx+=q/2,Pe.element.rx=Pe.element.rx+q/2<0?1:Pe.element.rx+=q/2))):Pe.element.width+at.dx<0?(G=ae,Ve=!0,Pe.element.width=Math.abs(Pe.element.width+at.dx)):(Pe.element instanceof sa&&(Pe.element.cx=Pe.element.cx+at.dx/2<0?1:Pe.element.cx+=at.dx/2,Pe.element.rx=Pe.element.rx+at.dx/2<0?1:Pe.element.rx+=at.dx/2),Pe.element.width=Pe.element.width+at.dx<0?1:Pe.element.width+=at.dx),i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))}),pt=W_().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Pe){var at=Kn;Pe.element.width+=at.dx,Pe.element.height+=at.dy,Pe.element.x2+=at.dx,Pe.element.y2+=at.dy,i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))}),ht=W_().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Pe){var at=Kn;Pe.element.width+=at.dx,Pe.element.height+=at.dy,Pe.element.x1+=at.dx,Pe.element.y1+=at.dy,i.redrawDrawing(e,Pe)}).on("end",function(Pe){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Pe))});s.select("line.bottom").call(C),s.select("line.top").call(B),s.select("line.right").call(Me),s.select("line.left").call(Be),s.select("circle.right").call(pt),s.select("circle.left").call(ht)}},{key:"createResizingEvent",value:function(e){var i=new BRe;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,'"]'))}}]),t}();Mp.\u0275fac=function(r){return new(r||Mp)(n.LFG(O0),n.LFG(Ep),n.LFG(qs),n.LFG(Qd))},Mp.\u0275prov=n.Yz7({token:Mp,factory:Mp.\u0275fac});var I0=function(){function t(r,e,i){(0,j.Z)(this,t),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,V.Z)(t,[{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"),f=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(f)}}]),t}();I0.\u0275fac=function(r){return new(r||I0)(n.LFG(cm),n.LFG(Tp),n.LFG(Mp))},I0.\u0275prov=n.Yz7({token:I0,factory:I0.\u0275fac});var Pg=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,V.Z)(t,[{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,f=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")}),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()}}]),t}();Pg.\u0275fac=function(r){return new(r||Pg)(n.LFG(Tp),n.LFG(xg),n.LFG(wp),n.LFG(Mg),n.LFG(I0),n.LFG(um))},Pg.\u0275prov=n.Yz7({token:Pg,factory:Pg.\u0275fac});var Sp=function(){function t(){(0,j.Z)(this,t),this.isSelectionToolActivated=new qn.xQ,this.isMovingToolActivated=new qn.xQ,this.isTextEditingToolActivated=new qn.xQ,this.isTextAddingToolActivated=new qn.xQ,this.isDrawLinkToolActivated=new qn.xQ}return(0,V.Z)(t,[{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)}}]),t}();Sp.\u0275fac=function(r){return new(r||Sp)},Sp.\u0275prov=n.Yz7({token:Sp,factory:Sp.\u0275fac});var $d=function(){function t(r){(0,j.Z)(this,t),this.context=r,this.scaleChangeEmitter=new n.vpe,this.currentScale=1}return(0,V.Z)(t,[{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)}}]),t}();$d.\u0275fac=function(r){return new(r||$d)(n.LFG(qs))},$d.\u0275prov=n.Yz7({token:$d,factory:$d.\u0275fac});var fm=(0,V.Z)(function t(){(0,j.Z)(this,t),this.movingModeState=new n.vpe});fm.\u0275fac=function(r){return new(r||fm)},fm.\u0275prov=n.Yz7({token:fm,factory:fm.\u0275fac});var fD=function(){function t(r,e,i){(0,j.Z)(this,t),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,V.Z)(t,[{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){gi(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,f=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")})},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)}}]),t}();fD.\u0275fac=function(r){return new(r||fD)(n.Y36(n.SBq),n.Y36(fm),n.Y36(qs))},fD.\u0275dir=n.lG2({type:fD,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&n.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var pD=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,V.Z)(t,[{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,gi(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,f=e.context.transformation.k;return e.mapsScaleService.setScale(f),"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),t}();pD.\u0275fac=function(r){return new(r||pD)(n.Y36(n.SBq),n.Y36(fm),n.Y36(qs),n.Y36($d))},pD.\u0275dir=n.lG2({type:pD,selectors:[["","zoomingCanvas",""]]});var Pl=(0,V.Z)(function t(){(0,j.Z)(this,t),this.dragged=new n.vpe,this.resized=new n.vpe,this.selected=new n.vpe,this.pointToAddSelected=new n.vpe,this.saved=new n.vpe,this.textAdded=new n.vpe,this.textEdited=new n.vpe,this.textSaved=new n.vpe});Pl.\u0275fac=function(r){return new(r||Pl)},Pl.\u0275prov=n.Yz7({token:Pl,factory:Pl.\u0275fac});var hD=function(){function t(r,e){(0,j.Z)(this,t),this.drawingsEventSource=r,this.context=e}return(0,V.Z)(t,[{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 SRe(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()}}]),t}();hD.\u0275fac=function(r){return new(r||hD)(n.Y36(Pl),n.Y36(qs))},hD.\u0275cmp=n.Xpm({type:hD,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var mD=function(){function t(r,e){(0,j.Z)(this,t),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new MRe(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),t}();mD.\u0275fac=function(r){return new(r||mD)(n.Y36(Mp),n.Y36(Pl))},mD.\u0275cmp=n.Xpm({type:mD,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[""]});var P0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),t}();P0.\u0275fac=function(r){return new(r||P0)},P0.\u0275prov=n.Yz7({token:P0,factory:P0.\u0275fac});var _D=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,V.Z)(t,[{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 B=C.x+C.label.x,G=C.y+C.label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).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 B=C.source.x+C.nodes[0].label.x,G=C.source.y+C.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).map(function(C){return C.nodes[0]}),f=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.target||2!=C.nodes.length||void 0===C.nodes[1].label)return!1;var B=C.target.x+C.nodes[1].label.x,G=C.target.y+C.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).map(function(C){return C.nodes[1]}),h=[].concat((0,$t.Z)(u),(0,$t.Z)(f)),v=[].concat((0,$t.Z)(o),(0,$t.Z)(a),(0,$t.Z)(s),(0,$t.Z)(l),(0,$t.Z)(h));e.selectionManager.setSelected(v)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),t}();_D.\u0275fac=function(r){return new(r||_D)(n.Y36(Eg),n.Y36(bp),n.Y36(P0),n.Y36(Il))},_D.\u0275cmp=n.Xpm({type:_D,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){},styles:[""]});var gD=function(){function t(r,e){(0,j.Z)(this,t),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,V.Z)(t,[{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()}}]),t}();gD.\u0275fac=function(r){return new(r||gD)(n.Y36(Il),n.Y36(Cp))},gD.\u0275cmp=n.Xpm({type:gD,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){},styles:[""]});var pl=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"createLink",value:function(e,i,o,a,s,l,u,f,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:f,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 i.x=Math.round(i.x),i.y=Math.round(i.y),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"))}}]),t}();pl.\u0275fac=function(r){return new(r||pl)(n.LFG(Wo.zw))},pl.\u0275prov=n.Yz7({token:pl,factory:pl.\u0275fac});var pm=m(6215),ls=m(5366),VRe=["temporaryTextElement"],vD=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.fontFixer=h,this.ngZone=v,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new n.vpe}return(0,V.Z)(t,[{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 DRe(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=gi(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,gi(s[a]).attr("visibility","hidden"),gi(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 v,f=[],h=(0,cn.Z)(o.label.style.split(";"));try{for(h.s();!(v=h.n()).done;){var C=v.value;f.push({property:C.split(": ")[0],value:C.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var B={font_family:f.find(function(q){return"font-family"===q.property})?f.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:f.find(function(q){return"font-size"===q.property})?Number(f.find(function(q){return"font-size"===q.property}).value):10,font_weight:f.find(function(q){return"font-weight"===q.property})?f.find(function(q){return"font-weight"===q.property}).value:"normal"};B=e.fontFixer.fix(B),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",f.find(function(q){return"fill"===q.property})?f.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",B.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(B.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",B.font_weight);e.textListener=function(){var ae=e.temporaryTextElement.nativeElement.innerText,pe=e.linksDataSource.get(e.editedLink.linkId);pe.nodes.find(function(Ve){return Ve.node_id===e.editedNode.node_id}).label.text=ae,e.linkService.updateLink(e.controller,pe).subscribe(function(Ve){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=gi(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,gi(s[a]).attr("visibility","hidden"),gi(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,f=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=f.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 ARe(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")}}]),t}();vD.\u0275fac=function(r){return new(r||vD)(n.Y36(Pl),n.Y36(Sp),n.Y36(qs),n.Y36(n.Qsj),n.Y36($d),n.Y36(pl),n.Y36(pm.F),n.Y36(ls.G),n.Y36(Il),n.Y36(vs),n.Y36(n.R0b))},vD.\u0275cmp=n.Xpm({type:vD,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(VRe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0,1),n._uU(2),n.qZA()),2&r&&(n.Udp("top",e.topPosition)("left",e.leftPosition),n.xp6(2),n.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 Qc=(0,V.Z)(function t(){(0,j.Z)(this,t),this.created=new n.vpe,this.edited=new n.vpe,this.interfaceDragged=new n.vpe});Qc.\u0275fac=function(r){return new(r||Qc)},Qc.\u0275prov=n.Yz7({token:Qc,factory:Qc.\u0275fac});var yD=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.linksEventSource=h,this.mapSettingsService=v,this.isMapLocked=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=gi(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,To.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 g0&&0===a.filter(function(s){return s instanceof g0&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof sm&&0===a.filter(function(s){return s instanceof sm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Nw&&0===a.filter(function(s){return s instanceof Nw&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof dD&&0===a.filter(function(s){return s instanceof dD&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,To.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 g0}),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(pe){return void 0!==pe.target&&pe.target.id===q.id||void 0!==pe.source&&pe.source.id===q.id}).forEach(function(pe){e.linksWidget.redrawLink(i,pe)})}),a.filter(function(q){return q instanceof sm}).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 Nw}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Ve){return Ve.id===q.nodeId}).length>0)){var pe=e.graphDataManager.getNodes().filter(function(Ve){return Ve.id===q.nodeId})[0];pe.label.x+=o.dx,pe.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof dD}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Ve){return Ve.id===q.nodeId}).length>0)){var pe=e.graphDataManager.getLinks().filter(function(Ve){return Ve.nodes[0].id===q.id||Ve.nodes[1].id===q.id})[0];pe.nodes[0].id===q.id&&(pe.nodes[0].label.x+=o.dx,pe.nodes[0].label.y+=o.dy),pe.nodes[1].id===q.id&&(pe.nodes[1].label.x+=o.dx,pe.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,pe)}})}}),this.end=(0,To.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 g0}),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 Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof sm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Nw}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){u.filter(function(pe){return pe.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof dD}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){u.filter(function(pe){return pe.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Yw(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),t}();yD.\u0275fac=function(r){return new(r||yD)(n.Y36(Tp),n.Y36(Mp),n.Y36(cm),n.Y36(kp),n.Y36(Xd),n.Y36(Il),n.Y36(Jc),n.Y36(Pl),n.Y36(bp),n.Y36(Qc),n.Y36(fl))},yD.\u0275cmp=n.Xpm({type:yD,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var bD=function(){function t(r,e){(0,j.Z)(this,t),this.linksWidget=r,this.linksEventSource=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=gi(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),t}();bD.\u0275fac=function(r){return new(r||bD)(n.Y36(cm),n.Y36(Qc))},bD.\u0275cmp=n.Xpm({type:bD,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var YRe=["svg"],GRe=["textEditor"],qw=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B){(0,j.Z)(this,t),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=f,this.graphLayout=h,this.toolsService=v,this.mapScaleService=C,this.mapSettingsService=B,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,V.Z)(t,[{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=gi(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()}}]),t}();qw.\u0275fac=function(r){return new(r||qw)(n.Y36(bp),n.Y36(qs),n.Y36(Cp),n.Y36(Tg),n.Y36(Qd),n.Y36(n.SBq),n.Y36(Xd),n.Y36(wp),n.Y36(Mg),n.Y36(Pg),n.Y36(Sp),n.Y36($d),n.Y36(fl))},qw.\u0275cmp=n.Xpm({type:qw,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(YRe,5),n.Gf(GRe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.svgRef=i.first),n.iGM(i=n.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&n.NdJ("resize",function(o){return e.onResize(o)},!1,n.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:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1)(2,"filter",2),n._UZ(3,"feColorMatrix",3),n.qZA(),n.TgZ(4,"defs")(5,"pattern",4),n._UZ(6,"path",5),n.qZA()(),n.TgZ(7,"defs")(8,"pattern",6),n._UZ(9,"path",7),n.qZA()(),n._UZ(10,"rect",8)(11,"rect",9),n.qZA(),n.kcU(),n._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=n.MAs(1);n.xp6(5),n.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),n.xp6(1),n.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),n.uIk("stroke-width",e.gridVisibility),n.xp6(2),n.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),n.xp6(1),n.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),n.uIk("stroke-width",e.gridVisibility),n.xp6(3),n.Q6J("svg",i),n.xp6(4),n.Q6J("controller",e.controller)("svg",i),n.xp6(2),n.Q6J("svg",i),n.xp6(1),n.Q6J("svg",i)}},directives:[fD,pD,hD,mD,_D,gD,vD,yD,bD],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var qRe=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function KRe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",1)(1,"button",2),n.NdJ("click",function(){return n.CHM(e),n.oxw().onNoClick()}),n._uU(2,"No"),n.qZA(),n.TgZ(3,"button",3),n.NdJ("click",function(){return n.CHM(e),n.oxw().onYesClick()}),n._uU(4," Yes "),n.qZA()()}}function JRe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",1)(1,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onNoClick()}),n._uU(2,"Ok"),n.qZA()()}}var Kw=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,V.Z)(t,[{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)}}]),t}();Kw.\u0275fac=function(r){return new(r||Kw)(n.Y36(Dr),n.Y36(Vo))},Kw.\u0275cmp=n.Xpm({type:Kw,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&&(n.TgZ(0,"span"),n._uU(1),n.qZA(),n.YNc(2,KRe,5,0,"div",0),n.YNc(3,JRe,3,0,"div",0)),2&r&&(n.xp6(1),n.Oqu(e.confirmationMessage),n.xp6(1),n.Q6J("ngIf",!e.isOpen),n.xp6(1),n.Q6J("ngIf",e.isOpen))},directives:[wt.O5,Zr,Tn],styles:[""]});var ku=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),t}();function QRe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function XRe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}function $Re(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project with this name exists"),n.qZA())}ku.\u0275fac=function(r){return new(r||ku)},ku.\u0275prov=n.Yz7({token:ku,factory:ku.\u0275fac});var eLe=function(r){return{"is-invalid":r}},Jw=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,this.projectNameValidator.get],[qRe(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=_s(),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])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kw,{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()})})})}}]),t}();function tLe(t,r){}Jw.\u0275fac=function(r){return new(r||Jw)(n.Y36(Dr),n.Y36(kr),n.Y36(ri),n.Y36(dl.Y),n.Y36($n),n.Y36(ne.qu),n.Y36(ku))},Jw.\u0275cmp=n.Xpm({type:Jw,selectors:[["app-add-blank-project-dialog"]],features:[n._Bn([ku])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new project"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,QRe,2,0,"mat-error",4),n.YNc(6,XRe,2,0,"mat-error",4),n.YNc(7,$Re,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"div",5)(9,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(12," Add project "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.projectNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,eLe,null==e.form.projectName?null:e.form.projectName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var nLe={bottomSheetState:(0,rn.X$)("state",[(0,rn.SB)("void, hidden",(0,rn.oB)({transform:"translateY(100%)"})),(0,rn.SB)("visible",(0,rn.oB)({transform:"translateY(0%)"})),(0,rn.eR)("visible => void, visible => hidden",(0,rn.ru)([(0,rn.jt)("".concat(sn.mZ.COMPLEX," ").concat(sn.yN.ACCELERATION_CURVE)),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])),(0,rn.eR)("void => visible",(0,rn.ru)([(0,rn.jt)("".concat(sn.mZ.EXITING," ").concat(sn.yN.DECELERATION_CURVE)),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})]))])},rLe=new n.OlP("MatBottomSheetData"),Wj=(0,V.Z)(function t(){(0,j.Z)(this,t),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),CD=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this))._elementRef=i,v._changeDetectorRef=o,v._focusTrapFactory=a,v._interactivityChecker=s,v._ngZone=l,v.bottomSheetConfig=h,v._animationState="void",v._animationStateChanged=new n.vpe,v._elementFocusedBeforeOpened=null,v.attachDomPortal=function(C){return v._validatePortalAttached(),v._setPanelClass(),v._savePreviouslyFocusedElement(),v._portalOutlet.attachDomPortal(C)},v._document=f,v._breakpointSubscription=u.observe([og_Medium,og_Large,og_XLarge]).subscribe(function(){v._toggleClass("mat-bottom-sheet-container-medium",u.isMatched(og_Medium)),v._toggleClass("mat-bottom-sheet-container-large",u.isMatched(og_Large)),v._toggleClass("mat-bottom-sheet-container-xlarge",u.isMatched(og_XLarge))}),v}return(0,V.Z)(e,[{key:"attachComponentPortal",value:function(o){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(o)}},{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(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"hidden"===o.toState?this._restoreFocus():"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var o;(o=this._elementRef.nativeElement.classList).add.apply(o,(0,$t.Z)((0,Hn.Eq)(this.bottomSheetConfig.panelClass||[])))}},{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._elementRef.nativeElement;switch(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(o)),this.bottomSheetConfig.autoFocus){case!1:case"dialog":var a=(0,Zi.ht)();a!==o&&!o.contains(a)&&o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.bottomSheetConfig.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&o&&"function"==typeof o.focus){var a=(0,Zi.ht)(),s=this._elementRef.nativeElement;(!a||a===this._document.body||a===s||s.contains(a))&&o.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var o=this;this._elementFocusedBeforeOpened=(0,Zi.ht)(),this._elementRef.nativeElement.focus&&this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){return o._elementRef.nativeElement.focus()})})}}]),e}(yo.en);CD.\u0275fac=function(r){return new(r||CD)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Oi.qV),n.Y36(Oi.ic),n.Y36(n.R0b),n.Y36(Uh),n.Y36(wt.K0,8),n.Y36(Wj))},CD.\u0275cmp=n.Xpm({type:CD,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(r,e){1&r&&n.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(n.uIk("aria-label",null==e.bottomSheetConfig?null:e.bottomSheetConfig.ariaLabel),n.d8E("@state",e._animationState))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&n.YNc(0,tLe,0,0,"ng-template",0)},directives:[yo.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)}\n"],encapsulation:2,data:{animation:[nLe.bottomSheetState]}});var R0=(0,V.Z)(function t(){(0,j.Z)(this,t)});R0.\u0275fac=function(r){return new(r||R0)},R0.\u0275mod=n.oAB({type:R0}),R0.\u0275inj=n.cJS({imports:[[Ao.U8,sn.BQ,yo.eL],sn.BQ]});var cN=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this._overlayRef=e,this._afterDismissed=new qn.xQ,this._afterOpened=new qn.xQ,this.containerInstance=r,this.disableClose=r.bottomSheetConfig.disableClose,r._animationStateChanged.pipe((0,Ei.h)(function(o){return"done"===o.phaseName&&"visible"===o.toState}),(0,no.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),r._animationStateChanged.pipe((0,Ei.h)(function(o){return"done"===o.phaseName&&"hidden"===o.toState}),(0,no.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),e.dispose()}),e.detachments().pipe((0,no.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,To.T)(e.backdropClick(),e.keydownEvents().pipe((0,Ei.h)(function(o){return o.keyCode===Gr.hY}))).subscribe(function(o){!i.disableClose&&("keydown"!==o.type||!(0,Gr.Vb)(o))&&(o.preventDefault(),i.dismiss())})}return(0,V.Z)(t,[{key:"dismiss",value:function(e){var i=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe((0,Ei.h)(function(o){return"start"===o.phaseName}),(0,no.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._overlayRef.dispose()},o.totalTime+100),i._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),t}(),iLe=new n.OlP("mat-bottom-sheet-default-options"),ef=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._overlay=r,this._injector=e,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null}return(0,V.Z)(t,[{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 o=this,a=function oLe(t,r){return Object.assign(Object.assign({},t),r)}(this._defaultOptions||new Wj,i),s=this._createOverlay(a),l=this._attachContainer(s,a),u=new cN(l,s);if(e instanceof n.Rgc)l.attachTemplatePortal(new yo.UE(e,null,{$implicit:a.data,bottomSheetRef:u}));else{var f=new yo.C5(e,void 0,this._createInjector(a,u)),h=l.attachComponentPortal(f);u.instance=h.instance}return u.afterDismissed().subscribe(function(){o._openedBottomSheetRef==u&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return u.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):u.containerInstance.enter(),this._openedBottomSheetRef=u,u}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=n.zs3.create({parent:o||this._injector,providers:[{provide:Wj,useValue:i}]}),s=new yo.C5(CD,i.viewContainerRef,a);return e.attach(s).instance}},{key:"_createOverlay",value:function(e){var i=new Ao.X_({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(i.backdropClass=e.backdropClass),this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:cN,useValue:i},{provide:rLe,useValue:e.data}];return e.direction&&(!o||!o.get(Es.Is,null,n.XFs.Optional))&&a.push({provide:Es.Is,useValue:{value:e.direction,change:(0,pr.of)()}}),n.zs3.create({parent:o||this._injector,providers:a})}}]),t}();ef.\u0275fac=function(r){return new(r||ef)(n.LFG(Ao.aV),n.LFG(n.zs3),n.LFG(ef,12),n.LFG(iLe,8))},ef.\u0275prov=n.Yz7({token:ef,factory:ef.\u0275fac,providedIn:R0});var aLe=function(r){return{lightTheme:r}},Xc=function(){function t(r,e){(0,j.Z)(this,t),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,V.Z)(t,[{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)}}]),t}();Xc.\u0275fac=function(r){return new(r||Xc)(n.Y36(cN),n.Y36(Ju.f))},Xc.\u0275cmp=n.Xpm({type:Xc,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&&(n.TgZ(0,"div",0)(1,"div",1),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"No"),n.qZA(),n.TgZ(6,"button",2),n.NdJ("click",function(){return e.onYesClick()}),n._uU(7,"Yes"),n.qZA()()()),2&r&&(n.Q6J("ngClass",n.VKq(2,aLe,e.isLightThemeEnabled)),n.xp6(2),n.Oqu(e.message))},directives:[wt.mk,Tn],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 tf=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),t}();tf.\u0275fac=function(r){return new(r||tf)},tf.\u0275prov=n.Yz7({token:tf,factory:tf.\u0275fac});var so=m(3251);function Vj(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var L0={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var lLe=/[&<>"']/,uLe=/[&<>"']/g,cLe=/[<>"']|&(?!#?\w+;)/,dLe=/[<>"']|&(?!#?\w+;)/g,fLe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cie=function(r){return fLe[r]};function Ks(t,r){if(r){if(lLe.test(t))return t.replace(uLe,cie)}else if(cLe.test(t))return t.replace(dLe,cie);return t}var pLe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function die(t){return t.replace(pLe,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 hLe=/(^|[^\[])\^/g;function Yo(t,r){t="string"==typeof t?t:t.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(hLe,"$1"),t=t.replace(o,a),e},getRegex:function(){return new RegExp(t,r)}};return e}var mLe=/[^\w:]/g,_Le=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function fie(t,r,e){if(t){var i;try{i=decodeURIComponent(die(e)).replace(mLe,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!_Le.test(e)&&(e=function bLe(t,r){dN[" "+t]||(gLe.test(t)?dN[" "+t]=t+"/":dN[" "+t]=pN(t,"/",!0));var e=-1===(t=dN[" "+t]).indexOf(":");return"//"===r.substring(0,2)?e?r:t.replace(vLe,"$1")+r:"/"===r.charAt(0)?e?r:t.replace(yLe,"$1")+r:t+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var dN={},gLe=/^[^:]+:\/*[^/]*$/,vLe=/^([^:]+:)[\s\S]*$/,yLe=/^([^:]+:\/*[^/]*)[\s\S]*$/;var fN={exec:function(){}};function nf(t){for(var e,i,r=1;r<arguments.length;r++)for(i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function pie(t,r){var i=t.replace(/\|/g,function(a,s,l){for(var u=!1,f=s;--f>=0&&"\\"===l[f];)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 pN(t,r,e){var i=t.length;if(0===i)return"";for(var o=0;o<i;){var a=t.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return t.slice(0,i-o)}function hie(t){t&&t.sanitize&&!t.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")}function mie(t,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=t),r>>=1,t+=t;return e+t}function _ie(t,r,e,i){var o=r.href,a=r.title?Ks(r.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[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:Ks(s)}}var hN=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0}return(0,V.Z)(t,[{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:pN(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function wLe(t,r){var e=t.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,Ut.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():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=pN(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}var s={type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:[]};return this.lexer.inline(s.text,s.tokens),s}}},{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,"");return{type:"blockquote",raw:i[0],tokens:this.lexer.blockTokens(o,[]),text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,f,h,v,C,B,G,q,ae=i[1].trim(),pe=ae.length>1,Ve={type:"list",raw:"",ordered:pe,start:pe?+ae.slice(0,-1):"",loose:!1,items:[]};ae=pe?"\\d{1,9}\\".concat(ae.slice(-1)):"\\".concat(ae),this.options.pedantic&&(ae=pe?ae:"[*+-]");for(var Me=new RegExp("^( {0,3}".concat(ae,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Me.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),v=i[2].split("\n",1)[0],C=e.split("\n",1)[0],this.options.pedantic?(l=2,G=v.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,G=v.slice(l),l+=i[1].length),f=!1,!v&&/^ *$/.test(C)&&(o+=C+"\n",e=e.substring(C.length+1),q=!0),!q)for(var Be=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),pt=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));e&&(v=B=e.split("\n",1)[0],this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!Be.test(v)&&!pt.test(e));){if(v.search(/[^ ]/)>=l||!v.trim())G+="\n"+v.slice(l);else{if(f)break;G+="\n"+v}!f&&!v.trim()&&(f=!0),o+=B+"\n",e=e.substring(B.length+1)}Ve.loose||(h?Ve.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(G))&&(s="[ ] "!==a[0],G=G.replace(/^\[[ xX]\] +/,""))),Ve.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:G}),Ve.raw+=o}Ve.items[Ve.items.length-1].raw=o.trimRight(),Ve.items[Ve.items.length-1].text=G.trimRight(),Ve.raw=Ve.raw.trimRight();var ht=Ve.items.length;for(u=0;u<ht;u++){this.lexer.state.top=!1,Ve.items[u].tokens=this.lexer.blockTokens(Ve.items[u].text,[]);var Pe=Ve.items[u].tokens.filter(function(Ct){return"space"===Ct.type}),at=Pe.every(function(Ct){var H,E=Ct.raw.split(""),_=0,A=(0,cn.Z)(E);try{for(A.s();!(H=A.n()).done;){if("\n"===H.value&&(_+=1),_>1)return!0}}catch(re){A.e(re)}finally{A.f()}return!1});!Ve.loose&&Pe.length&&at&&(Ve.loose=!0,Ve.items[u].loose=!0)}return Ve}}},{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]};return this.options.sanitize&&(o.type="paragraph",o.text=this.options.sanitizer?this.options.sanitizer(i[0]):Ks(i[0]),o.tokens=[],this.lexer.inline(o.text,o.tokens)),o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i)return i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),{type:"def",tag:i[1].toLowerCase().replace(/\s+/g," "),raw:i[0],href:i[2],title:i[3]}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:pie(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,f,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]=pie(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,o.header[l].tokens);for(a=o.rows.length,l=0;l<a;l++)for(f=o.rows[l],u=0;u<f.length;u++)f[u].tokens=[],this.lexer.inline(f[u].text,f[u].tokens);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i){var o={type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o={type:"paragraph",raw:i[0],text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i){var o={type:"text",raw:i[0],text:i[0],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Ks(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]):Ks(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=pN(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function CLe(t,r){if(-1===t.indexOf(r[1]))return-1;for(var e=t.length,i=0,o=0;o<e;o++)if("\\"===t[o])o++;else if(t[o]===r[0])i++;else if(t[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 f=i[2],h="";if(this.options.pedantic){var v=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(f);v&&(f=v[1],h=v[3])}else h=i[3]?i[3].slice(1,-1):"";return f=f.trim(),/^</.test(f)&&(f=this.options.pedantic&&!/>$/.test(o)?f.slice(1):f.slice(1,-1)),_ie(i,{href:f&&f.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()])||!a.href){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return _ie(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\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\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][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\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\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\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]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\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-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,f,l=a[0].length-1,h=l,v=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(f=u.length,a[3]||a[4]){h+=f;continue}if((a[5]||a[6])&&l%3&&!((l+f)%3)){v+=f;continue}if(!((h-=f)>0)){if(f=Math.min(f,f+h+v),Math.min(l,f)%2){var B=e.slice(1,l+a.index+f);return{type:"em",raw:e.slice(0,l+a.index+f+1),text:B,tokens:this.lexer.inlineTokens(B,[])}}var G=e.slice(2,l+a.index+f-1);return{type:"strong",raw:e.slice(0,l+a.index+f+1),text:G,tokens:this.lexer.inlineTokens(G,[])}}}}}}},{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=Ks(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=Ks(this.options.mangle?i(o[1]):o[1])):s=a=Ks(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=Ks(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=Ks(o[0]),s="www."===o[1]?"http://"+a:a}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]):Ks(o[0]):o[0]:Ks(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),t}(),Qr={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:fN,lheading:/^([^\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?'|\([^()]*\))/};Qr.def=Yo(Qr.def).replace("label",Qr._label).replace("title",Qr._title).getRegex(),Qr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Qr.listItemStart=Yo(/^( *)(bull) */).replace("bull",Qr.bullet).getRegex(),Qr.list=Yo(Qr.list).replace(/bull/g,Qr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Qr.def.source+")").getRegex(),Qr._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",Qr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Qr.html=Yo(Qr.html,"i").replace("comment",Qr._comment).replace("tag",Qr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qr.paragraph=Yo(Qr._paragraph).replace("hr",Qr.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",Qr._tag).getRegex(),Qr.blockquote=Yo(Qr.blockquote).replace("paragraph",Qr.paragraph).getRegex(),Qr.normal=nf({},Qr),Qr.gfm=nf({},Qr.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Qr.gfm.table=Yo(Qr.gfm.table).replace("hr",Qr.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",Qr._tag).getRegex(),Qr.gfm.paragraph=Yo(Qr._paragraph).replace("hr",Qr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Qr.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",Qr._tag).getRegex(),Qr.pedantic=nf({},Qr.normal,{html:Yo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Qr._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:fN,paragraph:Yo(Qr.normal._paragraph).replace("hr",Qr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Qr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Er={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fN,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:fN,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function kLe(t){return t.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 gie(t){var e,i,r="",o=t.length;for(e=0;e<o;e++)i=t.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}Er._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Er.punctuation=Yo(Er.punctuation).replace(/punctuation/g,Er._punctuation).getRegex(),Er.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Er.escapedEmSt=/\\\*|\\_/g,Er._comment=Yo(Qr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Er.emStrong.lDelim=Yo(Er.emStrong.lDelim).replace(/punct/g,Er._punctuation).getRegex(),Er.emStrong.rDelimAst=Yo(Er.emStrong.rDelimAst,"g").replace(/punct/g,Er._punctuation).getRegex(),Er.emStrong.rDelimUnd=Yo(Er.emStrong.rDelimUnd,"g").replace(/punct/g,Er._punctuation).getRegex(),Er._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Er._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Er._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])?)+(?![-_])/,Er.autolink=Yo(Er.autolink).replace("scheme",Er._scheme).replace("email",Er._email).getRegex(),Er._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Er.tag=Yo(Er.tag).replace("comment",Er._comment).replace("attribute",Er._attribute).getRegex(),Er._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Er._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Er._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Er.link=Yo(Er.link).replace("label",Er._label).replace("href",Er._href).replace("title",Er._title).getRegex(),Er.reflink=Yo(Er.reflink).replace("label",Er._label).replace("ref",Qr._label).getRegex(),Er.nolink=Yo(Er.nolink).replace("ref",Qr._label).getRegex(),Er.reflinkSearch=Yo(Er.reflinkSearch,"g").replace("reflink",Er.reflink).replace("nolink",Er.nolink).getRegex(),Er.normal=nf({},Er),Er.pedantic=nf({},Er.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:Yo(/^!?\[(label)\]\((.*?)\)/).replace("label",Er._label).getRegex(),reflink:Yo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Er._label).getRegex()}),Er.gfm=nf({},Er.normal,{escape:Yo(Er.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Er.gfm.url=Yo(Er.gfm.url,"i").replace("email",Er.gfm._extended_email).getRegex(),Er.breaks=nf({},Er.gfm,{br:Yo(Er.br).replace("{2,}","*").getRegex(),text:Yo(Er.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Z0=function(){function t(r){(0,j.Z)(this,t),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||L0,this.options.tokenizer=this.options.tokenizer||new hN,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:Qr.normal,inline:Er.normal};this.options.pedantic?(e.block=Qr.pedantic,e.inline=Er.pedantic):this.options.gfm&&(e.block=Qr.gfm,this.options.breaks?e.inline=Er.breaks:e.inline=Er.gfm),this.tokenizer.rules=e}return(0,V.Z)(t,[{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 a,s,l,u,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(h,v,C){return v+" ".repeat(C.length)});e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(h){return!!(a=h.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a);continue}if(a=this.tokenizer.code(e)){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,this.inlineQueue[this.inlineQueue.length-1].src=s.text);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text);continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),o.push(a);continue}if(l=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var h=1/0,v=e.slice(1),C=void 0;i.options.extensions.startBlock.forEach(function(B){"number"==typeof(C=B.call({lexer:this},v))&&C>=0&&(h=Math.min(h,C))}),h<1/0&&h>=0&&(l=e.substring(0,h+1))}(),this.state.top&&(a=this.tokenizer.paragraph(l))){s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):o.push(a);continue}if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return this.state.top=!0,o}},{key:"inline",value:function(e,i){this.inlineQueue.push({src:e,tokens:i})}},{key:"inlineTokens",value:function(e){var a,s,l,f,h,v,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!=(f=this.tokenizer.rules.inline.reflinkSearch.exec(u));)C.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,f.index)+"["+mie("a",f[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(f=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,f.index)+"["+mie("a",f[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(f=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,f.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(h||(v=""),h=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(G){return!!(a=G.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))){if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.tag(e)){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);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){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);continue}if(a=this.tokenizer.emStrong(e,u,v)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.autolink(e,gie)){e=e.substring(a.raw.length),o.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e,gie))){e=e.substring(a.raw.length),o.push(a);continue}if(l=e,this.options.extensions&&this.options.extensions.startInline&&function(){var G=1/0,q=e.slice(1),ae=void 0;i.options.extensions.startInline.forEach(function(pe){"number"==typeof(ae=pe.call({lexer:this},q))&&ae>=0&&(G=Math.min(G,ae))}),G<1/0&&G>=0&&(l=e.substring(0,G+1))}(),a=this.tokenizer.inlineText(l,kLe)){e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(v=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);continue}if(e){var B="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(B);break}throw new Error(B)}}return o}}],[{key:"rules",get:function(){return{block:Qr,inline:Er}}},{key:"lex",value:function(e,i){return new t(i).lex(e)}},{key:"lexInline",value:function(e,i){return new t(i).inlineTokens(e)}}]),t}(),mN=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0}return(0,V.Z)(t,[{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+Ks(a,!0)+'">'+(o?e:Ks(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Ks(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=fie(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+Ks(e)+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=fie(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}}]),t}(),Yj=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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""}}]),t}(),Gj=function(){function t(){(0,j.Z)(this,t),this.seen={}}return(0,V.Z)(t,[{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)}}]),t}(),N0=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0,this.options.renderer=this.options.renderer||new mN,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Yj,this.slugger=new Gj}return(0,V.Z)(t,[{key:"parse",value:function(e){var a,s,l,u,f,h,v,C,B,G,q,ae,pe,Ve,Me,Be,pt,ht,Pe,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",at=e.length;for(a=0;a<at;a++)if(G=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[G.type]&&(!1!==(Pe=this.options.extensions.renderers[G.type].call({parser:this},G))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(G.type)))o+=Pe||"";else switch(G.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(G.tokens),G.depth,die(this.parseInline(G.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(G.text,G.lang,G.escaped);continue;case"table":for(C="",v="",u=G.header.length,s=0;s<u;s++)v+=this.renderer.tablecell(this.parseInline(G.header[s].tokens),{header:!0,align:G.align[s]});for(C+=this.renderer.tablerow(v),B="",u=G.rows.length,s=0;s<u;s++){for(v="",f=(h=G.rows[s]).length,l=0;l<f;l++)v+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:G.align[l]});B+=this.renderer.tablerow(v)}o+=this.renderer.table(C,B);continue;case"blockquote":B=this.parse(G.tokens),o+=this.renderer.blockquote(B);continue;case"list":for(q=G.ordered,ae=G.start,pe=G.loose,u=G.items.length,B="",s=0;s<u;s++)Be=(Me=G.items[s]).checked,pt=Me.task,Ve="",Me.task&&(ht=this.renderer.checkbox(Be),pe?Me.tokens.length>0&&"paragraph"===Me.tokens[0].type?(Me.tokens[0].text=ht+" "+Me.tokens[0].text,Me.tokens[0].tokens&&Me.tokens[0].tokens.length>0&&"text"===Me.tokens[0].tokens[0].type&&(Me.tokens[0].tokens[0].text=ht+" "+Me.tokens[0].tokens[0].text)):Me.tokens.unshift({type:"text",text:ht}):Ve+=ht),Ve+=this.parse(Me.tokens,pe),B+=this.renderer.listitem(Ve,pt,Be);o+=this.renderer.list(B,q,ae);continue;case"html":o+=this.renderer.html(G.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(G.tokens));continue;case"text":for(B=G.tokens?this.parseInline(G.tokens):G.text;a+1<at&&"text"===e[a+1].type;)B+="\n"+((G=e[++a]).tokens?this.parseInline(G.tokens):G.text);o+=i?this.renderer.paragraph(B):B;continue;default:var Ct='Token with "'+G.type+'" type was not found.';if(this.options.silent)return void console.error(Ct);throw new Error(Ct)}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 f='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(f);throw new Error(f)}return o}}],[{key:"parse",value:function(e,i){return new t(i).parse(e)}},{key:"parseInline",value:function(e,i){return new t(i).parseInline(e)}}]),t}();function ii(t,r,e){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof r&&(e=r,r=null),hie(r=nf({},ii.defaults,r||{})),e){var o,i=r.highlight;try{o=Z0.lex(t,r)}catch(u){return e(u)}var a=function(f){var h;if(!f)try{r.walkTokens&&ii.walkTokens(o,r.walkTokens),h=N0.parse(o,r)}catch(v){f=v}return r.highlight=i,f?e(f):e(null,h)};if(!i||i.length<3||(delete r.highlight,!o.length))return a();var s=0;return ii.walkTokens(o,function(u){"code"===u.type&&(s++,setTimeout(function(){i(u.text,u.lang,function(f,h){if(f)return a(f);null!=h&&h!==u.text&&(u.text=h,u.escaped=!0),0===--s&&a()})},0))}),void(0===s&&a())}try{var l=Z0.lex(t,r);return r.walkTokens&&ii.walkTokens(l,r.walkTokens),N0.parse(l,r)}catch(u){if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",r.silent)return"<p>An error occurred:</p><pre>"+Ks(u.message+"",!0)+"</pre>";throw u}}ii.options=ii.setOptions=function(t){return nf(ii.defaults,t),function sLe(t){L0=t}(ii.defaults),ii},ii.getDefaults=Vj,ii.defaults=L0,ii.use=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var a,i=nf.apply(void 0,[{}].concat(r)),o=ii.defaults.extensions||{renderers:{},childTokens:{}};r.forEach(function(s){if(s.extensions&&(a=!0,s.extensions.forEach(function(u){if(!u.name)throw new Error("extension name required");if(u.renderer){var f=o.renderers?o.renderers[u.name]:null;o.renderers[u.name]=f?function(){for(var h=arguments.length,v=new Array(h),C=0;C<h;C++)v[C]=arguments[C];var B=u.renderer.apply(this,v);return!1===B&&(B=f.apply(this,v)),B}:u.renderer}if(u.tokenizer){if(!u.level||"block"!==u.level&&"inline"!==u.level)throw new Error("extension level must be 'block' or 'inline'");o[u.level]?o[u.level].unshift(u.tokenizer):o[u.level]=[u.tokenizer],u.start&&("block"===u.level?o.startBlock?o.startBlock.push(u.start):o.startBlock=[u.start]:"inline"===u.level&&(o.startInline?o.startInline.push(u.start):o.startInline=[u.start]))}u.childTokens&&(o.childTokens[u.name]=u.childTokens)})),s.renderer&&function(){var u=ii.defaults.renderer||new mN,f=function(C){var B=u[C];u[C]=function(){for(var G=arguments.length,q=new Array(G),ae=0;ae<G;ae++)q[ae]=arguments[ae];var pe=s.renderer[C].apply(u,q);return!1===pe&&(pe=B.apply(u,q)),pe}};for(var h in s.renderer)f(h);i.renderer=u}(),s.tokenizer&&function(){var u=ii.defaults.tokenizer||new hN,f=function(C){var B=u[C];u[C]=function(){for(var G=arguments.length,q=new Array(G),ae=0;ae<G;ae++)q[ae]=arguments[ae];var pe=s.tokenizer[C].apply(u,q);return!1===pe&&(pe=B.apply(u,q)),pe}};for(var h in s.tokenizer)f(h);i.tokenizer=u}(),s.walkTokens){var l=ii.defaults.walkTokens;i.walkTokens=function(u){s.walkTokens.call(this,u),l&&l.call(this,u)}}a&&(i.extensions=o),ii.setOptions(i)})},ii.walkTokens=function(t,r){var i,e=(0,cn.Z)(t);try{var o=function(){var s=i.value;switch(r.call(ii,s),s.type){case"table":var u,l=(0,cn.Z)(s.header);try{for(l.s();!(u=l.n()).done;){var f=u.value;ii.walkTokens(f.tokens,r)}}catch(ae){l.e(ae)}finally{l.f()}var v,h=(0,cn.Z)(s.rows);try{for(h.s();!(v=h.n()).done;){var G,C=v.value,B=(0,cn.Z)(C);try{for(B.s();!(G=B.n()).done;){var q=G.value;ii.walkTokens(q.tokens,r)}}catch(ae){B.e(ae)}finally{B.f()}}}catch(ae){h.e(ae)}finally{h.f()}break;case"list":ii.walkTokens(s.items,r);break;default:ii.defaults.extensions&&ii.defaults.extensions.childTokens&&ii.defaults.extensions.childTokens[s.type]?ii.defaults.extensions.childTokens[s.type].forEach(function(ae){ii.walkTokens(s[ae],r)}):s.tokens&&ii.walkTokens(s.tokens,r)}};for(e.s();!(i=e.n()).done;)o()}catch(a){e.e(a)}finally{e.f()}},ii.parseInline=function(t,r){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");hie(r=nf({},ii.defaults,r||{}));try{var e=Z0.lexInline(t,r);return r.walkTokens&&ii.walkTokens(e,r.walkTokens),N0.parseInline(e,r)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",r.silent)return"<p>An error occurred:</p><pre>"+Ks(i.message+"",!0)+"</pre>";throw i}},ii.Parser=N0,ii.parser=N0.parse,ii.Renderer=mN,ii.TextRenderer=Yj,ii.Lexer=Z0,ii.lexer=Z0.lex,ii.Tokenizer=hN,ii.Slugger=Gj,ii.parse=ii;var TLe=ii.options,ELe=ii.setOptions,MLe=ii.use,SLe=ii.walkTokens,xLe=ii.parseInline,DLe=ii,ALe=N0.parse,OLe=Z0.lex,wD=function(){function t(r,e){(0,j.Z)(this,t),this.elementRef=r,this.renderer=e}return(0,V.Z)(t,[{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=_n(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),t}();function ILe(t,r){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"div",4),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.s9C("text",e.markdown)}}wD.\u0275fac=function(r){return new(r||wD)(n.Y36(n.SBq),n.Y36(n.Qsj))},wD.\u0275dir=n.lG2({type:wD,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[n.TTD]});var kD=function(){function t(r){(0,j.Z)(this,t),this.projectService=r,this.markdown=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e.markdown=i)})}}]),t}();kD.\u0275fac=function(r){return new(r||kD)(n.Y36(dl.Y))},kD.\u0275cmp=n.Xpm({type:kD,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&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),n.NdJ("ngModelChange",function(o){return e.markdown=o}),n.qZA()(),n.TgZ(3,"mat-tab",2),n.YNc(4,ILe,2,1,"span",3),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngModel",e.markdown),n.xp6(2),n.Q6J("ngIf",e.markdown))},directives:[so.SP,so.uX,sr,ne.Fj,ne.JJ,ne.On,wt.O5,wD],styles:[".textWrapper{height:500px!important;overflow-y:scroll}.editorWrapper{background-color:#fff;color:#000;height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var PLe=["editor"];function RLe(t,r){if(1&t&&(n.TgZ(0,"mat-tab",27),n._UZ(1,"app-readme-editor",28,29),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("controller",e.controller)("project",e.project)}}function LLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Name"),n.qZA())}function ZLe(t,r){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("",e.name," ")}}function NLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Value"),n.qZA())}function BLe(t,r){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.value)}}function FLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Actions"),n.qZA())}function ULe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",31)(1,"button",32),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().deleteVariable(a)}),n.TgZ(2,"mat-icon",33),n._uU(3,"delete"),n.qZA()()()}}function HLe(t,r){1&t&&n._UZ(0,"tr",34)}function jLe(t,r){1&t&&n._UZ(0,"tr",35)}var _N=function(){return{standalone:!0}},TD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,a.get]),height:new ne.NI("",[ne.kI.required,a.get]),nodeGridSize:new ne.NI("",[ne.kI.required,a.get]),drawingGridSize:new ne.NI("",[ne.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new ne.NI("",[ne.kI.required]),value:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{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.")}}]),t}();function zLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function WLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}TD.\u0275fac=function(r){return new(r||TD)(n.Y36(Dr),n.Y36(ne.qu),n.Y36(dl.Y),n.Y36($n),n.Y36(tf))},TD.\u0275cmp=n.Xpm({type:TD,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(PLe,5),2&r)&&(n.iGM(i=n.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","",1,"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&&(n.TgZ(0,"h1",0),n._uU(1,"Edit project"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),n._UZ(7,"input",5),n.qZA(),n.TgZ(8,"mat-form-field",4),n._UZ(9,"input",6),n.qZA(),n.TgZ(10,"mat-form-field",4),n._UZ(11,"input",7),n.qZA(),n.TgZ(12,"mat-form-field",4),n._UZ(13,"input",8),n.qZA(),n.TgZ(14,"mat-form-field",4),n._UZ(15,"input",9),n.qZA()(),n.TgZ(16,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),n._uU(17," Open this project in the background when GNS3 controller starts "),n.qZA(),n.TgZ(18,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),n._uU(19," Start all nodes when this project is opened "),n.qZA(),n.TgZ(20,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.auto_close=o}),n._uU(21," Leave this project running in the background after closing "),n.qZA(),n.TgZ(22,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),n._uU(23," Show interface labels at start "),n.qZA()(),n.YNc(24,RLe,3,2,"mat-tab",11),n.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),n._UZ(28,"input",13),n.qZA(),n.TgZ(29,"mat-form-field",4),n._UZ(30,"input",14),n.qZA()(),n.TgZ(31,"button",15),n.NdJ("click",function(){return e.addVariable()}),n._uU(32,"Add variable"),n.qZA(),n.TgZ(33,"table",16),n.ynx(34,17),n.YNc(35,LLe,2,0,"th",18),n.YNc(36,ZLe,2,1,"td",19),n.BQk(),n.ynx(37,20),n.YNc(38,NLe,2,0,"th",18),n.YNc(39,BLe,2,1,"td",19),n.BQk(),n.ynx(40,21),n.YNc(41,FLe,2,0,"th",18),n.YNc(42,ULe,4,0,"td",19),n.BQk(),n.YNc(43,HLe,1,0,"tr",22),n.YNc(44,jLe,1,0,"tr",23),n.qZA()()()(),n.TgZ(45,"div",24)(46,"button",25),n.NdJ("click",function(){return e.onNoClick()}),n._uU(47,"Cancel"),n.qZA(),n.TgZ(48,"button",26),n.NdJ("click",function(){return e.onYesClick()}),n._uU(49,"Apply"),n.qZA()()),2&r&&(n.xp6(5),n.Q6J("formGroup",e.formGroup),n.xp6(11),n.Q6J("ngModelOptions",n.DdM(14,_N))("ngModel",e.project.auto_open),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(15,_N))("ngModel",e.project.auto_start),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(16,_N))("ngModel",e.auto_close),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,_N))("ngModel",e.project.show_interface_labels),n.xp6(2),n.Q6J("ngIf",e.controller&&e.project),n.xp6(2),n.Q6J("formGroup",e.variableFormGroup),n.xp6(7),n.Q6J("dataSource",e.variables),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Vr,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Ui,ne.On,wt.O5,kD,Tn,ca,aa,fa,Sa,da,xa,vi,Vn,Da,Oa,Aa,Ia,Zr],styles:[".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 VLe=function(r){return{empty:r}},YLe=function(r){return{"is-invalid":r}},Qw=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,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 n.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kw,{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=_s();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)}}]),t}();Qw.\u0275fac=function(r){return new(r||Qw)(n.Y36(ri),n.Y36(Dr),n.Y36(Vo),n.Y36(ne.qu),n.Y36(dl.Y),n.Y36(ku),n.Y36($n),n.Y36(jc),n.Y36(Fc))},Qw.\u0275cmp=n.Xpm({type:Qw,selectors:[["app-import-project-dialog"]],features:[n._Bn([ku])],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=n.EpF();n.TgZ(0,"h1",0),n._uU(1,"Import project"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),n.NdJ("change",function(a){return e.uploadProjectFile(a)}),n.qZA(),n.TgZ(6,"button",5),n.NdJ("click",function(){return n.CHM(i),n.MAs(5).click()}),n._uU(7," Choose file "),n.qZA(),n.TgZ(8,"mat-form-field",6),n._UZ(9,"input",7),n.YNc(10,zLe,2,0,"mat-error",8),n.YNc(11,WLe,2,0,"mat-error",8),n.qZA(),n.TgZ(12,"button",9)(13,"mat-icon",10),n.NdJ("click",function(){return e.onDeleteClick()}),n._uU(14,"clear"),n.qZA()(),n.TgZ(15,"div",11)(16,"button",12),n.NdJ("click",function(){return e.onNoClick()}),n._uU(17,"Cancel"),n.qZA(),n.TgZ(18,"button",13),n.NdJ("click",function(){return e.onImportClick()}),n._uU(19," Import "),n.qZA()()()(),n.TgZ(20,"div",1)(21,"div",14)(22,"span"),n._uU(23),n.qZA()(),n.TgZ(24,"div",11)(25,"button",13),n.NdJ("click",function(){return e.onNoClick()}),n._uU(26," Finish "),n.qZA()()()}2&r&&(n.xp6(2),n.Q6J("hidden",e.isFirstStepCompleted),n.xp6(1),n.Q6J("formGroup",e.projectNameForm),n.xp6(1),n.Q6J("uploader",e.uploader),n.xp6(4),n.Q6J("ngClass",n.VKq(12,VLe,!e.isDeleteVisible)),n.xp6(1),n.Q6J("ngClass",n.VKq(14,YLe,e.form.projectName.errors)),n.xp6(1),n.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),n.xp6(1),n.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),n.xp6(1),n.Q6J("hidden",!e.isDeleteVisible),n.xp6(6),n.Q6J("disabled",!e.isImportEnabled),n.xp6(2),n.Q6J("hidden",!e.isFirstStepCompleted),n.xp6(3),n.Oqu(e.resultMessage),n.xp6(2),n.Q6J("disabled",!e.isFinishEnabled))},directives:[Vr,ne._Y,ne.JL,ne.sg,Zc,Tn,vi,Un.KE,wt.mk,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,Vn,Zr],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 GLe=function(r){return{lightTheme:r}},Xw=function(){function t(r,e){(0,j.Z)(this,t),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,V.Z)(t,[{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)}}]),t}();function qLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function KLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}Xw.\u0275fac=function(r){return new(r||Xw)(n.Y36(cN),n.Y36(Ju.f))},Xw.\u0275cmp=n.Xpm({type:Xw,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&&(n.TgZ(0,"div",0)(1,"div",1),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"No"),n.qZA(),n.TgZ(6,"button",3),n.NdJ("click",function(){return e.onYesClick()}),n._uU(7,"Yes"),n.qZA()()()),2&r&&(n.Q6J("ngClass",n.VKq(2,GLe,e.isLightThemeEnabled)),n.xp6(2),n.hij("Do you want to navigate to ",e.projectMessage,"?"))},directives:[wt.mk,Tn],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 JLe=function(r){return{"is-invalid":r}},ED=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new n.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return(0,V.Z)(t,[{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()}}]),t}();ED.\u0275fac=function(r){return new(r||ED)(n.Y36(Dr),n.Y36(dl.Y),n.Y36(ls.G),n.Y36($n),n.Y36(ne.qu),n.Y36(ku))},ED.\u0275cmp=n.Xpm({type:ED,selectors:[["app-save-project-dialog"]],features:[n._Bn([ku])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Save project as"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,qLe,2,0,"mat-error",4),n.YNc(6,KLe,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"div",5)(8,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(11,"Save project"),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.projectNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(4,JLe,null==e.form.projectName?null:e.form.projectName.errors)),n.xp6(1),n.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)),n.xp6(1),n.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)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var B0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,".")),o=o.concat(this.getInfoAboutPorts(e.ports))}},{key:"getInfoAboutPorts",value:function(e){var i="Ports: ";return e.forEach(function(o){i+="link_type: ".concat(o.link_type,",\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."}}]),t}();function QLe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e," ")}}B0.\u0275fac=function(r){return new(r||B0)},B0.\u0275prov=n.Yz7({token:B0,factory:B0.\u0275fac});var MD=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,V.Z)(t,[{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()}}]),t}();MD.\u0275fac=function(r){return new(r||MD)(n.Y36(Dr),n.Y36(B0))},MD.\u0275cmp=n.Xpm({type:MD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),n.YNc(6,QLe,2,1,"div",5),n.qZA()(),n.TgZ(7,"mat-tab",6)(8,"div",4),n._uU(9),n.qZA()(),n.TgZ(10,"mat-tab",7)(11,"div",4),n._uU(12),n.qZA()()()(),n.TgZ(13,"div",8)(14,"button",9),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(15,"Close"),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.node.name),n.xp6(5),n.Q6J("ngForOf",e.infoList),n.xp6(3),n.hij(" ",e.usage," "),n.xp6(3),n.hij(" ",e.commandLine," "))},directives:[Vr,so.SP,so.uX,wt.sg,Zr,Tn],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var SD=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"showNode",value:function(){var i=this.dialog.open(MD,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),t}();SD.\u0275fac=function(r){return new(r||SD)(n.Y36(ri))},SD.\u0275cmp=n.Xpm({type:SD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.showNode()}),n.TgZ(1,"mat-icon"),n._uU(2,"info"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Show node information"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var Xr=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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.node_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.node_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.node_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.node_id,"_private-config.cfg")),this.httpController.post(e,a,o)}}]),t}();function XLe(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Port : VPI : VCI"),n.qZA())}function $Le(t,r){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portIn)}}function e5e(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Port : VPI : VCI"),n.qZA())}function t5e(t,r){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portOut)}}function n5e(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Actions"),n.qZA())}function r5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",28)(1,"button",29),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",30),n._uU(3,"delete"),n.qZA()()()}}function i5e(t,r){1&t&&n._UZ(0,"tr",31)}function o5e(t,r){1&t&&n._UZ(0,"tr",32)}function a5e(t,r){if(1&t&&(n.TgZ(0,"table",19),n.ynx(1,20),n.YNc(2,XLe,2,0,"th",21),n.YNc(3,$Le,2,1,"td",22),n.BQk(),n.ynx(4,23),n.YNc(5,e5e,2,0,"th",21),n.YNc(6,t5e,2,1,"td",22),n.BQk(),n.ynx(7,24),n.YNc(8,n5e,2,0,"th",21),n.YNc(9,r5e,4,0,"td",22),n.BQk(),n.YNc(10,i5e,1,0,"tr",25),n.YNc(11,o5e,1,0,"tr",26),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.nodeMappingsDataSource),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}Xr.\u0275fac=function(r){return new(r||Xr)(n.LFG(Wo.zw))},Xr.\u0275prov=n.Yz7({token:Xr,factory:Xr.\u0275fac});var xD=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceVci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationVci:new ne.NI("",ne.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new ne.NI("",ne.kI.required),destinationVpi:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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,cn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Ut.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(f){o.e(f)}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,Ut.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Ex.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()}}]),t}();function s5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Name"),n.qZA())}function l5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}function u5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Local port"),n.qZA())}function c5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.rport)}}function d5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Type"),n.qZA())}function f5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.rhost)}}function p5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Remote port"),n.qZA())}function h5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.lport)}}function m5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Actions"),n.qZA())}function _5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"delete"),n.qZA()()()}}function g5e(t,r){1&t&&n._UZ(0,"tr",22)}function v5e(t,r){1&t&&n._UZ(0,"tr",23)}function y5e(t,r){if(1&t&&(n.TgZ(0,"table",8),n.ynx(1,9),n.YNc(2,s5e,2,0,"th",10),n.YNc(3,l5e,2,1,"td",11),n.BQk(),n.ynx(4,12),n.YNc(5,u5e,2,0,"th",10),n.YNc(6,c5e,2,1,"td",11),n.BQk(),n.ynx(7,13),n.YNc(8,d5e,2,0,"th",10),n.YNc(9,f5e,2,1,"td",11),n.BQk(),n.ynx(10,14),n.YNc(11,p5e,2,0,"th",10),n.YNc(12,h5e,2,1,"td",11),n.BQk(),n.ynx(13,15),n.YNc(14,m5e,2,0,"th",10),n.YNc(15,_5e,4,0,"td",11),n.BQk(),n.YNc(16,g5e,1,0,"tr",16),n.YNc(17,v5e,1,0,"tr",17),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.dataSourceUdp),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function b5e(t,r){1&t&&n._UZ(0,"br")}xD.\u0275fac=function(r){return new(r||xD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu))},xD.\u0275cmp=n.Xpm({type:xD,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","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","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","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","",1,"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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),n.YNc(6,a5e,12,3,"table",4),n._UZ(7,"br"),n.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()(),n.TgZ(11,"mat-checkbox",8),n.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),n._uU(12," Use VPI only (VP tunnel) "),n.qZA(),n.TgZ(13,"form",5),n._uU(14," Source "),n.TgZ(15,"mat-form-field",6)(16,"input",9),n.NdJ("ngModelChange",function(o){return e.sourcePort=o}),n.qZA()()(),n.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),n.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),n.qZA()()(),n.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),n.NdJ("ngModelChange",function(o){return e.sourceVci=o}),n.qZA()(),n._uU(23," Destination "),n.TgZ(24,"mat-form-field",6)(25,"input",12),n.NdJ("ngModelChange",function(o){return e.destinationPort=o}),n.qZA()()(),n.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),n.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),n.qZA()()(),n.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),n.NdJ("ngModelChange",function(o){return e.destinationVci=o}),n.qZA()()(),n.TgZ(32,"button",15),n.NdJ("click",function(){return e.add()}),n._uU(33,"Add"),n.qZA()()()()(),n.TgZ(34,"div",16)(35,"button",17),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(36,"Cancel"),n.qZA(),n.TgZ(37,"button",18),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(38,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.nodeMappingsDataSource.length),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(1),n.Q6J("ngModel",e.useVpiOnly),n.xp6(2),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngModel",e.sourcePort),n.xp6(1),n.Q6J("formGroup",e.abstractForm),n.xp6(2),n.Q6J("ngModel",e.sourceVpi),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.sourceVci),n.xp6(3),n.Q6J("ngModel",e.destinationPort),n.xp6(1),n.Q6J("formGroup",e.abstractForm),n.xp6(2),n.Q6J("ngModel",e.destinationVpi),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.destinationVci))},directives:[Vr,Si,wt.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Ui,ne.On,ne.wV,Zr],styles:[".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}",".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 DD=function(){function t(r){(0,j.Z)(this,t),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,V.Z)(t,[{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})}}]),t}();DD.\u0275fac=function(r){return new(r||DD)(n.Y36(Qu))},DD.\u0275cmp=n.Xpm({type:DD,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["class","table","mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",1,"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&&(n.YNc(0,y5e,18,3,"table",0),n.YNc(1,b5e,1,0,"br",1),n.TgZ(2,"mat-form-field",2)(3,"input",3),n.NdJ("ngModelChange",function(o){return e.newPort.name=o}),n.qZA()(),n.TgZ(4,"mat-form-field",2)(5,"input",4),n.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),n.qZA()(),n.TgZ(6,"mat-form-field",2)(7,"input",5),n.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),n.qZA()(),n.TgZ(8,"mat-form-field",2)(9,"input",6),n.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),n.qZA()(),n.TgZ(10,"button",7),n.NdJ("click",function(){return e.onAddUdpInterface()}),n._uU(11,"Add"),n.qZA()),2&r&&(n.Q6J("ngIf",e.dataSourceUdp.length),n.xp6(1),n.Q6J("ngIf",e.dataSourceUdp.length),n.xp6(2),n.Q6J("ngModel",e.newPort.name),n.xp6(2),n.Q6J("ngModel",e.newPort.lport),n.xp6(2),n.Q6J("ngModel",e.newPort.rhost),n.xp6(2),n.Q6J("ngModel",e.newPort.rport))},directives:[wt.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ne.wV],styles:[".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 C5e=["udpTunnels"];function w5e(t,r){if(1&t&&(n.TgZ(0,"div",16)(1,"div",16),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function k5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function T5e(t,r){if(1&t&&(n.TgZ(0,"div",16)(1,"div",16),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function E5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var M5e=function(){return{standalone:!0}};function S5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n.YNc(2,w5e,5,1,"div",10),n.TgZ(3,"mat-form-field",11)(4,"mat-select",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetInterface=a}),n.YNc(5,k5e,2,2,"mat-option",13),n.qZA()(),n.TgZ(6,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddEthernetInterface()}),n._uU(7,"Add"),n.qZA()(),n.TgZ(8,"mat-tab",15),n.YNc(9,T5e,5,1,"div",10),n.TgZ(10,"mat-form-field",16)(11,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().tapInterface=a}),n.qZA()(),n.TgZ(12,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddTapInterface()}),n._uU(13,"Add"),n.qZA()(),n.TgZ(14,"mat-tab",18),n._UZ(15,"app-udp-tunnels",19,20),n.qZA(),n.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(21,"mat-form-field",11)(22,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(23,E5e,2,2,"mat-option",13),n.qZA()(),n.TgZ(24,"mat-form-field",16)(25,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_host=a}),n.qZA()(),n.TgZ(26,"mat-form-field",16)(27,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_port=a}),n.qZA()(),n.TgZ(28,"mat-form-field",16)(29,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_http_path=a}),n.qZA()()(),n.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngForOf",i.portsMappingEthernet),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(15,M5e))("ngModel",i.ethernetInterface),n.xp6(1),n.Q6J("ngForOf",i.ethernetInterfaces),n.xp6(4),n.Q6J("ngForOf",i.portsMappingTap),n.xp6(2),n.Q6J("ngModel",i.tapInterface),n.xp6(4),n.Q6J("dataSourceUdp",i.portsMappingUdp),n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_host),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_port),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_http_path),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var AD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function x5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),n._uU(3),n.qZA(),n.TgZ(4,"span",7)(5,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e).$implicit.port_name=a}),n.qZA()()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.hij(" Adapter ",i.adapter_number," "),n.xp6(2),n.Q6J("ngModel",i.port_name)}}function D5e(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div",6)(2,"span",7),n._uU(3," Adapter number "),n.qZA(),n.TgZ(4,"span",7),n._uU(5," Port name "),n.qZA()(),n.TgZ(6,"div")(7,"mat-list"),n.YNc(8,x5e,6,2,"mat-list-item",8),n.qZA()()()),2&t){var e=n.oxw();n.xp6(8),n.Q6J("ngForOf",e.adapters)}}AD.\u0275fac=function(r){return new(r||AD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(Qu))},AD.\u0275cmp=n.Xpm({type:AD,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(C5e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,S5e,33,16,"mat-tab-group",5),n.qZA(),n._UZ(7,"div"),n.qZA()(),n.TgZ(8,"div",6)(9,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(12,"Apply"),n.qZA()()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,wt.sg,Un.KE,xi.gD,ne.JJ,ne.On,sn.ey,Tn,sr,ne.Fj,DD,ne._Y,ne.JL,ne.sg,ne.u,Zr],styles:[".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 OD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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,V.Z)(t,[{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()}}]),t}();OD.\u0275fac=function(r){return new(r||OD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(dp))},OD.\u0275cmp=n.Xpm({type:OD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,D5e,9,1,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(5,"Cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(7,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configure custom adapters for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf",e.node))},directives:[Vr,wt.O5,Hh,wt.sg,qa,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],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 A5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",5)(1,"textarea",6),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().configuration=a}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.configuration)}}var ID=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,V.Z)(t,[{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()}}]),t}();function O5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",29),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function I5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",29),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}ID.\u0275fac=function(r){return new(r||ID)(n.Y36(Dr),n.Y36(Xr),n.Y36($n))},ID.\u0275cmp=n.Xpm({type:ID,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,A5e,2,1,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(5,"Cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(7,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Edit network configuration for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf",e.node))},directives:[Vr,wt.O5,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var qj=function(){return{standalone:!0}};function P5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",11)(7,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.start_command=a}),n.qZA()(),n.TgZ(8,"mat-form-field",11)(9,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.adapters=a}),n.qZA()(),n.TgZ(10,"mat-form-field",11)(11,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.memory=a}),n.qZA(),n.TgZ(12,"span",16),n._uU(13,"MB"),n.qZA()(),n.TgZ(14,"mat-form-field",11)(15,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cpus=a}),n.qZA()(),n.TgZ(16,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().configureCustomAdapters()}),n._uU(17," Configure custom adapters "),n.qZA(),n.TgZ(18,"mat-form-field",19)(19,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(20,O5e,2,2,"mat-option",21),n.qZA()(),n.TgZ(21,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(22," Auto start console "),n.qZA(),n.TgZ(23,"mat-form-field",11)(24,"mat-select",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_resolution=a}),n.YNc(25,I5e,2,2,"mat-option",21),n.qZA()(),n.TgZ(26,"mat-form-field",11)(27,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_http_port=a}),n.qZA()(),n.TgZ(28,"mat-form-field",11)(29,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_http_path=a}),n.qZA()(),n.TgZ(30,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().editNetworkConfiguration()}),n._uU(31," Edit network configuration "),n.qZA()(),n.TgZ(32,"h6"),n._uU(33,"Environment"),n.qZA(),n.TgZ(34,"mat-form-field",11)(35,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.environment=a}),n.qZA()()(),n.TgZ(36,"mat-tab",27)(37,"h6"),n._uU(38,"Extra hosts"),n.qZA(),n.TgZ(39,"mat-form-field",11)(40,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.extra_hosts=a}),n.qZA()(),n._UZ(41,"br"),n.TgZ(42,"h6"),n._uU(43,"Additional directories"),n.qZA(),n.TgZ(44,"mat-form-field",11)(45,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.extra_volumes=a}),n.qZA()()(),n.TgZ(46,"mat-tab",28)(47,"mat-form-field",11)(48,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.properties.start_command),n.xp6(2),n.Q6J("ngModel",i.node.properties.adapters),n.xp6(2),n.Q6J("ngModel",i.node.properties.memory),n.xp6(4),n.Q6J("ngModel",i.node.properties.cpus),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(20,qj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(21,qj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(22,qj))("ngModel",i.node.properties.console_resolution),n.xp6(1),n.Q6J("ngForOf",i.consoleResolutions),n.xp6(2),n.Q6J("ngModel",i.node.properties.console_http_port),n.xp6(2),n.Q6J("ngModel",i.node.properties.console_http_path),n.xp6(6),n.Q6J("ngModel",i.node.properties.environment),n.xp6(5),n.Q6J("ngModel",i.node.properties.extra_hosts),n.xp6(5),n.Q6J("ngModel",i.node.properties.extra_volumes),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var PD=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.dialogReference=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.nonNegativeValidator=s,this.dialog=l,this.consoleTypes=[],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 ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),memory:new ne.NI("",s.get),cpus:new ne.NI("",s.get),startCommand:new ne.NI(""),consoleHttpPort:new ne.NI("",ne.kI.required),consoleHttpPath:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}},{key:"configureCustomAdapters",value:function(){this.dialogRef=this.dialog.open(OD,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open(ID,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()}}]),t}();function R5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function L5e(t,r){if(1&t&&n._UZ(0,"app-ports",17,18),2&t){var e=n.oxw(2);n.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}PD.\u0275fac=function(r){return new(r||PD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(dp),n.Y36(tf),n.Y36(ri))},PD.\u0275cmp=n.Xpm({type:PD,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"],["formControlName","memory","matInput","","type","number","placeholder","Maximum memory",3,"ngModel","ngModelChange"],["matSuffix",""],["formControlName","cpus","matInput","","type","number","placeholder","Maximum CPUs",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[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"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,P5e,49,23,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Un.R9,Tn,xi.gD,ne.On,wt.sg,sn.ey,Ui,Zr],styles:[".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 Z5e=function(){return{standalone:!0}};function N5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",12)(6,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(7,R5e,2,2,"mat-option",14),n.qZA()()(),n.YNc(8,L5e,2,1,"app-ports",15),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(6,Z5e))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngIf",i.node.properties)}}var RD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();RD.\u0275fac=function(r){return new(r||RD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(Qu))},RD.\u0275cmp=n.Xpm({type:RD,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(ug,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2),n.YNc(4,N5e,9,7,"div",3),n.qZA()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(9,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(3),n.Q6J("ngIf",e.node))},directives:[Vr,wt.O5,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ug,Zr,Tn],styles:[".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 B5e=function(){return{standalone:!0}},LD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function F5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function U5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,F5e,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n._UZ(11,"br"),n.qZA(),n.TgZ(12,"mat-tab",17),n._UZ(13,"br"),n.TgZ(14,"form",10)(15,"mat-form-field",11)(16,"input",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(17,"span",19),n._uU(18,"MB"),n.qZA()(),n.TgZ(19,"mat-form-field",11)(20,"input",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.nvram=a}),n.qZA(),n.TgZ(21,"span",19),n._uU(22,"MB"),n.qZA()()()(),n.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.console_auto_start),n.xp6(5),n.Q6J("formGroup",i.memoryForm),n.xp6(2),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.nvram),n.xp6(5),n.Q6J("ngModel",i.node.properties.usage)}}LD.\u0275fac=function(r){return new(r||LD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(tm))},LD.\u0275cmp=n.Xpm({type:LD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()(),n.TgZ(9,"mat-form-field",6)(10,"input",8),n.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),n.qZA()()()()()()(),n.TgZ(11,"div",9)(12,"button",10),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",11),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(15,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(2),n.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",n.DdM(5,B5e)))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,Zr,Tn],styles:[".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 ZD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.memoryForm.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()}}]),t}();function H5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function j5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,H5e,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n._UZ(11,"br"),n.TgZ(12,"mat-form-field",11)(13,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(14,"span",18),n._uU(15,"MB"),n.qZA()(),n.TgZ(16,"mat-form-field",11)(17,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.nvram=a}),n.qZA(),n.TgZ(18,"span",18),n._uU(19,"MB"),n.qZA()()(),n.TgZ(20,"mat-tab",20),n._UZ(21,"br"),n.TgZ(22,"form",10)(23,"mat-form-field",11)(24,"input",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.ethernet_adapters=a}),n.qZA()(),n.TgZ(25,"mat-form-field",11)(26,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.serial_adapters=a}),n.qZA()()()(),n.TgZ(27,"mat-tab",23)(28,"mat-form-field",11)(29,"textarea",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.console_auto_start),n.xp6(4),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.nvram),n.xp6(5),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.node.ethernet_adapters),n.xp6(2),n.Q6J("ngModel",i.node.serial_adapters),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}ZD.\u0275fac=function(r){return new(r||ZD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(Kh))},ZD.\u0275cmp=n.Xpm({type:ZD,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"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,U5e,26,9,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,Zr,Tn],styles:[".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 ND=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();ND.\u0275fac=function(r){return new(r||ND)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(cg))},ND.\u0275cmp=n.Xpm({type:ND,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"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["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"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,j5e,30,11,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,Zr,Tn],styles:[".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 BD=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function z5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function W5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function V5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}function Y5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function G5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}function q5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div"),n._uU(1," Size options "),n.TgZ(2,"mat-form-field",6)(3,"mat-select",8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.preallocation=a}),n.YNc(4,W5e,2,2,"mat-option",9),n.qZA()(),n.TgZ(5,"mat-form-field",6)(6,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.cluster_size=a}),n.YNc(7,V5e,2,2,"mat-option",9),n.qZA()(),n._uU(8," Refcounts "),n.TgZ(9,"mat-form-field",6)(10,"mat-select",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.lazy_refcounts=a}),n.YNc(11,Y5e,2,2,"mat-option",9),n.qZA()(),n.TgZ(12,"mat-form-field",6)(13,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.refcount_bits=a}),n.YNc(14,G5e,2,2,"mat-option",9),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngModel",i.qemuImg.preallocation),n.xp6(1),n.Q6J("ngForOf",i.preallocationsOptions),n.xp6(2),n.Q6J("ngModel",i.qemuImg.cluster_size),n.xp6(1),n.Q6J("ngForOf",i.clusterSizeOptions),n.xp6(3),n.Q6J("ngModel",i.qemuImg.lazy_refcounts),n.xp6(1),n.Q6J("ngForOf",i.lazyRefcountsOptions),n.xp6(2),n.Q6J("ngModel",i.qemuImg.refcount_bits),n.xp6(1),n.Q6J("ngForOf",i.clusterSizeOptions)}}function K5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("dynamic")}),n._uU(3,"Dynamic"),n.qZA(),n.TgZ(4,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("fixed")}),n._uU(5,"Fixed"),n.qZA()()()}}function J5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Q5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div"),n._uU(1," Adapter type"),n._UZ(2,"br"),n.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("ide")}),n._uU(5,"IDE"),n.qZA(),n.TgZ(6,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("lsilogic")}),n._uU(7,"LSI Logic"),n.qZA(),n.TgZ(8,"mat-radio-button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("buslogic")}),n._uU(9,"BusLogic"),n.qZA(),n.TgZ(10,"mat-radio-button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("legacyESX")}),n._uU(11,"Legacy (ESX)"),n.qZA()(),n._UZ(12,"br")(13,"br"),n._uU(14," Image file sizing mode"),n._UZ(15,"br"),n.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("streamOptimized")}),n._uU(18,"Stream optimized"),n.qZA(),n.TgZ(19,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("twoGbMaxExtentSparse")}),n._uU(20,"Split every 2GB (sparse)"),n.qZA(),n.TgZ(21,"mat-radio-button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("twoGbMaxExtentFlat")}),n._uU(22,"Split every 2GB (flat)"),n.qZA(),n.TgZ(23,"mat-radio-button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("monolithicSparse")}),n._uU(24,"Monolithic sparse"),n.qZA(),n.TgZ(25,"mat-radio-button",26),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("monolithicFlat")}),n._uU(26,"Monolithic flat"),n.qZA()(),n._UZ(27,"br")(28,"br"),n.TgZ(29,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.zeroed_grain=a}),n.YNc(30,J5e,2,2,"mat-option",9),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(29),n.Q6J("ngModel",i.qemuImg.zeroed_grain),n.xp6(1),n.Q6J("ngForOf",i.zeroedGrainOptions)}}BD.\u0275fac=function(r){return new(r||BD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu))},BD.\u0275cmp=n.Xpm({type:BD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()()()()()(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(13,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",e.node.name))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Zr,Tn],styles:[".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 FD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();FD.\u0275fac=function(r){return new(r||FD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(vu))},FD.\u0275cmp=n.Xpm({type:FD,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","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&&(n.TgZ(0,"h1",0),n._uU(1,"Qemu image configurator"),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),n.qZA()()(),n.TgZ(9,"mat-form-field",6)(10,"mat-select",8),n.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),n.YNc(11,z5e,2,2,"mat-option",9),n.qZA()(),n.YNc(12,q5e,15,8,"div",10),n.YNc(13,K5e,6,0,"div",10),n.YNc(14,Q5e,31,2,"div",10),n.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),n.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),n.qZA()(),n.TgZ(18,"mat-form-field",6)(19,"input",12),n.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),n.qZA()()()()()()(),n.TgZ(20,"div",13)(21,"button",14),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(22,"Cancel"),n.qZA(),n.TgZ(23,"button",15),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(24,"Apply"),n.qZA()()),2&r&&(n.xp6(6),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.qemuImg.qemu_img),n.xp6(2),n.Q6J("ngModel",e.qemuImg.format),n.xp6(1),n.Q6J("ngForOf",e.formatOptions),n.xp6(1),n.Q6J("ngIf","qcow2"===e.qemuImg.format),n.xp6(1),n.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),n.xp6(1),n.Q6J("ngIf","vmdk"===e.qemuImg.format),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.qemuImg.path),n.xp6(2),n.Q6J("ngModel",e.qemuImg.size))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,wt.O5,gs,Ys,ne.wV,Zr,Tn],styles:[".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 X5e=["customAdapters"];function $5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function eZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function tZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function nZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function rZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function iZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function oZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function aZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function sZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function lZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function uZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function cZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function dZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",11)(1,"input",50),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).node.properties.cpu_throttling=a}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.node.properties.cpu_throttling)}}function fZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var pZe=function(){return{standalone:!0}};function hZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",11)(7,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.platform=a}),n.YNc(8,$5e,2,2,"mat-option",14),n.qZA()(),n.TgZ(9,"mat-form-field",11)(10,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(11,"span",16),n._uU(12,"MB"),n.qZA()()(),n.TgZ(13,"mat-form-field",11)(14,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cpus=a}),n.qZA()(),n.TgZ(15,"mat-form-field",11)(16,"mat-select",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.boot_priority=a}),n.YNc(17,eZe,2,2,"mat-option",14),n.qZA()(),n.TgZ(18,"mat-form-field",11)(19,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(20,tZe,2,2,"mat-option",14),n.qZA()(),n.TgZ(21,"mat-form-field",20)(22,"mat-select",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(23,nZe,2,2,"mat-option",14),n.qZA()(),n.TgZ(24,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_auto_start=a}),n._uU(25," Auto start console "),n.qZA()(),n.TgZ(26,"mat-tab",23)(27,"mat-card")(28,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().openQemuImageCreator()}),n._uU(29," Create Qemu image "),n.qZA(),n._UZ(30,"mat-card-title"),n.TgZ(31,"mat-card-subtitle"),n._uU(32," HDA (Primary Master) "),n.qZA(),n.TgZ(33,"mat-card-content")(34,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hda_disk_image=a}),n.YNc(35,rZe,2,2,"mat-option",14),n.qZA(),n.TgZ(36,"mat-form-field",11)(37,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hda_disk_interface=a}),n.YNc(38,iZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(39,"mat-card"),n._UZ(40,"mat-card-title"),n.TgZ(41,"mat-card-subtitle"),n._uU(42," HDB (Primary Slave) "),n.qZA(),n.TgZ(43,"mat-card-content")(44,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdb_disk_image=a}),n.YNc(45,oZe,2,2,"mat-option",14),n.qZA(),n.TgZ(46,"mat-form-field",11)(47,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdb_disk_interface=a}),n.YNc(48,aZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(49,"mat-card"),n._UZ(50,"mat-card-title"),n.TgZ(51,"mat-card-subtitle"),n._uU(52," HDC (Secondary Master) "),n.qZA(),n.TgZ(53,"mat-card-content")(54,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdc_disk_image=a}),n.YNc(55,sZe,2,2,"mat-option",14),n.qZA(),n.TgZ(56,"mat-form-field",11)(57,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdc_disk_interface=a}),n.YNc(58,lZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(59,"mat-card"),n._UZ(60,"mat-card-title"),n.TgZ(61,"mat-card-subtitle"),n._uU(62," HDD (Secondary Slave) "),n.qZA(),n.TgZ(63,"mat-card-content")(64,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdd_disk_image=a}),n.YNc(65,uZe,2,2,"mat-option",14),n.qZA(),n.TgZ(66,"mat-form-field",11)(67,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdd_disk_interface=a}),n.YNc(68,cZe,2,2,"mat-option",14),n.qZA()()()()(),n.TgZ(69,"mat-tab",27)(70,"div")(71,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(74).click()}),n._uU(72,"Browse"),n.qZA(),n.TgZ(73,"input",29,30),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadCdromImageFile(a)}),n.qZA(),n.TgZ(75,"mat-form-field",31)(76,"input",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cdrom_image=a}),n.qZA()()()(),n.TgZ(77,"mat-tab",33),n._UZ(78,"br")(79,"br"),n.TgZ(80,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.replicate_network_connection_state=a}),n._uU(81," Replicate network connection state "),n.qZA(),n._UZ(82,"app-custom-adapters-table",34,35),n.qZA(),n.TgZ(84,"mat-tab",36)(85,"mat-card"),n._UZ(86,"mat-card-title"),n.TgZ(87,"mat-card-subtitle"),n._uU(88," Linux boot specific settings "),n.qZA(),n.TgZ(89,"mat-card-content")(90,"div")(91,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(94).click()}),n._uU(92," Browse "),n.qZA(),n.TgZ(93,"input",29,37),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadInitrdFile(a)}),n.qZA(),n.TgZ(95,"mat-form-field",31)(96,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.initrd=a}),n.qZA()()(),n.TgZ(97,"div")(98,"button",28),n.NdJ("click",function(){return n.CHM(e),n.oxw().filekerenelimage.click()}),n._uU(99," Browse "),n.qZA(),n.TgZ(100,"input",29,39),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadKernelImageFile(a)}),n.qZA(),n.TgZ(102,"mat-form-field",31)(103,"input",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.kernel_image=a}),n.qZA()()(),n.TgZ(104,"mat-form-field",11)(105,"input",41),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.kernel_command_line=a}),n.qZA()()()(),n.TgZ(106,"mat-card"),n._UZ(107,"mat-card-title"),n.TgZ(108,"mat-card-subtitle"),n._uU(109," Bios "),n.qZA(),n.TgZ(110,"mat-card-content")(111,"div")(112,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(115).click()}),n._uU(113," Browse "),n.qZA(),n.TgZ(114,"input",29,42),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadBiosFile(a)}),n.qZA(),n.TgZ(116,"mat-form-field",31)(117,"input",43),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.bios_image=a}),n.qZA()()()()(),n.TgZ(118,"mat-card"),n._UZ(119,"mat-card-title"),n.TgZ(120,"mat-card-subtitle"),n._uU(121," Optimization "),n.qZA(),n.TgZ(122,"mat-card-content")(123,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().activateCpuThrottling=a}),n._uU(124," Activate CPU throttling "),n.qZA(),n.YNc(125,dZe,2,1,"mat-form-field",44),n.TgZ(126,"mat-form-field",11)(127,"mat-select",45),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.process_priority=a}),n.YNc(128,fZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(129,"mat-card"),n._UZ(130,"mat-card-title"),n.TgZ(131,"mat-card-subtitle"),n._uU(132," Additional settings "),n.qZA(),n.TgZ(133,"mat-card-content")(134,"mat-form-field",11)(135,"input",46),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.options=a}),n.qZA()()()()(),n.TgZ(136,"mat-tab",47)(137,"mat-form-field",11)(138,"textarea",48),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",n.DdM(45,pZe)),n.xp6(1),n.Q6J("ngForOf",i.selectPlatform),n.xp6(2),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.cpus),n.xp6(2),n.Q6J("ngModel",i.node.properties.boot_priority),n.xp6(1),n.Q6J("ngForOf",i.bootPriorities),n.xp6(2),n.Q6J("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.properties.console_auto_start),n.xp6(10),n.Q6J("ngModel",i.node.properties.hda_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hda_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdb_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdb_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdc_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdc_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdd_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdd_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(8),n.Q6J("ngModel",i.node.properties.cdrom_image),n.xp6(4),n.Q6J("ngModel",i.node.properties.replicate_network_connection_state),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(14),n.Q6J("ngModel",i.node.properties.initrd),n.xp6(7),n.Q6J("ngModel",i.node.properties.kernel_image),n.xp6(2),n.Q6J("ngModel",i.node.properties.kernel_command_line),n.xp6(12),n.Q6J("ngModel",i.node.properties.bios_image),n.xp6(6),n.Q6J("ngModel",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngIf",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngModel",i.node.properties.process_priority),n.xp6(1),n.Q6J("ngForOf",i.priorities),n.xp6(7),n.Q6J("ngModel",i.node.properties.options),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var UD=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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(FD,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.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()}}]),t}();function mZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Port : DLCI"),n.qZA())}function _Ze(t,r){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portIn)}}function gZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Port : DLCI"),n.qZA())}function vZe(t,r){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portOut)}}function yZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Actions"),n.qZA())}function bZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",25)(1,"button",26),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",27),n._uU(3,"delete"),n.qZA()()()}}function CZe(t,r){1&t&&n._UZ(0,"tr",28)}function wZe(t,r){1&t&&n._UZ(0,"tr",29)}function kZe(t,r){if(1&t&&(n.TgZ(0,"table",16),n.ynx(1,17),n.YNc(2,mZe,2,0,"th",18),n.YNc(3,_Ze,2,1,"td",19),n.BQk(),n.ynx(4,20),n.YNc(5,gZe,2,0,"th",18),n.YNc(6,vZe,2,1,"td",19),n.BQk(),n.ynx(7,21),n.YNc(8,yZe,2,0,"th",18),n.YNc(9,bZe,4,0,"td",19),n.BQk(),n.YNc(10,CZe,1,0,"tr",22),n.YNc(11,wZe,1,0,"tr",23),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.nodeMappingsDataSource),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}UD.\u0275fac=function(r){return new(r||UD)(n.Y36(ri),n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(vu),n.Y36(Qh))},UD.\u0275cmp=n.Xpm({type:UD,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(X5e,5),2&r)&&(n.iGM(i=n.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","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"],[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"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["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","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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,hZe,139,46,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,ne.wV,Un.R9,Ui,Tn,nw,rw,$y,dg,Zr],styles:[".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 HD=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceDlci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationDlci:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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="0",this.destinationPort="0",this.destinationDlci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,cn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Ut.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(f){o.e(f)}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,Ut.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Ex.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()}}]),t}();HD.\u0275fac=function(r){return new(r||HD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu))},HD.\u0275cmp=n.Xpm({type:HD,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["class","table","mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","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","",1,"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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),n.YNc(6,kZe,12,3,"table",4),n._UZ(7,"br"),n.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()(),n.TgZ(11,"form",5),n._uU(12," Source "),n.TgZ(13,"mat-form-field",6)(14,"input",8),n.NdJ("ngModelChange",function(o){return e.sourcePort=o}),n.qZA()(),n.TgZ(15,"mat-form-field",6)(16,"input",9),n.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),n.qZA()(),n._uU(17," Destination "),n.TgZ(18,"mat-form-field",6)(19,"input",10),n.NdJ("ngModelChange",function(o){return e.destinationPort=o}),n.qZA()(),n.TgZ(20,"mat-form-field",6)(21,"input",11),n.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),n.qZA()()(),n.TgZ(22,"button",12),n.NdJ("click",function(){return e.add()}),n._uU(23,"Add"),n.qZA()()()()(),n.TgZ(24,"div",13)(25,"button",14),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(26,"Cancel"),n.qZA(),n.TgZ(27,"button",15),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(28,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.nodeMappingsDataSource.length),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngModel",e.sourcePort),n.xp6(2),n.Q6J("ngModel",e.sourceDlci),n.xp6(3),n.Q6J("ngModel",e.destinationPort),n.xp6(2),n.Q6J("ngModel",e.destinationDlci))},directives:[Vr,Si,wt.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Zr],styles:[".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}",".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 TZe=["customAdapters"];function EZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function MZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}var Kj=function(){return{standalone:!0}};function SZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,EZe,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n.TgZ(11,"mat-form-field",11)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(13,"span",18),n._uU(14,"MB"),n.qZA()(),n.TgZ(15,"mat-form-field",11)(16,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(17,MZe,2,2,"mat-option",15),n.qZA()()(),n.TgZ(18,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.headless=a}),n._uU(19," Start VM in headless mode "),n.qZA()(),n.TgZ(20,"mat-tab",21),n._UZ(21,"br"),n.TgZ(22,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.use_any_adapter=a}),n._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),n.qZA(),n._UZ(24,"app-custom-adapters-table",22,23),n.qZA(),n.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,Kj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(18,Kj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(19,Kj))("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.node.properties.headless),n.xp6(4),n.Q6J("ngModel",i.node.properties.use_any_adapter),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(4),n.Q6J("ngModel",i.node.properties.usage)}}var jD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();jD.\u0275fac=function(r){return new(r||jD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(fg))},jD.\u0275cmp=n.Xpm({type:jD,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(TZe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,SZe,29,20,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,ne.wV,Un.R9,dg,Zr,Tn],styles:[".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 xZe=["customAdapters"];function DZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function AZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}var Jj=function(){return{standalone:!0}};function OZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,DZe,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n.TgZ(11,"mat-form-field",11)(12,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(13,AZe,2,2,"mat-option",15),n.qZA()()(),n.TgZ(14,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.headless=a}),n._uU(15," Start VM in headless mode "),n.qZA(),n._UZ(16,"br"),n.TgZ(17,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.linked_clone=a}),n._uU(18," Use a linked base VM (experimental) "),n.qZA()(),n.TgZ(19,"mat-tab",19),n._UZ(20,"br"),n.TgZ(21,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.use_any_adapter=a}),n._uU(22," Allow GNS3 to override non custom VMware adapter "),n.qZA(),n._UZ(23,"app-custom-adapters-table",20,21),n.qZA(),n.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,Jj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(18,Jj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(19,Jj))("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.node.properties.headless),n.xp6(3),n.Q6J("ngModel",i.node.properties.linked_clone),n.xp6(4),n.Q6J("ngModel",i.node.properties.use_any_adapter),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(4),n.Q6J("ngModel",i.node.properties.usage)}}var zD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function IZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}zD.\u0275fac=function(r){return new(r||zD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(pg))},zD.\u0275cmp=n.Xpm({type:zD,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(xZe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,OZe,28,20,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,wt.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,dg,Zr,Tn],styles:[".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 vie=function(){return{standalone:!0}},WD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();WD.\u0275fac=function(r){return new(r||WD)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu),n.Y36(tm))},WD.\u0275cmp=n.Xpm({type:WD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()(),n.TgZ(9,"mat-form-field",8)(10,"mat-select",9),n.NdJ("ngModelChange",function(o){return e.node.console_type=o}),n.YNc(11,IZe,2,2,"mat-option",10),n.qZA()(),n.TgZ(12,"mat-checkbox",11),n.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),n._uU(13," Auto start console "),n.qZA()()()()()(),n.TgZ(14,"div",12)(15,"button",13),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(16,"Cancel"),n.qZA(),n.TgZ(17,"button",14),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(18,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(8,vie))("ngModel",e.node.console_type),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(9,vie))("ngModel",e.node.console_auto_start))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,xi.gD,ne.On,wt.sg,sn.ey,Ui,Zr,Tn],styles:[".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 VD=function(){function t(r){(0,j.Z)(this,t),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,V.Z)(t,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(WD,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(LD,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(RD,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(AD,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(ZD,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(ND,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(UD,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(jD,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(zD,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(PD,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(BD,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(HD,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(xD,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),t}();function PZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"play_arrow"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start"),n.qZA()()}}VD.\u0275fac=function(r){return new(r||VD)(n.Y36(ri))},VD.\u0275cmp=n.Xpm({type:VD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.configureNode()}),n.TgZ(1,"mat-icon"),n._uU(2,"settings_applications"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Configure"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var YD=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})})}}]),t}();function RZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().suspendNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Suspend"),n.qZA()()}}YD.\u0275fac=function(r){return new(r||YD)(n.Y36(Xr),n.Y36($n))},YD.\u0275cmp=n.Xpm({type:YD,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,PZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStoppedStatus)},directives:[wt.O5,Hr,Vn],encapsulation:2});var GD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r}return(0,V.Z)(t,[{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){})})}}]),t}();function LZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().stopNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"stop"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Stop"),n.qZA()()}}GD.\u0275fac=function(r){return new(r||GD)(n.Y36(Xr))},GD.\u0275cmp=n.Xpm({type:GD,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,RZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStartedStatus)},directives:[wt.O5,Hr,Vn],encapsulation:2});var qD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r}return(0,V.Z)(t,[{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){})})}}]),t}();function ZZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().reloadNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"refresh"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Reload"),n.qZA()()}}qD.\u0275fac=function(r){return new(r||qD)(n.Y36(Xr))},qD.\u0275cmp=n.Xpm({type:qD,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,LZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStartedStatus)},directives:[wt.O5,Hr,Vn],encapsulation:2});var KD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r,this.filteredNodes=[]}return(0,V.Z)(t,[{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){})})}}]),t}();KD.\u0275fac=function(r){return new(r||KD)(n.Y36(Xr))},KD.\u0275cmp=n.Xpm({type:KD,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&&n.YNc(0,ZZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.filteredNodes.length>0)},directives:[wt.O5,Hr,Vn],encapsulation:2});var eu=function(){function t(r,e,i){(0,j.Z)(this,t),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new n.vpe,this.closeNodeConsoleTrigger=new qn.xQ,this.consoleResized=new qn.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,V.Z)(t,[{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(as.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws")}},{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){"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 for them: ",a=0;e.forEach(function(s){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)}}]),t}();eu.\u0275fac=function(r){return new(r||eu)(n.LFG(kr),n.LFG($n),n.LFG(fl))},eu.\u0275prov=n.Yz7({token:eu,factory:eu.\u0275fac});var JD=function(){function t(r){(0,j.Z)(this,t),this.nodeConsoleService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),t}();JD.\u0275fac=function(r){return new(r||JD)(n.Y36(eu))},JD.\u0275cmp=n.Xpm({type:JD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"http"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Web console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var QD=function(){function t(r){(0,j.Z)(this,t),this.nodeConsoleService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),t}();QD.\u0275fac=function(r){return new(r||QD)(n.Y36(eu))},QD.\u0275cmp=n.Xpm({type:QD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"http"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Web console in new tab"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var hm=m(9449);function XD(){XD=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var $D=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return Yi(this,void 0,void 0,XD().mark(function e(){var i,a,s,l,u;return XD().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(v){return"started"===v.status}).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,cn.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){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,XD().mark(function i(){return XD().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)}))}}]),t}();$D.\u0275fac=function(r){return new(r||$D)(n.Y36(sl),n.Y36(vr),n.Y36(hm.g),n.Y36($n),n.Y36(Xr))},$D.\u0275cmp=n.Xpm({type:$D,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.console()}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var eA=function(){function t(r,e){(0,j.Z)(this,t),this.toasterService=r,this.nodeService=e}return(0,V.Z)(t,[{key:"openConsole",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.startConsole()})}},{key:"startConsole",value:function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else if(("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),"telnet"===this.node.console_type||"vnc"===this.node.console_type||"spice"===this.node.console_type)try{location.assign("gns3+".concat(this.node.console_type,"://").concat(this.node.console_host,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id))}catch(e){this.toasterService.error(e)}else this.toasterService.error("Supported console types: telnet, vnc, spice.")}}]),t}();eA.\u0275fac=function(r){return new(r||eA)(n.Y36($n),n.Y36(Xr))},eA.\u0275cmp=n.Xpm({type:eA,selectors:[["app-console-device-action-browser"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var tA=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),t}();tA.\u0275fac=function(r){return new(r||tA)(n.Y36(sl))},tA.\u0275cmp=n.Xpm({type:tA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.open()}),n.TgZ(1,"mat-icon"),n._uU(2,"tab"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Open file explorer"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var nA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})}}]),t}();nA.\u0275fac=function(r){return new(r||nA)(n.Y36(Xr),n.Y36($n))},nA.\u0275cmp=n.Xpm({type:nA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.isolate()}),n.TgZ(1,"mat-icon"),n._uU(2,"gps_off"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Isolate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var rA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})}}]),t}();rA.\u0275fac=function(r){return new(r||rA)(n.Y36(Xr),n.Y36($n))},rA.\u0275cmp=n.Xpm({type:rA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.unisolate()}),n.TgZ(1,"mat-icon"),n._uU(2,"gps_not_fixed"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Un-isolate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var iA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();iA.\u0275fac=function(r){return new(r||iA)(n.Y36(Dr),n.Y36(Xr),n.Y36($n),n.Y36(ne.qu))},iA.\u0275cmp=n.Xpm({type:iA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()()()()()(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(13,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Change hostname for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Zr,Tn],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var oA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(iA,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),t}();oA.\u0275fac=function(r){return new(r||oA)(n.Y36(ri))},oA.\u0275cmp=n.Xpm({type:oA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.changeHostname()}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Change hostname"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var aA=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e}return(0,V.Z)(t,[{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()})}}]),t}();aA.\u0275fac=function(r){return new(r||aA)(n.Y36(Dr),n.Y36(Xr))},aA.\u0275cmp=n.Xpm({type:aA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),n.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),n.qZA()()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSelectClick()}),n._uU(9,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Change symbol for node: ",e.node.name,""),n.xp6(3),n.Q6J("controller",e.controller)("symbol",e.symbol))},directives:[Vr,bw,Zr,Tn],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 sA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(aA,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),t}();sA.\u0275fac=function(r){return new(r||sA)(n.Y36(ri))},sA.\u0275cmp=n.Xpm({type:sA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.changeSymbol()}),n.TgZ(1,"mat-icon"),n._uU(2,"find_replace"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Change symbol"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var us=function(){function t(r,e){(0,j.Z)(this,t),this.httpController=r,this.svgToDrawingConverter=e}return(0,V.Z)(t,[{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"),{})}}]),t}();us.\u0275fac=function(r){return new(r||us)(n.LFG(Wo.zw),n.LFG(Ep))},us.\u0275prov=n.Yz7({token:us,factory:us.\u0275fac});var La=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(DZ.o);La.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(La)))(e||La)}}(),La.\u0275prov=n.Yz7({token:La,factory:La.\u0275fac});var lA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,V.Z)(t,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,cn.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,cn.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var f=u.value;this.drawingService.duplicate(this.controller,f.project_id,f).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)))}}]),t}();lA.\u0275fac=function(r){return new(r||lA)(n.Y36(Xr),n.Y36(ls.G),n.Y36(us),n.Y36(La),n.Y36($n))},lA.\u0275cmp=n.Xpm({type:lA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.duplicate()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_none"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Duplicate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var $c=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i,o="";if(e.element instanceof dm)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,'"/>'):'<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,'" />'));else if(e.element instanceof sa)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 E0)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 M0))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>")}}]),t}();$c.\u0275fac=function(r){return new(r||$c)},$c.\u0275prov=n.Yz7({token:$c,factory:$c.\u0275fac});var Rg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),t}();function NZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}Rg.\u0275fac=function(r){return new(r||Rg)},Rg.\u0275prov=n.Yz7({token:Rg,factory:Rg.\u0275fac});var Qj=function(){return{standalone:!0}},uA=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,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 ne.NI("",[ne.kI.required,u.get]),rotation:new ne.NI("",[ne.kI.required,f.get])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e,i;this.element=new BZe,this.drawing.element instanceof dm||this.drawing.element instanceof sa?(this.element.fill=this.drawing.element.fill,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 E0&&(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),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 dm||this.drawing.element instanceof sa?(this.drawing.element.fill=this.element.fill,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 E0&&(""!=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);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")}}]),t}();uA.\u0275fac=function(r){return new(r||uA)(n.Y36(Dr),n.Y36(lm),n.Y36($c),n.Y36(us),n.Y36(La),n.Y36(ne.qu),n.Y36($n),n.Y36(tf),n.Y36(Rg),n.Y36(wu))},uA.\u0275cmp=n.Xpm({type:uA,selectors:[["app-style-editor"]],decls:20,vars:11,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number"],["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"],[3,"value"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1,"Style editor"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"input",4),n.NdJ("ngModelChange",function(o){return e.element.fill=o}),n.qZA()(),n.TgZ(6,"mat-form-field",3)(7,"input",5),n.NdJ("ngModelChange",function(o){return e.element.stroke=o}),n.qZA()(),n.TgZ(8,"mat-form-field",3),n._UZ(9,"input",6),n.qZA(),n.TgZ(10,"mat-form-field",3)(11,"mat-select",7),n.NdJ("ngModelChange",function(o){return e.element.stroke_dasharray=o}),n.YNc(12,NZe,2,2,"mat-option",8),n.qZA()(),n.TgZ(13,"mat-form-field",3),n._UZ(14,"input",9),n.qZA()()(),n.TgZ(15,"div",10)(16,"button",11),n.NdJ("click",function(){return e.onNoClick()}),n._uU(17,"Cancel"),n.qZA(),n.TgZ(18,"button",12),n.NdJ("click",function(){return e.onYesClick()}),n._uU(19,"Apply"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.formGroup),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(8,Qj))("ngModel",e.element.fill),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(9,Qj))("ngModel",e.element.stroke),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(10,Qj))("ngModel",e.element.stroke_dasharray),n.xp6(1),n.Q6J("ngForOf",e.borderTypes))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ne.wV,ne.u,xi.gD,wt.sg,sn.ey,Zr,Tn],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 BZe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function FZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().editStyle()}),n.TgZ(1,"mat-icon"),n._uU(2,"style"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit style"),n.qZA()()}}var cA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r,this.isImageDrawing=!1}return(0,V.Z)(t,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof uN}},{key:"editStyle",value:function(){var i=this.dialog.open(uA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),t}();cA.\u0275fac=function(r){return new(r||cA)(n.Y36(ri))},cA.\u0275cmp=n.Xpm({type:cA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,FZe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.isImageDrawing)},directives:[wt.O5,Hr,Vn],encapsulation:2});var UZe=["textArea"],dA=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G){(0,j.Z)(this,t),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=f,this.linksDataSource=h,this.formBuilder=v,this.toasterService=C,this.rotationValidator=B,this.fontFixer=G}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new ne.NI("",[ne.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 M0,o=(0,cn.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)}}]),t}();dA.\u0275fac=function(r){return new(r||dA)(n.Y36(Dr),n.Y36(lm),n.Y36($c),n.Y36(us),n.Y36(La),n.Y36(n.Qsj),n.Y36(Xr),n.Y36(ls.G),n.Y36(pl),n.Y36(pm.F),n.Y36(ne.qu),n.Y36($n),n.Y36(Rg),n.Y36(vs))},dA.\u0275cmp=n.Xpm({type:dA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(UZe,7),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1,"Text editor"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),n.qZA()(),n.TgZ(5,"form",4)(6,"mat-form-field",2),n._UZ(7,"input",5),n.qZA()(),n.TgZ(8,"textarea",6,7),n.NdJ("ngModelChange",function(o){return e.element.text=o}),n.qZA()(),n.TgZ(10,"div",8)(11,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(12,"Cancel"),n.qZA(),n.TgZ(13,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(14,"Apply"),n.qZA()()),2&r&&(n.xp6(4),n.Q6J("ngModel",e.element.fill),n.xp6(1),n.Q6J("formGroup",e.formGroup),n.xp6(3),n.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},directives:[Vr,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ne._Y,ne.JL,ne.sg,ne.u,Zr,Tn],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 fA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(dA,{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}}]),t}();function HZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"textarea",7,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().config=a}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.config)}}function jZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().config=a}),n.qZA()(),n.TgZ(4,"mat-tab",11)(5,"textarea",10,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().privateConfig=a}),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngModel",i.config),n.xp6(3),n.Q6J("ngModel",i.privateConfig)}}fA.\u0275fac=function(r){return new(r||fA)(n.Y36(ri))},fA.\u0275cmp=n.Xpm({type:fA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.editText()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit text"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var pA=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,V.Z)(t,[{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()}}]),t}();function zZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().editConfig()}),n.TgZ(1,"mat-icon"),n._uU(2,"settings"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit config"),n.qZA()()}}pA.\u0275fac=function(r){return new(r||pA)(n.Y36(Dr),n.Y36(Xr),n.Y36($n))},pA.\u0275cmp=n.Xpm({type:pA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,HZe,3,1,"div",1),n.YNc(3,jZe,7,2,"mat-tab-group",2),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(6,"Cancel"),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(8,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configuration for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf","vpcs"===e.node.node_type),n.xp6(1),n.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},directives:[Vr,wt.O5,ne.Fj,ne.JJ,ne.On,so.SP,so.uX,Zr,Tn],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var hA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"editConfig",value:function(){var i=this.dialog.open(pA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),t}();hA.\u0275fac=function(r){return new(r||hA)(n.Y36(ri))},hA.\u0275cmp=n.Xpm({type:hA,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&&n.YNc(0,zZe,5,0,"button",0),2&r&&n.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},directives:[wt.O5,Hr,Vn],encapsulation:2});var $w=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),t}();function WZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().exportConfig()}),n.TgZ(1,"mat-icon"),n._uU(2,"call_made"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Export config"),n.qZA()()}}$w.\u0275fac=function(r){return new(r||$w)(n.Y36(Dr))},$w.\u0275cmp=n.Xpm({type:$w,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&&(n.TgZ(0,"h1",0),n._uU(1,"Choose configuration file"),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),n.NdJ("click",function(){return e.close("startup-config")}),n._uU(6,"startup configuration"),n.qZA()(),n.TgZ(7,"div")(8,"button",3),n.NdJ("click",function(){return e.close("private-config")}),n._uU(9,"private configuration"),n.qZA()()()())},directives:[Vr,Tn],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var mA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.dialog=e}return(0,V.Z)(t,[{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($w,{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)}}]),t}();mA.\u0275fac=function(r){return new(r||mA)(n.Y36(Xr),n.Y36(ri))},mA.\u0275cmp=n.Xpm({type:mA,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&&n.YNc(0,WZe,5,0,"button",0),2&r&&n.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},directives:[wt.O5,Hr,Vn],encapsulation:2});var VZe=["fileInput"],_A=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,V.Z)(t,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open($w,{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)}}]),t}();_A.\u0275fac=function(r){return new(r||_A)(n.Y36(Xr),n.Y36($n),n.Y36(ri))},_A.\u0275cmp=n.Xpm({type:_A,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(VZe,5),2&r)&&(n.iGM(i=n.CRH())&&(e.fileInput=i.first))},inputs:{controller:"controller",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"input",0,1),n.NdJ("change",function(o){return e.importConfig(o)}),n.qZA(),n.TgZ(2,"button",2),n.NdJ("click",function(){return e.triggerClick()}),n.TgZ(3,"mat-icon"),n._uU(4,"call_received"),n.qZA(),n.TgZ(5,"span"),n._uU(6,"Import config"),n.qZA()())},directives:[Hr,Vn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var gA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{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){})})}}]),t}();gA.\u0275fac=function(r){return new(r||gA)(n.Y36(ls.G),n.Y36(La),n.Y36(Xr),n.Y36(us))},gA.\u0275cmp=n.Xpm({type:gA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.moveLayerUp()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_up"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Move layer up"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var vA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{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){})})}}]),t}();vA.\u0275fac=function(r){return new(r||vA)(n.Y36(ls.G),n.Y36(La),n.Y36(Xr),n.Y36(us))},vA.\u0275cmp=n.Xpm({type:vA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.moveLayerDown()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_down"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Move layer down"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var yA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,$t.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,$t.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){})})}}]),t}();yA.\u0275fac=function(r){return new(r||yA)(n.Y36(ls.G),n.Y36(La),n.Y36(Xr),n.Y36(us))},yA.\u0275cmp=n.Xpm({type:yA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.bringToFront()}),n.TgZ(1,"mat-icon"),n._uU(2,"vertical_align_top"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Bring to front"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var Lg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"startCapture",value:function(e,i,o,a){location.assign("gns3+pcap://".concat(e.host,":").concat(e.port,"?project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&name=").concat(a))}}]),t}();function YZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}Lg.\u0275fac=function(r){return new(r||Lg)},Lg.\u0275prov=n.Yz7({token:Lg,factory:Lg.\u0275fac});var GZe=function(){return{standalone:!0}},bA=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),fileName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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))}},{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()}}]),t}();function qZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"loupe"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start capture"),n.qZA()()}}bA.\u0275fac=function(r){return new(r||bA)(n.Y36(Dr),n.Y36(pl),n.Y36(ne.qu),n.Y36($n),n.Y36(ls.G),n.Y36(Lg))},bA.\u0275cmp=n.Xpm({type:bA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Packet capture"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),n.YNc(6,YZe,2,2,"mat-option",5),n.qZA()(),n.TgZ(7,"mat-form-field",3),n._UZ(8,"input",6),n.qZA(),n.TgZ(9,"mat-checkbox",7),n.NdJ("ngModelChange",function(o){return e.startProgram=o}),n._uU(10," Start the capture visualization program "),n.qZA()()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(15,"Ok"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngForOf",e.linkTypes),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(4,GZe))("ngModel",e.startProgram))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,xi.gD,ne.JJ,ne.u,ne.Fj,wt.sg,sn.ey,sr,Ui,ne.On,Zr,Tn],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var CA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"startCapture",value:function(){var i=this.dialog.open(bA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();function KZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().stopCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause_circle_filled"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Stop capture"),n.qZA()()}}CA.\u0275fac=function(r){return new(r||CA)(n.Y36(ri))},CA.\u0275cmp=n.Xpm({type:CA,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&&n.YNc(0,qZe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.link.capturing)},directives:[wt.O5,Hr,Vn],encapsulation:2});var wA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),t}();function JZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"search"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start Wireshark"),n.qZA()()}}wA.\u0275fac=function(r){return new(r||wA)(n.Y36(pl))},wA.\u0275cmp=n.Xpm({type:wA,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&&n.YNc(0,KZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.capturing)},directives:[wt.O5,Hr,Vn],encapsulation:2});var kA=function(){function t(r){(0,j.Z)(this,t),this.packetCaptureService=r}return(0,V.Z)(t,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),t}();function QZe(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"h6"),n._uU(2),n.qZA(),n.TgZ(3,"span",6),n._uU(4),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.hij(" ",e.description," ")}}kA.\u0275fac=function(r){return new(r||kA)(n.Y36(Lg))},kA.\u0275cmp=n.Xpm({type:kA,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&&n.YNc(0,JZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.capturing)},directives:[wt.O5,Hr,Vn],encapsulation:2});var TA=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),t}();function XZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.frequency_drop[0]=a}),n.qZA()()(),n.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.packet_loss[0]=a}),n.qZA()()(),n.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.delay[0]=a}),n.qZA()(),n.TgZ(10,"mat-form-field",10)(11,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.delay[1]=a}),n.qZA()()(),n.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.corrupt[0]=a}),n.qZA()()(),n.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.bpf[0]=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngModel",i.filters.frequency_drop[0]),n.xp6(3),n.Q6J("ngModel",i.filters.packet_loss[0]),n.xp6(3),n.Q6J("ngModel",i.filters.delay[0]),n.xp6(2),n.Q6J("ngModel",i.filters.delay[1]),n.xp6(3),n.Q6J("ngModel",i.filters.corrupt[0]),n.xp6(3),n.Q6J("ngModel",i.filters.bpf[0])}}TA.\u0275fac=function(r){return new(r||TA)(n.Y36(Dr))},TA.\u0275cmp=n.Xpm({type:TA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,QZe,5,2,"div",2),n.qZA(),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(6,"Close"),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.title),n.xp6(2),n.Q6J("ngForOf",e.messages))},directives:[Vr,wt.sg,Zr,Tn],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var EA=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,V.Z)(t,[{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(TA,{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}}]),t}();EA.\u0275fac=function(r){return new(r||EA)(n.Y36(Dr),n.Y36(pl),n.Y36(ri))},EA.\u0275cmp=n.Xpm({type:EA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Packet filters"),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,XZe,18,6,"mat-tab-group",2),n.qZA(),n.TgZ(4,"div",3),n._UZ(5,"div",4),n.TgZ(6,"div",5)(7,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(8,"Cancel"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){return e.onResetClick()}),n._uU(10,"Reset"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onYesClick()}),n._uU(12,"Apply"),n.qZA(),n._UZ(13,"div",8),n.TgZ(14,"button",6),n.NdJ("click",function(){return e.onHelpClick()}),n._uU(15,"Help"),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("ngIf",e.filters))},directives:[Vr,wt.O5,so.SP,so.uX,Un.KE,sr,ne.wV,ne.Fj,ne.JJ,ne.On,Zr,Tn],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 MA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(EA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();function $Ze(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().resumeLink()}),n.TgZ(1,"mat-icon"),n._uU(2,"play_arrow"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Resume"),n.qZA()()}}MA.\u0275fac=function(r){return new(r||MA)(n.Y36(ri))},MA.\u0275cmp=n.Xpm({type:MA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openPacketFilters()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_list"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Packet filters"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var SA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),t}();function eNe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().suspendLink()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Suspend"),n.qZA()()}}SA.\u0275fac=function(r){return new(r||SA)(n.Y36(pl))},SA.\u0275cmp=n.Xpm({type:SA,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&&n.YNc(0,$Ze,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.suspend)},directives:[wt.O5,Hr,Vn],encapsulation:2});var xA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),t}();function tNe(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}xA.\u0275fac=function(r){return new(r||xA)(n.Y36(pl))},xA.\u0275cmp=n.Xpm({type:xA,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&&n.YNc(0,eNe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.link.suspend)},directives:[wt.O5,Hr,Vn],encapsulation:2});var DA=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,u.get]),type:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e,i;(null===(e=this.link.link_style)||void 0===e?void 0: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?void 0: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")}}]),t}();DA.\u0275fac=function(r){return new(r||DA)(n.Y36(Dr),n.Y36(ne.qu),n.Y36($n),n.Y36(pl),n.Y36(pm.F),n.Y36(Qc),n.Y36(kg),n.Y36(tf))},DA.\u0275cmp=n.Xpm({type:DA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Style editor"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),n._UZ(5,"input",4),n.qZA(),n.TgZ(6,"mat-form-field",3),n._UZ(7,"input",5),n.qZA(),n.TgZ(8,"mat-form-field",3)(9,"mat-select",6),n.YNc(10,tNe,2,2,"mat-option",7),n.qZA()()()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(15,"Apply"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.formGroup),n.xp6(7),n.Q6J("ngForOf",e.borderTypes))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,xi.gD,wt.sg,sn.ey,Zr,Tn],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 AA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(DA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();function Xj(){Xj=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}AA.\u0275fac=function(r){return new(r||AA)(n.Y36(ri))},AA.\u0275cmp=n.Xpm({type:AA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[n.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.editStyle()}),n.TgZ(1,"mat-icon"),n._uU(2,"style"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit style"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var OA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,V.Z)(t,[{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,Xj().mark(function e(){var i=this;return Xj().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)}))}}]),t}();OA.\u0275fac=function(r){return new(r||OA)(n.Y36(ls.G),n.Y36(La),n.Y36(Xr),n.Y36(us),n.Y36(dl.Y))},OA.\u0275cmp=n.Xpm({type:OA,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[n.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.lock()}),n.TgZ(1,"mat-icon"),n._uU(2,"lock"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&r&&(n.xp6(4),n.Oqu(e.command))},directives:[Hr,Vn],encapsulation:2});var IA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=l}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(Xc);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){e.nodesDataSource.remove(i),e.nodeService.delete(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){e.drawingsDataSource.remove(i),e.drawingService.delete(e.controller,i).subscribe(function(o){})}),this.links.forEach(function(i){e.linksDataSource.remove(i),e.linkService.deleteLink(e.controller,i).subscribe(function(){})})}}]),t}();IA.\u0275fac=function(r){return new(r||IA)(n.Y36(ls.G),n.Y36(La),n.Y36(pm.F),n.Y36(Xr),n.Y36(us),n.Y36(pl),n.Y36(ef))},IA.\u0275cmp=n.Xpm({type:IA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.confirmDelete()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Delete"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var PA=function(){function t(r,e){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e}return(0,V.Z)(t,[{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){})})}}]),t}();PA.\u0275fac=function(r){return new(r||PA)(n.Y36(ls.G),n.Y36(Xr))},PA.\u0275cmp=n.Xpm({type:PA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.alignHorizontally()}),n.TgZ(1,"mat-icon"),n._uU(2,"more_horiz"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Align horizontally"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var RA=function(){function t(r,e){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e}return(0,V.Z)(t,[{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){})})}}]),t}();function nNe(t,r){if(1&t&&n._UZ(0,"app-show-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function rNe(t,r){if(1&t&&n._UZ(0,"app-config-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function iNe(t,r){if(1&t&&n._UZ(0,"app-start-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function oNe(t,r){if(1&t&&n._UZ(0,"app-suspend-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function aNe(t,r){if(1&t&&n._UZ(0,"app-stop-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function sNe(t,r){if(1&t&&n._UZ(0,"app-reload-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function lNe(t,r){if(1&t&&n._UZ(0,"app-http-console-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function uNe(t,r){if(1&t&&n._UZ(0,"app-http-console-new-tab-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function cNe(t,r){if(1&t&&n._UZ(0,"app-console-device-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function dNe(t,r){if(1&t&&n._UZ(0,"app-console-device-action-browser",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function fNe(t,r){if(1&t&&n._UZ(0,"app-open-file-explorer-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function pNe(t,r){if(1&t&&n._UZ(0,"app-isolate-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function hNe(t,r){if(1&t&&n._UZ(0,"app-unisolate-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function mNe(t,r){if(1&t&&n._UZ(0,"app-change-hostname-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function _Ne(t,r){if(1&t&&n._UZ(0,"app-change-symbol-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function gNe(t,r){if(1&t&&n._UZ(0,"app-duplicate-action",16),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function vNe(t,r){if(1&t&&n._UZ(0,"app-edit-style-action",17),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function yNe(t,r){if(1&t&&n._UZ(0,"app-edit-text-action",18),2&t){var e=n.oxw();n.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 bNe(t,r){if(1&t&&n._UZ(0,"app-edit-config-action",19),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function CNe(t,r){if(1&t&&n._UZ(0,"app-export-config-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function wNe(t,r){if(1&t&&n._UZ(0,"app-import-config-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function kNe(t,r){if(1&t&&n._UZ(0,"app-move-layer-up-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function TNe(t,r){if(1&t&&n._UZ(0,"app-move-layer-down-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function ENe(t,r){if(1&t&&n._UZ(0,"app-bring-to-front-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function MNe(t,r){if(1&t&&n._UZ(0,"app-start-capture-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function SNe(t,r){if(1&t&&n._UZ(0,"app-stop-capture-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function xNe(t,r){if(1&t&&n._UZ(0,"app-start-capture-on-started-link-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function DNe(t,r){if(1&t&&n._UZ(0,"app-packet-filters-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function ANe(t,r){if(1&t&&n._UZ(0,"app-resume-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function ONe(t,r){if(1&t&&n._UZ(0,"app-suspend-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function INe(t,r){if(1&t&&n._UZ(0,"app-reset-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function PNe(t,r){if(1&t&&n._UZ(0,"app-edit-link-style-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function RNe(t,r){if(1&t&&n._UZ(0,"app-lock-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function LNe(t,r){if(1&t&&n._UZ(0,"app-delete-action",23),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function ZNe(t,r){if(1&t&&n._UZ(0,"app-align-horizontally-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function NNe(t,r){if(1&t&&n._UZ(0,"app-align-vertically-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}RA.\u0275fac=function(r){return new(r||RA)(n.Y36(ls.G),n.Y36(Xr))},RA.\u0275cmp=n.Xpm({type:RA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.alignVertically()}),n.TgZ(1,"mat-icon"),n._uU(2,"more_vert"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Align vertically"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var ek=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{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 M0,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}}]),t}();function BNe(t,r){if(1&t&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function FNe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw(2)._changePageSize(a.value)}),n.YNc(2,BNe,2,2,"mat-option",18),n.qZA()()}if(2&t){var i=n.oxw(2);n.Q6J("appearance",i._formFieldAppearance)("color",i.color),n.xp6(1),n.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",i._displayedPageSizeOptions)}}function UNe(t,r){if(1&t&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function HNe(t,r){if(1&t&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,FNe,3,6,"mat-form-field",14),n.YNc(4,UNe,2,1,"div",15),n.qZA()),2&t){var e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function jNe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().firstPage()}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),n.uIk("aria-label",i._intl.firstPageLabel)}}function zNe(t,r){if(1&t){var e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){return n.CHM(e),n.oxw().lastPage()}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),n.uIk("aria-label",i._intl.lastPageLabel)}}ek.\u0275fac=function(r){return new(r||ek)(n.Y36(An.H7),n.Y36(n.sBO),n.Y36(sl),n.Y36(dl.Y))},ek.\u0275cmp=n.Xpm({type:ek,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Pa,5),2&r)&&(n.iGM(i=n.CRH())&&(e.contextMenu=i.first))},inputs:{project:"project",controller:"controller"},decls:40,vars:41,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&&(n.TgZ(0,"div",0),n._UZ(1,"span",1),n.TgZ(2,"mat-menu",2,3),n.YNc(4,nNe,1,2,"app-show-node-action",4),n.YNc(5,rNe,1,2,"app-config-node-action",4),n.YNc(6,iNe,1,2,"app-start-node-action",5),n.YNc(7,oNe,1,2,"app-suspend-node-action",5),n.YNc(8,aNe,1,2,"app-stop-node-action",5),n.YNc(9,sNe,1,2,"app-reload-node-action",5),n.YNc(10,lNe,1,2,"app-http-console-action",5),n.YNc(11,uNe,1,2,"app-http-console-new-tab-action",5),n.YNc(12,cNe,1,2,"app-console-device-action",5),n.YNc(13,dNe,1,2,"app-console-device-action-browser",4),n.YNc(14,fNe,1,2,"app-open-file-explorer-action",4),n.YNc(15,pNe,1,2,"app-isolate-node-action",4),n.YNc(16,hNe,1,2,"app-unisolate-node-action",4),n.YNc(17,mNe,1,2,"app-change-hostname-action",4),n.YNc(18,_Ne,1,2,"app-change-symbol-action",4),n.YNc(19,gNe,1,4,"app-duplicate-action",6),n.YNc(20,vNe,1,3,"app-edit-style-action",7),n.YNc(21,yNe,1,7,"app-edit-text-action",8),n.YNc(22,bNe,1,3,"app-edit-config-action",9),n.YNc(23,CNe,1,2,"app-export-config-action",4),n.YNc(24,wNe,1,2,"app-import-config-action",4),n.YNc(25,kNe,1,3,"app-move-layer-up-action",10),n.YNc(26,TNe,1,3,"app-move-layer-down-action",10),n.YNc(27,ENe,1,3,"app-bring-to-front-action",10),n.YNc(28,MNe,1,3,"app-start-capture-action",11),n.YNc(29,SNe,1,2,"app-stop-capture-action",12),n.YNc(30,xNe,1,3,"app-start-capture-on-started-link-action",11),n.YNc(31,DNe,1,3,"app-packet-filters-action",11),n.YNc(32,ANe,1,2,"app-resume-link-action",12),n.YNc(33,ONe,1,2,"app-suspend-link-action",12),n.YNc(34,INe,1,2,"app-reset-link-action",12),n.YNc(35,PNe,1,3,"app-edit-link-style-action",11),n.YNc(36,RNe,1,3,"app-lock-action",10),n.YNc(37,LNe,1,4,"app-delete-action",13),n.YNc(38,ZNe,1,2,"app-align-horizontally-action",5),n.YNc(39,NNe,1,2,"app-align-vertically-action",5),n.qZA()()),2&r){var i=n.MAs(3);n.Udp("left",e.leftPosition)("top",e.topPosition),n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(3),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},directives:[Pa,ss,wt.O5,SD,VD,YD,GD,qD,KD,JD,QD,$D,eA,tA,nA,rA,oA,sA,lA,cA,fA,hA,mA,_A,gA,vA,yA,CA,wA,kA,MA,SA,xA,AA,OA,IA,PA,RA],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 mm=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.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)}});mm.\u0275fac=function(r){return new(r||mm)},mm.\u0275prov=n.Yz7({token:mm,factory:mm.\u0275fac,providedIn:"root"});var VNe={provide:mm,deps:[[new n.FiY,new n.tp0,mm]],useFactory:function WNe(t){return t||new mm}},GNe=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),qNe=(0,sn.Id)((0,sn.dB)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),gN=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;if((0,j.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.page=new n.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,f=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=f&&(s._hidePageSize=f),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,V.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,Hn.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,Hn.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,Hn.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,Hn.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,Hn.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,Hn.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}(qNe);gN.\u0275fac=function(r){n.$Z()},gN.\u0275dir=n.lG2({type:gN,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[n.qOj]});var ed=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,V.Z)(e)}(gN);ed.\u0275fac=function(r){return new(r||ed)(n.Y36(mm),n.Y36(n.sBO),n.Y36(GNe,8))},ed.\u0275cmp=n.Xpm({type:ed,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.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","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&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,HNe,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,jNe,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return e.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return e.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,zNe,3,5,"button",11),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("ngIf",!e.hidePageSize),n.xp6(3),n.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),n.xp6(1),n.Q6J("ngIf",e.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",e.showFirstLastButtons))},directives:[Un.KE,xi.gD,sn.ey,Tn,wt.O5,wt.sg,vi],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0});var tk=(0,V.Z)(function t(){(0,j.Z)(this,t)});tk.\u0275fac=function(r){return new(r||tk)},tk.\u0275mod=n.oAB({type:tk}),tk.\u0275inj=n.cJS({providers:[VNe],imports:[[wt.ez,Fh,xi.LD,Ky,sn.BQ]]});var KNe=m(1452),nk=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),t}();function JNe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function QNe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.hij("Console type: ",e.appliance.qemu.console_type,"")}}nk.\u0275fac=function(r){return new(r||nk)(n.Y36(Dr))},nk.\u0275cmp=n.Xpm({type:nk,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&&(n.TgZ(0,"span"),n._uU(1),n.qZA(),n.TgZ(2,"div",0)(3,"button",1),n.NdJ("click",function(){return e.onNoClick()}),n._uU(4,"No"),n.qZA(),n.TgZ(5,"button",2),n.NdJ("click",function(){return e.onYesClick()}),n._uU(6," Yes "),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.confirmationMessage))},directives:[Zr,Tn],styles:[""]});var LA=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),t}();LA.\u0275fac=function(r){return new(r||LA)(n.Y36(Dr),n.Y36(Vo))},LA.\u0275cmp=n.Xpm({type:LA,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.qZA()(),n.TgZ(3,"div",2)(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.qZA(),n.TgZ(8,"div"),n._uU(9),n.qZA(),n.YNc(10,JNe,2,1,"div",3),n.YNc(11,QNe,2,1,"div",3),n.qZA(),n.TgZ(12,"div",4)(13,"button",5),n.NdJ("click",function(){return e.onNoClick()}),n._uU(14,"Close"),n.qZA()()),2&r&&(n.xp6(2),n.Oqu(e.appliance.name),n.xp6(3),n.hij("Vendor: ",e.appliance.vendor_name,""),n.xp6(2),n.hij("Status: ",e.appliance.status,""),n.xp6(2),n.hij("Maintainer: ",e.appliance.maintainer,""),n.xp6(1),n.Q6J("ngIf",e.appliance.qemu),n.xp6(1),n.Q6J("ngIf",e.appliance.qemu))},directives:[Vr,_u,wt.O5,Zr,Tn],encapsulation:2});var XNe=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function $Ne(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template name is required"),n.qZA())}function eBe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template name is incorrect"),n.qZA())}function tBe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template with this name exists"),n.qZA())}var nBe=function(r){return{"is-invalid":r}},Zg=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(i,[ne.kI.required,this.templateNameValidator.get],[XNe(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()}}]),t}();Zg.\u0275fac=function(r){return new(r||Zg)(n.Y36(Dr),n.Y36(kr),n.Y36(ri),n.Y36($n),n.Y36(ne.qu),n.Y36(ku),n.Y36(Gd),n.Y36(Vo))},Zg.\u0275cmp=n.Xpm({type:Zg,selectors:[["app-template-name-dialog"]],features:[n._Bn([ku])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Please enter name for the new template"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,$Ne,2,0,"mat-error",4),n.YNc(6,eBe,2,0,"mat-error",4),n.YNc(7,tBe,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"div",5)(9,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(12," Add template "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,nBe,null==e.form.templateName?null:e.form.templateName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var F0=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(as.N.current_version,"/images/upload/").concat(o,"?allow_raw_image=true")}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),t}();F0.\u0275fac=function(r){return new(r||F0)(n.LFG(Wo.zw))},F0.\u0275prov=n.Yz7({token:F0,factory:F0.\u0275fac});function iBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(e),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(e),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",i._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",i._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",i._getArrowDirectionState())}}var Ng=sn.mZ.ENTERING+" "+sn.yN.STANDARD_CURVE,rk={indicator:(0,rn.X$)("indicator",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"translateY(0px)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"translateY(10px)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Ng))]),leftPointer:(0,rn.X$)("leftPointer",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"rotate(-45deg)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"rotate(45deg)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Ng))]),rightPointer:(0,rn.X$)("rightPointer",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"rotate(45deg)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"rotate(-45deg)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Ng))]),arrowOpacity:(0,rn.X$)("arrowOpacity",[(0,rn.SB)("desc-to-active, asc-to-active, active",(0,rn.oB)({opacity:1})),(0,rn.SB)("desc-to-hint, asc-to-hint, hint",(0,rn.oB)({opacity:.54})),(0,rn.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,rn.oB)({opacity:0})),(0,rn.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,rn.jt)("0ms")),(0,rn.eR)("* <=> *",(0,rn.jt)(Ng))]),arrowPosition:(0,rn.X$)("arrowPosition",[(0,rn.eR)("* => desc-to-hint, * => desc-to-active",(0,rn.jt)(Ng,(0,rn.F4)([(0,rn.oB)({transform:"translateY(-25%)"}),(0,rn.oB)({transform:"translateY(0)"})]))),(0,rn.eR)("* => hint-to-desc, * => active-to-desc",(0,rn.jt)(Ng,(0,rn.F4)([(0,rn.oB)({transform:"translateY(0)"}),(0,rn.oB)({transform:"translateY(25%)"})]))),(0,rn.eR)("* => asc-to-hint, * => asc-to-active",(0,rn.jt)(Ng,(0,rn.F4)([(0,rn.oB)({transform:"translateY(25%)"}),(0,rn.oB)({transform:"translateY(0)"})]))),(0,rn.eR)("* => hint-to-asc, * => active-to-asc",(0,rn.jt)(Ng,(0,rn.F4)([(0,rn.oB)({transform:"translateY(0)"}),(0,rn.oB)({transform:"translateY(-25%)"})]))),(0,rn.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,rn.oB)({transform:"translateY(0)"})),(0,rn.SB)("hint-to-desc, active-to-desc, desc",(0,rn.oB)({transform:"translateY(-25%)"})),(0,rn.SB)("hint-to-asc, active-to-asc, asc",(0,rn.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,rn.X$)("allowChildren",[(0,rn.eR)("* <=> *",[(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])])};var _m=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.xQ});_m.\u0275fac=function(r){return new(r||_m)},_m.\u0275prov=n.Yz7({token:_m,factory:_m.\u0275fac,providedIn:"root"});var sBe={provide:_m,deps:[[new n.FiY,new n.tp0,_m]],useFactory:function aBe(t){return t||new _m}},lBe=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),uBe=(0,sn.dB)((0,sn.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),td=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new qn.xQ,o.start="asc",o._direction="",o.sortChange=new n.vpe,o}return(0,V.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,Hn.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?void 0:l.disableClear),f=function cBe(t,r){var e=["asc","desc"];return"desc"==t&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=f.indexOf(this.direction)+1;return h>=f.length&&(h=0),f[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(uBe);td.\u0275fac=function(r){return new(r||td)(n.Y36(lBe,8))},td.\u0275dir=n.lG2({type:td,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:[n.qOj,n.TTD]});var dBe=(0,sn.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),gm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this))._intl=i,h._changeDetectorRef=o,h._sort=a,h._columnDef=s,h._focusMonitor=l,h._elementRef=u,h._ariaDescriber=f,h._showIndicatorHint=!1,h._viewState={},h._arrowDirection="",h._disableViewStateAnimation=!1,h.arrowPosition="after",h._sortActionDescription="Sort",h._handleStateChanges(),h}return(0,V.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,Hn.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===Gr.L_||o.keyCode===Gr.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,To.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}(dBe);gm.\u0275fac=function(r){return new(r||gm)(n.Y36(_m),n.Y36(n.sBO),n.Y36(td,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(Oi.tE),n.Y36(n.SBq),n.Y36(Oi.$s,8))},gm.\u0275cmp=n.Xpm({type:gm,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&n.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&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.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:[n.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&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,iBe,6,6,"div",2),n.qZA()),2&r&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[wt.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-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}\n"],encapsulation:2,data:{animation:[rk.indicator,rk.leftPointer,rk.rightPointer,rk.arrowOpacity,rk.arrowPosition,rk.allowChildren]},changeDetection:0});var ik=(0,V.Z)(function t(){(0,j.Z)(this,t)});ik.\u0275fac=function(r){return new(r||ik)},ik.\u0275mod=n.oAB({type:ik}),ik.\u0275inj=n.cJS({providers:[sBe],imports:[[wt.ez,sn.BQ]]});var ZA=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),t}();ZA.\u0275fac=function(r){return new(r||ZA)},ZA.\u0275pipe=n.Yjl({name:"datasourcefilter",type:ZA,pure:!0});var fBe=["stepper"];function pBe(t,r){1&t&&n._uU(0,"Please select how you want to create new template")}function hBe(t,r){if(1&t&&n._uU(0),2&t){var e=n.oxw();n.Oqu(e.actionTitle)}}function mBe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function _Be(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}function gBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function vBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Emulator "),n.qZA())}function yBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.emulator," ")}}function bBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Vendor "),n.qZA())}function CBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.vendor_name," ")}}function wBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function kBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",34)(1,"button",35),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().install(a)}),n.TgZ(2,"mat-icon",36),n._uU(3,"archive"),n.qZA()(),n.TgZ(4,"button",37),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().showInfo(a)}),n.TgZ(5,"mat-icon",38),n._uU(6,"info"),n.qZA()()()}}function TBe(t,r){1&t&&n._UZ(0,"mat-header-row")}function EBe(t,r){1&t&&n._UZ(0,"mat-row")}function MBe(t,r){if(1&t&&n._uU(0),2&t){var e=n.oxw(2);n.Oqu(e.secondActionTitle)}}function SBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function xBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function DBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,SBe,3,0,"span",32),n.YNc(5,xBe,3,0,"span",32),n.TgZ(6,"input",46,47),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.bios_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.bios_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.bios_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function ABe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function OBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function IBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,ABe,3,0,"span",32),n.YNc(5,OBe,3,0,"span",32),n.TgZ(6,"input",46,51),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.hda_disk_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.hda_disk_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.hda_disk_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function PBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function RBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function LBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,PBe,3,0,"span",32),n.YNc(5,RBe,3,0,"span",32),n.TgZ(6,"input",46,52),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.hdb_disk_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.hdb_disk_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.hdb_disk_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function ZBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function NBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function BBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,ZBe,3,0,"span",32),n.YNc(5,NBe,3,0,"span",32),n.TgZ(6,"input",46,53),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.cdrom_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.cdrom_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.cdrom_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function FBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",42)(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createQemuTemplateFromVersion(l)}),n._uU(6," Create "),n.qZA()()(),n.YNc(7,DBe,12,4,"div",44),n.YNc(8,IBe,12,4,"div",44),n.YNc(9,LBe,12,4,"div",44),n.YNc(10,BBe,12,4,"div",44),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.AsE("",o.applianceToInstall.name," version ",i.name,""),n.xp6(4),n.Q6J("ngIf",i.images.bios_image),n.xp6(1),n.Q6J("ngIf",i.images.hda_disk_image),n.xp6(1),n.Q6J("ngIf",i.images.hdb_disk_image),n.xp6(1),n.Q6J("ngIf",i.images.cdrom_image)}}function UBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"div"),n.YNc(8,FBe,11,6,"div",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.versions)}}function HBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).createDockerTemplate()}),n._uU(2," Create docker template "),n.qZA()()}}function jBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"input",46,51),n.NdJ("change",function(s){var u=n.CHM(e).$implicit;return n.oxw(3).importImage(s,u.filename)}),n.qZA(),n.TgZ(7,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(6).click()}),n._uU(8,"Import"),n.qZA(),n.TgZ(9,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createIosTemplate(l)}),n._uU(10," Create "),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.hij(" ",i.filename," "),n.xp6(2),n.Q6J("uploader",o.uploaderImage)}}function zBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-list"),n.YNc(8,jBe,11,2,"mat-list-item",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.images)}}function WBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"input",46,51),n.NdJ("change",function(s){var u=n.CHM(e).$implicit;return n.oxw(3).importImage(s,u.filename)}),n.qZA(),n.TgZ(7,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(6).click()}),n._uU(8,"Import"),n.qZA(),n.TgZ(9,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createIouTemplate(l)}),n._uU(10," Create "),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.hij(" ",i.filename," "),n.xp6(2),n.Q6J("uploader",o.uploaderImage)}}function VBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-list"),n.YNc(8,WBe,11,2,"mat-list-item",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.images)}}function YBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-step"),n.YNc(1,MBe,1,1,"ng-template",3),n.TgZ(2,"mat-card",9),n.YNc(3,UBe,9,1,"div",32),n.YNc(4,HBe,3,0,"div",32),n.YNc(5,zBe,9,1,"div",32),n.YNc(6,VBe,9,1,"div",32),n.qZA(),n.TgZ(7,"div")(8,"button",30),n._uU(9,"Back"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().onCloseClick()}),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.qemu),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.docker),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.dynamips),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.iou)}}var GBe=function(){return{standalone:!0}},qBe=function(){return[5,10,20,50,100]},ok=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G,q){(0,j.Z)(this,t),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=f,this.dialog=h,this.computeService=v,this.changeDetectorRef=C,this.progressService=B,this.snackBar=G,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,V.Z)(t,[{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 _w(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 _w(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new eg({}),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 eg({}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured because image already exists"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(i,o,a,s){e.toasterService.success("Image imported succesfully"),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(as.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 u,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 f=JSON.parse(l.result);f.docker&&(u="docker"),f.dynamips&&(u="dynamips"),f.iou&&(u="iou"),f.qemu&&(u="qemu");var h=i.applianceService.getUploadPath(i.controller,u,a);i.uploader.queue.forEach(function(C){return C.url=h});var v=i.uploader.queue[0];v.options&&(v.options.disableMultipart=!0),v.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(v)},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 _w(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?$j(o.name,a.name,s):"emulator"===e.active?$j(o.emulator,a.emulator,s):"vendor"===e.active?$j(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(LA,{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(nk,{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),o.openSnackBar()):o.uploaderImage.clearQueue()})}else o.importImageFile(e),o.openSnackBar()})}},{key:"importImageFile",value:function(e){var u,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(){i.applianceToInstall.qemu&&(u="qemu"),i.applianceToInstall.dynamips&&(u="dynamips"),i.applianceToInstall.iou&&(u="iou");var f=i.applianceService.getUploadPath(i.controller,u,a);i.uploaderImage.queue.forEach(function(v){return v.url=f});var h=i.uploaderImage.queue[0];h.options&&(h.options.disableMultipart=!0),h.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploaderImage.uploadItem(h)},l.readAsText(s)}},{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:"checkImages",value:function(e){return e.images.hdb_disk_image?!(!this.checkImageFromVersion(e.images.hda_disk_image)||!this.checkImageFromVersion(e.images.hdb_disk_image)):!!this.checkImageFromVersion(e.images.hda_disk_image)}},{key:"openConfirmationDialog",value:function(e,i){var o=this.dialog.open(nk,{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=new zH;o.nvram=this.applianceToInstall.iou.nvram,o.ram=this.applianceToInstall.iou.ram,o.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,o.serial_adapters=this.applianceToInstall.iou.serial_adapters,o.startup_config=this.applianceToInstall.iou.startup_config,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.port_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=_s(),o.path=e.filename,o.template_type="iou";var a=this.dialog.open(Zg,{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.iouService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createIosTemplate",value:function(e){var i=this,o=new jH;o.chassis=this.applianceToInstall.dynamips.chassis,o.nvram=this.applianceToInstall.dynamips.nvram,o.platform=this.applianceToInstall.dynamips.platform,o.ram=this.applianceToInstall.dynamips.ram,o.startup_config=this.applianceToInstall.dynamips.startup_config,o.slot0=this.applianceToInstall.dynamips.slot0,o.slot1=this.applianceToInstall.dynamips.slot1,o.slot2=this.applianceToInstall.dynamips.slot2,o.slot3=this.applianceToInstall.dynamips.slot3,o.slot4=this.applianceToInstall.dynamips.slot4,o.slot5=this.applianceToInstall.dynamips.slot5,o.slot6=this.applianceToInstall.dynamips.slot6,o.slot7=this.applianceToInstall.dynamips.slot7,o.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.default_name_format=this.applianceToInstall.port_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=_s(),o.image=e.filename,o.template_type="dynamips";var a=this.dialog.open(Zg,{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.iosService.addTemplate(i.controller,o).subscribe(function(l){i.templateService.newTemplateCreated.next(l),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createDockerTemplate",value:function(){var e=this,i=new HH;i.adapters=this.applianceToInstall.docker.adapters,i.console_type=this.applianceToInstall.docker.console_type,i.builtin=this.applianceToInstall.builtin,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=_s(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(Zg,{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:"createQemuTemplateFromVersion",value:function(e){var i=this;if(this.checkImages(e)){var o=new WH;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.builtin=this.applianceToInstall.builtin,o.category=this.getCategory(),o.first_port_name=this.applianceToInstall.first_port_name,o.port_name_format=this.applianceToInstall.port_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=_s(),o.hda_disk_image=e.images.hda_disk_image,o.hdb_disk_image=e.images.hdb_disk_image,o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(Zg,{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()})})}else this.toasterService.error("Please install required images first")}},{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 KNe.ArrayBuffer,u=new FileReader,f=0;function h(v){var C=Math.min(e.size,v+s);u.readAsArrayBuffer(e.slice(v,C))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(v){l.append(v.target.result),(f+=s)<e.size?h(f):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(qh,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),t}();function $j(t,r,e){return((t=t.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}ok.\u0275fac=function(r){return new(r||ok)(n.Y36(Dr),n.Y36(F0),n.Y36(n.sBO),n.Y36($n),n.Y36(vu),n.Y36(Uc),n.Y36(zc),n.Y36(Wc),n.Y36(Gd),n.Y36(ri),n.Y36(Yd.X),n.Y36(n.sBO),n.Y36(ul),n.Y36(Fc),n.Y36(jc))},ok.\u0275cmp=n.Xpm({type:ok,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(ed,7),n.Gf(fBe,7)),2&r)&&(n.iGM(i=n.CRH())&&(e.paginator=i.first),n.iGM(i=n.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",""]],template:function(r,e){if(1&r){var i=n.EpF();n.TgZ(0,"h1",0),n._uU(1,"Add new template"),n.qZA(),n.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),n.YNc(5,pBe,1,0,"ng-template",3),n.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),n.NdJ("click",function(){return e.setAction("install")}),n._uU(8,"Install new appliance from the GNS controller"),n.qZA(),n._UZ(9,"br"),n.TgZ(10,"mat-radio-button",6),n.NdJ("click",function(){return e.setAction("import")}),n._uU(11,"Import an appliance file"),n.qZA()(),n.TgZ(12,"div")(13,"button",7),n._uU(14,"Next"),n.qZA(),n.TgZ(15,"button",8),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(16,"Cancel"),n.qZA()()(),n.TgZ(17,"mat-step"),n.YNc(18,hBe,1,1,"ng-template",3),n.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),n.NdJ("ngModelChange",function(a){return e.searchText=a}),n.qZA()(),n.TgZ(23,"mat-select",13),n.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),n.YNc(24,mBe,2,2,"mat-option",14),n.qZA()(),n.TgZ(25,"mat-table",15,16),n.NdJ("matSortChange",function(a){return e.sortData(a)}),n.ALo(27,"datasourcefilter"),n.ynx(28,17),n.YNc(29,_Be,2,0,"mat-header-cell",18),n.YNc(30,gBe,2,1,"mat-cell",19),n.BQk(),n.ynx(31,20),n.YNc(32,vBe,2,0,"mat-header-cell",18),n.YNc(33,yBe,2,1,"mat-cell",19),n.BQk(),n.ynx(34,21),n.YNc(35,bBe,2,0,"mat-header-cell",18),n.YNc(36,CBe,2,1,"mat-cell",19),n.BQk(),n.ynx(37,22),n.YNc(38,wBe,2,0,"mat-header-cell",18),n.YNc(39,kBe,7,0,"mat-cell",23),n.BQk(),n.YNc(40,TBe,1,0,"mat-header-row",24),n.YNc(41,EBe,1,0,"mat-row",25),n.qZA(),n._UZ(42,"mat-paginator",26),n.qZA(),n.TgZ(43,"mat-card",9)(44,"input",27,28),n.NdJ("change",function(a){return e.addAppliance(a)}),n.qZA(),n.TgZ(46,"button",29),n.NdJ("click",function(){return n.CHM(i),n.MAs(45).click()}),n._uU(47," Click to import appliance "),n.qZA()(),n.TgZ(48,"div")(49,"button",30),n._uU(50,"Back"),n.qZA(),n.TgZ(51,"button",31),n.NdJ("click",function(){return e.updateAppliances()}),n._uU(52," Update from online registry "),n.qZA(),n.TgZ(53,"button",8),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(54,"Cancel"),n.qZA()()(),n.YNc(55,YBe,12,5,"mat-step",32),n.qZA()}2&r&&(n.xp6(2),n.Q6J("linear",!1),n.xp6(17),n.Q6J("hidden","install"!==e.action),n.xp6(3),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(17,GBe))("ngModel",e.category),n.xp6(1),n.Q6J("ngForOf",e.categories),n.xp6(1),n.Q6J("dataSource",n.xi3(27,14,e.dataSource,e.searchText)),n.xp6(15),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(18,qBe)),n.xp6(1),n.Q6J("hidden","install"===e.action),n.xp6(1),n.Q6J("uploader",e.uploader),n.xp6(7),n.Q6J("hidden","install"!==e.action),n.xp6(4),n.Q6J("ngIf",e.applianceToInstall))},directives:[Vr,Xu,Hc,Yh,gs,Ys,Tn,Aw,Si,Un.KE,sr,ne.Fj,ne.JJ,ne.On,xi.gD,wt.sg,sn.ey,ca,td,aa,fa,Sa,da,xa,vi,Vn,Da,Oa,Aa,Ia,ed,Zc,Ow,wt.O5,Hh,qa],pipes:[ZA],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,rn.X$)("detailExpand",[(0,rn.SB)("collapsed",(0,rn.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var KBe=m(2033),JBe='<?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">',U0_xmlns="http://www.w3.org/2000/xmlns/",U0_xlink="http://www.w3.org/1999/xlink",U0_svg="http://www.w3.org/2000/svg",yie="untitled";function XBe(){var t=document.createElementNS(U0_svg,"svg");document.body.appendChild(t),t.style.all="initial";var r=getComputedStyle(t);return document.body.removeChild(t),t=null,r}function eFe(t,r){function e(s){for(var u,f,l=getComputedStyle(s),h="",v=0,C=l.length;v<C;v++)u=l[v],(f=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(f,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(f){if(f&&f.hasChildNodes())for(var h=f.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(t),a=o.length;a--;)e(o[a])}function tFe(t){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(" "),t.prepend(r)}var nFe=function $Be(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(t instanceof SVGElement))throw new Error("SVG element is required");t.setAttribute("version","1.1"),t.removeAttribute("xmlns"),t.removeAttribute("xlink"),t.hasAttributeNS(U0_xmlns,"xmlns")||t.setAttributeNS(U0_xmlns,"xmlns",U0_svg),t.hasAttributeNS(U0_xmlns,"xmlns:xlink")||t.setAttributeNS(U0_xmlns,"xmlns:xlink",U0_xlink),"inline"===i?eFe(t,XBe()):"internal"===i&&tFe(t);var o=(new XMLSerializer).serializeToString(t),a=t.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:t.getAttribute("class"),id:t.getAttribute("id"),name:t.getAttribute("name"),childElementCount:t.childElementCount,source:JBe+o};return s};function iFe(t,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",t),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var aFe=function oFe(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yie,e=URL.createObjectURL(new Blob([t.source],{type:"text/xml"}));iFe("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var lk,bN,uFe=function(r,e,i){return aFe(nFe(r,i),e||function rFe(t){if(!(t instanceof SVGElement))throw new Error("SVG Element is required");return t.getAttribute("id")||t.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||yie}(r))},ak={UKNOWN:"Unknown"},ez={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:ak.UKNOWN},yN={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")},sk={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"),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")},Bg={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:ak.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"},bie=[Bg.PS4,Bg.CHROME_BOOK,Bg.MAC,Bg.DELL,Bg.ASUS,Bg.UNKNOWN],cFe={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:ak.UKNOWN},dFe={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:ak.UKNOWN.toLowerCase()},Cie={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/},pFe=Object.assign(Object.assign(Object.assign(Object.assign({},yN),sk),Cie),{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/]}}]}}),tz={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)/},nz={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/},hFe=Object.keys(tz).reduce(function(t,r){return t[r]=tz[r],t},{}),wie=Object.keys(nz).reduce(function(t,r){return t[ez[r]]=nz[r],t},{}),xp=Object.freeze({__proto__:null,GENERAL:ak,BROWSERS:ez,MOBILES_RE:yN,TABLETS_RE:sk,DEVICES:Bg,DESKTOP_DEVICES:bie,OS:cFe,OS_VERSIONS:dFe,OS_RE:Cie,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:pFe,OS_VERSIONS_RE_MAP:tz,BROWSER_VERSIONS_RE_MAP:nz,OS_VERSIONS_RE:hFe,BROWSER_VERSIONS_RE:wie}),mFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}();!function(t){t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown"}(lk||(lk={})),function(t){t.Portrait="portrait",t.Landscape="landscape"}(bN||(bN={}));var rz="iPad",uk=function(){function t(r){(0,j.Z)(this,t),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new mFe,this.deviceType="",this.orientation="",(0,wt.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,V.Z)(t,[{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(xp[l.const]).reduce(function(u,f){return"device"===xp[l.const][f]&&(0,wt.NF)(e.platformId)&&(e.reTree.test(e.userAgent,sk[rz])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[xp[l.const][f]]=rz,Object):(u[xp[l.const][f]]=e.reTree.test(i,xp["".concat(l.const,"_RE")][f]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(xp[l.const]).map(function(u){return xp[l.const][u]}).reduce(function(u,f){return"device"===l.prop&&u===xp[l.const].ANDROID?e[l.prop][f]?f:u:u===xp[l.const].UNKNOWN&&e[l.prop][f]?f:u},xp[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==ez.UNKNOWN){var a=wie[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?bN.Landscape:bN.Portrait:this.orientation=ak.UKNOWN,this.deviceType=this.isTablet()?lk.Tablet:this.isMobile(this.userAgent)?lk.Mobile:this.isDesktop(this.userAgent)?lk.Desktop:lk.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(yN).find(function(a){return e.reTree.test(i,yN[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,wt.NF)(this.platformId)&&(this.reTree.test(this.userAgent,sk[rz])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(sk).find(function(a){return!!e.reTree.test(i,sk[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==Bg.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&bie.indexOf(this.device)>-1}}]),t}();function _Fe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Name for screenshot is required"),n.qZA())}function gFe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Entered name is incorrect"),n.qZA())}uk.\u0275fac=function(r){return new(r||uk)(n.LFG(n.Lbi))},uk.\u0275prov=n.Yz7({token:uk,factory:uk.\u0275fac,providedIn:"root"});var vFe=function(r){return{"is-invalid":r}},NA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("screenshot-".concat(Date.now()),[ne.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,V.Z)(t,[{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)}}]),t}();NA.\u0275fac=function(r){return new(r||NA)(n.Y36(Dr),n.Y36($n),n.Y36(ne.qu),n.Y36(sl),n.Y36(uk))},NA.\u0275cmp=n.Xpm({type:NA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Take a screenshot"),n.qZA(),n.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),n.NdJ("click",function(){return e.setFiletype("svg")}),n._uU(4,"SVG"),n.qZA(),n.TgZ(5,"mat-radio-button",3),n.NdJ("click",function(){return e.setFiletype("png")}),n._uU(6,"PNG"),n.qZA()(),n.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(10,_Fe,2,0,"mat-error",7),n.YNc(11,gFe,2,0,"mat-error",7),n.qZA(),n.TgZ(12,"div",8)(13,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(14,"Cancel"),n.qZA(),n.TgZ(15,"button",10),n.NdJ("click",function(){return e.onAddClick()}),n._uU(16,"Take a screenshot"),n.qZA()()()),2&r&&(n.xp6(5),n.Q6J("disabled",!e.isPngAvailable),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,vFe,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),n.xp6(1),n.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)),n.xp6(1),n.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)))},directives:[Vr,gs,Ys,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Zr,Tn],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var BA=function(){function t(r,e){(0,j.Z)(this,t),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,V.Z)(t,[{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)}}]),t}();BA.\u0275fac=function(r){return new(r||BA)(n.Y36(Vo),n.Y36(Dr))},BA.\u0275cmp=n.Xpm({type:BA,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),n._uU(3),n.qZA()()(),n._UZ(4,"mat-divider"),n.TgZ(5,"mat-dialog-content")(6,"p",3),n._uU(7),n.qZA()(),n.TgZ(8,"mat-dialog-actions",4)(9,"button",5),n._uU(10,"No"),n.qZA(),n.TgZ(11,"button",6),n.NdJ("click",function(){return e.confirmAction()}),n._uU(12,"Yes"),n.qZA()()),2&r&&(n.xp6(3),n.hij("Confirm ",e.confirmActionData.actionType," All"),n.xp6(4),n.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},directives:[ag.d,_u,Zr,Tn,sg],styles:[""]});var H0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new M0;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}}]),t}();H0.\u0275fac=function(r){return new(r||H0)},H0.\u0275prov=n.Yz7({token:H0,factory:H0.\u0275fac});var j0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new sa;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}}]),t}();j0.\u0275fac=function(r){return new(r||j0)},j0.\u0275prov=n.Yz7({token:j0,factory:j0.\u0275fac});var z0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new dm;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e}}]),t}();z0.\u0275fac=function(r){return new(r||z0)},z0.\u0275prov=n.Yz7({token:z0,factory:z0.\u0275fac});var W0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new E0;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}}]),t}();W0.\u0275fac=function(r){return new(r||W0)},W0.\u0275prov=n.Yz7({token:W0,factory:W0.\u0275fac});var Fg=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new sm;return i.element=this.factory.getDrawingElement(),i}}]),t}();Fg.\u0275fac=function(r){return new(r||Fg)(n.LFG(H0),n.LFG(j0),n.LFG(z0),n.LFG(W0))},Fg.\u0275prov=n.Yz7({token:Fg,factory:Fg.\u0275fac});var FA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new n.vpe}return(0,V.Z)(t,[{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()}}]),t}();function iz(){iz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}FA.\u0275fac=function(r){return new(r||FA)(n.Y36(us),n.Y36(La),n.Y36(Pl),n.Y36(Fg),n.Y36($c))},FA.\u0275cmp=n.Xpm({type:FA,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[n.TTD],decls:0,vars:0,template:function(r,e){},styles:[""]});var kie=function(r){return{selected:r}};function yFe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().addDrawing("line")}),n.O4$(),n.TgZ(1,"svg",13),n._UZ(2,"line",14),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(1,kie,i.drawTools.isLineChosen))}}function bFe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().addDrawing("line")}),n.O4$(),n.TgZ(1,"svg",13),n._UZ(2,"line",15),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(1,kie,i.drawTools.isLineChosen))}}var CFe=function(r,e){return{unmarkedLight:r,marked:e}},wFe=function(r){return{unmarkedLight:r}},ck=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,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,V.Z)(t,[{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(NA,{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,iz().mark(function i(){var o,a,s,l,u,f,h,v,C;return iz().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,f=u.split("--\x3e"),o[a]=f[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(v=document.createElement("div")).innerHTML=h,C=v.firstChild,KBe.saveSvgAsPng(C,"".concat(e.name,".png")),q.next=23;break;case 21:gi("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),uFe(gi("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(BA,{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(){}}]),t}();ck.\u0275fac=function(r){return new(r||ck)(n.Y36(Sp),n.Y36(fl),n.Y36(us),n.Y36(cp),n.Y36(ri),n.Y36(Ju.f),n.Y36(dl.Y),n.Y36(Xr),n.Y36(ls.G),n.Y36(La))},ck.\u0275cmp=n.Xpm({type:ck,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=n.EpF();n.TgZ(0,"button",0),n.NdJ("click",function(){return e.addDrawing("text")}),n.TgZ(1,"mat-icon",1),n._uU(2,"create"),n.qZA()(),n.TgZ(3,"input",2,3),n.NdJ("change",function(a){return e.uploadImageFile(a)}),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(4).click()}),n.TgZ(6,"mat-icon"),n._uU(7,"image"),n.qZA()(),n.TgZ(8,"button",5),n.NdJ("click",function(){return e.addDrawing("rectangle")}),n.TgZ(9,"mat-icon",1),n._uU(10,"crop_3_2"),n.qZA()(),n.TgZ(11,"button",6),n.NdJ("click",function(){return e.addDrawing("ellipse")}),n.TgZ(12,"mat-icon",1),n._uU(13,"panorama_fish_eye"),n.qZA()(),n.YNc(14,yFe,3,3,"button",7),n.YNc(15,bFe,3,3,"button",7),n.TgZ(16,"button",8),n.NdJ("click",function(){return e.changeLockValue()}),n.TgZ(17,"mat-icon",1),n._uU(18),n.qZA()(),n.TgZ(19,"button",9),n.NdJ("click",function(){return e.takeScreenshot()}),n.TgZ(20,"mat-icon",1),n._uU(21,"photo_camera"),n.qZA()(),n.TgZ(22,"app-drawing-added",10),n.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),n.qZA(),n._UZ(23,"div",11)}2&r&&(n.xp6(1),n.Q6J("ngClass",e.getCssClassForIcon("text")),n.xp6(8),n.Q6J("ngClass",e.getCssClassForIcon("rectangle")),n.xp6(3),n.Q6J("ngClass",e.getCssClassForIcon("ellipse")),n.xp6(2),n.Q6J("ngIf",!e.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",e.isLightThemeEnabled),n.xp6(2),n.Q6J("ngClass",n.WLB(11,CFe,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),n.xp6(1),n.Oqu(e.lock),n.xp6(2),n.Q6J("ngClass",n.VKq(14,wFe,!e.isLocked&&e.isLightThemeEnabled)),n.xp6(2),n.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},directives:[Tn,vi,Vn,wt.mk,wt.O5,FA],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 kFe=["text"],UA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,V.Z)(t,[{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=_n(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),t}();UA.\u0275fac=function(r){return new(r||UA)(n.Y36(Dr),n.Y36(dl.Y),n.Y36(n.SBq),n.Y36(n.Qsj))},UA.\u0275cmp=n.Xpm({type:UA,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(kFe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1,"Project README"),n.qZA(),n._UZ(2,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"Close"),n.qZA()())},directives:[Vr,Zr,Tn],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var Ug=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new n.vpe,this.linkNotificationEmitter=new n.vpe,this.drawingNotificationEmitter=new n.vpe,this.infoNotificationEmitter=new n.vpe,this.warningNotificationEmitter=new n.vpe,this.errorNotificationEmitter=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();Ug.\u0275fac=function(r){return new(r||Ug)(n.LFG(ls.G),n.LFG(pm.F),n.LFG(La))},Ug.\u0275prov=n.Yz7({token:Ug,factory:Ug.\u0275fac});var TFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),EFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Dp=function(){function t(r,e,i){(0,j.Z)(this,t),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,V.Z)(t,[{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 EFe;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}}]),t}();Dp.\u0275fac=function(r){return new(r||Dp)(n.LFG(pp),n.LFG(tc),n.LFG(vs))},Dp.\u0275prov=n.Yz7({token:Dp,factory:Dp.\u0275fac});var MFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Hg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new MFe;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}}]),t}();Hg.\u0275fac=function(r){return new(r||Hg)},Hg.\u0275prov=n.Yz7({token:Hg,factory:Hg.\u0275fac});var vm=function(){function t(r,e){(0,j.Z)(this,t),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new TFe;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.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}}]),t}();vm.\u0275fac=function(r){return new(r||vm)(n.LFG(Dp),n.LFG(Hg))},vm.\u0275prov=n.Yz7({token:vm,factory:vm.\u0275fac});var SFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),V0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new SFe;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}}]),t}();V0.\u0275fac=function(r){return new(r||V0)},V0.\u0275prov=n.Yz7({token:V0,factory:V0.\u0275fac});var xFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),DFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),jg=function(){function t(r){(0,j.Z)(this,t),this.mapLabelToLabel=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new DFe;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),t}();jg.\u0275fac=function(r){return new(r||jg)(n.LFG(Dp))},jg.\u0275prov=n.Yz7({token:jg,factory:jg.\u0275fac});var Y0=function(){function t(r){(0,j.Z)(this,t),this.mapLinkNodeToMapLinkNode=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new xFe;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}}]),t}();Y0.\u0275fac=function(r){return new(r||Y0)(n.LFG(jg))},Y0.\u0275prov=n.Yz7({token:Y0,factory:Y0.\u0275fac});var CN=m(9740),G0=function(){function t(r){(0,j.Z)(this,t),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,V.Z)(t,[{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}}]),t}();G0.\u0275fac=function(r){return new(r||G0)(n.LFG(pp))},G0.\u0275prov=n.Yz7({token:G0,factory:G0.\u0275fac});var q0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(as.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(as.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),t}();q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275prov=n.Yz7({token:q0,factory:q0.\u0275fac});var AFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"d",value:function(e){var i,o,a,s,l,u,f,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===(f=null==e?void 0:e.target)||void 0===f?void 0:f.height)/2]],v=Zd();return v.moveTo(h[0][0],h[0][1]),v.lineTo(h[1][0],h[1][1]),v.toString()}}]),t}(),OFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,f=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*f[0],i.y+s/2+15*f[1]],v=[o.x-a/2-15*f[0],o.y-s/2-15*f[1]];return[[i.x,i.y],h,v,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=Zd();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()}}]),t}();function PFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){var e=n.oxw(2);n.uIk("cx",e.point.x)("cy",e.point.y)}}function RFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"rect",4)),2&t){var e=n.oxw(2);n.uIk("x",e.point.x-5)("y",e.point.y-5)}}function LFe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,PFe,1,2,"circle",1),n.YNc(2,RFe,1,2,"rect",2),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf","started"==e.status),n.xp6(1),n.Q6J("ngIf","stopped"==e.status)}}var dk=function(){function t(r,e){(0,j.Z)(this,t),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,V.Z)(t,[{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}}]),t}();dk.STOPPED_STATUS_RECT_WIDTH=10,dk.\u0275fac=function(r){return new(r||dk)(n.Y36(n.SBq),n.Y36(n.sBO))},dk.\u0275cmp=n.Xpm({type:dk,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&&n.YNc(0,LFe,3,2,"g",0),2&r&&n.Q6J("ngIf",e.status&&e.point&&e.direction)},directives:[wt.O5],styles:[""]});var ZFe=["textSvg"],HA=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{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,")")}}}]),t}();HA.\u0275fac=function(r){return new(r||HA)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(An.H7),n.Y36(tc))},HA.\u0275cmp=n.Xpm({type:HA,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf(ZFe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"g",0),n._UZ(1,"rect",1),n.TgZ(2,"text",2,3),n._uU(4),n.qZA()()),2&r&&(n.uIk("transform",e.transform),n.xp6(1),n.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),n.xp6(1),n.uIk("style",e.sanitizedStyle,n.Ckj)("x",e.borderSize)("y",-e.borderSize),n.xp6(2),n.hij(" ",e.text," "))},styles:[""]});var BFe=["path"];function UFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",5,6)),2&t){var e=n.oxw();n.uIk("d",e.d)}}function HFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",7,6)),2&t){var e=n.oxw();n.uIk("d",e.d)}}function jFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),n.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 zFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),n.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 jA=function(){function t(r,e){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new AFe,this.serialLinkStrategy=new OFe}return(0,V.Z)(t,[{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)}}]),t}();jA.\u0275fac=function(r){return new(r||jA)(n.Y36(yp),n.Y36(n.sBO))},jA.\u0275cmp=n.Xpm({type:jA,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf(BFe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,UFe,2,1,"path",1),n.YNc(2,HFe,2,1,"path",2),n._UZ(3,"g",3)(4,"g",3),n.YNc(5,jFe,1,6,"g",4),n.YNc(6,zFe,1,6,"g",4),n.qZA()),2&r&&(n.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),n.xp6(1),n.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),n.xp6(1),n.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),n.xp6(1),n.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),n.xp6(1),n.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),n.xp6(1),n.Q6J("ngIf",e.showInterfaceLabels),n.xp6(1),n.Q6J("ngIf",e.showInterfaceLabels))},directives:[wt.O5,dk,HA],styles:[""]});var Tie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.dx=i,this.dy=o}),fk=function(){function t(r){(0,j.Z)(this,t),this.elementRef=r,this.dragging=new n.vpe,this.dragged=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=fo.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(f){return f.preventDefault()});i.subscribe(function(f){e.posX=e.item.x,e.posY=e.item.y,e.startX=f.clientX,e.startY=f.clientY});var o=fo.y.fromEvent(document,"mouseup").do(function(f){f.preventDefault()}),a=fo.y.fromEvent(document,"mousemove").do(function(f){return f.stopPropagation()}),s=fo.y.fromEvent(document,"scroll").startWith({}),l=fo.y.combineLatest(a,s),u=i.mergeMap(function(f){return l.map(function(h){var v=(0,Ut.Z)(h,2),C=v[0];v[1];return C}).do(function(h){var v=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-v),e.item.y=Math.round(e.posY-C),e.dragging.emit(new Tie(e.item.x,e.item.y,-v,-C))}).skipUntil(o.take(1).do(function(h){var v=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-v),e.item.y=Math.round(e.posY-C),e.dragged.emit(new Tie(e.item.x,e.item.y,-v,-C))})).take(1)});this.draggable=u.subscribe(function(f){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),t}();fk.\u0275fac=function(r){return new(r||fk)(n.Y36(n.SBq))},fk.\u0275cmp=n.Xpm({type:fk,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&&(n.F$t(),n.Hsn(0))},styles:[""]});var YFe=["label"],GFe=["image"],pk=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,V.Z)(t,[{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 Yw(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+t.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-t.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),t}();pk.NODE_LABEL_MARGIN=3,pk.\u0275fac=function(r){return new(r||pk)(n.Y36(tc),n.Y36(vs),n.Y36(An.H7),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Jc))},pk.\u0275cmp=n.Xpm({type:pk,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(YFe,5),n.Gf(GFe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.label=i.first),n.iGM(i=n.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[n.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&&(n.O4$(),n.TgZ(0,"g",0)(1,"image",1,2),n.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),n.qZA(),n.TgZ(3,"text",3,4),n._uU(5),n.qZA()()),2&r&&(n.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),n.xp6(1),n.Q6J("app-draggable",e.node),n.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"),n.xp6(2),n.uIk("style",e.label_style,n.Ckj)("x",e.label_x)("y",e.label_y),n.xp6(2),n.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},directives:[fk],styles:[""],changeDetection:0});var zA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();zA.\u0275fac=function(r){return new(r||zA)(n.Y36(wu))},zA.\u0275cmp=n.Xpm({type:zA,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&&(n.O4$(),n._UZ(0,"ellipse",0)),2&r&&n.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)},styles:[""]});var WA=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}}]),t}();WA.\u0275fac=function(r){return new(r||WA)},WA.\u0275cmp=n.Xpm({type:WA,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&&(n.O4$(),n._UZ(0,"image",0)),2&r&&n.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)},styles:[""]});var VA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();VA.\u0275fac=function(r){return new(r||VA)(n.Y36(wu))},VA.\u0275cmp=n.Xpm({type:VA,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&&(n.O4$(),n._UZ(0,"line",0)),2&r)&&n.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)},styles:[""]});var YA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();YA.\u0275fac=function(r){return new(r||YA)(n.Y36(wu))},YA.\u0275cmp=n.Xpm({type:YA,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(n.O4$(),n._UZ(0,"rect",0)),2&r&&n.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)},styles:[""]});var $Fe=["text"];function t4e(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan",3),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.uIk("dy",0==i?"0em":"1.4em"),n.xp6(1),n.hij(" ",e," ")}}var hk=function(){function t(r,e){(0,j.Z)(this,t),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,V.Z)(t,[{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(t.MARGIN,", ").concat(i-t.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),t}();hk.MARGIN=4,hk.\u0275fac=function(r){return new(r||hk)(n.Y36(vs),n.Y36(An.H7))},hk.\u0275cmp=n.Xpm({type:hk,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf($Fe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"text",0,1),n.YNc(2,t4e,2,2,"tspan",2),n.qZA()),2&r){var i=n.MAs(1);n.uIk("style",e.style,n.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),n.xp6(2),n.Q6J("ngForOf",e.lines)}},directives:[wt.sg],styles:[""]});function r4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",6)),2&t){var e=n.oxw();n.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function i4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",7)),2&t){var e=n.oxw();n.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function o4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function a4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",9)),2&t){var e=n.oxw();n.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function s4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",10)),2&t){var e=n.oxw();n.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var GA=function(){function t(r,e,i){(0,j.Z)(this,t),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,V.Z)(t,[{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 Yw(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof sa:"image"===i?e instanceof uN:"line"===i?e instanceof E0:"rect"===i?e instanceof dm:"text"===i&&e instanceof M0)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),t}();GA.\u0275fac=function(r){return new(r||GA)(n.Y36(Ep),n.Y36(Pl),n.Y36(n.sBO))},GA.\u0275cmp=n.Xpm({type:GA,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&&(n.O4$(),n.TgZ(0,"g",0),n.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),n.YNc(1,r4e,1,1,"g",1),n.YNc(2,i4e,1,1,"g",2),n.YNc(3,o4e,1,1,"g",3),n.YNc(4,a4e,1,1,"g",4),n.YNc(5,s4e,1,1,"g",5),n.qZA()),2&r&&(n.Q6J("app-draggable",e.drawing),n.uIk("transform",e.transformation),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},directives:[fk,wt.O5,zA,WA,VA,YA,hk],styles:[""]});function u4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",2)),2&t){var e=n.oxw();n.uIk("d",e.d)}}var qA=function(){function t(r){(0,j.Z)(this,t),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=fo.y.fromEvent(this.svg,"mousedown").do(function(f){return f.preventDefault()});i.subscribe(function(f){f.target===e.svg&&(e.started=!0,e.startX=(null==f?void 0:f.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==f?void 0:f.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=fo.y.fromEvent(document,"mouseup").do(function(f){f.preventDefault()}),a=fo.y.fromEvent(document,"mousemove").do(function(f){return f.stopPropagation()}),s=fo.y.fromEvent(document,"scroll").startWith({}),l=fo.y.combineLatest([a,s]),u=i.mergeMap(function(f){return l.map(function(h){var v=(0,Ut.Z)(h,2),C=v[0];v[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(f){})}},{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 aie(o,a,s,l))}}]),t}();qA.\u0275fac=function(r){return new(r||qA)(n.Y36(n.sBO))},qA.\u0275cmp=n.Xpm({type:qA,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&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,u4e,1,1,"path",1),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",e.visible))},directives:[wt.O5],styles:[""]});var c4e=["svg"];function d4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",12)),2&t){var e=r.$implicit,i=n.oxw(2);n.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function f4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",13)),2&t){var e=r.$implicit,i=n.oxw(2);n.Q6J("app-node",e)("symbols",i.symbols)}}function p4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",14)),2&t){var e=r.$implicit;n.Q6J("app-drawing",e)}}function h4e(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"g")(1,"g",6),n.YNc(2,d4e,1,2,"g",7),n.qZA(),n.TgZ(3,"g",8),n.YNc(4,f4e,1,2,"g",9),n.qZA(),n.TgZ(5,"g",10),n.YNc(6,p4e,1,1,"g",11),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Q6J("ngForOf",e.links),n.xp6(2),n.Q6J("ngForOf",e.nodes),n.xp6(2),n.Q6J("ngForOf",e.drawings)}}var KA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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,V.Z)(t,[{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 qs;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){}}]),t}();KA.\u0275fac=function(r){return new(r||KA)(n.Y36(bp),n.Y36(qs),n.Y36(Cp),n.Y36(Tg),n.Y36(n.sBO),n.Y36(um),n.Y36(Pg))},KA.\u0275cmp=n.Xpm({type:KA,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(c4e,5),2&r)&&(n.iGM(i=n.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&n.NdJ("resize",function(o){return e.onResize(o)},!1,n.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:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1)(2,"g"),n.YNc(3,h4e,7,3,"g",2),n.qZA(),n._UZ(4,"g",3),n.TgZ(5,"filter",4),n._UZ(6,"feColorMatrix",5),n.qZA()()),2&r){var i=n.MAs(1);n.uIk("width",e.width)("height",e.height),n.xp6(2),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngForOf",e.layers),n.xp6(1),n.Q6J("app-selection",i)}},directives:[wt.sg,jA,pk,GA,qA],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var JA=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI(1,[ne.kI.compose([ne.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new ne.NI(0,ne.kI.required),left:new ne.NI(0,ne.kI.required)})}return(0,V.Z)(t,[{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.")}}]),t}();JA.\u0275fac=function(r){return new(r||JA)(n.Y36(Dr),n.Y36(Gd),n.Y36(ne.qu),n.Y36(Vo),n.Y36($n),n.Y36(tf))},JA.\u0275cmp=n.Xpm({type:JA,selectors:[["app-template-list-dialog"]],decls:0,vars:0,template:function(r,e){},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 m4e(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var wN=function(r,e){return{templateText:r,lightTemplateText:e}};function _4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+1])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,wN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+1].name)}}function g4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+2])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,wN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+2].name)}}function v4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+3])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,wN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+3].name)}}function y4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",13)(1,"span",14)(2,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(2).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw().index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l])}),n._UZ(3,"img",16),n.qZA(),n.TgZ(4,"div",17),n._uU(5),n.qZA()(),n.YNc(6,_4e,5,6,"span",18),n.YNc(7,g4e,5,6,"span",18),n.YNc(8,v4e,5,6,"span",18),n.qZA()}if(2&t){var i=n.oxw().index,o=n.oxw();n.xp6(3),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(6,wN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i].name),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+1]),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+2]),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+3])}}function b4e(t,r){if(1&t&&(n.TgZ(0,"mat-list-item"),n.YNc(1,y4e,9,9,"span",12),n.qZA()),2&t){var e=r.index;n.xp6(1),n.Q6J("ngIf",e%4==0)}}var Eie=function(){return{standalone:!0}},QA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new n.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,V.Z)(t,[{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(JA,{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()}}]),t}();QA.\u0275fac=function(r){return new(r||QA)(n.Y36(ri),n.Y36(Gd),n.Y36($d),n.Y36(cp),n.Y36(An.H7),n.Y36(Ju.f),n.Y36(Ao.Xj))},QA.\u0275cmp=n.Xpm({type:QA,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 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&&(n.TgZ(0,"button",0)(1,"mat-icon"),n._uU(2,"add"),n.qZA()(),n.TgZ(3,"mat-menu",null,1)(5,"button",2),n.NdJ("click",function(){return e.openDialog()}),n.TgZ(6,"mat-icon"),n._uU(7,"add_to_queue"),n.qZA(),n.TgZ(8,"span"),n._uU(9,"Open dialog to configure"),n.qZA()(),n.TgZ(10,"mat-form-field",3),n.NdJ("click",function(a){return a.stopPropagation()}),n.TgZ(11,"input",4),n.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),n.qZA()(),n.TgZ(12,"mat-form-field",5),n.NdJ("click",function(a){return a.stopPropagation()}),n.TgZ(13,"mat-select",6),n.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),n.YNc(14,m4e,2,2,"mat-option",7),n.qZA()(),n.TgZ(15,"div",8)(16,"div",9),n.YNc(17,b4e,2,1,"mat-list-item",10),n.qZA()()()),2&r){var i=n.MAs(4);n.Q6J("matMenuTriggerFor",i),n.xp6(11),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(7,Eie)),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(8,Eie))("ngModel",e.selectedType),n.xp6(1),n.Q6J("ngForOf",e.templateTypes),n.xp6(3),n.Q6J("ngForOf",e.filteredTemplates)}},directives:[Tn,vi,Pa,Vn,ss,Hr,Un.KE,sr,ne.Fj,ne.JJ,ne.On,xi.gD,wt.sg,sn.ey,qa,wt.O5,ry,wt.mk],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 XA=function(){function t(r,e){(0,j.Z)(this,t),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),t}();function oz(){oz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}XA.\u0275fac=function(r){return new(r||XA)(n.Y36(Vo),n.Y36(Dr))},XA.\u0275cmp=n.Xpm({type:XA,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),n._uU(3),n.qZA()()(),n._UZ(4,"mat-divider"),n.TgZ(5,"mat-dialog-content")(6,"p",3),n._uU(7),n.qZA()(),n.TgZ(8,"mat-dialog-actions",4)(9,"button",5),n._uU(10,"No"),n.qZA(),n.TgZ(11,"button",6),n.NdJ("click",function(){return e.confirmAction()}),n._uU(12,"Yes"),n.qZA()()),2&r&&(n.xp6(3),n.hij("Confirm ",e.confirmActionData.actionType," All"),n.xp6(4),n.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},directives:[ag.d,_u,Zr,Tn,sg],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 $A=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{key:"startConsoleForAllNodes",value:function(){return Yi(this,void 0,void 0,oz().mark(function e(){var i,o,a,s,l,u;return oz().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,cn.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(XA,{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()})}}]),t}();$A.\u0275fac=function(r){return new(r||$A)(n.Y36(Xr),n.Y36(eu),n.Y36(ls.G),n.Y36($n),n.Y36(vr),n.Y36(hm.g),n.Y36(fl),n.Y36(sl),n.Y36(ri))},$A.\u0275cmp=n.Xpm({type:$A,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&&(n.TgZ(0,"div",0)(1,"button",1),n.NdJ("click",function(){return e.startConsoleForAllNodes()}),n.TgZ(2,"mat-icon"),n._uU(3,"web_asset"),n.qZA()(),n.TgZ(4,"button",2),n.NdJ("click",function(){return e.confirmControlsActions("start")}),n.TgZ(5,"mat-icon"),n._uU(6,"play_arrow"),n.qZA()(),n.TgZ(7,"button",3),n.NdJ("click",function(){return e.confirmControlsActions("suspend")}),n.TgZ(8,"mat-icon"),n._uU(9,"pause"),n.qZA()(),n.TgZ(10,"button",4),n.NdJ("click",function(){return e.confirmControlsActions("stop")}),n.TgZ(11,"mat-icon"),n._uU(12,"stop"),n.qZA()(),n.TgZ(13,"button",5),n.NdJ("click",function(){return e.confirmControlsActions("reload")}),n.TgZ(14,"mat-icon"),n._uU(15,"replay"),n.qZA()(),n.TgZ(16,"button",6),n.NdJ("click",function(){return e.confirmControlsActions("reset")}),n.TgZ(17,"mat-icon"),n._uU(18,"compare_arrows"),n.qZA()()())},directives:[Tn,vi,Vn],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var eO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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 WH).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 zH).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.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new jH).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 HH).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,l.template_type,a);i.uploader.queue.forEach(function(C){return C.url=h});var v=i.uploader.queue[0];i.uploader.uploadItem(v)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(as.N.current_version,"/").concat(i,"/images/").concat(o)}}]),t}();eO.\u0275fac=function(r){return new(r||eO)(n.Y36($n),n.Y36(Uc),n.Y36(vu),n.Y36(Wc),n.Y36(zc))},eO.\u0275cmp=n.Xpm({type:eO,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var K0=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"onCancelClick",value:function(){this.dialogRef.close(t.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),t}();K0.\u0275fac=function(r){return new(r||K0)(n.Y36(Dr),n.Y36(Vo))},K0.\u0275cmp=n.Xpm({type:K0,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&&(n.TgZ(0,"h1",0),n._uU(1,"Operation in progress"),n.qZA(),n.TgZ(2,"div",1),n._UZ(3,"mat-progress-bar",2),n.qZA(),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(6,"Cancel"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("value",e.value))},directives:[Vr,_u,m0,Zr,Tn],styles:[""]});var C4e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ym=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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"),{})}}]),t}();ym.\u0275fac=function(r){return new(r||ym)(n.LFG(Wo.zw))},ym.\u0275prov=n.Yz7({token:ym,factory:ym.\u0275fac});var tO=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new C4e,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new ne.NI("",ne.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(f){l.snapshots.push(f.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,V.Z)(t,[{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()}}]),t}();tO.\u0275fac=function(r){return new(r||tO)(n.Y36(Dr),n.Y36(ne.qu),n.Y36($n),n.Y36(ym),n.Y36(ls.G),n.Y36(Vo))},tO.\u0275cmp=n.Xpm({type:tO,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2,"Create snapshot"),n.qZA(),n.TgZ(3,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(4," Go to snapshots "),n.qZA()(),n.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),n._UZ(8,"input",6),n.qZA()()(),n.TgZ(9,"div",7)(10,"button",8),n.NdJ("click",function(){return e.onNoClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",9),n.NdJ("click",function(){return e.onAddClick()}),n._uU(13,"Add"),n.qZA()()),2&r&&(n.xp6(3),n.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),n.xp6(3),n.Q6J("formGroup",e.inputForm))},directives:[Vr,Tn,na,_u,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Zr],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 zg=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"open",value:function(){return this.dialog.open(K0,{width:"250px",autoFocus:!1,disableClose:!0})}}]),t}();zg.\u0275fac=function(r){return new(r||zg)(n.LFG(ri))},zg.\u0275prov=n.Yz7({token:zg,factory:zg.\u0275fac});var nO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(tO,{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===K0.CANCELLED&&l.unsubscribe()})}})}}]),t}();nO.\u0275fac=function(r){return new(r||nO)(n.Y36(ri),n.Y36(ym),n.Y36(zg),n.Y36($n))},nO.\u0275cmp=n.Xpm({type:nO,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.createSnapshotModal()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_none"),n.qZA()())},directives:[Tn,vi,Vn],styles:[""]});var w4e=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function k4e(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",9),n._UZ(1,"rect",10),n.qZA())}function T4e(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",9),n._UZ(1,"rect",11),n.qZA())}function E4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw(2).chooseInterface(s)}),n.YNc(1,k4e,2,0,"svg",7),n.YNc(2,T4e,2,0,"svg",7),n.TgZ(3,"span",8),n._uU(4),n.qZA()()}if(2&t){var i=r.$implicit;n.Q6J("disabled",!i.available),n.xp6(1),n.Q6J("ngIf",i.available),n.xp6(1),n.Q6J("ngIf",!i.available),n.xp6(2),n.Oqu(i.name)}}function M4e(t,r){if(1&t&&(n.TgZ(0,"div",1),n._UZ(1,"span",2),n.TgZ(2,"mat-menu",3,4),n.YNc(4,E4e,5,4,"button",5),n.qZA()()),2&t){var e=n.MAs(3),i=n.oxw();n.Udp("left",i.leftPosition)("top",i.topPosition),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Udp("min-height",0),n.xp6(2),n.Q6J("ngForOf",i.ports)}}var mk=function(){function t(r,e){(0,j.Z)(this,t),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new n.vpe}return(0,V.Z)(t,[{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})}}]),t}();mk.\u0275fac=function(r){return new(r||mk)(n.Y36(An.H7),n.Y36(n.sBO))},mk.\u0275cmp=n.Xpm({type:mk,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Pa,5),2&r)&&(n.iGM(i=n.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&&n.YNc(0,M4e,5,8,"div",0),2&r&&n.Q6J("ngIf",e.node)},directives:[wt.O5,Pa,ss,wt.sg,Hr],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 rO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,V.Z)(t,[{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 w4e(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),t}();rO.\u0275fac=function(r){return new(r||rO)(n.Y36(xg),n.Y36(Jc),n.Y36(Qc),n.Y36(vm),n.Y36(wg),n.Y36(Cg))},rO.\u0275cmp=n.Xpm({type:rO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(mk,5),2&r)&&(n.iGM(i=n.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(n.TgZ(0,"app-node-select-interface",0),n.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),n.qZA()),2&r&&n.Q6J("links",e.links)},directives:[mk],styles:[""]});var iO=function(){function t(r,e,i){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();iO.\u0275fac=function(r){return new(r||iO)(n.Y36(us),n.Y36(La),n.Y36(Pl))},iO.\u0275cmp=n.Xpm({type:iO,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var oO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,V.Z)(t,[{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()}}]),t}();oO.\u0275fac=function(r){return new(r||oO)(n.Y36(us),n.Y36(La),n.Y36(Pl),n.Y36($c))},oO.\u0275cmp=n.Xpm({type:oO,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var aO=function(){function t(r,e,i){(0,j.Z)(this,t),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();aO.\u0275fac=function(r){return new(r||aO)(n.Y36(pl),n.Y36(pm.F),n.Y36(Qc))},aO.\u0275cmp=n.Xpm({type:aO,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var sO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,V.Z)(t,[{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,f=45/s*a,h=0,v=0,C=0,B=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,v=Math.floor(e.sourceNode.height/2)+Math.round(f)+5,C=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),B=Math.floor(e.targetNode.height/2)-Math.round(f)+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),v=Math.floor(e.sourceNode.height/2)+Math.round(f)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,B=Math.floor(e.targetNode.height/2)-Math.round(f)-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),v=Math.floor(e.sourceNode.height/2)-Math.round(f)-5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)-Math.round(u)-5,B=Math.floor(e.targetNode.height/2)+Math.round(f)+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),v=Math.floor(e.sourceNode.height/2)-Math.round(f)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,B=Math.floor(e.targetNode.height/2)+Math.round(f)+5);var G=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),ae=this.mapNodeToNode.convert(e.targetNode),pe=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,G,q,ae,pe,h,v,C,B).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Ve){i.linksDataSource.set(Ve)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),t}();sO.\u0275fac=function(r){return new(r||sO)(n.Y36(dl.Y),n.Y36(pl),n.Y36(pm.F),n.Y36(Qc),n.Y36(vm),n.Y36(Hg))},sO.\u0275cmp=n.Xpm({type:sO,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var lO=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();lO.\u0275fac=function(r){return new(r||lO)(n.Y36(ls.G),n.Y36(Xr),n.Y36(Jc))},lO.\u0275cmp=n.Xpm({type:lO,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var uO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,V.Z)(t,[{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()}}]),t}();uO.\u0275fac=function(r){return new(r||uO)(n.Y36(ls.G),n.Y36(Xr),n.Y36(Jc),n.Y36(Dp))},uO.\u0275cmp=n.Xpm({type:uO,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var cO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new n.vpe}return(0,V.Z)(t,[{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()}}]),t}();cO.\u0275fac=function(r){return new(r||cO)(n.Y36(us),n.Y36(La),n.Y36(Pl),n.Y36(Fg),n.Y36($c),n.Y36(qs))},cO.\u0275cmp=n.Xpm({type:cO,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){},styles:[""]});var dO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,V.Z)(t,[{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 sm;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()}}]),t}();dO.\u0275fac=function(r){return new(r||dO)(n.Y36(us),n.Y36(La),n.Y36(Pl),n.Y36($c))},dO.\u0275cmp=n.Xpm({type:dO,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var Mie=m(4147).i8,Wg=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(DZ.o);Wg.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Wg)))(e||Wg)}}(),Wg.\u0275prov=n.Yz7({token:Wg,factory:Wg.\u0275fac});var S4e=["console"];function x4e(t,r){if(1&t&&(n.TgZ(0,"span",12),n._uU(1),n._UZ(2,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.message," ")}}var kN=function(r){return{lightTheme:r}},fO=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),this.projectWebServiceHandler=r,this.nodeService=e,this.nodesDataSource=i,this.logEventsDataSource=o,this.httpService=a,this.themeService=s,this.cd=l,this.nodeConsoleService=u,this.changeDetectorRef=f,this.version=Mie,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 ne.NI(0)}return(0,V.Z)(t,[{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(a){return a.name.valueOf()===i[1].valueOf()});o?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."))})):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."))})):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."))})):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."))})):this.regexConsole.test(this.command)?"started"===o.status?(this.showCommand("Launching console for node ".concat(i[1],"...")),"telnet"===o.console_type?location.assign("gns3+telnet://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"vnc"===o.console_type?location.assign("gns3+vnc://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"spice"===o.console_type?location.assign("gns3+spice://".concat(o.console_host,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):this.showCommand("Supported console types: telnet, vnc, spice.")):this.showCommand("This node must be started before a console can be opened."):this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o))):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)}}]),t}();fO.\u0275fac=function(r){return new(r||fO)(n.Y36(Ug),n.Y36(Xr),n.Y36(ls.G),n.Y36(Wg),n.Y36(Wo.zw),n.Y36(Ju.f),n.Y36(n.sBO),n.Y36(eu),n.Y36(n.sBO))},fO.\u0275cmp=n.Xpm({type:fO,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(S4e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n._uU(3," Apply filter "),n.qZA(),n.TgZ(4,"mat-menu",3,4)(6,"button",5),n.NdJ("click",function(){return e.applyFilter("all")}),n._uU(7,"all"),n.qZA(),n.TgZ(8,"button",5),n.NdJ("click",function(){return e.applyFilter("errors")}),n._uU(9,"errors"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return e.applyFilter("warnings")}),n._uU(11,"warnings"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return e.applyFilter("info")}),n._uU(13,"info"),n.qZA(),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.applyFilter("map updates")}),n._uU(15,"map updates"),n.qZA(),n.TgZ(16,"button",5),n.NdJ("click",function(){return e.applyFilter("controller requests")}),n._uU(17,"controller requests"),n.qZA()()()(),n.TgZ(18,"div",6,7),n.YNc(20,x4e,3,1,"span",8),n.qZA(),n.TgZ(21,"div",9)(22,"mat-icon",10),n._uU(23,"keyboard_arrow_right"),n.qZA(),n.TgZ(24,"input",11),n.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),n.qZA()()),2&r){var i=n.MAs(5);n.xp6(2),n.Q6J("ngClass",n.VKq(8,kN,e.isLightThemeEnabled))("matMenuTriggerFor",i),n.xp6(16),n.Q6J("ngClass",n.VKq(10,kN,e.isLightThemeEnabled))("ngStyle",e.style),n.xp6(2),n.Q6J("ngForOf",e.filteredEvents),n.xp6(1),n.Q6J("ngClass",n.VKq(12,kN,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("ngClass",n.VKq(14,kN,e.isLightThemeEnabled))("ngModel",e.command)}},directives:[wt.mk,Pa,ss,Hr,wt.PC,wt.sg,Vn,ne.Fj,ne.JJ,ne.On],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 Sie=m(4793),xie=m(986),Die=m(9162),D4e=["terminal"],pO=function(){function t(r,e){(0,j.Z)(this,t),this.consoleService=r,this.themeService=e,this.term=new Sie.Terminal,this.fitAddon=new Die.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,V.Z)(t,[{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 xie.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)})}}]),t}();function A4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10),n.NdJ("mousemove",function(o){return n.CHM(e),n.oxw().dragWidget(o)},!1,n.evT)("mouseup",function(){return n.CHM(e),n.oxw().toggleDragging(!1)},!1,n.evT),n.qZA()}}function O4e(t,r){1&t&&(n.TgZ(0,"div",11),n._uU(1,"GNS3 console"),n.qZA())}pO.\u0275fac=function(r){return new(r||pO)(n.Y36(eu),n.Y36(Ju.f))},pO.\u0275cmp=n.Xpm({type:pO,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(D4e,5),2&r)&&(n.iGM(i=n.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&&n._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{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;right:0;left:0;top:0;bottom: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{cursor:text}.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;left:0;top:0;bottom:0;right: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}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var hO=function(r){return{lightThemeConsoleHeader:r}};function I4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",11),n._uU(1),n.qZA(),n.TgZ(2,"button",7),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().index;return n.oxw().removeTab(s)}),n.TgZ(3,"mat-icon"),n._uU(4,"close"),n.qZA()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw();n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("ngClass",n.VKq(2,hO,o.isLightThemeEnabled))}}function P4e(t,r){if(1&t&&(n.TgZ(0,"mat-tab",12),n.YNc(1,I4e,5,4,"ng-template",4),n.qZA()),2&t){var e=n.oxw();n.Q6J("label",e.tab)}}function R4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().minimize(!0)}),n.TgZ(1,"mat-icon"),n._uU(2,"remove"),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("ngClass",n.VKq(1,hO,i.isLightThemeEnabled))}}function L4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().minimize(!1)}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("ngClass",n.VKq(1,hO,i.isLightThemeEnabled))}}function Z4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",13),n.NdJ("mouseover",function(s){return n.CHM(e),n.oxw().disableScroll(s)})("mouseout",function(s){return n.CHM(e),n.oxw().enableScroll(s)}),n._UZ(1,"app-web-console",14),n.qZA()}if(2&t){var i=r.index,o=n.oxw();n.Q6J("hidden",o.isMinimized),n.xp6(1),n.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var N4e=function(r){return{lightTheme:r}},B4e=function(){return{right:!0,left:!0,bottom:!0,top:!0}},mO=function(){function t(r,e,i){(0,j.Z)(this,t),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new n.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 ne.NI(0)}return(0,V.Z)(t,[{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 f=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(f,"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)}}]),t}();function _O(){_O=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}mO.\u0275fac=function(r){return new(r||mO)(n.Y36(eu),n.Y36(Ju.f),n.Y36(fl))},mO.\u0275cmp=n.Xpm({type:mO,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&&(n.YNc(0,A4e,1,0,"div",0),n.TgZ(1,"div",1),n.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),n.TgZ(2,"div",2)(3,"mat-tab-group",3),n.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),n.TgZ(4,"mat-tab"),n.YNc(5,O4e,2,0,"ng-template",4),n.qZA(),n.YNc(6,P4e,2,1,"mat-tab",5),n.qZA(),n.YNc(7,R4e,3,3,"button",6),n.YNc(8,L4e,3,3,"button",6),n.TgZ(9,"button",7),n.NdJ("click",function(){return e.close()}),n.TgZ(10,"mat-icon"),n._uU(11,"close"),n.qZA()()(),n._UZ(12,"app-log-console",8),n.YNc(13,Z4e,2,4,"div",9),n.qZA()),2&r&&(n.Q6J("ngIf",e.isDraggingEnabled),n.xp6(1),n.Q6J("ngClass",n.VKq(16,N4e,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",n.DdM(18,B4e))("enableGhostResize",!0),n.xp6(1),n.Q6J("ngClass",n.VKq(19,hO,e.isLightThemeEnabled)),n.xp6(1),n.Q6J("selectedIndex",e.selected.value),n.xp6(3),n.Q6J("ngForOf",e.nodes),n.xp6(1),n.Q6J("ngIf",!e.isMinimized),n.xp6(1),n.Q6J("ngIf",e.isMinimized),n.xp6(1),n.Q6J("ngClass",n.VKq(21,hO,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),n.xp6(1),n.Q6J("ngForOf",e.nodes))},directives:[wt.O5,UM.E$,wt.mk,wt.PC,so.SP,so.uX,so.uD,wt.sg,Tn,Vn,fO,pO],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 F4e=["topologySummaryContainer"];function U4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-d3-map",37),n.NdJ("nodeDragged",function(a){return n.CHM(e),n.oxw(2).onNodeDragged(a)})("drawingDragged",function(a){return n.CHM(e),n.oxw(2).onDrawingDragged(a)})("onLinkCreated",function(a){return n.CHM(e),n.oxw(2).onLinkCreated(a)})("onDrawingResized",function(a){return n.CHM(e),n.oxw(2).onDrawingResized(a)}),n.qZA()}if(2&t){var i=n.oxw(2);n.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 H4e(t,r){if(1&t&&n._UZ(0,"app-experimental-map",38),2&t){var e=n.oxw(2);n.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 j4e(t,r){1&t&&n._UZ(0,"mat-icon",39)}function z4e(t,r){1&t&&n._UZ(0,"mat-icon",40)}var TN=function(r){return{lightTheme:r}},W4e=function(r){return{selected:r}};function V4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",41)(1,"app-template",42),n.NdJ("onNodeCreation",function(a){return n.CHM(e),n.oxw(2).onNodeCreation(a)}),n.qZA(),n.TgZ(2,"button",43),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).toggleDrawLineMode()}),n.TgZ(3,"mat-icon"),n._uU(4,"timeline"),n.qZA()()()}if(2&t){var i=n.oxw(2);n.Q6J("ngClass",n.VKq(5,TN,i.isLightThemeEnabled)),n.xp6(1),n.Q6J("controller",i.controller)("project",i.project),n.xp6(1),n.Q6J("ngClass",n.VKq(7,W4e,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function Y4e(t,r){if(1&t&&(n.TgZ(0,"div",25),n._UZ(1,"app-snapshot-menu-item",12),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("controller",e.controller)("project",e.project)}}function G4e(t,r){if(1&t&&n._UZ(0,"app-draw-link-tool",44),2&t){var e=n.oxw(2);n.Q6J("links",e.links)}}function q4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-console-wrapper",45),n.NdJ("closeConsole",function(a){return n.CHM(e),n.oxw(2).toggleShowConsole(a)}),n.qZA()}if(2&t){var i=n.oxw(2);n.Q6J("controller",i.controller)("project",i.project)}}var K4e=function(r,e){return{unmarkedLight:r,marked:e}},J4e=function(){return["/controllers"]},Q4e=function(r){return["/controller",r,"projects"]},X4e=function(r){return["/controller",r,"image-manager"]},$4e=function(r){return{visible:r}};function e8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.YNc(1,U4e,1,10,"app-d3-map",3),n.YNc(2,H4e,1,11,"app-experimental-map",4),n.TgZ(3,"div",5)(4,"button",6),n.YNc(5,j4e,1,0,"mat-icon",7),n.YNc(6,z4e,1,0,"mat-icon",8),n.qZA(),n.TgZ(7,"div",9),n.YNc(8,V4e,5,9,"div",10),n.TgZ(9,"div",11),n._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),n.qZA()(),n.TgZ(12,"div")(13,"button",14),n.NdJ("click",function(){n.CHM(e);var u=n.oxw();return u.toggleShowTopologySummary(!u.isTopologySummaryVisible)}),n.TgZ(14,"mat-icon"),n._uU(15,"toc"),n.qZA()()(),n.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),n._uU(20,"developer_board"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Controllers"),n.qZA()(),n.TgZ(23,"button",17)(24,"mat-icon"),n._uU(25,"work"),n.qZA(),n.TgZ(26,"span"),n._uU(27,"Projects"),n.qZA()(),n.TgZ(28,"button",17)(29,"mat-icon"),n._uU(30,"settings_applications"),n.qZA(),n.TgZ(31,"span"),n._uU(32,"Template preferences"),n.qZA()(),n.TgZ(33,"button",17)(34,"mat-icon"),n._uU(35,"collections"),n.qZA(),n.TgZ(36,"span"),n._uU(37,"Image manager"),n.qZA()(),n.TgZ(38,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addNewTemplate()}),n.TgZ(39,"mat-icon"),n._uU(40,"control_point"),n.qZA(),n.TgZ(41,"span"),n._uU(42,"New template"),n.qZA()(),n._UZ(43,"app-import-appliance",12),n.TgZ(44,"button",19)(45,"mat-icon"),n._uU(46,"settings"),n.qZA(),n.TgZ(47,"span"),n._uU(48,"Project settings"),n.qZA()(),n.TgZ(49,"button",19)(50,"mat-icon"),n._uU(51,"view_module"),n.qZA(),n.TgZ(52,"span"),n._uU(53,"Map settings"),n.qZA()()(),n.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addNewProject()}),n.TgZ(58,"mat-icon"),n._uU(59,"add"),n.qZA(),n.TgZ(60,"span"),n._uU(61,"Add new blank project"),n.qZA()(),n.TgZ(62,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().saveProject()}),n.TgZ(63,"mat-icon"),n._uU(64,"save"),n.qZA(),n.TgZ(65,"span"),n._uU(66,"Save project as"),n.qZA()(),n.TgZ(67,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().editProject()}),n.TgZ(68,"mat-icon"),n._uU(69,"edit"),n.qZA(),n.TgZ(70,"span"),n._uU(71,"Edit project"),n.qZA()(),n.TgZ(72,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().exportProject()}),n.TgZ(73,"mat-icon"),n._uU(74,"call_made"),n.qZA(),n.TgZ(75,"span"),n._uU(76,"Export project"),n.qZA()(),n.TgZ(77,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().importProject()}),n.TgZ(78,"mat-icon"),n._uU(79,"call_received"),n.qZA(),n.TgZ(80,"span"),n._uU(81,"Import project"),n.qZA()(),n.TgZ(82,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().closeProject()}),n.TgZ(83,"mat-icon"),n._uU(84,"close"),n.qZA(),n.TgZ(85,"span"),n._uU(86,"Close project"),n.qZA()(),n.TgZ(87,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteProject()}),n.TgZ(88,"mat-icon"),n._uU(89,"delete"),n.qZA(),n.TgZ(90,"span"),n._uU(91,"Delete project"),n.qZA()()()(),n.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowInterfaceLabels(u.checked)}),n._uU(96," Show interface labels "),n.qZA(),n._UZ(97,"br"),n.TgZ(98,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowConsole(u.checked)}),n._uU(99," Show console "),n.qZA(),n._UZ(100,"br"),n.TgZ(101,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowTopologySummary(u.checked)}),n._uU(102," Show topology/controllers summary "),n.qZA(),n._UZ(103,"br"),n.TgZ(104,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleNotifications(u.checked)}),n._uU(105," Show notifications "),n.qZA(),n._UZ(106,"br"),n.TgZ(107,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleLayers(u.checked)}),n._uU(108," Show layers "),n.qZA(),n._UZ(109,"br"),n.TgZ(110,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleGrid(u.checked)}),n._uU(111," Show grid "),n.qZA(),n._UZ(112,"br"),n.TgZ(113,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleSnapToGrid(u.checked)}),n._uU(114," Snap to grid "),n.qZA(),n._UZ(115,"br"),n.TgZ(116,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleSymbolScaling(u.checked)}),n._uU(117," Scale symbols "),n.qZA(),n._UZ(118,"br"),n.qZA()()(),n.TgZ(119,"div",24)(120,"div",25)(121,"button",26),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleMovingMode()}),n.TgZ(122,"mat-icon"),n._uU(123,"near_me"),n.qZA()(),n.TgZ(124,"button",27),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleMovingMode()}),n.TgZ(125,"mat-icon"),n._uU(126,"zoom_out_map"),n.qZA()(),n.TgZ(127,"button",28),n.NdJ("click",function(){return n.CHM(e),n.oxw().zoomIn()}),n.TgZ(128,"mat-icon"),n._uU(129,"zoom_in"),n.qZA()(),n.TgZ(130,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().resetZoom()}),n.TgZ(131,"mat-icon"),n._uU(132,"adjust"),n.qZA()(),n.TgZ(133,"button",30),n.NdJ("click",function(){return n.CHM(e),n.oxw().zoomOut()}),n.TgZ(134,"mat-icon"),n._uU(135,"zoom_out"),n.qZA()()(),n.TgZ(136,"div",25),n._UZ(137,"app-project-map-menu",12),n.qZA(),n.YNc(138,Y4e,2,2,"div",31),n.qZA(),n._UZ(139,"app-progress"),n.YNc(140,G4e,1,1,"app-draw-link-tool",32),n._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),n.TgZ(147,"app-text-added",34),n.NdJ("drawingSaved",function(){return n.CHM(e),n.oxw().onDrawingSaved()}),n.qZA(),n._UZ(148,"app-text-edited",33),n.TgZ(149,"div",35),n.YNc(150,q4e,1,2,"app-console-wrapper",36),n.qZA()()}if(2&t){var i=n.MAs(17),o=n.MAs(55),a=n.MAs(93),s=n.oxw();n.Q6J("ngClass",n.VKq(53,TN,s.isLightThemeEnabled)),n.xp6(1),n.Q6J("ngIf",!s.settings.angular_map),n.xp6(1),n.Q6J("ngIf",s.settings.angular_map),n.xp6(1),n.Q6J("ngClass",n.VKq(55,TN,s.isLightThemeEnabled)),n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(1),n.Q6J("ngIf",!s.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",s.isLightThemeEnabled),n.xp6(2),n.Q6J("ngIf",!s.readonly),n.xp6(2),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("project",s.project)("controller",s.controller),n.xp6(2),n.Q6J("ngClass",n.WLB(57,K4e,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),n.xp6(3),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("routerLink",n.DdM(60,J4e)),n.xp6(5),n.Q6J("routerLink",n.VKq(61,Q4e,s.controller.id)),n.xp6(5),n.MGl("routerLink","/controller/",s.controller.id,"/preferences"),n.xp6(5),n.Q6J("routerLink",n.VKq(63,X4e,s.controller.id)),n.xp6(10),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.Q6J("matMenuTriggerFor",a),n.xp6(5),n.Q6J("overlapTrigger",!1),n.xp6(38),n.Q6J("overlapTrigger",!1),n.xp6(3),n.Q6J("ngModel",s.isInterfaceLabelVisible),n.xp6(3),n.Q6J("ngModel",s.isConsoleVisible),n.xp6(3),n.Q6J("ngModel",s.isTopologySummaryVisible),n.xp6(3),n.Q6J("ngModel",s.notificationsVisibility),n.xp6(3),n.Q6J("ngModel",s.layersVisibility),n.xp6(3),n.Q6J("ngModel",s.gridVisibility),n.xp6(3),n.Q6J("ngModel",s.project.snap_to_grid),n.xp6(3),n.Q6J("ngModel",s.symbolScaling),n.xp6(3),n.Q6J("ngClass",n.VKq(65,TN,s.isLightThemeEnabled)),n.xp6(2),n.Q6J("color",s.tools.moving?"basic":"primary"),n.xp6(3),n.Q6J("color",s.tools.moving?"primary":"basic"),n.xp6(13),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("ngIf",!s.readonly),n.xp6(2),n.Q6J("ngIf",s.tools.draw_link),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("ngClass",n.VKq(67,$4e,!s.isConsoleVisible)),n.xp6(1),n.Q6J("ngIf",s.project)}}function t8e(t,r){}var gO=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G,q,ae,pe,Ve,Me,Be,pt,ht,Pe,at,Ct,E,_,A,H,ee,re,ge,ft,St,be,rt,Pt,Bn,er,Rn,gn,ma,Tr,zr,Wn,In,yr){(0,j.Z)(this,t),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=f,this.drawingsWidget=h,this.linkWidget=v,this.labelWidget=C,this.interfaceLabelWidget=B,this.mapNodeToNode=G,this.mapDrawingToDrawing=q,this.mapLabelToLabel=ae,this.mapLinkToLink=pe,this.mapLinkNodeToLinkNode=Ve,this.nodesDataSource=Me,this.linksDataSource=Be,this.drawingsDataSource=pt,this.settingsService=ht,this.toolsService=Pe,this.selectionManager=at,this.selectionTool=Ct,this.recentlyOpenedProjectService=E,this.movingEventSource=_,this.mapScaleService=A,this.nodeCreatedLabelStylesFixer=H,this.toasterService=ee,this.dialog=re,this.router=ge,this.mapNodesDataSource=ft,this.mapLinksDataSource=St,this.mapDrawingsDataSource=be,this.mapSymbolsDataSource=rt,this.mapSettingsService=Pt,this.ethernetLinkWidget=Bn,this.serialLinkWidget=er,this.bottomSheet=Rn,this.notificationService=gn,this.themeService=ma,this.title=Tr,this.nodeConsoleService=zr,this.symbolService=Wn,this.cd=In,this.viewContainerRef=yr,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 Io.w}return(0,V.Z)(t,[{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,_O().mark(function e(){var i,o;return _O().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,_O().mark(function a(){var s;return _O().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(as.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,el.D)(e.controllerService.get(a)).pipe((0,Ea.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,mr.U)(function(l){return l}))}),(0,Ea.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 fo.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;hg.bind("ctrl++",function(i){i.preventDefault(),e.zoomIn()}),hg.bind("ctrl+-",function(i){i.preventDefault(),e.zoomOut()}),hg.bind("ctrl+0",function(i){i.preventDefault(),e.resetZoom()}),hg.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))}),hg.bind("ctrl+h",function(i){i.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),hg.bind("ctrl+shift+a",function(i){i.preventDefault(),e.selectionManager.setSelected([])}),hg.bind("ctrl+shift+s",function(i){i.preventDefault(),e.router.navigate(["/controller",e.controller.id,"preferences"])}),hg.bind("del",function(i){i.preventDefault(),e.deleteItems()})}},{key:"deleteItems",value:function(){var e=this;this.bottomSheet.open(Xc);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 g0}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(f){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof sm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(f){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,Ea.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,Ea.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(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(v){var C=e.mapNodeToNode.convert(v.node);e.contextMenu.openMenuForNode(C,v.event.pageY,v.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(v){var C=e.mapDrawingToDrawing.convert(v.drawing);e.contextMenu.openMenuForDrawing(C,v.event.pageY,v.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(v){var C=e.mapLabelToLabel.convert(v.label),B=e.nodes.find(function(G){return G.node_id===v.label.nodeId});e.contextMenu.openMenuForLabel(C,B,v.event.screenY-60,v.event.screenX)}),f=this.interfaceLabelWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkNodeToLinkNode.convert(v.interfaceLabel),B=e.links.find(function(G){return G.link_id===v.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(C,B,v.event.pageY,v.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(v){var C=e.selectionManager.getSelected();if(!(C.length<2)&&v instanceof MouseEvent){var B=[],G=[],q=[],ae=[];C.forEach(function(pe){pe instanceof sm?B.push(e.mapDrawingToDrawing.convert(pe)):pe instanceof g0?G.push(e.mapNodeToNode.convert(pe)):pe instanceof Nw?q.push(e.mapLabelToLabel.convert(pe)):pe instanceof iie&&ae.push(e.mapLinkToLink.convert(pe))}),e.contextMenu.openMenuForListOfElements(B,G,q,ae,v.pageY,v.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(f),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(at){var Ct=at.svg.split('"'),E=parseInt(Ct[1],10),_=parseInt(Ct[3],10);at.element={width:_,height:E}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(at){var Ct=new n8e;Ct.node=at,Ct.top=at.y,Ct.left=at.x,Ct.bottom=at.y+at.height,Ct.right=at.x+at.width,at.y+at.label.y<Ct.top&&(Ct.top=at.y+at.label.y),at.x+at.label.x<Ct.left&&(Ct.left=at.x+at.label.x),at.y+at.label.y>Ct.bottom&&(Ct.bottom=at.y+at.label.y),at.x+at.label.x>Ct.right&&(Ct.right=at.x+at.label.x),s.push(Ct)});var l=s.sort(function(at,Ct){return at.left-Ct.left})[0],u=s.sort(function(at,Ct){return at.right-Ct.right})[s.length-1],f=s.sort(function(at,Ct){return at.top-Ct.top})[0],h=s.sort(function(at,Ct){return at.bottom-Ct.bottom})[s.length-1],v=[];this.drawings.forEach(function(at){var Ct=new r8e;Ct.drawing=at,Ct.top=at.y,Ct.left=at.x,Ct.bottom=at.y+at.element.height,Ct.right=at.x+at.element.width,v.push(Ct)});var C=v.sort(function(at,Ct){return at.left-Ct.left})[0],B=v.sort(function(at,Ct){return at.right-Ct.right})[v.length-1],G=v.sort(function(at,Ct){return at.top-Ct.top})[0],q=v.sort(function(at,Ct){return at.bottom-Ct.bottom})[v.length-1];C&&l?(e=l.left<C.left?l.left:C.left,i=u.right>B.right?u.right:B.right,o=f.top<G.top?f.top:G.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!C?(e=l.left,i=u.right,o=f.top,a=h.bottom):C&&!l?(e=C.left,i=B.right,o=G.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var pe=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ve=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Me=i-e,Be=a-o,pt=Me/pe,ht=Be/Ve,Pe=1/Math.max(pt,ht);Pe!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Pe),this.project.scene_width=this.project.scene_width*Pe,this.project.scene_height=this.project.scene_height*Pe,ht<Me?(this.scrollX=e*Pe-(pe-Me*Pe)/2+this.project.scene_width/2,this.scrollY=o*Pe+this.project.scene_height/2):(this.scrollX=e*Pe+this.project.scene_width/2,this.scrollY=o*Pe-(Ve-Be*Pe)/2+this.project.scene_height/2)):(this.scrollX=e*Pe+this.project.scene_width/2,this.scrollY=o*Pe+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(Jw,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(ED,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(TD,{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(Qw,{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(Xw);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(Zw,{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(Xc);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(Xc);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(ok,{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(UA,{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()}}]),t}();gO.\u0275fac=function(r){return new(r||gO)(n.Y36(xr),n.Y36(vr),n.Y36(dl.Y),n.Y36(Xr),n.Y36(us),n.Y36(ul),n.Y36(Ug),n.Y36(Cp),n.Y36(Sg),n.Y36(Mp),n.Y36(Og),n.Y36(kp),n.Y36(Xd),n.Y36(vm),n.Y36(V0),n.Y36(Dp),n.Y36(Y0),n.Y36(jg),n.Y36(ls.G),n.Y36(pm.F),n.Y36(La),n.Y36(hm.g),n.Y36(Sp),n.Y36(Il),n.Y36(wp),n.Y36(CN.p),n.Y36(fm),n.Y36($d),n.Y36(G0),n.Y36($n),n.Y36(ri),n.Y36(kr),n.Y36(nm),n.Y36(rm),n.Y36(im),n.Y36(om),n.Y36(fl),n.Y36(Dg),n.Y36(Ag),n.Y36(ef),n.Y36(q0),n.Y36(Ju.f),n.Y36(An.Dx),n.Y36(eu),n.Y36(cp),n.Y36(n.sBO),n.Y36(n.s_b))},gO.\u0275cmp=n.Xpm({type:gO,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(ek,5),n.Gf(qw,5),n.Gf(ck,5),n.Gf(F4e,5,n.s_b)),2&r)&&(n.iGM(i=n.CRH())&&(e.contextMenu=i.first),n.iGM(i=n.CRH())&&(e.mapChild=i.first),n.iGM(i=n.CRH())&&(e.projectMapMenuComponent=i.first),n.iGM(i=n.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&&(n.YNc(0,e8e,151,69,"div",0),n.YNc(1,t8e,0,0,"ng-template",null,1,n.W1O)),2&r&&n.Q6J("ngIf",e.project)},directives:[wt.O5,wt.mk,qw,KA,Tn,vi,Pa,Vn,QA,$A,ek,ss,Hr,na,eO,Ui,ne.JJ,ne.On,ck,nO,Jy,rO,iO,oO,aO,sO,lO,uO,cO,dO,mO],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:0px;left:0px;right:0px;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:0px;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:0px;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:0px;left:92px;right:0px;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 n8e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),r8e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),vO=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e}return(0,V.Z)(t,[{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()})}}]),t}();function az(){az=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function i8e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.xp6(1),n.AsE("",i+1,". ",null==e?null:e.filename,"")}}function o8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"h1",1),n._uU(2,"Do you want delete all projects?"),n.qZA(),n.TgZ(3,"div",2)(4,"p"),n._uU(5,"Your selected projects"),n.qZA(),n.YNc(6,i8e,2,2,"p",3),n.qZA(),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteAll()}),n._uU(9,"Delete"),n.qZA(),n.TgZ(10,"button",6),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function a8e(t,r){1&t&&(n.TgZ(0,"div")(1,"h1",7),n._uU(2,"Please wait."),n.qZA(),n.TgZ(3,"div",8),n._UZ(4,"mat-spinner",9),n.qZA()())}function s8e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw(),i=e.index,o=e.$implicit;n.xp6(1),n.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}vO.\u0275fac=function(r){return new(r||vO)(n.Y36(Dr),n.Y36(dl.Y))},vO.\u0275cmp=n.Xpm({type:vO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Save project as"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("ngModelChange",function(o){return e.name=o}),n.qZA()()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(9,"Save project"),n.qZA()()),2&r&&(n.xp6(4),n.Q6J("ngModel",e.name))},directives:[Vr,Un.KE,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var l8e=function(r){return{"deleted-error-text":r}};function u8e(t,r){if(1&t&&(n.TgZ(0,"p",12),n.YNc(1,s8e,2,2,"span",0),n.qZA()),2&t){var e=r.$implicit;n.Q6J("ngClass",n.VKq(2,l8e,null==e||null==e.error?null:e.error.message)),n.xp6(1),n.Q6J("ngIf",null!=e)}}function c8e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"Project can't be deleted because image used in one or more template."),n.qZA(),n.YNc(3,u8e,2,4,"p",11),n.qZA()),2&t){var e=n.oxw(2);n.xp6(3),n.Q6J("ngForOf",e.deleteFliesDetails)}}function d8e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5",13),n._uU(2),n.qZA()()),2&t){var e=n.oxw(2);n.xp6(2),n.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function f8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",2),n.YNc(2,c8e,4,1,"div",0),n.YNc(3,d8e,3,1,"div",0),n.qZA(),n.TgZ(4,"div",4)(5,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close(!1)}),n._uU(6,"Close"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngIf",i.deleteFliesDetails.length>0),n.xp6(1),n.Q6J("ngIf",i.fileNotDeleted.length>0)}}var yO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return Yi(this,void 0,void 0,az().mark(function e(){return az().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,Vd.K)(function(a){return(0,pr.of)(a)})))}),fo.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})}}]),t}();function p8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw();return a?s.selectAllImages():null}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function h8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell")(1,"mat-checkbox",25),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw();return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function m8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",26),n._uU(1," Name "),n.qZA())}yO.\u0275fac=function(r){return new(r||yO)(n.Y36(Vo),n.Y36(Dr),n.Y36(dl.Y),n.Y36($n))},yO.\u0275cmp=n.Xpm({type:yO,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&&(n.YNc(0,o8e,12,1,"div",0),n.YNc(1,a8e,5,0,"div",0),n.YNc(2,f8e,7,2,"div",0)),2&r&&(n.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},directives:[wt.O5,Vr,_u,wt.sg,Zr,Tn,sg,Kl,wt.mk],styles:[""]});var _8e=function(r,e){return["/controller",r,"project",e]};function g8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",27),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("routerLink",n.WLB(2,_8e,i.controller.id,e.project_id)),n.xp6(1),n.Oqu(e.name)}}function v8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",28),n._uU(1," Actions "),n.qZA())}function y8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",35),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().open(o)}),n.TgZ(1,"mat-icon",36),n._uU(2,"play_arrow"),n.qZA()()}}function b8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",37),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().close(o)}),n.TgZ(1,"mat-icon",38),n._uU(2,"pause"),n.qZA()()}}function C8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",39),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().duplicate(o)}),n.TgZ(1,"mat-icon",40),n._uU(2,"save"),n.qZA()()}}function w8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",29),n.YNc(1,y8e,3,0,"button",30),n.YNc(2,b8e,3,0,"button",31),n.YNc(3,C8e,3,0,"button",32),n.TgZ(4,"button",33),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().exportSelectProject(s)}),n.TgZ(5,"mat-icon",34),n._uU(6,"arrow_downward"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(1),n.Q6J("ngIf","closed"==i.status),n.xp6(1),n.Q6J("ngIf","opened"==i.status),n.xp6(1),n.Q6J("ngIf","closed"==i.status)}}function k8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",42),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).deleteAllFiles()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function T8e(t,r){if(1&t&&(n.TgZ(0,"mat-header-cell",28),n.YNc(1,k8e,3,0,"button",41),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function E8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",44),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().delete(o)}),n.TgZ(1,"mat-icon",45),n._uU(2,"delete"),n.qZA()()}}function M8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",28),n.YNc(1,E8e,3,0,"button",43),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function S8e(t,r){1&t&&n._UZ(0,"mat-header-row")}function x8e(t,r){1&t&&n._UZ(0,"mat-row")}var D8e=function(){return{standalone:!0}},_k=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.recentlyOpenedProjectService=h,this.projectDatabase=new A8e,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new po.Ov(!0,[])}return(0,V.Z)(t,[{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 O8e(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(Xc);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(Xc);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(vO,{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(Jw,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(Qw,{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(Xw);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(f){f&&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(yO,{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(Zw,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),t}();_k.\u0275fac=function(r){return new(r||_k)(n.Y36(xr),n.Y36(dl.Y),n.Y36(hm.g),n.Y36(ul),n.Y36(ri),n.Y36(kr),n.Y36(ef),n.Y36($n),n.Y36(sl),n.Y36(CN.p))},_k.\u0275cmp=n.Xpm({type:_k,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(td,7),2&r)&&(n.iGM(i=n.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 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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Projects"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return e.addBlankProject()}),n._uU(6," Add blank project "),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.importProject()}),n._uU(8," Import project "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),n.NdJ("ngModelChange",function(o){return e.searchText=o}),n.qZA()()(),n.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),n.ALo(16,"projectsfilter"),n.ynx(17,12),n.YNc(18,p8e,2,2,"mat-header-cell",13),n.YNc(19,h8e,2,1,"mat-cell",14),n.BQk(),n.ynx(20,15),n.YNc(21,m8e,2,0,"mat-header-cell",16),n.YNc(22,g8e,3,5,"mat-cell",14),n.BQk(),n.ynx(23,17),n.YNc(24,v8e,2,0,"mat-header-cell",18),n.YNc(25,w8e,7,3,"mat-cell",19),n.BQk(),n.ynx(26,20),n.YNc(27,T8e,2,1,"mat-header-cell",18),n.YNc(28,M8e,2,1,"mat-cell",21),n.BQk(),n.YNc(29,S8e,1,0,"mat-header-row",22),n.YNc(30,x8e,1,0,"mat-row",23),n.qZA()()()()),2&r&&(n.xp6(11),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(8,D8e)),n.xp6(3),n.Q6J("dataSource",n.xi3(16,5,e.dataSource,e.searchText)),n.xp6(15),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.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 A8e=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{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()))}}]),t}(),O8e=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return To.T.apply(void 0,a).pipe((0,mr.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],f=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+f)?f:+f)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2);function nc(){nc=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function I8e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function P8e(t,r){if(1&t&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}var bO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),path:new ne.NI(""),ubridge_path:new ne.NI(""),host:new ne.NI("",[ne.kI.required]),port:new ne.NI("",[ne.kI.required,ne.kI.min(1)]),protocol:new ne.NI("http:")})}return(0,V.Z)(t,[{key:"getLocations",value:function(){return Yi(this,void 0,void 0,nc().mark(function e(){var i,o;return nc().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,nc().mark(function e(){var i;return nc().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,nc().mark(function e(){var i;return nc().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,nc().mark(function e(){return nc().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,nc().mark(function e(){return nc().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,nc().mark(function e(){var o,a,s,i=this;return nc().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(f){var h=i.controllerForm.get("path"),v=i.controllerForm.get("ubridge_path");"local"===f?(h.setValue(o),h.setValidators([ne.kI.required]),v.setValue(a),v.setValidators([ne.kI.required])):(h.setValue(""),h.clearValidators(),v.setValue(""),v.clearValidators()),[h,v].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()}}]),t}();function J0(){J0=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}bO.\u0275fac=function(r){return new(r||bO)(n.Y36(Dr),n.Y36(sl),n.Y36(vr),n.Y36($n),n.Y36(Vo))},bO.\u0275cmp=n.Xpm({type:bO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Add controller"),n.qZA(),n.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),n._UZ(5,"input",3),n.YNc(6,I8e,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"mat-form-field"),n._UZ(8,"input",5),n.qZA(),n.TgZ(9,"mat-form-field"),n._UZ(10,"input",6),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",7),n.YNc(13,P8e,2,2,"mat-option",8),n.qZA()()(),n.TgZ(14,"div",9)(15,"button",10),n.NdJ("click",function(){return e.onNoClick()}),n._uU(16,"Cancel"),n.qZA(),n.TgZ(17,"button",11),n.NdJ("click",function(){return e.onAddClick()}),n._uU(18,"Add"),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.controllerForm),n.xp6(4),n.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),n.xp6(7),n.Q6J("ngForOf",e.protocols))},directives:[Vr,ne._Y,ne.JL,ne.sg,_u,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,xi.gD,wt.sg,sn.ey,Zr,Tn],encapsulation:2});var Vg=function(){function t(r){var e=this;(0,j.Z)(this,t),this.electronService=r,this.controllerStatusChanged=new qn.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,V.Z)(t,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return Yi(this,void 0,void 0,J0().mark(function i(){var o;return J0().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,J0().mark(function i(){return J0().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,J0().mark(function e(){return J0().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)}}]),t}();Vg.\u0275fac=function(r){return new(r||Vg)(n.LFG(sl))},Vg.\u0275prov=n.Yz7({token:Vg,factory:Vg.\u0275fac});var sz=m(5887);function bm(){bm=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function R8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-card",2)(1,"mat-card-content",3),n._uU(2," We've discovered GNS3 controller on "),n.TgZ(3,"b"),n._uU(4),n.qZA(),n._uU(5,", would you like to add to the list? "),n.qZA(),n.TgZ(6,"mat-card-actions",4)(7,"button",5),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.ignore(a.discoveredController)}),n._uU(8,"NO"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.accept(a.discoveredController)}),n._uU(10,"YES"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(4),n.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function L8e(t,r){1&t&&n._UZ(0,"mat-divider")}var gk=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,V.Z)(t,[{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,bm().mark(function o(){return bm().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,bm().mark(function e(){var i;return bm().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,bm().mark(function e(){var o,i=this;return bm().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,bm().mark(function u(){var f;return bm().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return(f=new iZ).host=l.host,f.port=l.port,C.next=5,this.versionService.get(f).toPromise().catch(function(B){return null});case 5:C.sent&&o.push(f);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,Bc.D)([(0,el.D)(this.controllerService.findAll()).pipe((0,mr.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Ut.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 sz.Observable.of(null)}))}),new sz.Observable(function(o){(0,Bc.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 iZ;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return sz.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})}}]),t}();function Q0(){Q0=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function Z8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," ID "),n.qZA())}function N8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function B8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}gk.\u0275fac=function(r){return new(r||gk)(n.Y36(zh),n.Y36(vr),n.Y36(up),n.Y36(xr))},gk.\u0275cmp=n.Xpm({type:gk,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&&(n.YNc(0,R8e,11,2,"mat-card",0),n.YNc(1,L8e,1,0,"mat-divider",1)),2&r&&(n.Q6J("ngIf",e.discoveredController),n.xp6(1),n.Q6J("ngIf",e.discoveredController))},directives:[wt.O5,Si,$y,Yx,Tn,ag.d],styles:[""]});var F8e=function(r){return["/controller",r,"login"]};function U8e(t,r){if(1&t&&(n.TgZ(0,"a",22),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit;n.Q6J("routerLink",n.VKq(2,F8e,e.id)),n.xp6(1),n.Oqu(e.name)}}function H8e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit;n.xp6(1),n.Oqu(e.name)}}function j8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,U8e,2,4,"a",20),n.YNc(2,H8e,2,1,"span",21),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),n.xp6(1),n.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function z8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Location "),n.qZA())}function W8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.location," ")}}function V8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Host "),n.qZA())}function Y8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.host," ")}}function G8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Port "),n.qZA())}function q8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.port," ")}}function K8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function J8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().openProjects(o)}),n.TgZ(1,"mat-icon",31),n._uU(2,"arrow_forward"),n.qZA()()}}function Q8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().startController(o)}),n.TgZ(1,"mat-icon",33),n._uU(2,"play_arrow"),n.qZA()()}}function X8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",34),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().stopController(o)}),n.TgZ(1,"mat-icon",35),n._uU(2,"stop"),n.qZA()()}}function $8e(t,r){1&t&&n._UZ(0,"mat-spinner",36),2&t&&n.Q6J("diameter",24)}function eUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",23),n.YNc(1,J8e,3,0,"button",24),n.YNc(2,Q8e,3,0,"button",25),n.YNc(3,X8e,3,0,"button",26),n.YNc(4,$8e,1,1,"mat-spinner",27),n.TgZ(5,"button",28),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().deleteController(l)}),n.TgZ(6,"mat-icon",29),n._uU(7,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function tUe(t,r){1&t&&n._UZ(0,"mat-header-row")}function nUe(t,r){1&t&&n._UZ(0,"mat-row")}function rUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",37),n.NdJ("click",function(){return n.CHM(e),n.oxw().startLocalController()}),n._uU(1," Start local controller "),n.qZA()}}var CO=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,V.Z)(t,[{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,Q0().mark(function o(){return Q0().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 iUe(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(bO,{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(Xc);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,Q0().mark(function i(){return Q0().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,Q0().mark(function i(){return Q0().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)}))}}]),t}();CO.\u0275fac=function(r){return new(r||CO)(n.Y36(ri),n.Y36(vr),n.Y36(up),n.Y36(Vg),n.Y36(n.sBO),n.Y36(sl),n.Y36(dH),n.Y36(ef),n.Y36(xr),n.Y36(kr))},CO.\u0275cmp=n.Xpm({type:CO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Controllers"),n.qZA()(),n.TgZ(4,"div",2),n._UZ(5,"app-controller-discovery"),n.TgZ(6,"div",3)(7,"mat-table",4,5),n.ynx(9,6),n.YNc(10,Z8e,2,0,"mat-header-cell",7),n.YNc(11,N8e,2,1,"mat-cell",8),n.BQk(),n.ynx(12,9),n.YNc(13,B8e,2,0,"mat-header-cell",7),n.YNc(14,j8e,3,2,"mat-cell",8),n.BQk(),n.ynx(15,10),n.YNc(16,z8e,2,0,"mat-header-cell",7),n.YNc(17,W8e,2,1,"mat-cell",8),n.BQk(),n.ynx(18,11),n.YNc(19,V8e,2,0,"mat-header-cell",7),n.YNc(20,Y8e,2,1,"mat-cell",8),n.BQk(),n.ynx(21,12),n.YNc(22,G8e,2,0,"mat-header-cell",7),n.YNc(23,q8e,2,1,"mat-cell",8),n.BQk(),n.ynx(24,13),n.YNc(25,K8e,2,0,"mat-header-cell",7),n.YNc(26,eUe,8,4,"mat-cell",14),n.BQk(),n.YNc(27,tUe,1,0,"mat-header-row",15),n.YNc(28,nUe,1,0,"mat-row",16),n.qZA()(),n.TgZ(29,"div",17),n.YNc(30,rUe,2,0,"button",18),n.TgZ(31,"button",19),n.NdJ("click",function(){return e.createModal()}),n._uU(32,"Add Controller"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("dataSource",e.dataSource),n.xp6(20),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isElectronApp))},directives:[gk,ca,aa,fa,Sa,da,xa,wt.O5,Ws,Tn,vi,Vn,Kl,Da,Oa,Aa,Ia],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 iUe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this;return(0,To.T)(this.controllerDatabase.dataChange).pipe((0,mr.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2),X0=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{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"'}}}]),t}();X0.\u0275fac=function(r){return new(r||X0)(n.LFG(sl))},X0.\u0275prov=n.Yz7({token:X0,factory:X0.\u0275fac});var Yg=function(){function t(r,e){(0,j.Z)(this,t),this.defaultConsoleService=r,this.settingsService=e}return(0,V.Z)(t,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),t}();Yg.\u0275fac=function(r){return new(r||Yg)(n.LFG(X0),n.LFG(hm.g))},Yg.\u0275prov=n.Yz7({token:Yg,factory:Yg.\u0275fac});var wO=function(){function t(r,e,i){(0,j.Z)(this,t),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new ne.cw({command:new ne.NI("")})}return(0,V.Z)(t,[{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()}}]),t}();wO.\u0275fac=function(r){return new(r||wO)(n.Y36(kr),n.Y36(Yg),n.Y36($n))},wO.\u0275cmp=n.Xpm({type:wO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Console settings"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),n._UZ(9,"textarea",7),n.qZA(),n.TgZ(10,"div",8),n._uU(11," The following variables are replaced by GNS3:"),n._UZ(12,"br"),n._uU(13," %h: console IP or hostname"),n._UZ(14,"br"),n._uU(15," %p: console port"),n._UZ(16,"br"),n._uU(17," %s: path of the serial connection"),n._UZ(18,"br"),n._uU(19," %d: title of the console"),n._UZ(20,"br"),n._uU(21," %i: Project UUID"),n._UZ(22,"br"),n._uU(23," %c: controller URL (http://user:password@controller:port) "),n.qZA()()(),n.TgZ(24,"div",9)(25,"button",10),n.NdJ("click",function(){return e.goBack()}),n._uU(26,"Cancel"),n.qZA(),n.TgZ(27,"button",11),n.NdJ("click",function(){return e.save()}),n._uU(28,"Save"),n.qZA(),n._UZ(29,"br"),n.qZA()()()),2&r&&(n.xp6(7),n.Q6J("formGroup",e.consoleForm))},directives:[Si,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,Tn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var $0=function(){function t(r){(0,j.Z)(this,t),this.httpClient=r}return(0,V.Z)(t,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),t}();$0.\u0275fac=function(r){return new(r||$0)(n.LFG(zu.eN))},$0.\u0275prov=n.Yz7({token:$0,factory:$0.\u0275fac});var kO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,V.Z)(t,[{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")}}]),t}();kO.\u0275fac=function(r){return new(r||kO)(n.Y36(hm.g),n.Y36($n),n.Y36(Yg),n.Y36(Ju.f),n.Y36(fl),n.Y36($0))},kO.\u0275cmp=n.Xpm({type:kO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Settings"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),n._uU(10," Local settings "),n.qZA(),n.TgZ(11,"mat-panel-description"),n._uU(12," Customize your local settings "),n.qZA()(),n.TgZ(13,"div")(14,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),n._uU(15,"Send anonymous crash reports"),n.qZA(),n._UZ(16,"br"),n.TgZ(17,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),n._uU(18,"Integrate link labels to links"),n.qZA(),n._UZ(19,"br"),n.TgZ(20,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.openReadme=o}),n._uU(21,"Automatically open project README files"),n.qZA(),n._UZ(22,"br"),n.TgZ(23,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),n._uU(24,"Send anonymous usage statistics"),n.qZA(),n._UZ(25,"br"),n.TgZ(26,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),n._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),n.qZA()()(),n.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),n._uU(31," Theme settings "),n.qZA(),n.TgZ(32,"mat-panel-description"),n._uU(33," Customize theme settings "),n.qZA()(),n.TgZ(34,"div",6)(35,"button",7),n.NdJ("click",function(){return e.setDarkMode(!1)}),n._uU(36,"Switch to light theme"),n.qZA(),n.TgZ(37,"button",7),n.NdJ("click",function(){return e.setDarkMode(!0)}),n._uU(38,"Switch to dark theme"),n.qZA()()(),n.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),n._uU(42," Updates "),n.qZA(),n.TgZ(43,"mat-panel-description"),n._uU(44," Check for updates "),n.qZA()(),n.TgZ(45,"div",6)(46,"button",8),n.NdJ("click",function(){return e.checkForUpdates()}),n._uU(47,"Check for updates"),n.qZA()()()()(),n.TgZ(48,"div",9)(49,"button",10),n.NdJ("click",function(){return e.save()}),n._uU(50,"Save settings"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("expanded",!0),n.xp6(7),n.Q6J("ngModel",e.settings.crash_reports),n.xp6(3),n.Q6J("ngModel",e.integrateLinksLabelsToLinks),n.xp6(3),n.Q6J("ngModel",e.openReadme),n.xp6(3),n.Q6J("ngModel",e.settings.anonymous_statistics),n.xp6(3),n.Q6J("ngModel",e.openConsolesInWidget),n.xp6(2),n.Q6J("expanded",!1),n.xp6(11),n.Q6J("expanded",!1))},directives:[Ml,Jl,Ql,hu,Jx,Ui,ne.JJ,ne.On,Tn],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var TO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),t}();TO.\u0275fac=function(r){return new(r||TO)},TO.\u0275pipe=n.Yjl({name:"namefilter",type:TO,pure:!0});var EO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,f=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+f+"/"+u+"/"+l}}]),t}();function oUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",18),n._uU(1," Name "),n.qZA())}function aUe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function sUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",18),n._uU(1," Date "),n.qZA())}function lUe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.ALo(2,"datefilter"),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.created_at)," ")}}function uUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function cUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().restoreSnapshot(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"restore"),n.qZA()(),n.TgZ(4,"button",22),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().deleteSnapshot(a)}),n.TgZ(5,"mat-icon",23),n._uU(6,"delete"),n.qZA()()()}}function dUe(t,r){1&t&&n._UZ(0,"mat-header-row")}function fUe(t,r){1&t&&n._UZ(0,"mat-row")}EO.\u0275fac=function(r){return new(r||EO)},EO.\u0275pipe=n.Yjl({name:"datefilter",type:EO,pure:!0});var MO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,V.Z)(t,[{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===K0.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 hUe(t,r,e){return t=t.toLowerCase(),r=r.toLowerCase(),(t<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function pUe(t,r,e){return(t<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),t}();MO.\u0275fac=function(r){return new(r||MO)(n.Y36(xr),n.Y36(ym),n.Y36(zg),n.Y36($n))},MO.\u0275cmp=n.Xpm({type:MO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Snapshots"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),n.NdJ("ngModelChange",function(o){return e.searchText=o}),n.qZA()(),n.TgZ(9,"mat-table",7,8),n.NdJ("matSortChange",function(o){return e.sortData(o)}),n.ALo(11,"namefilter"),n.ynx(12,9),n.YNc(13,oUe,2,0,"mat-header-cell",10),n.YNc(14,aUe,2,1,"mat-cell",11),n.BQk(),n.ynx(15,12),n.YNc(16,sUe,2,0,"mat-header-cell",10),n.YNc(17,lUe,3,3,"mat-cell",11),n.BQk(),n.ynx(18,13),n.YNc(19,uUe,2,0,"mat-header-cell",14),n.YNc(20,cUe,7,0,"mat-cell",15),n.BQk(),n.YNc(21,dUe,1,0,"mat-header-row",16),n.YNc(22,fUe,1,0,"mat-row",17),n.qZA()()()()),2&r&&(n.xp6(8),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("dataSource",n.xi3(11,4,e.snapshots,e.searchText)),n.xp6(12),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Si,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,gm,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia],pipes:[TO,EO],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var Aie=new n.OlP("MatChipRemove"),Oie=new n.OlP("MatChipAvatar"),Iie=new n.OlP("MatChipTrailingIcon"),_Ue=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r}),gUe=(0,sn.sb)((0,sn.pj)((0,sn.Kr)(_Ue),"primary"),-1),vk=(0,V.Z)(function t(){(0,j.Z)(this,t)});vk.\u0275fac=function(r){return new(r||vk)},vk.\u0275dir=n.lG2({type:vk,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[n._Bn([{provide:Oie,useExisting:vk}])]});var yk=(0,V.Z)(function t(){(0,j.Z)(this,t)});yk.\u0275fac=function(r){return new(r||yk)},yk.\u0275dir=n.lG2({type:yk,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[n._Bn([{provide:Iie,useExisting:yk}])]});var Gg=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this,i))._ngZone=o,v._changeDetectorRef=l,v._hasFocus=!1,v.chipListSelectable=!0,v._chipListMultiple=!1,v._chipListDisabled=!1,v._selected=!1,v._selectable=!0,v._disabled=!1,v._removable=!0,v._onFocus=new qn.xQ,v._onBlur=new qn.xQ,v.selectionChange=new n.vpe,v.destroyed=new n.vpe,v.removed=new n.vpe,v._addHostClassName(),v._chipRippleTarget=u.createElement("div"),v._chipRippleTarget.classList.add("mat-chip-ripple"),v._elementRef.nativeElement.appendChild(v._chipRippleTarget),v._chipRipple=new sn.IR((0,Mx.Z)(v),o,v._chipRippleTarget,a),v._chipRipple.setupTriggerEvents(i),v.rippleConfig=s||{},v._animationsDisabled="NoopAnimations"===f,v.tabIndex=null!=h&&parseInt(h)||-1,v}return(0,V.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,Hn.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,Hn.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,Hn.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,Hn.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 Gr.yY:case Gr.ZH:this.remove(),o.preventDefault();break;case Gr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,no.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}(gUe);Gg.\u0275fac=function(r){return new(r||Gg)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Zi.t4),n.Y36(sn.Y2,8),n.Y36(n.sBO),n.Y36(wt.K0),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Gg.\u0275dir=n.lG2({type:Gg,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Oie,5),n.Suo(i,Iie,5),n.Suo(i,Aie,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.avatar=o.first),n.iGM(o=n.CRH())&&(e.trailingIcon=o.first),n.iGM(o=n.CRH())&&(e.removeIcon=o.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(r,e){1&r&&n.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&&(n.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),n.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]});var bk=function(){function t(r,e){(0,j.Z)(this,t),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,V.Z)(t,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),t}();bk.\u0275fac=function(r){return new(r||bk)(n.Y36(Gg),n.Y36(n.SBq))},bk.\u0275dir=n.lG2({type:bk,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._handleClick(o)})},features:[n._Bn([{provide:Aie,useExisting:bk}])]});var Pie=new n.OlP("mat-chips-default-options"),vUe=0,SO=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(vUe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,V.Z)(t,[{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,Hn.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,Hn.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===Gr.Mf&&!(0,Gr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===Gr.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===Gr.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,Gr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),t}();SO.\u0275fac=function(r){return new(r||SO)(n.Y36(n.SBq),n.Y36(Pie))},SO.\u0275dir=n.lG2({type:SO,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&n.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&&(n.Ikx("id",e.id),n.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:[n.TTD]});var yUe=(0,sn.FD)(function(){return(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o})}()),bUe=0,CUe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.value=e}),eb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,u,s,l,f))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new qn.xQ,h._uid="mat-chip-list-".concat(bUe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(v,C){return v===C},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new n.vpe,h.valueChange=new n.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,Mx.Z)(h)),h}return(0,V.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.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,Hn.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(ne.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Hn.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,Hn.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){var a=this;this._selectable=(0,Hn.Ig)(o),this.chips&&this.chips.forEach(function(s){return s.chipListSelectable=a._selectable})}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Oi.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,ua.O)(null),(0,Yr.R)(this._destroyed)).subscribe(function(){o.disabled&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new po.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){this._ariaDescribedby=o.join(" ")}},{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 CUe(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})}}]),e}(yUe);eb.\u0275fac=function(r){return new(r||eb)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Es.Is,8),n.Y36(ne.F,8),n.Y36(ne.sg,8),n.Y36(sn.rD),n.Y36(ne.a5,10))},eb.\u0275cmp=n.Xpm({type:eb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Gg,5),2&r)&&(n.iGM(o=n.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(r,e){1&r&&n.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(n.Ikx("id",e._uid),n.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),n.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{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:[n._Bn([{provide:Un.Eo,useExisting:eb}]),n.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}\n'],encapsulation:2,changeDetection:0});var Ck=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ck.\u0275fac=function(r){return new(r||Ck)},Ck.\u0275mod=n.oAB({type:Ck}),Ck.\u0275inj=n.cJS({providers:[sn.rD,{provide:Pie,useValue:{separatorKeyCodes:[Gr.K5]}}],imports:[[sn.BQ]]});var wUe=function(){return["Load average","(last 1 minute)"]},kUe=function(){return["Load average","(last 5 minutes)"]},TUe=function(){return["Load average","(last 15 minutes)"]},xO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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]}}]),t}();function EUe(t,r){1&t&&(n.TgZ(0,"div"),n._uU(1,"Statistics not loaded"),n.qZA())}function MUe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n._UZ(2,"app-status-chart",2),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.compute_name," "),n.xp6(1),n.Q6J("computeStatistics",e)}}xO.\u0275fac=function(r){return new(r||xO)},xO.\u0275cmp=n.Xpm({type:xO,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&&(n.TgZ(0,"mat-card")(1,"div",0),n._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),n.qZA(),n.TgZ(6,"div",0),n._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),n.qZA(),n.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),n._uU(13),n.qZA()(),n.TgZ(14,"mat-chip-list")(15,"mat-chip",3),n._uU(16),n.qZA()(),n.TgZ(17,"mat-chip-list")(18,"mat-chip",3),n._uU(19),n.qZA()()(),n.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),n._uU(23),n.qZA()(),n.TgZ(24,"mat-chip-list")(25,"mat-chip",3),n._uU(26),n.qZA()(),n.TgZ(27,"mat-chip-list")(28,"mat-chip",3),n._uU(29),n.qZA()()()()),2&r&&(n.xp6(2),n.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),n.xp6(1),n.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),n.xp6(1),n.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),n.xp6(1),n.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),n.xp6(2),n.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",n.DdM(111,wUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(1),n.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",n.DdM(112,kUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(1),n.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",n.DdM(113,TUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(4),n.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),n.xp6(3),n.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),n.xp6(3),n.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),n.xp6(4),n.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),n.xp6(3),n.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),n.xp6(3),n.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},directives:[Si,By,eb,Gg],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 DO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,V.Z)(t,[{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)})})}}]),t}();DO.\u0275fac=function(r){return new(r||DO)(n.Y36(xr),n.Y36(Yd.X),n.Y36(vr),n.Y36($n))},DO.\u0275cmp=n.Xpm({type:DO,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(n.YNc(0,EUe,2,0,"div",0),n.YNc(1,MUe,3,2,"div",1)),2&r&&(n.Q6J("ngIf",!e.computeStatistics.length),n.xp6(1),n.Q6J("ngForOf",e.computeStatistics))},directives:[wt.O5,wt.sg,xO],styles:[""]});var AO=function(){function t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();AO.\u0275fac=function(r){return new(r||AO)(n.Y36(xr))},AO.\u0275cmp=n.Xpm({type:AO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"System status"),n.qZA()()(),n.TgZ(5,"div",4),n._UZ(6,"app-status-info"),n.qZA()())},directives:[DO],styles:[""]});var SUe=["terminal"],wk=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new Io.w,this.term=new Sie.Terminal,this.fitAddon=new Die.FitAddon}return(0,V.Z)(t,[{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 xie.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)}}]),t}();wk.\u0275fac=function(r){return new(r||wk)(n.Y36(eu),n.Y36(vr),n.Y36(xr),n.Y36(An.Dx),n.Y36(Xr))},wk.\u0275cmp=n.Xpm({type:wk,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(SUe,5),2&r)&&(n.iGM(i=n.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&n._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{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;right:0;left:0;top:0;bottom: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{cursor:text}.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;left:0;top:0;bottom:0;right: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}\n'],encapsulation:2});var tb=function(){function t(r,e){(0,j.Z)(this,t),this.consoleService=r,this.bottomSheet=e}return(0,V.Z)(t,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Xc);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}}]),t}();function lz(){lz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}tb.\u0275fac=function(r){return new(r||tb)(n.LFG(eu),n.LFG(ef))},tb.\u0275prov=n.Yz7({token:tb,factory:tb.\u0275fac});var ni=function(){function t(r,e,i){(0,j.Z)(this,t),this.controllerService=r,this.loginService=e,this.router=i}return(0,V.Z)(t,[{key:"canActivate",value:function(e,i){return Yi(this,void 0,void 0,lz().mark(function o(){var s,l,a=this;return lz().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,f.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=f.sent,f.prev=5,f.next=8,this.loginService.getLoggedUser(l);case 8:f.next=12;break;case 10:f.prev=10,f.t0=f.catch(5);case 12:return f.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 f.stop()}},o,this,[[5,10]])}))}}]),t}();ni.\u0275fac=function(r){return new(r||ni)(n.LFG(vr),n.LFG(jh),n.LFG(kr))},ni.\u0275prov=n.Yz7({token:ni,factory:ni.\u0275fac});var xUe=["*",[["mat-toolbar-row"]]],AUe=(0,sn.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()),OO=(0,V.Z)(function t(){(0,j.Z)(this,t)});OO.\u0275fac=function(r){return new(r||OO)},OO.\u0275dir=n.lG2({type:OO,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var IO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,V.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}(AUe);IO.\u0275fac=function(r){return new(r||IO)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(wt.K0))},IO.\u0275cmp=n.Xpm({type:IO,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,OO,5),2&r)&&(n.iGM(o=n.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&n.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(xUe),n.Hsn(0),n.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%}\n"],encapsulation:2,changeDetection:0});var kk=(0,V.Z)(function t(){(0,j.Z)(this,t)});function uz(){uz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function OUe(t,r){1&t&&(n.TgZ(0,"button",16),n._UZ(1,"mat-icon",17),n.qZA())}function IUe(t,r){if(1&t&&(n.TgZ(0,"button",18),n._UZ(1,"mat-icon",17),n.qZA()),2&t){n.oxw();var e=n.MAs(45);n.Q6J("matMenuTriggerFor",e)}}function PUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).listProjects()}),n._uU(1," Projects "),n.qZA()}}function RUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).backToProject()}),n._uU(1," Back to project "),n.qZA()}}function LUe(t,r){if(1&t&&(n.TgZ(0,"button",20)(1,"mat-icon"),n._uU(2,"more_vert"),n.qZA()()),2&t){n.oxw();var e=n.MAs(8);n.Q6J("matMenuTriggerFor",e)}}kk.\u0275fac=function(r){return new(r||kk)},kk.\u0275mod=n.oAB({type:kk}),kk.\u0275inj=n.cJS({imports:[[sn.BQ],sn.BQ]});var ZUe=function(r){return["controller",r,"systemstatus"]},NUe=function(r){return["controller",r,"settings"]},BUe=function(r){return["controller",r,"management","users"]},FUe=function(r){return["controller",r,"help"]},UUe=function(r){return["/controller",r,"loggeduser"]},HUe=function(){return["/controllers"]},jUe=function(r){return["/controller",r,"projects"]},zUe=function(r){return["controller",r,"preferences"]},WUe=function(r){return["controller",r,"image-manager"]};function VUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-toolbar",3),n.YNc(1,OUe,2,0,"button",4),n.YNc(2,IUe,2,1,"button",5),n.YNc(3,PUe,2,0,"button",6),n.YNc(4,RUe,2,0,"button",6),n._UZ(5,"span",7),n.YNc(6,LUe,3,1,"button",8),n.TgZ(7,"mat-menu",null,9)(9,"button",10)(10,"mat-icon"),n._uU(11,"info"),n.qZA(),n.TgZ(12,"span"),n._uU(13,"System status"),n.qZA()(),n.TgZ(14,"button",10)(15,"mat-icon"),n._uU(16,"settings"),n.qZA(),n.TgZ(17,"span"),n._uU(18,"Settings"),n.qZA()(),n.TgZ(19,"button",10)(20,"mat-icon"),n._uU(21,"groups"),n.qZA(),n.TgZ(22,"span"),n._uU(23,"Management"),n.qZA()(),n.TgZ(24,"button",10)(25,"mat-icon"),n._uU(26,"help"),n.qZA(),n.TgZ(27,"span"),n._uU(28,"Help"),n.qZA()(),n.TgZ(29,"button",10)(30,"mat-icon"),n._uU(31,"person"),n.qZA(),n.TgZ(32,"span"),n._uU(33,"User info"),n.qZA()(),n.TgZ(34,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goToDocumentation()}),n.TgZ(35,"mat-icon"),n._uU(36,"person"),n.qZA(),n.TgZ(37,"span"),n._uU(38,"API documentation"),n.qZA()(),n.TgZ(39,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().logout()}),n.TgZ(40,"mat-icon"),n._uU(41,"highlight_off"),n.qZA(),n.TgZ(42,"span"),n._uU(43,"Logout"),n.qZA()()(),n.TgZ(44,"mat-menu",12,13)(46,"button",14)(47,"mat-icon"),n._uU(48,"developer_board"),n.qZA(),n.TgZ(49,"span"),n._uU(50,"Controllers"),n.qZA()(),n.TgZ(51,"button",14)(52,"mat-icon"),n._uU(53,"work"),n.qZA(),n.TgZ(54,"span"),n._uU(55,"Projects"),n.qZA()(),n.TgZ(56,"button",10)(57,"mat-icon"),n._uU(58,"settings_applications"),n.qZA(),n.TgZ(59,"span"),n._uU(60,"Template preferences"),n.qZA()(),n.TgZ(61,"button",10)(62,"mat-icon"),n._uU(63,"collections"),n.qZA(),n.TgZ(64,"span"),n._uU(65,"Image manager"),n.qZA()(),n.TgZ(66,"button",15),n.NdJ("click",function(){return n.CHM(e),n.oxw().addNewTemplate()}),n.TgZ(67,"mat-icon"),n._uU(68,"control_point"),n.qZA(),n.TgZ(69,"span"),n._uU(70,"New template"),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.isLoginPage&&"/controllers"==i.router.url),n.xp6(1),n.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),n.xp6(1),n.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.controllerIdProjectList),n.xp6(1),n.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedcontrollerId&&!i.isLoginPage),n.xp6(2),n.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),n.xp6(3),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(24,ZUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(26,NUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(28,BUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(30,FUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(32,UUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId),n.xp6(5),n.Q6J("disabled",!i.controllerId),n.xp6(5),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("routerLink",n.DdM(34,HUe)),n.xp6(5),n.Q6J("routerLink",n.VKq(35,jUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(37,zUe,i.controllerId)),n.xp6(5),n.Q6J("disabled",!i.controllerId)("routerLink",n.VKq(39,WUe,i.controllerId))}}var PO=function(){function t(r,e,i,o,a,s,l,u,f,h){var v=this;(0,j.Z)(this,t),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=f,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Mie,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new Io.w,this.router.events.subscribe(function(C){C instanceof Zh&&(v.controllerId=v.route.children[0].snapshot.paramMap.get("controller_id"),v.getData())})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof Zh&&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("http://".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,uz().mark(function i(){return uz().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(ok,{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()}}]),t}();PO.\u0275fac=function(r){return new(r||PO)(n.Y36(sl),n.Y36(CN.p),n.Y36(Vg),n.Y36($n),n.Y36(ul),n.Y36(ri),n.Y36(kr),n.Y36(xr),n.Y36(vr),n.Y36(dl.Y))},PO.\u0275cmp=n.Xpm({type:PO,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&n.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,n.Jf7)},decls:7,vars:2,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&&(n.TgZ(0,"header"),n.YNc(1,VUe,71,41,"mat-toolbar",0),n.qZA(),n.TgZ(2,"main",1),n._UZ(3,"router-outlet"),n.qZA(),n._UZ(4,"app-progress"),n.TgZ(5,"footer",2),n._uU(6),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf","/controllers"!=e.router.url),n.xp6(5),n.hij("GNS3 Web UI \xa9 2022 - v",e.uiVersion,""))},directives:[wt.O5,IO,Tn,Vn,vi,Pa,ss,Hr,na,Bh,Jy],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 rc=function(){function t(r){(0,j.Z)(this,t),this.controllerService=r}return(0,V.Z)(t,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),t}();rc.\u0275fac=function(r){return new(r||rc)(n.LFG(vr))},rc.\u0275prov=n.Yz7({token:rc,factory:rc.\u0275fac});var Rie=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},Lie=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function Zie(t){t.get("password").value===t.get("confirmPassword").value||t.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var hl=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/users/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/users/".concat(i,"/groups"))}},{key:"getPermissionsByUserId",value:function(e,i){return this.httpController.get(e,"/users/".concat(i,"/permissions"))}},{key:"addPermission",value:function(e,i,o){return this.httpController.put(e,"/users/".concat(i,"/permissions/").concat(o.permission_id),{})}},{key:"removePermission",value:function(e,i,o){return this.httpController.delete(e,"/users/".concat(i,"/permissions/").concat(o.permission_id))}}]),t}();hl.\u0275fac=function(r){return new(r||hl)(n.LFG(Wo.zw))},hl.\u0275prov=n.Yz7({token:hl,factory:hl.\u0275fac});var Tu=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),t}();Tu.\u0275fac=function(r){return new(r||Tu)(n.LFG(Wo.zw))},Tu.\u0275prov=n.Yz7({token:Tu,factory:Tu.\u0275fac,providedIn:"root"});var YUe=["panel"];function GUe(t,r){if(1&t&&(n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA()),2&t){var e=r.id,i=n.oxw();n.Q6J("id",i.id)("ngClass",i._classList),n.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var KUe=0,JUe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.option=e}),QUe=(0,sn.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),Nie=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function XUe(){return{autoActiveFirstOption:!1}}});var RO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=Io.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new n.vpe,l.opened=new n.vpe,l.closed=new n.vpe,l.optionActivated=new n.vpe,l._classList={},l.id="mat-autocomplete-".concat(KUe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l}return(0,V.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,Hn.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,Hn.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 Oi.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 JUe(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}(QUe);RO.\u0275fac=function(r){return new(r||RO)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Nie),n.Y36(Zi.t4))},RO.\u0275dir=n.lG2({type:RO,viewQuery:function(r,e){var i;(1&r&&(n.Gf(n.Rgc,7),n.Gf(YUe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.template=i.first),n.iGM(i=n.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]});var rf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,V.Z)(e)}(RO);rf.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(rf)))(e||rf)}}(),rf.\u0275cmp=n.Xpm({type:rf,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,sn.K7,5),n.Suo(i,sn.ey,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.optionGroups=o),n.iGM(o=n.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:sn.HF,useExisting:rf}]),n.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(n.F$t(),n.YNc(0,GUe,3,4,"ng-template"))},directives:[wt.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}\n"],encapsulation:2,changeDetection:0});var Bie=new n.OlP("mat-autocomplete-scroll-strategy");var e7e={provide:Bie,deps:[Ao.aV],useFactory:function $Ue(t){return function(){return t.scrollStrategies.reposition()}}},t7e={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return of}),multi:!0};var LO=function(){function t(r,e,i,o,a,s,l,u,f,h,v){var C=this;(0,j.Z)(this,t),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=f,this._viewportRuler=h,this._defaults=v,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Io.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qn.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,j5.P)(function(){var B=C.autocomplete?C.autocomplete.options:null;return B?B.changes.pipe((0,ua.O)(B),(0,xo.w)(function(){return To.T.apply(void 0,(0,$t.Z)(B.map(function(G){return G.onSelectionChange})))})):C._zone.onStable.pipe((0,no.q)(1),(0,xo.w)(function(){return C.optionSelections}))}),this._scrollStrategy=s}return(0,V.Z)(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,Hn.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._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,To.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Ei.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Ei.h)(function(){return e._overlayAttached})):(0,pr.of)()).pipe((0,mr.U)(function(i){return i instanceof sn.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,To.T)((0,Pf.R)(this._document,"click"),(0,Pf.R)(this._document,"auxclick"),(0,Pf.R)(this._document,"touchend")).pipe((0,Ei.h)(function(i){var o=(0,Zi.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().then(function(){return i._setTriggerValue(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,Gr.Vb)(e);if(i===Gr.hY&&!o&&e.preventDefault(),this.activeOption&&i===Gr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===Gr.LH||i===Gr.JH;i===Gr.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)}}},{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._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,no.q)(1)),o=this.autocomplete.options.changes.pipe((0,ms.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,FH.g)(0));return(0,To.T)(i,o).pipe((0,xo.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.autocomplete.opened.emit())}),e.panelClosingActions}),(0,no.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,o=null!=i?i:"";this._formField?this._formField._control.value=o:this._element.nativeElement.value=o,this._previousValue=o}},{key:"_setValueAndClose",value:function(e){var i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(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 yo.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,o.keydownEvents().subscribe(function(s){(s.keyCode===Gr.hY&&!(0,Gr.Vb)(s)||s.keyCode===Gr.LH&&(0,Gr.Vb)(s,"altKey"))&&(e._closeKeyEventStream.next(),e._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),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 Ao.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,sn.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,sn.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}}]),t}();LO.\u0275fac=function(r){return new(r||LO)(n.Y36(n.SBq),n.Y36(Ao.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Bie),n.Y36(Es.Is,8),n.Y36(Un.G_,9),n.Y36(wt.K0,8),n.Y36(ka.rL),n.Y36(Nie,8))},LO.\u0275dir=n.lG2({type:LO,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]});var of=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,V.Z)(e)}(LO);of.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(of)))(e||of)}}(),of.\u0275dir=n.lG2({type:of,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&n.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&&n.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:[n._Bn([t7e]),n.qOj]});var ZO=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.elementRef=r});ZO.\u0275fac=function(r){return new(r||ZO)(n.Y36(n.SBq))},ZO.\u0275dir=n.lG2({type:ZO});var NO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ZO);NO.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(NO)))(e||NO)}}(),NO.\u0275dir=n.lG2({type:NO,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[n.qOj]});var Tk=(0,V.Z)(function t(){(0,j.Z)(this,t)});function n7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is required"),n.qZA())}function r7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is incorrect"),n.qZA())}function i7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this username exists"),n.qZA())}function o7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is required"),n.qZA())}function a7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is invalid"),n.qZA())}function s7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"A password between 6 and 100 characters is required."),n.qZA())}function l7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password and Confirm password must be the same. "),n.qZA())}function u7e(t,r){if(1&t&&(n.TgZ(0,"mat-option",20),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function c7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",21)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"mat-icon",22),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().deleteGroup(s)}),n._uU(5,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.Oqu(i.name)}}Tk.\u0275fac=function(r){return new(r||Tk)},Tk.\u0275mod=n.oAB({type:Tk}),Tk.\u0275inj=n.cJS({providers:[e7e],imports:[[Ao.U8,sn.Ng,sn.BQ,wt.ez],ka.ZD,sn.Ng,sn.BQ]});var BO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new ne.NI}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new ne.cw({username:new ne.NI(null,[ne.kI.required,ne.kI.minLength(3),ne.kI.pattern("[a-zA-Z0-9_-]+$")],[Rie(this.controller,this.userService)]),full_name:new ne.NI,email:new ne.NI(null,[ne.kI.email,ne.kI.required],[Lie(this.controller,this.userService)]),password:new ne.NI(null,[ne.kI.required,ne.kI.minLength(6),ne.kI.maxLength(100)]),confirmPassword:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required]),is_active:new ne.NI(!0)},{validators:[Zie]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,ua.O)(""),(0,mr.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:""}}]),t}();function d7e(t,r){if(1&t&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}BO.\u0275fac=function(r){return new(r||BO)(n.Y36(Dr),n.Y36(hl),n.Y36($n),n.Y36(Tu))},BO.\u0275cmp=n.Xpm({type:BO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new user"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2),n._UZ(4,"input",3),n.YNc(5,n7e,2,0,"mat-error",4),n.YNc(6,r7e,2,0,"mat-error",4),n.YNc(7,i7e,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"mat-form-field",2),n._UZ(9,"input",5),n.qZA(),n.TgZ(10,"mat-form-field",2),n._UZ(11,"input",6),n.YNc(12,o7e,2,0,"mat-error",4),n.YNc(13,a7e,2,0,"mat-error",4),n.qZA(),n.TgZ(14,"mat-form-field",2),n._UZ(15,"input",7),n.YNc(16,s7e,2,0,"mat-error",4),n.qZA(),n.TgZ(17,"mat-form-field",2),n._UZ(18,"input",8),n.YNc(19,l7e,2,0,"mat-error",4),n.qZA(),n.TgZ(20,"mat-checkbox",9),n._uU(21,"Is active"),n.qZA(),n._UZ(22,"mat-divider",10),n.TgZ(23,"h6"),n._uU(24," Add user to groups : "),n.qZA(),n.TgZ(25,"mat-form-field",2)(26,"mat-label"),n._uU(27,"Groups"),n.qZA(),n._UZ(28,"input",11),n.TgZ(29,"mat-autocomplete",12,13),n.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),n.YNc(31,u7e,2,2,"mat-option",14),n.ALo(32,"async"),n.qZA()(),n.TgZ(33,"div",15),n.YNc(34,c7e,6,1,"div",16),n.qZA(),n.TgZ(35,"div",17)(36,"button",18),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(37,"Cancel"),n.qZA(),n.TgZ(38,"button",19),n.NdJ("click",function(){return e.onAddClick()}),n._uU(39," Add user "),n.qZA()()()),2&r){var i=n.MAs(30);n.xp6(2),n.Q6J("formGroup",e.addUserForm),n.xp6(3),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),n.xp6(5),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),n.xp6(3),n.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),n.xp6(3),n.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),n.xp6(9),n.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.lcZ(32,14,e.filteredGroups)),n.xp6(3),n.Q6J("ngForOf",e.groupsToAdd),n.xp6(4),n.Q6J("disabled",!e.addUserForm.valid)}},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,Ui,ag.d,Un.hX,of,ne.oH,rf,wt.sg,sn.ey,Vn,Zr,Tn],pipes:[wt.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 Ek=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();Ek.\u0275fac=function(r){return new(r||Ek)(n.Y36(Dr),n.Y36(Vo))},Ek.\u0275cmp=n.Xpm({type:Ek,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure you want to delete the following users ?"),n.qZA(),n.TgZ(2,"ul"),n.YNc(3,d7e,2,2,"li",1),n.qZA(),n.TgZ(4,"div",2)(5,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(6,"No, cancel"),n.qZA(),n.TgZ(7,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(8," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("ngForOf",e.data.users))},directives:[Vr,wt.sg,Zr,Tn],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var FO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:[]}}]),t}();FO.\u0275fac=function(r){return new(r||FO)},FO.\u0275pipe=n.Yjl({name:"userFilter",type:FO,pure:!0});var f7e=["usersPaginator"],p7e=["usersSort"];function h7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function m7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function _7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Username"),n.qZA())}var g7e=function(r,e){return["/controller",r,"management","users",e]};function v7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",37),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.WLB(3,g7e,i.controller.id,e.user_id))("matTooltip",e.username),n.xp6(1),n.Oqu(e.username)}}function y7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Full Name"),n.qZA())}function b7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",38),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.full_name),n.xp6(1),n.Oqu(e.full_name)}}function C7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Mail"),n.qZA())}function w7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",38),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.email),n.xp6(1),n.Oqu(e.email)}}function k7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",39),n._uU(1," Active"),n.qZA())}function T7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",40),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.is_active)}}function E7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Last Login"),n.qZA())}function M7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",41),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.last_login)}}function S7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Last Update"),n.qZA())}function x7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",41),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.updated_at?e.updated_at:e.created_at)}}function D7e(t,r){1&t&&n._UZ(0,"mat-header-cell",33)}function A7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",33)(1,"button",42),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete(a)}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function O7e(t,r){1&t&&n._UZ(0,"mat-header-row")}function I7e(t,r){1&t&&n._UZ(0,"mat-row")}var P7e=function(){return{standalone:!0}},R7e=function(){return[5,10,20]};function L7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"User Management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteMultiple()}),n._uU(6," Delete Users "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addUser()}),n._uU(8," Add User "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),n.ALo(17,"userFilter"),n.ynx(18,14),n.YNc(19,h7e,2,2,"mat-header-cell",15),n.YNc(20,m7e,2,1,"mat-cell",16),n.BQk(),n.ynx(21,17),n.YNc(22,_7e,2,0,"mat-header-cell",18),n.YNc(23,v7e,3,6,"mat-cell",19),n.BQk(),n.ynx(24,20),n.YNc(25,y7e,2,0,"mat-header-cell",18),n.YNc(26,b7e,3,2,"mat-cell",19),n.BQk(),n.ynx(27,21),n.YNc(28,C7e,2,0,"mat-header-cell",18),n.YNc(29,w7e,3,2,"mat-cell",19),n.BQk(),n.ynx(30,22),n.YNc(31,k7e,2,0,"mat-header-cell",23),n.YNc(32,T7e,2,1,"mat-cell",24),n.BQk(),n.ynx(33,25),n.YNc(34,E7e,2,0,"mat-header-cell",18),n.YNc(35,M7e,2,1,"mat-cell",26),n.BQk(),n.ynx(36,27),n.YNc(37,S7e,2,0,"mat-header-cell",18),n.YNc(38,x7e,2,1,"mat-cell",26),n.BQk(),n.ynx(39,28),n.YNc(40,D7e,1,0,"mat-header-cell",15),n.YNc(41,A7e,4,0,"mat-cell",16),n.BQk(),n.YNc(42,O7e,1,0,"mat-header-row",29),n.YNc(43,I7e,1,0,"mat-row",30),n.qZA(),n._UZ(44,"mat-paginator",31,32),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,P7e)),n.xp6(3),n.Q6J("dataSource",n.xi3(17,7,i.dataSource,i.searchText)),n.xp6(28),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,R7e))}}function Z7e(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",43),n.qZA())}var UO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new _w,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new po.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,V.Z)(t,[{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)})}},{key:"addUser",value:function(){var e=this,i=this.dialog.open(BO,{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(Ek,{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(Ek,{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())})}}]),t}();function N7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),n._uU(3),n.qZA(),n.TgZ(4,"mat-list-item"),n._uU(5),n.qZA(),n.TgZ(6,"mat-list-item"),n._uU(7),n.qZA()(),n.TgZ(8,"div",6)(9,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().copyToken()}),n._uU(10,"Click to copy access token"),n.qZA(),n._UZ(11,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(3),n.hij(" Username: ",i.user.username," "),n.xp6(2),n.hij(" Full name: ",i.user.full_name," "),n.xp6(2),n.hij(" Email: ",i.user.email," ")}}UO.\u0275fac=function(r){return new(r||UO)(n.Y36(xr),n.Y36(kr),n.Y36(hl),n.Y36(ul),n.Y36(vr),n.Y36(ri),n.Y36($n))},UO.\u0275cmp=n.Xpm({type:UO,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(f7e,5),n.Gf(p7e,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.usersPaginator=i),n.iGM(i=n.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&&(n.YNc(0,L7e,46,12,"div",0),n.YNc(1,Z7e,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[wt.O5,Tn,ne._Y,ne.JL,ne.F,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,vi,Vn,Da,Oa,Aa,Ia,ed,Kl],pipes:[FO],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;bottom:0;left:0;right:0;top:0;width:175px}"]});var HO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,V.Z)(t,[{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:"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")}}]),t}();HO.\u0275fac=function(r){return new(r||HO)(n.Y36(xr),n.Y36(vr),n.Y36(hl),n.Y36($n))},HO.\u0275cmp=n.Xpm({type:HO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Logged in user info"),n.qZA()()(),n.TgZ(5,"div",4),n.YNc(6,N7e,12,3,"mat-card",5),n.qZA()()),2&r&&(n.xp6(6),n.Q6J("ngIf",e.user))},directives:[wt.O5,Si,Hh,qa,Tn],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var qg=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.current_version,"/images/upload/").concat(o,"?install_appliances=").concat(i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(as.N.current_version,"/images/upload/").concat(o)}},{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))}}]),t}();function cz(){cz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function B7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),n._uU(4,"Would you like to automatically install appliances for this image?"),n.qZA()(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(7,"mat-icon"),n._uU(8,"close"),n.qZA()()()(),n.TgZ(9,"div",5)(10,"mat-radio-group",6),n.NdJ("change",function(a){return n.CHM(e),n.oxw().selectInstallApplianceOption(a)}),n.TgZ(11,"mat-radio-button",7),n._uU(12," Yes "),n.qZA(),n.TgZ(13,"mat-radio-button",8),n._uU(14," No "),n.qZA()()(),n.TgZ(15,"div",9)(16,"button",10),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.isInstallAppliance=!a.isInstallAppliance}),n._uU(17,"Next"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(10),n.Q6J("value",i.install_appliance),n.xp6(1),n.Q6J("checked",i.install_appliance),n.xp6(2),n.Q6J("checked",!i.install_appliance)}}function F7e(t,r){1&t&&(n.TgZ(0,"h5"),n._uU(1,"Please Select image"),n.qZA())}function U7e(t,r){1&t&&(n.TgZ(0,"p",17),n._uU(1,"Uploaded image details"),n.qZA())}function H7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",18)(1,"input",19,20),n.NdJ("onFileSelected",function(a){return n.CHM(e),n.oxw(2).uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",21),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("uploader",i.uploaderImage)}}function j7e(t,r){if(1&t&&n._UZ(0,"mat-progress-bar",26),2&t){var e=n.oxw(4);n.Q6J("value",e.uploadProgress.progress)}}function z7e(t,r){1&t&&n._UZ(0,"mat-progress-bar",26),2&t&&n.Q6J("value",0)}function W7e(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,j7e,1,1,"mat-progress-bar",25),n.YNc(2,z7e,1,1,"mat-progress-bar",25),n.qZA()),2&t){var e=n.oxw().$implicit,i=n.oxw(2);n.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function V7e(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit,i=n.oxw(2);n.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),n.xp6(1),n.hij(" ",i.uploadProgress.progress+" %"," ")}}function Y7e(t,r){1&t&&(n.TgZ(0,"div",27),n._uU(1),n.qZA()),2&t&&(n.xp6(1),n.hij(" ","0 %"," "))}qg.\u0275fac=function(r){return new(r||qg)(n.LFG(Wo.zw))},qg.\u0275prov=n.Yz7({token:qg,factory:qg.\u0275fac,providedIn:"root"});var G7e=function(r){return{"uploaded-error-text":r}};function q7e(t,r){if(1&t&&(n.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),n._uU(3),n.qZA()(),n.YNc(4,W7e,3,5,"div",23),n.YNc(5,V7e,2,4,"div",23),n.YNc(6,Y7e,2,1,"div",24),n.qZA()),2&t){var e=r.$implicit,i=r.index,o=n.oxw(2);n.xp6(1),n.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),n.xp6(1),n.Q6J("ngClass",n.VKq(11,G7e,e.isError)),n.xp6(1),n.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),n.xp6(1),n.Q6J("ngIf",!e.isUploaded),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),n.xp6(1),n.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 K7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"button",10),n.NdJ("click",function(){n.CHM(e);var o=n.oxw(2);return o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1)}),n._uU(2," Cancel "),n.qZA()()}}function J7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",11)(2,"div",12),n.YNc(3,F7e,2,0,"h5",0),n.YNc(4,U7e,2,0,"p",13),n.qZA(),n.YNc(5,H7e,5,1,"div",14),n.TgZ(6,"div")(7,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(8,"mat-icon"),n._uU(9,"close"),n.qZA()()()(),n.YNc(10,q7e,7,13,"div",15),n.YNc(11,K7e,3,0,"div",16),n.qZA()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngIf",i.uploaderImage.queue.length<=0),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length>0),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length<=0),n.xp6(1),n.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),n.xp6(4),n.Q6J("ngForOf",i.uploaderImage.queue),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var jO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new eg({}),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,cz().mark(function i(){var o,a,s;return cz().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,cn.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(f){o.e(f)}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),f=e.uploaderImage.queue[o];f.url=u,f.options&&(f.options.disableMultipart=!0),f.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(f)},l.readAsText(s)})}}]),t}();function dz(){dz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function Q7e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.xp6(1),n.AsE("",i+1,". ",null==e?null:e.filename,"")}}function X7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"h1",1),n._uU(2,"Do you want delete all files ?."),n.qZA(),n.TgZ(3,"div",2)(4,"p"),n._uU(5,"Your selected files"),n.qZA(),n.YNc(6,Q7e,2,2,"p",3),n.qZA(),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteAll()}),n._uU(9,"Delete"),n.qZA(),n.TgZ(10,"button",6),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function $7e(t,r){1&t&&(n.TgZ(0,"div")(1,"h1",7),n._uU(2,"Please wait."),n.qZA(),n.TgZ(3,"div",8),n._UZ(4,"mat-spinner",9),n.qZA()())}function e9e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw(),i=e.index,o=e.$implicit;n.xp6(1),n.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}jO.\u0275fac=function(r){return new(r||jO)(n.Y36(Vo),n.Y36(Dr),n.Y36(qg),n.Y36($n),n.Y36(jc))},jO.\u0275cmp=n.Xpm({type:jO,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,.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&&(n.YNc(0,B7e,18,3,"div",0),n.YNc(1,J7e,12,8,"div",0)),2&r&&(n.Q6J("ngIf",!e.isInstallAppliance),n.xp6(1),n.Q6J("ngIf",e.isInstallAppliance))},directives:[wt.O5,Tn,Vn,_u,gs,Ys,Zr,Zc,wt.sg,wt.mk,m0],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:0px;top:0px}.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,rn.X$)("detailExpand",[(0,rn.SB)("collapsed",(0,rn.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var t9e=function(r){return{"deleted-error-text":r}};function n9e(t,r){if(1&t&&(n.TgZ(0,"p",12),n.YNc(1,e9e,2,2,"span",0),n.qZA()),2&t){var e=r.$implicit;n.Q6J("ngClass",n.VKq(2,t9e,null==e||null==e.error?null:e.error.message)),n.xp6(1),n.Q6J("ngIf",null!=e)}}function r9e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"Images can't be deleted because image used in one or more template."),n.qZA(),n.YNc(3,n9e,2,4,"p",11),n.qZA()),2&t){var e=n.oxw(2);n.xp6(3),n.Q6J("ngForOf",e.deleteFliesDetails)}}function i9e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5",13),n._uU(2),n.qZA()()),2&t){var e=n.oxw(2);n.xp6(2),n.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function o9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",2),n.YNc(2,r9e,4,1,"div",0),n.YNc(3,i9e,3,1,"div",0),n.qZA(),n.TgZ(4,"div",4)(5,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close(!1)}),n._uU(6,"Close"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngIf",i.deleteFliesDetails.length>0),n.xp6(1),n.Q6J("ngIf",i.fileNotDeleted.length>0)}}var zO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return Yi(this,void 0,void 0,dz().mark(function e(){return dz().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,Vd.K)(function(a){return(0,pr.of)(a)})))}),fo.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})}}]),t}();zO.\u0275fac=function(r){return new(r||zO)(n.Y36(Vo),n.Y36(Dr),n.Y36(qg),n.Y36($n))},zO.\u0275cmp=n.Xpm({type:zO,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&&(n.YNc(0,X7e,12,1,"div",0),n.YNc(1,$7e,5,0,"div",0),n.YNc(2,o9e,7,2,"div",0)),2&r&&(n.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},directives:[wt.O5,Vr,_u,wt.sg,Zr,Tn,sg,Kl,wt.mk],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var a9e=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),t}(),s9e=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this;return(0,To.T)(this.controllerDatabase.dataChange).pipe((0,mr.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2);function l9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell")(1,"mat-checkbox",19),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw();return a?s.selectAllImages():null}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function u9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell")(1,"mat-checkbox",20),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw();return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function c9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," File Name "),n.qZA())}function d9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"mat-list-item",21),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.filename)}}function f9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Image Type "),n.qZA())}function p9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.image_type," ")}}function h9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Image Size "),n.qZA())}function m9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function _9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",23),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).deleteAllFiles()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function g9e(t,r){if(1&t&&(n.TgZ(0,"mat-header-cell"),n.YNc(1,_9e,3,0,"button",22),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function v9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().deleteFile(o.path)}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function y9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,v9e,3,0,"button",22),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.selection.isSelected(e))}}function b9e(t,r){1&t&&n._UZ(0,"mat-header-row")}function C9e(t,r){1&t&&n._UZ(0,"mat-row")}var WO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new a9e,this.isAllDelete=!1,this.selection=new po.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,V.Z)(t,[{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 s9e(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:"addImageDialog",value:function(){var e=this;this.dialog.open(jO,{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(zO,{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")})}}]),t}();function w9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password must be between 6 and 100 characters. "),n.qZA())}function k9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password and Confirm password must be the same. "),n.qZA())}WO.\u0275fac=function(r){return new(r||WO)(n.Y36(qg),n.Y36(ul),n.Y36(xr),n.Y36(vr),n.Y36(zh),n.Y36(ri),n.Y36($n))},WO.\u0275cmp=n.Xpm({type:WO,selectors:[["app-image-manager"]],decls:33,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-9"],[1,"col-md-3","btn-box"],["mat-button","",1,"img-btn",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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),n._uU(5,"Image Manager"),n.qZA()(),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return e.addImageDialog()}),n.TgZ(8,"mat-icon"),n._uU(9,"add"),n.qZA(),n._uU(10," Add Image "),n.qZA()()()(),n.TgZ(11,"div",6),n._UZ(12,"app-controller-discovery"),n.TgZ(13,"div",7)(14,"mat-table",8,9),n.ynx(16,10),n.YNc(17,l9e,2,2,"mat-header-cell",11),n.YNc(18,u9e,2,1,"mat-cell",12),n.BQk(),n.ynx(19,13),n.YNc(20,c9e,2,0,"mat-header-cell",11),n.YNc(21,d9e,3,1,"mat-cell",12),n.BQk(),n.ynx(22,14),n.YNc(23,f9e,2,0,"mat-header-cell",11),n.YNc(24,p9e,2,1,"mat-cell",12),n.BQk(),n.ynx(25,15),n.YNc(26,h9e,2,0,"mat-header-cell",11),n.YNc(27,m9e,2,1,"mat-cell",12),n.BQk(),n.ynx(28,16),n.YNc(29,g9e,2,1,"mat-header-cell",11),n.YNc(30,y9e,2,1,"mat-cell",12),n.BQk(),n.YNc(31,b9e,1,0,"mat-header-row",17),n.YNc(32,C9e,1,0,"mat-row",18),n.qZA()()()()),2&r&&(n.xp6(14),n.Q6J("dataSource",e.dataSource),n.xp6(17),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Tn,Vn,gk,ca,aa,fa,Sa,Ui,da,xa,qa,wt.O5,Da,Oa,Aa,Ia],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.img-btn[_ngcontent-%COMP%]{margin:auto}.btn-box[_ngcontent-%COMP%]{display:flex;margin-top:10px}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 VO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.user=this.data.user,this.editPasswordForm=new ne.cw({password:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required]),confirmPassword:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required])},{validators:[Zie]})}},{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,console.log(i),this.userService.update(this.data.controller,i).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)})}}}]),t}();VO.\u0275fac=function(r){return new(r||VO)(n.Y36(Dr),n.Y36(Vo),n.Y36(hl),n.Y36($n))},VO.\u0275cmp=n.Xpm({type:VO,selectors:[["app-change-user-password"]],decls:15,vars:4,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&&(n.TgZ(0,"h1",0),n._uU(1,"Change password for user : "),n.qZA(),n.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),n._UZ(5,"input",3),n.YNc(6,w9e,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"mat-form-field",2),n._UZ(8,"input",5),n.YNc(9,k9e,2,0,"mat-error",4),n.qZA(),n.TgZ(10,"div",6)(11,"button",7),n.NdJ("click",function(){return e.onCancel()}),n._uU(12,"Cancel"),n.qZA(),n.TgZ(13,"button",8),n.NdJ("click",function(){return e.onPasswordSave()}),n._uU(14," Change password "),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.editPasswordForm),n.xp6(3),n.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),n.xp6(3),n.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),n.xp6(4),n.Q6J("disabled",!e.editPasswordForm.valid))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,Zr,Tn],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var fz=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"getIdNameFromKey",value:function(e){return/{([^)]+)}/.exec(e)[1]}},{key:"findElementInObjectListFn",value:function(e){return function(o){var a=o.find(function(s){return s.name===e});if(!a)throw new Error("entry not found");return a}}},{key:"buildRequestURL",value:function(e,i,o){return function(a){var s="".concat(e.protocol,"//").concat(e.host,":").concat(e.port).concat(a.path);return o&&o.forEach(function(l){s=s.replace(l.key,l.value)}),i&&(s="".concat(s,"/").concat(i)),s}}},{key:"createResponseObject",value:function(e,i,o,a){var s=e?t.getIdNameFromKey(e):void 0;return function(l){return l instanceof Array||(l=[l]),0===l.length?(0,pr.of)([]):"{link_id}"===e?t.setLinkObjectInformation(l,i,o,a):t.setGenericObjectInformation(l,s)}}},{key:"setGenericObjectInformation",value:function(e,i){var o=Object.keys(e[0]),a=o.find(function(l){return l.match(/_id$|filename/)}),s=o.find(function(l){return l.match(/name/)});return e=e.map(function(l){return{id:l[i]||l[a],name:l[s]}}),(0,pr.of)(e)}},{key:"setLinkObjectInformation",value:function(e,i,o,a){return(0,Bc.D)(e.map(function(s){return t.getLinkInformation(s,i,o,a)}))}},{key:"getLinkInformation",value:function(e,i,o,a){var s=e.nodes.map(function(l){return o.getListByObjectId(a,"{node_id}",l.node_id,i)});return(0,Bc.D)(s).pipe((0,mr.U)(function(l){var u=l.reduce(function(f,h){return f.concat(h)},[]).map(function(f){return f.name}).join(" <-> ");return{id:e.link_id,name:u}}))}}]),t}(),T9e=function(){function t(){(0,j.Z)(this,t),this.cache=new Map}return(0,V.Z)(t,[{key:"update",value:function(e,i,o,a,s){var l=this.generateKey(e,i,o,a);this.cache.set(l,{expired:Date.now()+1e4,data:s})}},{key:"get",value:function(e,i,o,a){var s=this.generateKey(e,i,o,a),l=this.cache.get(s);if(l&&l.expired>Date.now())return l.data}},{key:"generateKey",value:function(e,i,o,a){return"".concat(e.id,"-").concat(i,"-").concat(o,"-").concat(a.map(function(s){return"".concat(s.key,"+").concat(s.value)}).join("."))}},{key:"searchByName",value:function(e){var i=[];return this.cache.forEach(function(o){o.data.forEach(function(a){a.name.includes(e)&&i.push(a)})}),i}}]),t}(),af=function(){function t(r){var e=this;(0,j.Z)(this,t),this.httpClient=r,this.cache=new T9e,this.allowed=["projects","images","templates","computes","symbols","notifications"],this.data=new Z1.t(1),this.objs=new Z1.t(1),this.bracketIdRegex=new RegExp("{(.*?)}","g"),this.uuidRegex=new RegExp("[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"),this.finalBracketIdRegex=new RegExp("{(.*?)}$"),this.loadLocalInformation(),this.data.subscribe(function(i){localStorage.setItem("api-definition",JSON.stringify(i))}),this.objs.subscribe(function(i){localStorage.setItem("api-definition-objs",JSON.stringify(i))}),this.httpClient.get("https://apiv3.gns3.net/openapi.json").subscribe(function(i){var o=e.apiObjectModelAdapter(i),a=e.apiPathModelAdapter(i);e.data.next(a),e.objs.next(o)})}return(0,V.Z)(t,[{key:"apiObjectModelAdapter",value:function(e){var i=this;function o(l){var u=e.paths[l];return!!u&&Object.keys(u).includes("get")}return Object.keys(e.paths).filter(function(l){return l.match(i.finalBracketIdRegex)}).filter(o).map(function a(l){var u=l.split("/");return{name:u.pop(),path:u.join("/")}}).filter(function(l){return o(l.path)})}},{key:"apiPathModelAdapter",value:function(e){var i=this;return Object.keys(e.paths).map(function(a){var s=a.split("/").filter(function(l){return!(""===l||"v3"===l)});return{originalPath:a,path:s.join("/"),subPaths:s}}).filter(function(a){return i.allowed.includes(a.subPaths[0])}).map(function(a){var s=Object.keys(e.paths[a.originalPath]);return Object.assign({methods:s.map(function(l){return l.toUpperCase()})},a)})}},{key:"getMethods",value:function(e){return this.getPath(e).pipe((0,mr.U)(function(i){var o=new Set;return i.forEach(function(a){a.methods.forEach(function(s){return o.add(s)})}),Array.from(o)}))}},{key:"getPath",value:function(e){var i=this;return this.data.asObservable().pipe((0,mr.U)(function(o){var a=e.split("/").filter(function(l){return!(""===l||"v3"===l)}),s=o;return a.forEach(function(l,u){if("*"!==l){var f=s.filter(function(h){var v;return null===(v=h.subPaths[u])||void 0===v?void 0:v.includes(l)});0===f.length&&(f=s.filter(function(h){var v;return null===(v=h.subPaths[u])||void 0===v?void 0:v.match(i.bracketIdRegex)})),s=f}}),s}))}},{key:"loadLocalInformation",value:function(){var e=JSON.parse(localStorage.getItem("api-definition"));e&&this.data.next(e);var i=JSON.parse(localStorage.getItem("api-definition-objs"));i&&this.objs.next(i)}},{key:"getPathNextElement",value:function(e){return this.getPath(e.join("/")).pipe((0,mr.U)(function(i){var o=new Set;return i.forEach(function(a){a.subPaths[e.length]&&o.add(a.subPaths[e.length])}),Array.from(o)}))}},{key:"getKeysForPath",value:function(e){var i=this;return this.getPath(e).pipe((0,mr.U)(function(o){var a=e.split("/").filter(function(s){return!(""===s||"v3"===s)});return o[0].subPaths.map(function(s,l){if(s.match(i.bracketIdRegex))return{key:s,value:a[l]}})}),(0,mr.U)(function(o){return o.filter(function(a){return void 0!==a})}))}},{key:"getListByObjectId",value:function(e,i,o,a){var s=this,l=this.cache.get(e,i,o,a);return l?(0,pr.of)(l):this.objs.pipe((0,mr.U)(fz.findElementInObjectListFn(i)),(0,mr.U)(fz.buildRequestURL(e,o,a)),(0,xo.w)(function(u){return s.httpClient.get(u,{headers:{Authorization:"Bearer ".concat(e.authToken)}})}),(0,xo.w)(fz.createResponseObject(i,a,this,e)),(0,ms.b)(function(u){return s.cache.update(e,i,o,a,u)}),(0,no.q)(1))}},{key:"getIdByObjNameFromCache",value:function(e){return this.cache.searchByName(e)}}]),t}();af.\u0275fac=function(r){return new(r||af)(n.LFG(zu.eN))},af.\u0275prov=n.Yz7({token:af,factory:af.\u0275fac,providedIn:"root"});var Mk=function(){function t(r){(0,j.Z)(this,t),this.apiInformation=r}return(0,V.Z)(t,[{key:"transform",value:function(e,i){var o=this;return i?this.apiInformation.getKeysForPath(e).pipe((0,xo.w)(function(a){if(0===a.length)return(0,pr.of)([]);var s=a.map(function(l){return o.apiInformation.getListByObjectId(i,l.key,l.value,a)});return(0,Bc.D)(s)}),(0,mr.U)(function(a){var s="".concat(e);return a.forEach(function(l){l[0].id&&l[0].name&&(s=s.replace(l[0].id,l[0].name))}),s})):(0,pr.of)(e)}}]),t}();function E9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onClick()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_left"),n.qZA()()}}function M9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onClick()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_right"),n.qZA()()}}Mk.\u0275fac=function(r){return new(r||Mk)(n.Y36(af,16))},Mk.\u0275pipe=n.Yjl({name:"displayPath",type:Mk,pure:!0});var S9e=function(r,e){return{allow:r,left:e}},Kg=function(){function t(){(0,j.Z)(this,t),this.click=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onClick",value:function(){this.click.emit()}},{key:"getToolTip",value:function(){return"\n action: ".concat(this.permission.action,"\n methods: ").concat(this.permission.methods.join(","),"\n original path: ").concat(this.permission.path,"\n ")}}]),t}();function x9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is required "),n.qZA())}function D9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is incorrect "),n.qZA())}function A9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this username exists "),n.qZA())}function O9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is required "),n.qZA())}function I9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is invalid "),n.qZA())}function P9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this email exists "),n.qZA())}Kg.\u0275fac=function(r){return new(r||Kg)},Kg.\u0275cmp=n.Xpm({type:Kg,selectors:[["app-editable-permission"]],inputs:{permission:"permission",controller:"controller",side:"side"},outputs:{click:"click"},decls:10,vars:14,consts:[["matTooltipClass","permission-tooltip",1,"box",3,"matTooltip","ngClass"],["mat-button","",3,"click",4,"ngIf"],[1,"content"],[1,"center"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n.YNc(1,E9e,3,0,"button",1),n.TgZ(2,"div",2)(3,"div",3),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n._uU(6),n.ALo(7,"async"),n.ALo(8,"displayPath"),n.qZA()(),n.YNc(9,M9e,3,0,"button",1),n.qZA()),2&r&&(n.Q6J("matTooltip",e.getToolTip())("ngClass",n.WLB(11,S9e,"ALLOW"===e.permission.action,"LEFT"===e.side)),n.xp6(1),n.Q6J("ngIf","RIGHT"===e.side),n.xp6(3),n.Oqu(e.permission.methods.join(",")),n.xp6(2),n.Oqu(n.lcZ(7,6,n.xi3(8,8,e.permission.path,e.controller))),n.xp6(3),n.Q6J("ngIf","LEFT"===e.side))},directives:[vi,wt.mk,wt.O5,Tn,Vn],pipes:[wt.Ov,Mk],styles:[".box[_ngcontent-%COMP%]{display:flex;flex-direction:row;border:1px solid;border-radius:20px;margin:10px;font-size:12px;font-family:monospace;justify-items:center;background-color:#8208085c;justify-content:flex-start}.left[_ngcontent-%COMP%]{justify-content:flex-end}.allow[_ngcontent-%COMP%]{background-color:#054c0561}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-around}.content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:20px}.center[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}button[_ngcontent-%COMP%]{border-radius:20px}"]});var R9e=function(r,e){return["/controller",r,"management","groups",e]};function L9e(t,r){if(1&t&&(n.TgZ(0,"li")(1,"a",26),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("routerLink",n.WLB(2,R9e,i.controller.id,e.user_group_id)),n.xp6(1),n.Oqu(e.name)}}function Z9e(t,r){if(1&t&&n._UZ(0,"app-editable-permission",27),2&t){var e=r.$implicit,i=n.oxw();n.Q6J("permission",e)("controller",i.controller)}}var N9e=function(r){return["/controller",r,"management","users"]},B9e=function(r,e){return["/controller",r,"management","users",e,"permissions"]},YO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.changingPassword=!1}return(0,V.Z)(t,[{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.permissions=i.permissions,e.initForm()})}},{key:"initForm",value:function(){this.editUserForm=new ne.cw({username:new ne.NI(this.user.username,[ne.kI.required,ne.kI.minLength(3),ne.kI.pattern("[a-zA-Z0-9_-]+$")],[Rie(this.controller,this.userService,this.user.username)]),full_name:new ne.NI(this.user.full_name),email:new ne.NI(this.user.email,[ne.kI.email,ne.kI.required],[Lie(this.controller,this.userService,this.user.email)]),is_active:new ne.NI(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).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(VO,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),t}();YO.\u0275fac=function(r){return new(r||YO)(n.Y36(hl),n.Y36($n),n.Y36(xr),n.Y36(kr),n.Y36(ri))},YO.\u0275cmp=n.Xpm({type:YO,selectors:[["app-user-detail"]],decls:54,vars:22,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","Permissions"],["mat-button","",3,"routerLink"],[3,"permission","controller",4,"ngFor","ngForOf"],[1,"table-link",3,"routerLink"],[3,"permission","controller"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7,"User Details"),n.qZA()()(),n.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),n._UZ(14,"input",11),n.YNc(15,x9e,2,0,"mat-error",12),n.YNc(16,D9e,2,0,"mat-error",12),n.YNc(17,A9e,2,0,"mat-error",12),n.qZA(),n.TgZ(18,"mat-form-field",10),n._UZ(19,"input",13),n.qZA(),n.TgZ(20,"mat-form-field",10),n._UZ(21,"input",14),n.YNc(22,O9e,2,0,"mat-error",12),n.YNc(23,I9e,2,0,"mat-error",12),n.YNc(24,P9e,2,0,"mat-error",12),n.qZA(),n.TgZ(25,"mat-checkbox",15),n._uU(26,"Is active"),n.qZA(),n.TgZ(27,"div")(28,"mat-checkbox",16),n._uU(29,"Is Superadmin"),n.qZA()(),n.TgZ(30,"div",17)(31,"button",18),n.NdJ("click",function(){return e.onEditClick()}),n._uU(32," Edit user "),n.qZA()()(),n.TgZ(33,"button",19),n.NdJ("click",function(){return e.onChangePassword()}),n._uU(34," Change Password "),n.qZA(),n.TgZ(35,"div")(36,"div"),n._uU(37),n.qZA(),n.TgZ(38,"div"),n._uU(39),n.qZA(),n.TgZ(40,"div"),n._uU(41),n.qZA(),n.TgZ(42,"div"),n._uU(43),n.qZA()()()(),n.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),n.YNc(47,L9e,3,5,"li",22),n.qZA()()(),n.TgZ(48,"mat-tab",23)(49,"div")(50,"button",24)(51,"mat-icon"),n._uU(52,"edit"),n.qZA()()(),n.YNc(53,Z9e,1,2,"app-editable-permission",25),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(17,N9e,e.controller.id)),n.xp6(9),n.Q6J("formGroup",e.editUserForm),n.xp6(3),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),n.xp6(5),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),n.xp6(4),n.Q6J("checked",e.user.is_superadmin),n.xp6(3),n.Q6J("disabled",!e.editUserForm.valid),n.xp6(6),n.hij("Creation date: ",e.user.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.user.updated_at,""),n.xp6(2),n.hij("Last login: ",e.user.last_login,""),n.xp6(2),n.hij("UUID: ",e.user.user_id,""),n.xp6(4),n.Q6J("ngForOf",e.groups),n.xp6(3),n.Q6J("routerLink",n.WLB(19,B9e,e.controller.id,e.user.user_id)),n.xp6(3),n.Q6J("ngForOf",e.permissions))},directives:[Tn,vi,na,Vn,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.O5,Un.TO,Ui,Zr,wt.sg,Ws,Kg],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var nb=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();function F9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"a",2,3),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().activeLink=l}),n._uU(2),n.qZA()}if(2&t){var i=r.$implicit,o=n.MAs(1);n.MGl("routerLink","./",i,""),n.Q6J("active",o.isActive),n.xp6(2),n.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}nb.\u0275fac=function(r){return new(r||nb)(n.LFG(vr),n.LFG(hl))},nb.\u0275prov=n.Yz7({token:nb,factory:nb.\u0275fac,providedIn:"root"});var GO=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","permissions"],this.activeLink=this.links[0]}return(0,V.Z)(t,[{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})}}]),t}();GO.\u0275fac=function(r){return new(r||GO)(n.Y36(xr),n.Y36(kr),n.Y36(vr))},GO.\u0275cmp=n.Xpm({type:GO,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&&(n.TgZ(0,"nav",0),n.YNc(1,F9e,3,3,"a",1),n.qZA(),n._UZ(2,"router-outlet")),2&r&&(n.xp6(1),n.Q6J("ngForOf",e.links))},directives:[so.BU,wt.sg,Ws,so.Nj,XC,Bh],styles:[""]});var Cm=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"list",value:function(e){return this.httpController.get(e,"/permissions")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/permissions",i)}},{key:"update",value:function(e,i){return this.httpController.put(e,"/permissions/".concat(i.permission_id),i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/permissions/".concat(i))}}]),t}();Cm.\u0275fac=function(r){return new(r||Cm)(n.LFG(Wo.zw))},Cm.\u0275prov=n.Yz7({token:Cm,factory:Cm.\u0275fac,providedIn:"root"});var rb=function(){function t(r,e){(0,j.Z)(this,t),this.permissionService=r,this.controllerService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.y(function(a){var s=e.paramMap.get("controller_id");o.controllerService.get(+s).then(function(l){o.permissionService.list(l).subscribe(function(u){a.next(u),a.complete()})})})}}]),t}();rb.\u0275fac=function(r){return new(r||rb)(n.LFG(Cm),n.LFG(vr))},rb.\u0275prov=n.Yz7({token:rb,factory:rb.\u0275fac,providedIn:"root"});var Sk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Sk.\u0275fac=function(r){return new(r||Sk)(n.LFG(vr),n.LFG(hl))},Sk.\u0275prov=n.Yz7({token:Sk,factory:Sk.\u0275fac,providedIn:"root"});var ib=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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.getPermissionsByUserId(u,l).subscribe(function(f){a.next(f),a.complete()})})})}}]),t}();ib.\u0275fac=function(r){return new(r||ib)(n.LFG(vr),n.LFG(hl))},ib.\u0275prov=n.Yz7({token:ib,factory:ib.\u0275fac,providedIn:"root"});var U9e=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.getGroups(r)}),(0,mr.U)(function(o){return console.log(o),o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},ob=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),t}();function H9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group name is required"),n.qZA())}function j9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group name is incorrect"),n.qZA())}function z9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group with this name exists"),n.qZA())}function W9e(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.AsE(" ",e.username," - ",e.email," ")}}function V9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",16)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"mat-icon",17),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().delUser(s)}),n._uU(7,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.Oqu(i.username),n.xp6(2),n.Oqu(i.email)}}ob.\u0275fac=function(r){return new(r||ob)},ob.\u0275prov=n.Yz7({token:ob,factory:ob.\u0275fac});var Y9e=function(r){return{"is-invalid":r}},qO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new ne.NI(null,[ne.kI.required,this.groupNameValidator.get],[U9e(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,ua.O)(""),(0,mr.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:""}}]),t}();function G9e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}qO.\u0275fac=function(r){return new(r||qO)(n.Y36(Dr),n.Y36(Vo),n.Y36(ne.qu),n.Y36(ob),n.Y36(Tu),n.Y36(hl),n.Y36($n))},qO.\u0275cmp=n.Xpm({type:qO,selectors:[["app-add-group-dialog"]],features:[n._Bn([ob])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new group"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(a){return e.onKeyDown(a)}),n.qZA(),n.YNc(5,H9e,2,0,"mat-error",4),n.YNc(6,j9e,2,0,"mat-error",4),n.YNc(7,z9e,2,0,"mat-error",4),n.qZA()(),n.TgZ(8,"h5"),n._uU(9,"Add users to group: "),n.qZA(),n.TgZ(10,"mat-form-field",5)(11,"mat-label"),n._uU(12,"Users"),n.qZA(),n._UZ(13,"input",6),n.TgZ(14,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),n.YNc(16,W9e,2,3,"mat-option",9),n.ALo(17,"async"),n.qZA()(),n.TgZ(18,"div",10),n.YNc(19,V9e,8,2,"div",11),n.qZA(),n.TgZ(20,"div",12)(21,"button",13),n.NdJ("click",function(){return e.onNoClick()}),n._uU(22,"Cancel"),n.qZA(),n.TgZ(23,"button",14),n.NdJ("click",function(){return e.onAddClick()}),n._uU(24," Add group "),n.qZA()()),2&r){var i=n.MAs(15);n.xp6(2),n.Q6J("formGroup",e.groupNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(12,Y9e,null==e.form.groupName?null:e.form.groupName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),n.xp6(6),n.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.lcZ(17,10,e.filteredUsers)),n.xp6(3),n.Q6J("ngForOf",e.usersToAdd)}},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Un.hX,of,ne.oH,rf,wt.sg,sn.ey,Vn,Zr,Tn],pipes:[wt.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 KO=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();KO.\u0275fac=function(r){return new(r||KO)(n.Y36(Dr),n.Y36(Vo))},KO.\u0275cmp=n.Xpm({type:KO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure to delete group named: "),n.qZA(),n.YNc(2,G9e,2,1,"p",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(5,"No, cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(7," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngForOf",e.data.groups))},directives:[Vr,wt.sg,Zr,Tn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var JO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),t}();JO.\u0275fac=function(r){return new(r||JO)},JO.\u0275pipe=n.Yjl({name:"groupFilter",type:JO,pure:!0});var q9e=["groupsPaginator"],K9e=["groupsSort"];function J9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"th",28)(1,"mat-checkbox",29),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Q9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",30)(1,"mat-checkbox",31),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function X9e(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Name"),n.qZA())}function $9e(t,r){if(1&t&&(n.TgZ(0,"td",33)(1,"a",34),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),n.xp6(1),n.Oqu(e.name)}}function eHe(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Creation date"),n.qZA())}function tHe(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.created_at," ")}}function nHe(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Last update"),n.qZA())}function rHe(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.updated_at," ")}}function iHe(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," is build in"),n.qZA())}function oHe(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.is_builtin," ")}}function aHe(t,r){1&t&&n._UZ(0,"th",35)}function sHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",33)(1,"button",36),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete([a])}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function lHe(t,r){1&t&&n._UZ(0,"tr",37)}function uHe(t,r){1&t&&n._UZ(0,"tr",38)}var cHe=function(){return{standalone:!0}},dHe=function(){return[5,10,20]};function fHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"Groups management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.onDelete(a.selection.selected)}),n._uU(6," Delete selected groups "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addGroup()}),n._uU(8," Add group "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"table",11,12),n.ALo(15,"groupFilter"),n.ynx(16,13),n.YNc(17,J9e,2,2,"th",14),n.YNc(18,Q9e,2,1,"td",15),n.BQk(),n.ynx(19,16),n.YNc(20,X9e,2,0,"th",17),n.YNc(21,$9e,3,3,"td",18),n.BQk(),n.ynx(22,19),n.YNc(23,eHe,2,0,"th",17),n.YNc(24,tHe,2,1,"td",18),n.BQk(),n.ynx(25,20),n.YNc(26,nHe,2,0,"th",17),n.YNc(27,rHe,2,1,"td",18),n.BQk(),n.ynx(28,21),n.YNc(29,iHe,2,0,"th",17),n.YNc(30,oHe,2,1,"td",18),n.BQk(),n.ynx(31,22),n.YNc(32,aHe,1,0,"th",23),n.YNc(33,sHe,4,0,"td",18),n.BQk(),n.YNc(34,lHe,1,0,"tr",24),n.YNc(35,uHe,1,0,"tr",25),n.qZA(),n._UZ(36,"mat-paginator",26,27),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,cHe)),n.xp6(2),n.Q6J("dataSource",n.xi3(15,7,i.dataSource,i.searchText)),n.xp6(21),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,dHe))}}function pHe(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",39),n.qZA())}var QO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 po.Ov(!0,[]),this.dataSource=new _w,this.isReady=!1}return(0,V.Z)(t,[{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(qO,{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(KO,{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,Bc.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),t}();function hHe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1," role name is required "),n.qZA())}function mHe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1," Role name is incorrect "),n.qZA())}QO.\u0275fac=function(r){return new(r||QO)(n.Y36(xr),n.Y36(vr),n.Y36($n),n.Y36(Tu),n.Y36(ri))},QO.\u0275cmp=n.Xpm({type:QO,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(q9e,5),n.Gf(K9e,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.groupsPaginator=i),n.iGM(i=n.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 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&&(n.YNc(0,fHe,38,12,"div",0),n.YNc(1,pHe,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[wt.O5,Tn,ne._Y,ne.JL,ne.F,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,Vn,Da,Oa,Aa,Ia,ed,Kl],pipes:[JO],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;bottom:0;left:0;right:0;top:0;width:175px}"]});var _He=function(r){return{"is-invalid":r}},XO=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new ne.NI,description:new ne.NI})}},{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()}}]),t}();function gHe(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}XO.\u0275fac=function(r){return new(r||XO)(n.Y36(Dr),n.Y36(Vo),n.Y36(ne.qu))},XO.\u0275cmp=n.Xpm({type:XO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new role"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field"),n._UZ(4,"input",2),n.YNc(5,hHe,2,0,"mat-error",3),n.YNc(6,mHe,2,0,"mat-error",3),n.qZA(),n.TgZ(7,"mat-form-field"),n._UZ(8,"input",4),n.qZA(),n.TgZ(9,"div",5)(10,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(13," Add Role "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.roleNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(4,_He,null==e.form.name?null:e.form.name.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Un.KE,sr,ne.Fj,ne.JJ,ne.u,wt.mk,wt.O5,Un.TO,Zr,Tn],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var $O=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();$O.\u0275fac=function(r){return new(r||$O)(n.Y36(Dr),n.Y36(Vo))},$O.\u0275cmp=n.Xpm({type:$O,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure to delete role named: "),n.qZA(),n.YNc(2,gHe,2,1,"p",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(5,"No, cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(7," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngForOf",e.data.roles))},directives:[Vr,wt.sg,Zr,Tn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var Ap=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"get",value:function(e){return this.httpController.get(e,"/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"addPermission",value:function(e,i,o){return this.httpController.put(e,"/roles/".concat(i.role_id,"/permissions/").concat(o.permission_id),{})}},{key:"removePermission",value:function(e,i,o){return this.httpController.delete(e,"/roles/".concat(i.role_id,"/permissions/").concat(o.permission_id))}}]),t}();Ap.\u0275fac=function(r){return new(r||Ap)(n.LFG(Wo.zw))},Ap.\u0275prov=n.Yz7({token:Ap,factory:Ap.\u0275fac,providedIn:"root"});var eI=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),t}();eI.\u0275fac=function(r){return new(r||eI)},eI.\u0275pipe=n.Yjl({name:"roleFilter",type:eI,pure:!0});var vHe=["rolesPaginator"],yHe=["rolesSort"];function bHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell",27)(1,"mat-checkbox",28),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function CHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",27)(1,"mat-checkbox",29),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function wHe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Name"),n.qZA())}var kHe=function(r,e){return["/controller",r,"management","roles",e]};function THe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",31),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.WLB(3,kHe,i.controller.id,e.role_id))("matTooltip",e.name),n.xp6(1),n.Oqu(e.name)}}function EHe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Description"),n.qZA())}function MHe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",32),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.description),n.xp6(1),n.Oqu(e.description)}}function SHe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Permissions (Allow)"),n.qZA())}function xHe(t,r){if(1&t&&(n.TgZ(0,"div",35)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.TgZ(5,"div"),n._uU(6),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.action),n.xp6(2),n.Oqu(e.methods.join(",")),n.xp6(2),n.Oqu(e.path)}}function DHe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",33),n.YNc(2,xHe,7,3,"div",34),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Q6J("ngForOf",e.permissions)}}function AHe(t,r){1&t&&n._UZ(0,"mat-header-cell",27)}function OHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",27)(1,"button",36),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete([a])}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function IHe(t,r){1&t&&n._UZ(0,"mat-header-row")}function PHe(t,r){1&t&&n._UZ(0,"mat-row")}var RHe=function(){return{standalone:!0}},LHe=function(){return[5,10,20]};function ZHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"Roles Management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.onDelete(a.selection.selected)}),n._uU(6," Delete roles "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addRole()}),n._uU(8," Add role "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),n.ALo(17,"roleFilter"),n.ynx(18,14),n.YNc(19,bHe,2,2,"mat-header-cell",15),n.YNc(20,CHe,2,1,"mat-cell",16),n.BQk(),n.ynx(21,17),n.YNc(22,wHe,2,0,"mat-header-cell",18),n.YNc(23,THe,3,6,"mat-cell",19),n.BQk(),n.ynx(24,20),n.YNc(25,EHe,2,0,"mat-header-cell",18),n.YNc(26,MHe,3,2,"mat-cell",19),n.BQk(),n.ynx(27,21),n.YNc(28,SHe,2,0,"mat-header-cell",18),n.YNc(29,DHe,3,1,"mat-cell",19),n.BQk(),n.ynx(30,22),n.YNc(31,AHe,1,0,"mat-header-cell",15),n.YNc(32,OHe,4,0,"mat-cell",16),n.BQk(),n.YNc(33,IHe,1,0,"mat-header-row",23),n.YNc(34,PHe,1,0,"mat-row",24),n.qZA(),n._UZ(35,"mat-paginator",25,26),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,RHe)),n.xp6(3),n.Q6J("dataSource",n.xi3(17,7,i.dataSource,i.searchText)),n.xp6(19),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,LHe))}}function NHe(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",37),n.qZA())}var Fie,ab,tI=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new _w,this.displayedColumns=["select","name","description","permissions","delete"],this.selection=new po.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,V.Z)(t,[{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(XO,{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($O,{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,Bc.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),t}();tI.\u0275fac=function(r){return new(r||tI)(n.Y36(xr),n.Y36(kr),n.Y36(Ap),n.Y36(ul),n.Y36(vr),n.Y36(ri),n.Y36($n))},tI.\u0275cmp=n.Xpm({type:tI,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(vHe,5),n.Gf(yHe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.rolesPaginator=i),n.iGM(i=n.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","permissions"],["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"],[1,"permissions-list"],["class","overflow-col permission",4,"ngFor","ngForOf"],[1,"overflow-col","permission"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(n.YNc(0,ZHe,37,12,"div",0),n.YNc(1,NHe,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[wt.O5,Tn,ne._Y,ne.JL,ne.F,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,vi,wt.sg,Vn,Da,Oa,Aa,Ia,ed,Kl],pipes:[eI],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;bottom:0;left:0;right:0;top:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]}),function(t){t.GET="GET",t.HEAD="HEAD",t.POST="POST",t.PATCH="PATCH",t.PUT="PUT",t.DELETE="DELETE"}(Fie||(Fie={})),function(t){t.ALLOW="ALLOW",t.DENY="DENY"}(ab||(ab={}));var BHe=function(){function t(){(0,j.Z)(this,t),this.subPath=[]}return(0,V.Z)(t,[{key:"add",value:function(e){this.subPath.push(e)}},{key:"getDisplayPath",value:function(){return this.subPath.map(function(e){return e.displayValue})}},{key:"removeLast",value:function(){this.subPath.pop()}},{key:"getPath",value:function(){return this.subPath.map(function(e){return e.value})}},{key:"isEmpty",value:function(){return 0===this.subPath.length}},{key:"getVariables",value:function(){return this.subPath.filter(function(e){return e.key}).map(function(e){return{key:e.key,value:e.value}})}},{key:"containStar",value:function(){return this.subPath.map(function(e){return"*"===e.value}).reduce(function(e,i){return e||i},!1)}}]),t}(),FHe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.displayValue=e,this.key=i}),sb=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&""!==i?e.filter(function(o){return o.name.includes(i)||o.id.includes(i)}):e}}]),t}();function UHe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("",e,"/")}}function HHe(t,r){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.s9C("value",e),n.xp6(1),n.Oqu(e)}}function jHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",7),n.NdJ("valueChange",function(a){return n.CHM(e),n.oxw().valueChanged(a)}),n.YNc(2,HHe,2,2,"mat-option",8),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngForOf",i.values)}}function zHe(t,r){if(1&t&&(n.TgZ(0,"mat-option",9)(1,"span"),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.Q6J("value",e.name),n.xp6(2),n.Oqu(e.name)}}function WHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",10),n.NdJ("ngModelChange",function(s){return n.CHM(e),n.oxw().completeField=s}),n.qZA(),n.TgZ(2,"mat-autocomplete",null,11)(4,"mat-option",9),n._uU(5,"*"),n.qZA(),n.YNc(6,zHe,3,2,"mat-option",8),n.ALo(7,"filterComplete"),n.qZA()()}if(2&t){var i=n.MAs(3),o=n.oxw();n.xp6(1),n.Q6J("ngModel",o.completeField)("matAutocomplete",i),n.xp6(3),n.Q6J("value","*"),n.xp6(2),n.Q6J("ngForOf",n.xi3(7,4,o.completeData.data,o.completeField))}}function VHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().removePrevious()}),n._uU(1,"cancel"),n.qZA()}}function YHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().getNext()}),n._uU(1,"add_circle_outline"),n.qZA()}}function GHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().validComplete()}),n._uU(1,"check_circle "),n.qZA()}}sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275pipe=n.Yjl({name:"filterComplete",type:sb,pure:!0});var nI=function(){function t(r){(0,j.Z)(this,t),this.apiInformationService=r,this.update=new n.vpe,this.path=new BHe,this.values=[]}return(0,V.Z)(t,[{key:"updatePath",value:function(e,i,o){this.path.add(new FHe(e,i,o)),this.update.emit("/"+this.path.getPath().join("/"))}},{key:"popPath",value:function(){this.path.removeLast(),this.update.emit("/"+this.path.getPath().join("/"))}},{key:"ngOnInit",value:function(){}},{key:"getNext",value:function(){var e=this;this.apiInformationService.getPathNextElement(this.path.getPath()).subscribe(function(i){e.path.containStar()&&(i=i.filter(function(o){return!o.match(e.apiInformationService.bracketIdRegex)})),e.values=i,e.mode="SELECT"})}},{key:"removePrevious",value:function(){return this.mode?this.mode=void 0:this.path.isEmpty()?void 0:this.popPath()}},{key:"valueChanged",value:function(e){var i=this;e.match(this.apiInformationService.bracketIdRegex)&&!this.path.containStar()?this.apiInformationService.getListByObjectId(this.controller,e,void 0,this.path.getVariables()).subscribe(function(o){i.mode="COMPLETE",i.completeData={data:o,key:e}}):(this.updatePath(e,e),this.mode=void 0)}},{key:"validComplete",value:function(){var e=this;if("*"===this.completeField)this.updatePath("*","*");else{var i=this.completeData.data.find(function(o){return e.completeField===o.name});this.updatePath(i.id,i.name,this.completeData.key)}this.mode=void 0,this.completeField=void 0}}]),t}();nI.\u0275fac=function(r){return new(r||nI)(n.Y36(af))},nI.\u0275cmp=n.Xpm({type:nI,selectors:[["app-path-auto-complete"]],inputs:{controller:"controller"},outputs:{update:"update"},decls:12,vars:6,consts:[[1,"path"],[4,"ngFor","ngForOf"],[1,"path-edit-line"],[4,"ngIf"],[1,"command-button"],[3,"click",4,"ngIf"],["matTooltip","validate data",3,"click",4,"ngIf"],[1,"edit-area",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","autofocus","","aria-label","find",1,"complete","edit-area",3,"ngModel","matAutocomplete","ngModelChange"],["auto","matAutocomplete"],[3,"click"],["matTooltip","validate data",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"Path: /"),n.qZA(),n.YNc(3,UHe,2,1,"div",1),n.TgZ(4,"div",2)(5,"div"),n.YNc(6,jHe,3,1,"div",3),n.YNc(7,WHe,8,7,"div",3),n.qZA(),n.TgZ(8,"div",4),n.YNc(9,VHe,2,0,"mat-icon",5),n.YNc(10,YHe,2,0,"mat-icon",5),n.YNc(11,GHe,2,0,"mat-icon",6),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("ngForOf",e.path.getDisplayPath()),n.xp6(3),n.Q6J("ngIf","SELECT"===e.mode),n.xp6(1),n.Q6J("ngIf","COMPLETE"===e.mode),n.xp6(2),n.Q6J("ngIf",!e.path.isEmpty()),n.xp6(1),n.Q6J("ngIf",!e.mode),n.xp6(1),n.Q6J("ngIf","COMPLETE"===e.mode))},directives:[wt.sg,wt.O5,xi.gD,sn.ey,sr,ne.Fj,of,ne.JJ,ne.On,rf,Vn,vi],pipes:[sb],styles:[".path[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}mat-select[_ngcontent-%COMP%]{width:150px}.edit-area[_ngcontent-%COMP%]{border:1px solid}.command-button[_ngcontent-%COMP%]{margin-left:5px}.path-edit-line[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]});var qHe=function(r,e){return{allow:r,deny:e}},xk=function(){function t(){(0,j.Z)(this,t),this.DENY="DENY",this.ALLOW="ALLOW",this.disabled=!0,this.update=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"change",value:function(){this.action===ab.DENY?this.action=ab.ALLOW:this.action=ab.DENY,this.update.emit(this.action)}}]),t}();xk.\u0275fac=function(r){return new(r||xk)},xk.\u0275cmp=n.Xpm({type:xk,selectors:[["app-action-button"]],inputs:{action:"action",disabled:"disabled"},outputs:{update:"update"},decls:2,vars:6,consts:[["mat-button","",3,"ngClass","disabled","click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.change()}),n._uU(1),n.qZA()),2&r&&(n.Q6J("ngClass",n.WLB(3,qHe,"ALLOW"===e.action,"DENY"===e.action))("disabled",e.disabled),n.xp6(1),n.hij(" ",e.action,"\n"))},directives:[Tn,wt.mk],styles:[".allow[_ngcontent-%COMP%]{background-color:green;border-radius:unset!important}.deny[_ngcontent-%COMP%]{background-color:#8b0000}"]});var KHe=function(r,e){return{enable:r,disabled:e}},Dk=function(){function t(){(0,j.Z)(this,t),this.enable=!1,this.disabled=!0,this.update=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"change",value:function(){this.enable=!this.enable,this.update.emit({name:this.name,enable:this.enable})}}]),t}();function JHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-method-button",13),n.NdJ("update",function(a){return n.CHM(e),n.oxw(2).updateMethod(a)}),n.qZA()()}if(2&t){var i=r.$implicit;n.xp6(1),n.Q6J("name",i)("disabled",!1)}}function QHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"div")(4,"app-path-auto-complete",5),n.NdJ("update",function(a){return n.CHM(e),n.oxw().permission.path=a}),n.qZA()(),n.TgZ(5,"div",6),n._UZ(6,"app-action-button",7),n.YNc(7,JHe,2,2,"div",8),n.ALo(8,"async"),n.TgZ(9,"div",9)(10,"mat-form-field")(11,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().permission.description=a}),n.qZA()()()()(),n.TgZ(12,"div",11)(13,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().reset()}),n.TgZ(14,"mat-icon"),n._uU(15,"cancel"),n.qZA()(),n.TgZ(16,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().save()}),n.TgZ(17,"mat-icon"),n._uU(18,"done"),n.qZA()()()()()}if(2&t){var i=n.oxw();n.xp6(4),n.Q6J("controller",i.controller),n.xp6(2),n.Q6J("disabled",!1)("action",i.permission.action),n.xp6(1),n.Q6J("ngForOf",n.lcZ(8,5,i.apiInformation.getMethods(i.permission.path))),n.xp6(4),n.Q6J("ngModel",i.permission.description)}}function XHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",14)(1,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().edit=!0}),n.TgZ(2,"mat-icon"),n._uU(3,"add"),n.qZA()()()}}Dk.\u0275fac=function(r){return new(r||Dk)},Dk.\u0275cmp=n.Xpm({type:Dk,selectors:[["app-method-button"]],inputs:{enable:"enable",name:"name",disabled:"disabled"},outputs:{update:"update"},decls:2,vars:6,consts:[["mat-button","",3,"disabled","ngClass","click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.change()}),n._uU(1),n.qZA()),2&r&&(n.Q6J("disabled",e.disabled)("ngClass",n.WLB(3,KHe,e.enable,e.disabled)),n.xp6(1),n.hij(" ",e.name,"\n"))},directives:[Tn,wt.mk],styles:["[_nghost-%COMP%]{padding:unset!important}.enable[_ngcontent-%COMP%]{color:green!important}.disabled[_ngcontent-%COMP%]{color:#696969}"]});var Ak=function(){function t(r,e,i){(0,j.Z)(this,t),this.apiInformation=r,this.permissionService=e,this.toasterService=i,this.addPermissionEvent=new n.vpe,this.permission={action:ab.ALLOW,description:"",methods:[],path:"/"},this.edit=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updateMethod",value:function(e){var i=new Set(this.permission.methods);e.enable?i.add(e.name):i.delete(e.name),this.permission.methods=Array.from(i)}},{key:"reset",value:function(){this.permission={action:ab.ALLOW,description:"",methods:[],path:"/"},this.edit=!1}},{key:"save",value:function(){var e=this;this.permissionService.add(this.controller,this.permission).subscribe(function(){e.toasterService.success("permission was created"),e.reset()},function(i){e.toasterService.error("\n ".concat(i.message,"\n ").concat(i.error.message))})}}]),t}();Ak.\u0275fac=function(r){return new(r||Ak)(n.Y36(af),n.Y36(Cm),n.Y36($n))},Ak.\u0275cmp=n.Xpm({type:Ak,selectors:[["app-add-permission-line"]],inputs:{controller:"controller"},outputs:{addPermissionEvent:"addPermissionEvent"},decls:4,vars:2,consts:[[1,"box-border"],[4,"ngIf","ngIfElse"],["add",""],[1,"edit-mode"],[1,"information-box"],[3,"controller","update"],[1,"methods"],[3,"disabled","action"],[4,"ngFor","ngForOf"],[1,"description"],["matInput","","type","text","placeholder","Description",3,"ngModel","ngModelChange"],[1,"button-box"],["mat-button","",3,"click"],[3,"name","disabled","update"],[1,"not-edit"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div",0),n.YNc(1,QHe,19,7,"div",1),n.YNc(2,XHe,4,0,"ng-template",null,2,n.W1O),n.qZA()),2&r){var i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",e.edit)("ngIfElse",i)}},directives:[wt.O5,nI,xk,wt.sg,Dk,Un.KE,sr,ne.Fj,ne.JJ,ne.On,Tn,Vn],pipes:[wt.Ov],styles:[".box-border[_ngcontent-%COMP%]{width:100%;margin-top:20px;border-bottom:1px solid}.edit-mode[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}.information-box[_ngcontent-%COMP%]{margin-left:10px;width:100%}.information-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}.methods[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.button-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around}.description[_ngcontent-%COMP%]{width:100%;margin-left:10px;margin-right:10px}.description[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%]{width:100%}.not-edit[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}"]});var rI=function(){function t(r,e){(0,j.Z)(this,t),this.dialog=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"cancel",value:function(){this.dialog.close(!1)}},{key:"confirm",value:function(){this.dialog.close(!0)}}]),t}();function $He(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-method-button",13),n.NdJ("update",function(s){return n.CHM(e),n.oxw().onMethodUpdate(s)}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("name",i)("disabled",!o.isEditable)("enable",o.permission.methods.includes(i))}}function eje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().isEditable=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA()()}}function tje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){return n.CHM(e),n.oxw().onDelete()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function nje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n.TgZ(1,"mat-icon"),n._uU(2,"check_circle"),n.qZA()()}}function rje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().onCancel()}),n.TgZ(1,"mat-icon"),n._uU(2,"cancel"),n.qZA()()}}rI.\u0275fac=function(r){return new(r||rI)(n.Y36(Dr),n.Y36(Vo))},rI.\u0275cmp=n.Xpm({type:rI,selectors:[["app-delete-permission-dialog"]],decls:18,vars:5,consts:[[1,"description"],[1,"button"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"confirm deleting permission:"),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.TgZ(5,"div"),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.qZA(),n.TgZ(9,"div"),n._uU(10),n.qZA(),n.TgZ(11,"div"),n._uU(12),n.qZA()(),n.TgZ(13,"div",1)(14,"button",2),n.NdJ("click",function(){return e.cancel()}),n._uU(15,"No, cancel"),n.qZA(),n.TgZ(16,"button",3),n.NdJ("click",function(){return e.confirm()}),n._uU(17,"Yes, remove"),n.qZA()()),2&r&&(n.xp6(4),n.Oqu(e.data.permission_id),n.xp6(2),n.Oqu(e.data.path),n.xp6(2),n.Oqu(e.data.methods.join(",")),n.xp6(2),n.Oqu(e.data.action),n.xp6(2),n.Oqu(e.data.description))},directives:[Tn],styles:[".description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-top:20px}.description[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-top:20px}"]});var iI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.apiInformation=r,this.permissionService=e,this.toasterService=i,this.dialog=o,this.isEditable=!1,this.update=new n.vpe}return(0,V.Z)(t,[{key:"onDelete",value:function(){var e=this;this.dialog.open(rI,{width:"700px",height:"500px",data:this.permission}).afterClosed().subscribe(function(i){i&&e.permissionService.delete(e.controller,e.permission.permission_id).subscribe(function(){e.toasterService.success("Permission was deleted"),e.update.emit()},function(o){e.toasterService.error(o),e.update.emit()})})}},{key:"onSave",value:function(){var e=this;this.permissionService.update(this.controller,this.permission).subscribe(function(){e.toasterService.success("Permission was updated"),e.update.emit()},function(i){e.toasterService.error(i),e.update.emit()})}},{key:"onCancel",value:function(){this.update.emit()}},{key:"onMethodUpdate",value:function(e){var i=new Set(this.permission.methods);e.enable?i.add(e.name):i.delete(e.name),this.permission.methods=Array.from(i)}}]),t}();iI.\u0275fac=function(r){return new(r||iI)(n.Y36(af),n.Y36(Cm),n.Y36($n),n.Y36(ri))},iI.\u0275cmp=n.Xpm({type:iI,selectors:[["app-permission-add-edit-line"]],inputs:{permission:"permission",controller:"controller"},outputs:{update:"update"},decls:24,vars:24,consts:[[1,"permission"],[1,"action-button-bar"],[3,"action","disabled","update"],[1,"methods"],[4,"ngFor","ngForOf"],["matTooltipClass","custom-tooltip",3,"matTooltip"],["appearance","none",1,"permission-input"],["matInput","","type","text","placeholder","Description","matTooltipClass","custom-tooltip",3,"ngModel","matTooltip","readonly","ngModelChange"],[1,"button-bar"],["mat-button","","matTooltip","Edit permission",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete permission",3,"click",4,"ngIf"],["mat-button","","matTooltip","Save Changes","color","primary",3,"click",4,"ngIf"],["mat-button","","matTooltip","Cancel Changes","color","warn",3,"click",4,"ngIf"],[3,"name","disabled","enable","update"],["mat-button","","matTooltip","Edit permission",3,"click"],["mat-button","","matTooltip","Delete permission",3,"click"],["mat-button","","matTooltip","Save Changes","color","primary",3,"click"],["mat-button","","matTooltip","Cancel Changes","color","warn",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"app-action-button",2),n.NdJ("update",function(o){return e.permission.action=o}),n.qZA()(),n.TgZ(4,"div",3),n.YNc(5,$He,2,3,"div",4),n.ALo(6,"async"),n.qZA()(),n.TgZ(7,"div")(8,"div",5),n.ALo(9,"async"),n.ALo(10,"displayPath"),n._uU(11),n.ALo(12,"async"),n.ALo(13,"displayPath"),n.qZA()(),n.TgZ(14,"div")(15,"mat-form-field",6)(16,"input",7),n.NdJ("ngModelChange",function(o){return e.permission.description=o}),n.qZA()()(),n.TgZ(17,"div",8)(18,"div"),n.YNc(19,eje,3,0,"button",9),n.YNc(20,tje,3,0,"button",10),n.qZA(),n.TgZ(21,"div"),n.YNc(22,nje,3,0,"button",11),n.YNc(23,rje,3,0,"button",12),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("action",e.permission.action)("disabled",!e.isEditable),n.xp6(2),n.Q6J("ngForOf",n.lcZ(6,12,e.apiInformation.getMethods(e.permission.path))),n.xp6(3),n.Q6J("matTooltip",n.lcZ(9,14,n.xi3(10,16,e.permission.path,e.controller))),n.xp6(3),n.hij(" ",n.lcZ(12,19,n.xi3(13,21,e.permission.path,e.controller))," "),n.xp6(5),n.Q6J("ngModel",e.permission.description)("matTooltip",e.permission.description)("readonly",!e.isEditable),n.xp6(3),n.Q6J("ngIf",!e.isEditable),n.xp6(1),n.Q6J("ngIf",!e.isEditable),n.xp6(2),n.Q6J("ngIf",e.isEditable),n.xp6(1),n.Q6J("ngIf",e.isEditable))},directives:[xk,wt.sg,Dk,vi,Un.KE,sr,ne.Fj,ne.JJ,ne.On,wt.O5,Tn,Vn],pipes:[wt.Ov,Mk],styles:[".permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;border-bottom:solid 1px;margin-top:10px;align-items:center}.action-button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row}.methods[_ngcontent-%COMP%]{display:flex;flex-direction:row;border:1px solid}.permission-input[_ngcontent-%COMP%]{width:300px}.button-bar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{padding:unset!important}"]});var lb=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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)):[]}}]),t}();lb.\u0275fac=function(r){return new(r||lb)},lb.\u0275pipe=n.Yjl({name:"paginator",type:lb,pure:!0});var Ok=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?null==i||""===i?e:e.filter(function(o){return o.path.toLowerCase().includes(i.toLowerCase())}):[]}}]),t}();Ok.\u0275fac=function(r){return new(r||Ok)},Ok.\u0275pipe=n.Yjl({name:"permissionsFilter",type:Ok,pure:!0});var ije=["dynamic"];function oje(t,r){if(1&t&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function aje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-permission-add-edit-line",13),n.NdJ("update",function(){return n.CHM(e),n.oxw(2).refresh()}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("permission",i)("controller",o.controller)}}var sje=function(){return[5,20,50,100]};function lje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"app-add-permission-line",4),n.NdJ("addPermissionEvent",function(){return n.CHM(e),n.oxw().refresh()}),n.qZA()(),n.TgZ(3,"div",5)(4,"input",6),n.NdJ("ngModelChange",function(s){return n.CHM(e),n.oxw().searchPermissions=s})("input",function(s){return n.CHM(e),n.oxw().changeAutocomplete(s.target.value)}),n.qZA(),n.TgZ(5,"mat-autocomplete",7,8),n.YNc(7,oje,2,2,"mat-option",9),n.ALo(8,"filterComplete"),n.qZA(),n.YNc(9,aje,2,2,"div",10),n.ALo(10,"paginator"),n.ALo(11,"permissionsFilter"),n.TgZ(12,"mat-paginator",11),n.NdJ("page",function(s){return n.CHM(e),n.oxw().pageEvent=s}),n.qZA()()()}if(2&t){var i=n.MAs(6),o=n.oxw();n.xp6(2),n.Q6J("controller",o.controller),n.xp6(2),n.Q6J("ngModel",o.searchPermissions)("matAutocomplete",i),n.xp6(1),n.Q6J("displayWith",o.displayFn),n.xp6(2),n.Q6J("ngForOf",n.xi3(8,8,o.filteredOptions,o.searchPermissions)),n.xp6(2),n.Q6J("ngForOf",n.xi3(10,11,n.xi3(11,14,o.permissions,null==o.searchPermissions?null:o.searchPermissions.id),o.pageEvent)),n.xp6(3),n.Q6J("length",o.permissions.length)("pageSizeOptions",n.DdM(17,sje))}}function uje(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",14),n.qZA())}var oI=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.route=r,this.router=e,this.permissionService=i,this.progressService=o,this.controllerService=a,this.apiInformationService=s,this.addPermissionLineComp=Ak,this.newPermissionEdit=!1,this.options=[],this.isReady=!1}return(0,V.Z)(t,[{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:"refresh",value:function(){var e=this;this.permissionService.list(this.controller).subscribe(function(i){e.permissions=i,e.isReady=!0},function(i){e.progressService.setError(i)})}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"changeAutocomplete",value:function(e){this.filteredOptions=this.apiInformationService.getIdByObjNameFromCache(e)}}]),t}();function cje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().addUser(o)}),n._uU(1,"add"),n.qZA()}}function dje(t,r){1&t&&n._UZ(0,"mat-spinner")}function fje(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.YNc(5,cje,2,0,"mat-icon",6),n.YNc(6,dje,1,0,"mat-spinner",7),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(2),n.Oqu(e.username),n.xp6(2),n.Oqu(e.email),n.xp6(1),n.Q6J("ngIf",!i.loading),n.xp6(1),n.Q6J("ngIf",i.loading)}}oI.\u0275fac=function(r){return new(r||oI)(n.Y36(xr),n.Y36(kr),n.Y36(Cm),n.Y36(ul),n.Y36(vr),n.Y36(af))},oI.\u0275cmp=n.Xpm({type:oI,selectors:[["app-permissions-management"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(ije,5,n.s_b),2&r)&&(n.iGM(i=n.CRH())&&(e.viewContainerRef=i.first))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"add"],[3,"controller","addPermissionEvent"],[1,"permission-content","default-content"],["type","text","matInput","","name","typeInput","placeholder","Search by name",1,"permission-filter",3,"ngModel","matAutocomplete","ngModelChange","input"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],[3,"value"],[3,"permission","controller","update"],[1,"loader"]],template:function(r,e){if(1&r&&(n.YNc(0,lje,13,18,"div",0),n.YNc(1,uje,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[wt.O5,Ak,sr,ne.Fj,of,ne.JJ,ne.On,rf,wt.sg,sn.ey,iI,ed,Kl],pipes:[sb,lb,Ok],styles:[".permission-content[_ngcontent-%COMP%]{max-width:1400px}.add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;bottom:0;left:0;right:0;top:0;width:175px}.permission-filter[_ngcontent-%COMP%]{border-bottom:1px solid;margin:5px;border-bottom-color:#b0bec5}"]});var aI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new go.X([]),this.displayedUsers=new go.X([]),this.loading=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,op.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,Bc.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,Ut.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(f){return f.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})}}]),t}();aI.\u0275fac=function(r){return new(r||aI)(n.Y36(Dr),n.Y36(Vo),n.Y36(hl),n.Y36(Tu),n.Y36($n))},aI.\u0275cmp=n.Xpm({type:aI,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&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.qZA()(),n.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),n._uU(6,"Search user "),n.qZA(),n.TgZ(7,"input",3),n.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),n.qZA()()(),n.YNc(8,fje,7,4,"div",4),n.ALo(9,"async")),2&r&&(n.xp6(2),n.hij("Add User To group: ",e.data.group.name,""),n.xp6(5),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngForOf",n.lcZ(9,3,e.displayedUsers)))},directives:[Un.KE,Un.hX,sr,ne.Fj,ne.JJ,ne.On,wt.sg,wt.O5,Vn,Kl],pipes:[wt.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 Ik=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),t}();function pje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().addRole(o)}),n._uU(1,"add"),n.qZA()}}function hje(t,r){1&t&&n._UZ(0,"mat-spinner")}function mje(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div"),n._uU(2),n.qZA(),n.YNc(3,pje,2,0,"mat-icon",6),n.YNc(4,hje,1,0,"mat-spinner",7),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(2),n.Oqu(e.name),n.xp6(1),n.Q6J("ngIf",!i.loading),n.xp6(1),n.Q6J("ngIf",i.loading)}}Ik.\u0275fac=function(r){return new(r||Ik)(n.Y36(Dr),n.Y36(Vo))},Ik.\u0275cmp=n.Xpm({type:Ik,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&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"Confirm ?"),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA()(),n.TgZ(5,"div",1)(6,"button",2),n.NdJ("click",function(){return e.onCancel()}),n._uU(7,"No, cancel"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return e.onConfirm()}),n._uU(9,"Yes, remove"),n.qZA()()),2&r&&(n.xp6(4),n.hij("Removing: ",e.data.name,""))},directives:[Tn],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}"]});var sI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialog=r,this.data=e,this.groupService=i,this.roleService=o,this.toastService=a,this.roles=new go.X([]),this.displayedRoles=new go.X([]),this.loading=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.getRoles()}},{key:"onSearch",value:function(){var e=this;(0,op.H)(500).subscribe(function(){var i=e.roles.value.filter(function(o){return o.name.includes(e.searchText)});e.displayedRoles.next(i)})}},{key:"getRoles",value:function(){var e=this;(0,Bc.D)([this.roleService.get(this.data.controller),this.groupService.getGroupRole(this.data.controller,this.data.group.user_group_id)]).subscribe(function(i){var o=(0,Ut.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(f){return f.role_id===u.role_id})});e.roles.next(l),e.displayedRoles.next(l)})}},{key:"addRole",value:function(e){var i=this;this.loading=!0,this.groupService.addRoleToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("role ".concat(e.name," was added")),i.getRoles(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding role ".concat(e.name," to group ").concat(i.data.group.name)),i.loading=!1})}}]),t}();sI.\u0275fac=function(r){return new(r||sI)(n.Y36(Dr),n.Y36(Vo),n.Y36(Tu),n.Y36(Ap),n.Y36($n))},sI.\u0275cmp=n.Xpm({type:sI,selectors:[["app-add-role-to-group"]],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&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.qZA()(),n.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),n._uU(6,"Search user "),n.qZA(),n.TgZ(7,"input",3),n.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),n.qZA()()(),n.YNc(8,mje,5,3,"div",4),n.ALo(9,"async")),2&r&&(n.xp6(2),n.hij("Add Role To group: ",e.data.group.name,""),n.xp6(5),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngForOf",n.lcZ(9,3,e.displayedRoles)))},directives:[Un.KE,Un.hX,sr,ne.Fj,ne.JJ,ne.On,wt.sg,wt.O5,Vn,Kl],pipes:[wt.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 lI=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),t}();function _je(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"a",21)(2,"div"),n._uU(3),n.qZA()(),n.TgZ(4,"mat-icon",13),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().openRemoveUserDialog(l)}),n._uU(5,"delete"),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.hYB("href","/controller/",o.controller.id,"/management/users/",i.user_id,"",n.LSH),n.xp6(2),n.Oqu(i.username)}}function gje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",22)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",19),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().openRemoveRoleDialog(s)}),n.TgZ(5,"mat-icon"),n._uU(6,"delete"),n.qZA()()()()}if(2&t){var i=r.$implicit;n.xp6(2),n.Oqu(i.name)}}lI.\u0275fac=function(r){return new(r||lI)},lI.\u0275pipe=n.Yjl({name:"membersFilter",type:lI,pure:!0});var vje=function(r){return["/controller",r,"management","groups"]},yje=function(){return[5,20,50,100]},uI=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.editGroupForm=new ne.cw({groupname:new ne.NI("")}),this.route.data.subscribe(function(s){a.controller=s.controller,a.group=s.group,a.roles=s.roles,a.members=s.members.sort(function(l,u){return l.username.toLowerCase().localeCompare(u.username.toLowerCase())}),a.editGroupForm.setValue({groupname:a.group.name})})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onUpdate",value:function(){var e=this;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:"openAddRoleDialog",value:function(){var e=this;this.dialog.open(sI,{width:"700px",height:"500px",data:{controller:this.controller,group:this.group}}).afterClosed().subscribe(function(){e.reloadRoles()})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(aI,{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(Ik,{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:"openRemoveRoleDialog",value:function(e){var i=this;this.dialog.open(Ik,{width:"500px",height:"200px",data:{name:e.name}}).afterClosed().subscribe(function(o){o&&i.groupService.removeRole(i.controller,i.group,e).subscribe(function(){i.toastService.success("Role ".concat(e.name," was removed")),i.reloadRoles()},function(a){i.toastService.error("Error while removing role ".concat(e.name," 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})}},{key:"reloadRoles",value:function(){var e=this;this.groupService.getGroupRole(this.controller,this.group.user_group_id).subscribe(function(i){e.roles=i})}}]),t}();uI.\u0275fac=function(r){return new(r||uI)(n.Y36(xr),n.Y36(ri),n.Y36(Tu),n.Y36($n))},uI.\u0275cmp=n.Xpm({type:uI,selectors:[["app-group-details"]],decls:47,vars:22,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"],["matInput","","type","text",3,"ngModel"],["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","Roles"],["mat-button","",3,"click"],["class","roles",4,"ngFor","ngForOf"],[3,"href"],[1,"roles"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7),n.qZA()(),n.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"mat-form-field")(13,"mat-label"),n._uU(14,"Group name:"),n.qZA(),n._UZ(15,"input",7),n.qZA()(),n.TgZ(16,"div")(17,"mat-checkbox",8),n._uU(18,"Is build in"),n.qZA()(),n.TgZ(19,"div",9)(20,"button",10),n.NdJ("click",function(){return e.onUpdate()}),n._uU(21," Update Group "),n.qZA()()(),n.TgZ(22,"div")(23,"div"),n._uU(24),n.qZA(),n.TgZ(25,"div"),n._uU(26),n.qZA(),n.TgZ(27,"div"),n._uU(28),n.qZA()()(),n.TgZ(29,"mat-tab",11)(30,"div",12)(31,"div")(32,"mat-icon",13),n.NdJ("click",function(){return e.openAddUserDialog()}),n._uU(33,"person_add"),n.qZA()(),n.TgZ(34,"div",14)(35,"mat-form-field")(36,"input",15),n.NdJ("ngModelChange",function(o){return e.searchMembers=o}),n.qZA()()(),n.YNc(37,_je,6,3,"div",16),n.ALo(38,"paginator"),n.ALo(39,"membersFilter"),n.TgZ(40,"mat-paginator",17),n.NdJ("page",function(o){return e.pageEvent=o}),n.qZA()()(),n.TgZ(41,"mat-tab",18)(42,"div")(43,"button",19),n.NdJ("click",function(){return e.openAddRoleDialog()}),n.TgZ(44,"mat-icon"),n._uU(45,"group_add"),n.qZA()()(),n.YNc(46,gje,7,1,"div",20),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(19,vje,e.controller.id)),n.xp6(4),n.hij("Groups ",e.group.name," details"),n.xp6(8),n.Q6J("ngModel",e.group.name),n.xp6(2),n.Q6J("checked",e.group.is_builtin),n.xp6(3),n.Q6J("disabled",!e.editGroupForm.valid),n.xp6(4),n.hij("Creation date: ",e.group.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.group.updated_at,""),n.xp6(2),n.hij("UUID: ",e.group.user_group_id,""),n.xp6(8),n.Q6J("ngModel",e.searchMembers),n.xp6(1),n.Q6J("ngForOf",n.xi3(38,13,n.xi3(39,16,e.members,e.searchMembers),e.pageEvent)),n.xp6(3),n.Q6J("length",e.members.length)("pageSizeOptions",n.DdM(21,yje)),n.xp6(6),n.Q6J("ngForOf",e.roles))},directives:[ig,Ws,vi,Vn,so.SP,so.uX,Un.KE,Un.hX,sr,ne.Fj,ne.JJ,ne.On,Ui,Zr,Tn,wt.sg,ed],pipes:[lb,lI],styles:[".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 Pk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Pk.\u0275fac=function(r){return new(r||Pk)(n.LFG(vr),n.LFG(Tu))},Pk.\u0275prov=n.Yz7({token:Pk,factory:Pk.\u0275fac,providedIn:"root"});var Rk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Rk.\u0275fac=function(r){return new(r||Rk)(n.LFG(vr),n.LFG(Tu))},Rk.\u0275prov=n.Yz7({token:Rk,factory:Rk.\u0275fac,providedIn:"root"});var Lk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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.getGroupRole(u,l).subscribe(function(f){a.next(f),a.complete()})})})}}]),t}();function bje(t,r){if(1&t&&n._UZ(0,"app-editable-permission",17),2&t){var e=r.$implicit,i=n.oxw();n.Q6J("permission",e)("controller",i.controller)}}Lk.\u0275fac=function(r){return new(r||Lk)(n.LFG(vr),n.LFG(Tu))},Lk.\u0275prov=n.Yz7({token:Lk,factory:Lk.\u0275fac,providedIn:"root"});var Cje=function(r){return["/controller",r,"management","roles"]},wje=function(r,e){return["/controller",r,"management","roles",e,"permissions"]},cI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.roleService=r,this.controllerService=e,this.toastService=i,this.route=o,this.editRoleForm=new ne.cw({rolename:new ne.NI,description:new ne.NI})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.role=i.role})}},{key:"onUpdate",value:function(){var e=this;this.roleService.update(this.controller,this.role).subscribe(function(){e.toastService.success("role: ".concat(e.role.name," was updated"))},function(i){e.toastService.error("".concat(i.message,"\n ").concat(i.error.message))})}}]),t}();cI.\u0275fac=function(r){return new(r||cI)(n.Y36(Ap),n.Y36(vr),n.Y36($n),n.Y36(xr))},cI.\u0275cmp=n.Xpm({type:cI,selectors:[["app-role-detail"]],decls:42,vars:17,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"],["matInput","","type","text",3,"ngModel"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[1,"permissions"],[1,"header"],["mat-button","",3,"routerLink"],[3,"permission","controller",4,"ngFor","ngForOf"],[3,"permission","controller"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7),n.qZA()(),n.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),n._uU(13,"Role name:"),n.qZA(),n._UZ(14,"input",8),n.qZA()(),n.TgZ(15,"div")(16,"mat-form-field")(17,"mat-label"),n._uU(18,"Description:"),n.qZA(),n._UZ(19,"input",8),n.qZA()(),n.TgZ(20,"div"),n._uU(21),n.qZA(),n.TgZ(22,"div"),n._uU(23),n.qZA(),n.TgZ(24,"div"),n._uU(25),n.qZA(),n.TgZ(26,"div")(27,"mat-checkbox",9),n._uU(28,"Is build in"),n.qZA()(),n.TgZ(29,"div",10)(30,"button",11),n.NdJ("click",function(){return e.onUpdate()}),n._uU(31," Update Role "),n.qZA()()(),n._UZ(32,"mat-divider",12),n.TgZ(33,"div",13)(34,"div",14)(35,"div"),n._uU(36,"Permissions"),n.qZA(),n.TgZ(37,"div")(38,"button",15)(39,"mat-icon"),n._uU(40,"edit"),n.qZA()()()(),n.YNc(41,bje,1,2,"app-editable-permission",16),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(12,Cje,e.controller.id)),n.xp6(4),n.hij("Role ",e.role.name," details"),n.xp6(7),n.Q6J("ngModel",e.role.name),n.xp6(5),n.Q6J("ngModel",e.role.description),n.xp6(2),n.hij("Creation date: ",e.role.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.role.updated_at,""),n.xp6(2),n.hij("UUID: ",e.role.role_id,""),n.xp6(2),n.Q6J("checked",e.role.is_builtin),n.xp6(3),n.Q6J("disabled",!e.editRoleForm.valid),n.xp6(2),n.Q6J("vertical",!0),n.xp6(6),n.Q6J("routerLink",n.WLB(14,wje,e.controller.id,e.role.role_id)),n.xp6(3),n.Q6J("ngForOf",e.role.permissions))},directives:[ig,Ws,vi,Vn,Un.KE,Un.hX,sr,ne.Fj,ne.JJ,ne.On,Ui,Zr,Tn,ag.d,na,wt.sg,Kg],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.permissions[_ngcontent-%COMP%]{width:35vw;display:flex;flex-direction:column;justify-content:stretch}.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}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var ub=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.roleService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();function kje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().update()}),n._uU(1," Apply "),n.qZA()}}function Tje(t,r){1&t&&(n.TgZ(0,"div",9),n._uU(1,"Permission to Add:"),n.qZA())}function Eje(t,r){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"app-editable-permission",10),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("permission",e)}}function Mje(t,r){1&t&&(n.TgZ(0,"div",9),n._uU(1,"Permission to Remove:"),n.qZA())}function Sje(t,r){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"app-editable-permission",10),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("permission",e)}}function xje(t,r){if(1&t&&(n.TgZ(0,"div",6),n._UZ(1,"p"),n.YNc(2,Tje,2,0,"div",7),n.YNc(3,Eje,2,1,"div",8),n.YNc(4,Mje,2,0,"div",7),n.YNc(5,Sje,2,1,"div",8),n.qZA()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.data.add.length>0),n.xp6(1),n.Q6J("ngForOf",e.data.add),n.xp6(1),n.Q6J("ngIf",e.data.remove.length>0),n.xp6(1),n.Q6J("ngForOf",e.data.remove)}}function Dje(t,r){1&t&&(n.TgZ(0,"div",11),n._uU(1," No change "),n.qZA())}ub.\u0275fac=function(r){return new(r||ub)(n.LFG(vr),n.LFG(Ap))},ub.\u0275prov=n.Yz7({token:ub,factory:ub.\u0275fac,providedIn:"root"});var dI=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"update",value:function(){this.dialogRef.close(!0)}}]),t}();function Aje(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function Oje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-editable-permission",16),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().remove(l)}),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw();n.Q6J("side","LEFT")("permission",i)("controller",o.controller)}}function Ije(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-editable-permission",16),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().add(l)}),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw();n.Q6J("side","RIGHT")("permission",i)("controller",o.controller)}}dI.\u0275fac=function(r){return new(r||dI)(n.Y36(Dr),n.Y36(Vo))},dI.\u0275cmp=n.Xpm({type:dI,selectors:[["app-permission-editor-validate-dialog"]],decls:8,vars:3,consts:[[1,"button"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["class","change",4,"ngIf","ngIfElse"],["nothingTodo",""],["mat-button","","mat-raised-button","","color","primary",3,"click"],[1,"change"],["class","title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"title"],[3,"permission"],[1,"noChange"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div")(1,"div",0)(2,"button",1),n.NdJ("click",function(){return e.close()}),n._uU(3," Cancel "),n.qZA(),n.YNc(4,kje,2,0,"button",2),n.qZA(),n.YNc(5,xje,6,4,"div",3),n.YNc(6,Dje,2,0,"ng-template",null,4,n.W1O),n.qZA()),2&r){var i=n.MAs(7);n.xp6(4),n.Q6J("ngIf",e.data.add.length>0||e.data.remove.length>0),n.xp6(1),n.Q6J("ngIf",e.data.add.length>0||e.data.remove.length>0)("ngIfElse",i)}},directives:[Tn,wt.O5,wt.sg,Kg],styles:[".change[_ngcontent-%COMP%]{height:350px;display:flex;flex-direction:column;justify-content:center;overflow-y:auto}.change[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center}.title[_ngcontent-%COMP%]{font-size:20px}.button[_ngcontent-%COMP%]{position:relative;top:400px;z-index:1}.button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:50px}.noChange[_ngcontent-%COMP%]{display:flex;justify-content:center;justify-items:center}"]});var Uie=function(){return[5,20,50,100]},Zk=function(){function t(r,e){(0,j.Z)(this,t),this.dialog=r,this.apiInformationService=e,this.updatedPermissions=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.reset()}},{key:"add",value:function(e){this.available.delete(e),this.owned.add(e)}},{key:"remove",value:function(e){this.owned.delete(e),this.available.add(e)}},{key:"reset",value:function(){var e=this.ownedPermissions.map(function(i){return i.permission_id});this.owned=new Set(this.ownedPermissions),this.available=new Set(this.availablePermissions.filter(function(i){return!e.includes(i.permission_id)}))}},{key:"update",value:function(){var e=this,i=this.diff(),o=i.add,a=i.remove;this.dialog.open(dI,{width:"700px",height:"500px",data:{add:o,remove:a}}).afterClosed().subscribe(function(s){s&&e.updatedPermissions.emit({add:o,remove:a})})}},{key:"diff",value:function(){var e=this,i=[],o=this.ownedPermissions.map(function(s){return s.permission_id});this.owned.forEach(function(s){o.includes(s.permission_id)||i.push(s)});var a=[];return this.ownedPermissions.forEach(function(s){e.owned.has(s)||a.push(s)}),{add:i,remove:a}}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"changeAutocomplete",value:function(e){this.filteredOptions=this.apiInformationService.getIdByObjNameFromCache(e)}},{key:"ownedArray",get:function(){return Array.from(this.owned.values())}},{key:"availableArray",get:function(){return Array.from(this.available.values())}}]),t}();Zk.\u0275fac=function(r){return new(r||Zk)(n.Y36(ri),n.Y36(af))},Zk.\u0275cmp=n.Xpm({type:Zk,selectors:[["app-permission-editor"]],inputs:{controller:"controller",ownedPermissions:"ownedPermissions",availablePermissions:"availablePermissions"},outputs:{updatedPermissions:"updatedPermissions"},decls:34,vars:28,consts:[[1,"header"],[1,"box","allow"],[1,"box","deny"],["type","text","matInput","","name","typeInput","placeholder","Search by name",1,"permission-filter",3,"ngModel","matAutocomplete","ngModelChange","input"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click"],[1,"editor"],[1,"column"],[1,"title"],[3,"side","permission","controller","click",4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],[3,"vertical"],[3,"value"],[3,"side","permission","controller","click"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"div"),n._uU(3," Allow: "),n.qZA(),n._UZ(4,"div",1),n.TgZ(5,"div"),n._uU(6," Deny: "),n.qZA(),n._UZ(7,"div",2),n.qZA(),n.TgZ(8,"input",3),n.NdJ("ngModelChange",function(a){return e.searchPermissions=a})("input",function(a){return e.changeAutocomplete(a.target.value)}),n.qZA(),n.TgZ(9,"mat-autocomplete",4,5),n.YNc(11,Aje,2,2,"mat-option",6),n.ALo(12,"filterComplete"),n.qZA(),n.TgZ(13,"div")(14,"button",7),n.NdJ("click",function(){return e.reset()}),n._uU(15,"Reset "),n.qZA(),n.TgZ(16,"button",8),n.NdJ("click",function(){return e.update()}),n._uU(17,"Update "),n.qZA()()(),n.TgZ(18,"div",9)(19,"div",10)(20,"div",11),n._uU(21,"Owned"),n.qZA(),n.YNc(22,Oje,1,3,"app-editable-permission",12),n.ALo(23,"paginator"),n.ALo(24,"permissionsFilter"),n.TgZ(25,"mat-paginator",13),n.NdJ("page",function(a){return e.pageEventOwned=a}),n.qZA()(),n._UZ(26,"mat-divider",14),n.TgZ(27,"div",10)(28,"div",11),n._uU(29,"Available"),n.qZA(),n.YNc(30,Ije,1,3,"app-editable-permission",12),n.ALo(31,"paginator"),n.ALo(32,"permissionsFilter"),n.TgZ(33,"mat-paginator",13),n.NdJ("page",function(a){return e.pageEventAvailable=a}),n.qZA()()()),2&r){var i=n.MAs(10);n.xp6(8),n.Q6J("ngModel",e.searchPermissions)("matAutocomplete",i),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.xi3(12,11,e.filteredOptions,e.searchPermissions)),n.xp6(11),n.Q6J("ngForOf",n.xi3(23,14,n.xi3(24,17,e.ownedArray,null==e.searchPermissions?null:e.searchPermissions.id),e.pageEventOwned)),n.xp6(3),n.Q6J("length",e.ownedArray.length)("pageSizeOptions",n.DdM(26,Uie)),n.xp6(1),n.Q6J("vertical",!0),n.xp6(4),n.Q6J("ngForOf",n.xi3(31,20,n.xi3(32,23,e.availableArray,null==e.searchPermissions?null:e.searchPermissions.id),e.pageEventAvailable)),n.xp6(3),n.Q6J("length",e.availableArray.length)("pageSizeOptions",n.DdM(27,Uie))}},directives:[sr,ne.Fj,of,ne.JJ,ne.On,rf,wt.sg,sn.ey,Tn,Kg,ed,ag.d],pipes:[sb,lb,Ok],styles:[".editor[_ngcontent-%COMP%]{display:flex;justify-content:stretch}.column[_ngcontent-%COMP%]{width:50vw}.header[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row;justify-content:space-between;font-size:20px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-right:30px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:20px}.title[_ngcontent-%COMP%]{font-size:20px;margin-left:20px}.box[_ngcontent-%COMP%]{width:50px;height:25px;border:1px solid;margin-right:20px;margin-left:10px}.allow[_ngcontent-%COMP%]{background-color:#054c0561}.deny[_ngcontent-%COMP%]{background-color:#8208085c}.permission-filter[_ngcontent-%COMP%]{border-bottom:1px solid;margin:5px;border-bottom-color:#b0bec5}"]});var Pje=function(r,e){return["/controller",r,"management","roles",e]},fI=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.toastService=i,this.router=o,this.roleService=a,this.route.data.subscribe(function(l){s.controller=l.controller,s.role=l.role,s.permissions=l.permissions})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updatePermissions",value:function(e){var i=this,o=e.add,a=e.remove,s=[];o.forEach(function(l){s.push(i.roleService.addPermission(i.controller,i.role,l))}),a.forEach(function(l){s.push(i.roleService.removePermission(i.controller,i.role,l))}),(0,Bc.D)(s).subscribe(function(){i.toastService.success("permissions updated"),i.router.navigate(["/controller",i.controller.id,"management","roles",i.role.role_id])},function(l){i.toastService.error("".concat(l.message,"\n ").concat(l.error.message))})}}]),t}();fI.\u0275fac=function(r){return new(r||fI)(n.Y36(xr),n.Y36(ri),n.Y36($n),n.Y36(kr),n.Y36(Ap))},fI.\u0275cmp=n.Xpm({type:fI,selectors:[["app-role-permissions"]],decls:8,vars:8,consts:[[1,"header"],["mat-icon-button","","matTooltip","Back to role detail","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role detail"],[3,"ownedPermissions","availablePermissions","controller","updatedPermissions"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"a",1)(3,"mat-icon",2),n._uU(4,"keyboard_arrow_left"),n.qZA()()(),n.TgZ(5,"div"),n._uU(6),n.qZA()(),n.TgZ(7,"app-permission-editor",3),n.NdJ("updatedPermissions",function(o){return e.updatePermissions(o)}),n.qZA()),2&r&&(n.xp6(2),n.Q6J("routerLink",n.WLB(5,Pje,e.controller.id,e.role.role_id)),n.xp6(4),n.hij(" Edit ",e.role.name," role permissions "),n.xp6(1),n.Q6J("ownedPermissions",e.role.permissions)("availablePermissions",e.permissions)("controller",e.controller))},directives:[ig,Ws,vi,Vn,Zk],styles:[""]});var Rje=function(r,e){return["/controller",r,"management","users",e]},pI=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.toastService=i,this.router=o,this.userService=a,this.route.data.subscribe(function(l){s.controller=l.controller,s.user=l.user,s.userPermissions=l.userPermissions,s.permissions=l.permissions})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updatePermissions",value:function(e){var i=this,o=e.add,a=e.remove,s=[];o.forEach(function(l){s.push(i.userService.addPermission(i.controller,i.user.user_id,l))}),a.forEach(function(l){s.push(i.userService.removePermission(i.controller,i.user.user_id,l))}),(0,Bc.D)(s).subscribe(function(){i.toastService.success("permissions updated"),i.router.navigate(["/controller",i.controller.id,"management","users",i.user.user_id])},function(l){i.toastService.error("".concat(l.message,"\n ").concat(l.error.message))})}}]),t}();pI.\u0275fac=function(r){return new(r||pI)(n.Y36(xr),n.Y36(ri),n.Y36($n),n.Y36(kr),n.Y36(hl))},pI.\u0275cmp=n.Xpm({type:pI,selectors:[["app-user-permissions"]],decls:8,vars:8,consts:[[1,"header"],["mat-icon-button","","matTooltip","Back to user detail","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user detail"],[3,"ownedPermissions","availablePermissions","controller","updatedPermissions"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"a",1)(3,"mat-icon",2),n._uU(4,"keyboard_arrow_left"),n.qZA()()(),n.TgZ(5,"div"),n._uU(6),n.qZA()(),n.TgZ(7,"app-permission-editor",3),n.NdJ("updatedPermissions",function(o){return e.updatePermissions(o)}),n.qZA()),2&r&&(n.xp6(2),n.Q6J("routerLink",n.WLB(5,Rje,e.controller.id,e.user.user_id)),n.xp6(4),n.hij(" Edit ",e.user.username," role permissions "),n.xp6(1),n.Q6J("ownedPermissions",e.userPermissions)("availablePermissions",e.permissions)("controller",e.controller))},directives:[ig,Ws,vi,Vn,Zk],styles:[""]});var Lje=[{path:"",component:PO,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:CO},{path:"bundled",component:zx},{path:"controller/:controller_id/login",component:r2},{path:"controller/:controller_id/loggeduser",component:HO},{path:"controller/:controller_id/image-manager",component:WO},{path:"controller/:controller_id/projects",component:_k,canActivate:[ni],resolve:{controller:rc}},{path:"controller/:controller_id/help",component:Xx},{path:"controller/:controller_id/settings",component:kO},{path:"controller/:controller_id/settings/console",component:wO},{path:"controller/:controller_id/management/users/:user_id",component:YO,canActivate:[ni],resolve:{user:nb,groups:Sk,permissions:ib,controller:rc}},{path:"installed-software",component:t2},{path:"controller/:controller_id/systemstatus",component:AO,canActivate:[ni]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:Gx,canActivate:[ni]},{path:"controller/:controller_id/project/:project_id/snapshots",component:MO,canActivate:[ni],resolve:{controller:rc}},{path:"controller/:controller_id/preferences",component:N2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin",component:o2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:g2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:m2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:_2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:b2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:v2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:y2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:h2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:s2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:u2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates",component:I2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:D2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:O2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:A2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates",component:H2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:F2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:U2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:B2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/templates",component:J2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:K2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:q2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:W2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:z2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:j2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/templates",component:G2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:Y2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:V2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates",component:x2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:S2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:M2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:E2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates",component:Z2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:L2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:R2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:P2,canActivate:[ni]},{path:"controller/:controller_id/management",component:GO,children:[{path:"users",component:UO},{path:"groups",component:QO},{path:"roles",component:tI},{path:"permissions",component:oI}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:uI,resolve:{members:Pk,controller:rc,group:Rk,roles:Lk}},{path:"controller/:controller_id/management/roles/:role_id",component:cI,resolve:{role:ub,controller:rc}},{path:"controller/:controller_id/management/roles/:role_id/permissions",component:fI,resolve:{role:ub,controller:rc,permissions:rb}},{path:"controller/:controller_id/management/users/:user_id/permissions",component:pI,resolve:{user:nb,userPermissions:ib,controller:rc,permissions:rb}}]},{path:"controller/:controller_id/project/:project_id",component:gO,canActivate:[ni],canDeactivate:[tb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:wk,canActivate:[ni]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:wk,canActivate:[ni]},{path:"**",component:i2}],Nk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Nk.\u0275fac=function(r){return new(r||Nk)},Nk.\u0275mod=n.oAB({type:Nk}),Nk.\u0275inj=n.cJS({imports:[[Gy.forRoot(Lje,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],Gy]});var Zje=function(r,e){return{dark:r,light:e}},hI=function(){function t(r,e,i,o,a,s,l,u){var f=this;(0,j.Z)(this,t),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){f.checkEvent(h)})}return(0,V.Z)(t,[{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 z5?this.progressService.activate():(e instanceof Zh||e instanceof pH||e instanceof L$)&&this.progressService.deactivate()}}]),t}();hI.\u0275fac=function(r){return new(r||hI)(n.Y36(Ao.Xj),n.Y36(lp),n.Y36(An.H7),n.Y36(hm.g),n.Y36(sl),n.Y36(Ju.f),n.Y36(kr),n.Y36(ul))},hI.\u0275cmp=n.Xpm({type:hI,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&n.Tol(e.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet")(2,"app-adbutler"),n.qZA()),2&r&&n.Q6J("ngClass",n.WLB(1,Zje,e.darkThemeEnabled,!e.darkThemeEnabled))},directives:[wt.mk,Bh,gw],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var Nje=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Bk=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new Nje;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),t}();Bk.\u0275fac=function(r){return new(r||Bk)},Bk.\u0275prov=n.Yz7({token:Bk,factory:Bk.\u0275fac});var Fk=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return jj(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}}]),t}();Fk.\u0275fac=function(r){return new(r||Fk)},Fk.\u0275prov=n.Yz7({token:Fk,factory:Fk.\u0275fac});var Bje=[Pg,cm,Tp,Sg,kp,Mp,xg,wp,Mg,I0,Og,T0,Xd,A0,S0,D0,x0,Ig,O0],Uk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Uk.\u0275fac=function(r){return new(r||Uk)},Uk.\u0275mod=n.oAB({type:Uk}),Uk.\u0275inj=n.cJS({providers:[tc,vs,Fg,H0,j0,z0,W0,yp,Ep,wu,um,Cp,Tg,qs,Pl,Jc,Qc,fm,$c,lm,bg,kg,w0,V0,Dp,jg,Y0,vm,Hg,Bk,wg,Cg,k0,bp,nm,rm,im,om,Eg,Qd,pp,Fk,Dg,Ag].concat((0,$t.Z)(Bje)),imports:[[wt.ez,lg,rg]]});var cb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(DZ.o);cb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(cb)))(e||cb)}}(),cb.\u0275prov=n.Yz7({token:cb,factory:cb.\u0275fac});var pz=function(t,r){return(pz=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])})(t,r)};function mI(t,r){function e(){this.constructor=t}pz(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Gn=function(){return Gn=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},Gn.apply(this,arguments)};function wm(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function tu(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,s,i=e.call(t),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 ys(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(tu(arguments[r]));return t}var Za=m(7312),Hie=Object.prototype.toString;function hz(t){switch(Hie.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Jg(t,Error)}}function Hk(t,r){return Hie.call(t)==="[object "+r+"]"}function jie(t){return Hk(t,"ErrorEvent")}function zie(t){return Hk(t,"DOMError")}function jk(t){return Hk(t,"String")}function mz(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function zk(t){return Hk(t,"Object")}function MN(t){return"undefined"!=typeof Event&&Jg(t,Event)}function _z(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Jg(t,r){try{return t instanceof r}catch(e){return!1}}function gz(t,r){try{for(var e=t,a=[],s=0,l=0,f=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=Wje(e,r))||s>1&&l+a.length*f+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(v){return"<unknown>"}}function Wje(t,r){var o,a,s,l,u,e=t,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var f=r&&r.length?r.filter(function(v){return e.getAttribute(v)}).map(function(v){return[v,e.getAttribute(v)]}):null;if(f&&f.length)f.forEach(function(v){i.push("["+v[0]+'="'+v[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&jk(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 _I(t,r){return void 0===r&&(r=0),"string"!=typeof t||0===r||t.length<=r?t:t.substr(0,r)+"..."}function Wie(t,r){if(!Array.isArray(t))return"";for(var e=[],i=0;i<t.length;i++){var o=t[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function vz(t,r){return!!jk(t)&&(function Hje(t){return Hk(t,"RegExp")}(r)?r.test(t):"string"==typeof r&&-1!==t.indexOf(r))}function Rl(t,r,e){if(r in t){var i=t[r],o=e(i);if("function"==typeof o)try{Vie(o,i)}catch(a){}t[r]=o}}function SN(t,r,e){Object.defineProperty(t,r,{value:e,writable:!0,configurable:!0})}function Vie(t,r){var e=r.prototype||{};t.prototype=r.prototype=e,SN(t,"__sentry_original__",r)}function yz(t){return t.__sentry_original__}function Yie(t){var r=t;if(hz(t))r=Gn({message:t.message,name:t.name,stack:t.stack},qie(t));else if(MN(t)){var e=t;r=Gn({type:e.type,target:Gie(e.target),currentTarget:Gie(e.currentTarget)},qie(e)),"undefined"!=typeof CustomEvent&&Jg(t,CustomEvent)&&(r.detail=e.detail)}return r}function Gie(t){try{return function Uje(t){return"undefined"!=typeof Element&&Jg(t,Element)}(t)?gz(t):Object.prototype.toString.call(t)}catch(r){return"<unknown>"}}function qie(t){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}function Gje(t,r){void 0===r&&(r=40);var e=Object.keys(Yie(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return _I(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:_I(o,r)}return""}function bz(t){var r,e;if(zk(t)){var i={};try{for(var o=wm(Object.keys(t)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==t[s]&&(i[s]=bz(t[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(t)?t.map(bz):t}function Wk(){var t=(0,Za.R)(),r=t.crypto||t.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 Cz(t){if(!t)return{};var r=t.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 Kie(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function db(t){var r=t.message,e=t.event_id;if(r)return r;var i=Kie(t);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function wz(t,r,e){var i=t.exception=t.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function gI(t,r){var e=Kie(t);if(e){var o=e.mechanism;if(e.mechanism=Gn(Gn(Gn({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=Gn(Gn({},o&&o.data),r.data);e.mechanism.data=a}}}function Jie(t){if(t&&t.__sentry_captured__)return!0;try{SN(t,"__sentry_captured__",!0)}catch(r){}return!1}var Ii,Vk=m(3169),Yk="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Kje=(0,Za.R)(),Jje="Sentry Logger ",xN=["debug","info","warn","error","log","assert"];function Qie(t){var r=(0,Za.R)();if(!("console"in r))return t();var e=r.console,i={};xN.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 t()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function Xie(){var t=!1,r={enable:function(){t=!0},disable:function(){t=!1}};return Yk?xN.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&Qie(function(){var a;(a=Kje.console)[e].apply(a,ys([Jje+"["+e+"]:"],i))})}}):xN.forEach(function(e){r[e]=function(){}}),r}Ii=Yk?(0,Za.Y)("logger",Xie):Xie();var Qje=m(3295),$ie="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function fb(t){return new Qg(function(r){r(t)})}function vI(t){return new Qg(function(r,e){e(t)})}var Qg=function(){function t(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(_z(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 t.prototype.then=function(r,e){var i=this;return new t(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()})},t.prototype.catch=function(r){return this.then(function(e){return e},r)},t.prototype.finally=function(r){var e=this;return new t(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)})})},t}(),DN=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(r){var e=new t;return r&&(e._breadcrumbs=ys(r._breadcrumbs),e._tags=Gn({},r._tags),e._extra=Gn({},r._extra),e._contexts=Gn({},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=ys(r._eventProcessors),e._requestSession=r._requestSession),e},t.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},t.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},t.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(r){return this._requestSession=r,this},t.prototype.setTags=function(r){return this._tags=Gn(Gn({},this._tags),r),this._notifyScopeListeners(),this},t.prototype.setTag=function(r,e){var i;return this._tags=Gn(Gn({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(r){return this._extra=Gn(Gn({},this._extra),r),this._notifyScopeListeners(),this},t.prototype.setExtra=function(r,e){var i;return this._extra=Gn(Gn({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},t.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(r){return this.setTransactionName(r)},t.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=Gn(Gn({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},t.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof t?e:this}return r instanceof t?(this._tags=Gn(Gn({},this._tags),r._tags),this._extra=Gn(Gn({},this._extra),r._extra),this._contexts=Gn(Gn({},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)):zk(r)&&(r=r,this._tags=Gn(Gn({},this._tags),r.tags),this._extra=Gn(Gn({},this._extra),r.extra),this._contexts=Gn(Gn({},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},t.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},t.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=Gn({timestamp:(0,Vk.yW)()},r);return this._breadcrumbs=ys(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=Gn(Gn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Gn(Gn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Gn(Gn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Gn(Gn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Gn({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=Gn({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=ys(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(ys(toe(),this._eventProcessors),r,e)},t.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=Gn(Gn({},this._sdkProcessingMetadata),r),this},t.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new Qg(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var f=u(Gn({},e),i);_z(f)?f.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,f,i,o+1).then(s).then(null,l)}})},t.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},t.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},t}();function toe(){return(0,Za.Y)("globalEventProcessors",function(){return[]})}function kz(t){toe().push(t)}var Xje=function(){function t(r){this.errors=0,this.sid=Wk(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,Vk.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return t.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,Vk.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:Wk()),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)},t.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return bz({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}})},t}(),Ez=function(){function t(r,e,i){void 0===e&&(e=new DN),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return t.prototype.isOlderThan=function(r){return this._version<r},t.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},t.prototype.pushScope=function(){var r=DN.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:Wk(),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,Gn(Gn({},o),{event_id:i})),i},t.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:Wk(),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,Gn(Gn({},a),{event_id:o})),o},t.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:Wk();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Gn(Gn({},e),{event_id:i})),i},t.prototype.lastEventId=function(){return this._lastEventId},t.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,f=s.maxBreadcrumbs,h=void 0===f?100:f;if(!(h<=0)){var v=(0,Vk.yW)(),C=Gn({timestamp:v},r),B=u?Qie(function(){return u(C,e)}):C;null!==B&&o.addBreadcrumb(B,h)}}},t.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},t.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},t.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},t.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},t.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},t.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},t.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},t.prototype.run=function(r){var e=noe(this);try{r(this)}finally{noe(e)}},t.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return $ie&&Ii.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},t.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},t.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,f=((0,Za.R)().navigator||{}).userAgent,h=new Xje(Gn(Gn(Gn({release:s,environment:l},i&&{user:i.getUser()}),f&&{userAgent:f}),r));if(i){var v=i.getSession&&i.getSession();v&&"ok"===v.status&&v.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},t.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)}},t.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,ys(i,[s]))},t.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=yI(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);$ie&&Ii.warn("Extension method "+r+" couldn't be found, doing nothing.")},t}();function yI(){var t=(0,Za.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function noe(t){var r=yI(),e=Xg(r);return Mz(r,t),e}function nu(){var t=yI();return(!roe(t)||Xg(t).isOlderThan(4))&&Mz(t,new Ez),(0,Qje.KV)()?function eze(t){try{var r=yI().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return Xg(t);if(!roe(e)||Xg(e).isOlderThan(4)){var i=Xg(t).getStackTop();Mz(e,new Ez(i.client,DN.clone(i.scope)))}return Xg(e)}catch(o){return Xg(t)}}(t):Xg(t)}function roe(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Xg(t){return(0,Za.Y)("hub",function(){return new Ez},t)}function Mz(t,r){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=r,!0)}function Eu(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=nu();if(i&&i[t])return i[t].apply(i,ys(r));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function ioe(t,r){return Eu("captureException",t,{captureContext:r,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function tze(t){Eu("withScope",t)}var bs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var rze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ize=function(){function t(r){void 0===r&&(r={}),this._options=r,this.name=t.id}return t.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(t);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function oze(t,r){return void 0===t&&(t={}),void 0===r&&(r={}),{allowUrls:ys(t.whitelistUrls||[],t.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:ys(t.blacklistUrls||[],t.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:ys(t.ignoreErrors||[],r.ignoreErrors||[],rze),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(a._options,l);return function aze(t,r){return r.ignoreInternal&&function dze(t){try{return"SentryError"===t.exception.values[0].type}catch(r){}return!1}(t)?(bs&&Ii.warn("Event dropped due to being internal Sentry Error.\nEvent: "+db(t)),!0):function sze(t,r){return!(!r||!r.length)&&function cze(t){if(t.message)return[t.message];if(t.exception)try{var r=t.exception.values&&t.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 bs&&Ii.error("Cannot extract message for event "+db(t)),[]}return[]}(t).some(function(e){return r.some(function(i){return vz(e,i)})})}(t,r.ignoreErrors)?(bs&&Ii.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+db(t)),!0):function lze(t,r){if(!r||!r.length)return!1;var e=AN(t);return!!e&&r.some(function(i){return vz(e,i)})}(t,r.denyUrls)?(bs&&Ii.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+db(t)+".\nUrl: "+AN(t)),!0):!function uze(t,r){if(!r||!r.length)return!0;var e=AN(t);return!e||r.some(function(i){return vz(e,i)})}(t,r.allowUrls)&&(bs&&Ii.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+db(t)+".\nUrl: "+AN(t)),!0)}(i,u)?null:i}}return i})},t.id="InboundFilters",t}();function ooe(t){void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--){var e=t[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function AN(t){try{if(t.stacktrace)return ooe(t.stacktrace.frames);var r;try{r=t.exception.values[0].stacktrace.frames}catch(e){}return r?ooe(r):null}catch(e){return bs&&Ii.error("Cannot extract url for event "+db(t)),null}}var aoe,fze=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){aoe=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=yz(this)||this;return aoe.apply(i,r)}},t.id="FunctionToString",t}();function mze(t){if(!t.length)return[];var r=t,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 Gn(Gn({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var Sz="<anonymous>";function $g(t){try{return t&&"function"==typeof t&&t.name||Sz}catch(r){return Sz}}function ON(){if(!("fetch"in(0,Za.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function xz(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function gze(){if(!ON())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var IN,ha=(0,Za.R)(),bI={},soe={};function yze(t){if(!soe[t])switch(soe[t]=!0,t){case"console":!function bze(){"console"in ha&&xN.forEach(function(t){t in ha.console&&Rl(ha.console,t,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];sf("console",{args:e,level:t}),r&&r.apply(ha.console,e)}})})}();break;case"dom":!function Dze(){if("document"in ha){var t=sf.bind(null,"dom"),r=loe(t,!0);ha.document.addEventListener("click",r,!1),ha.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=ha[e]&&ha[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Rl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,f=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=f[a]=f[a]||{refCount:0};if(!h.handler){var v=loe(t);h.handler=v,o.call(this,a,v,l)}h.refCount+=1}catch(C){}return o.call(this,a,s,l)}}),Rl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,f=u.__sentry_instrumentation_handlers__||{},h=f[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete f[a]),0===Object.keys(f).length&&delete u.__sentry_instrumentation_handlers__)}catch(v){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function Tze(){if("XMLHttpRequest"in ha){var t=XMLHttpRequest.prototype;Rl(t,"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:jk(e[0])?e[0].toUpperCase():e[0],url:e[1]};jk(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(f){}sf("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Rl(o,"onreadystatechange",function(u){return function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return l(),u.apply(o,f)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Rl(t,"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]),sf("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function Cze(){!function _ze(){if(!ON())return!1;var t=(0,Za.R)();if(xz(t.fetch))return!0;var r=!1,e=t.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=xz(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){Yk&&Ii.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Rl(ha,"fetch",function(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:wze(r),url:kze(r)},startTimestamp:Date.now()};return sf("fetch",Gn({},i)),t.apply(ha,r).then(function(o){return sf("fetch",Gn(Gn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw sf("fetch",Gn(Gn({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function Eze(){if(!function vze(){var t=(0,Za.R)(),r=t.chrome,e=r&&r.app&&r.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&i}())return;var t=ha.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=IN,l=String(a);IN=l,sf("history",{from:s,to:l})}return e.apply(this,i)}}ha.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=ha.location.href,a=IN;if(IN=o,sf("history",{from:a,to:o}),t)try{return t.apply(this,e)}catch(s){}},Rl(ha.history,"pushState",r),Rl(ha.history,"replaceState",r)}();break;case"error":!function Aze(){Dz=ha.onerror,ha.onerror=function(t,r,e,i,o){return sf("error",{column:i,error:o,line:e,msg:t,url:r}),!!Dz&&Dz.apply(this,arguments)}}();break;case"unhandledrejection":!function Oze(){Az=ha.onunhandledrejection,ha.onunhandledrejection=function(t){return sf("unhandledrejection",t),!Az||Az.apply(this,arguments)}}();break;default:return void(Yk&&Ii.warn("unknown instrumentation type:",t))}}function ev(t,r){bI[t]=bI[t]||[],bI[t].push(r),yze(t)}function sf(t,r){var e,i;if(t&&bI[t])try{for(var o=wm(bI[t]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){Yk&&Ii.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+$g(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 wze(t){return void 0===t&&(t=[]),"Request"in ha&&Jg(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function kze(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ha&&Jg(t[0],Request)?t[0].url:String(t[0])}var PN,RN;function loe(t,r){return void 0===r&&(r=!1),function(e){if(e&&RN!==e&&!function xze(t){if("keypress"!==t.type)return!1;try{var r=t.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===PN||function Sze(t,r){if(!t||t.type!==r.type)return!0;try{if(t.target!==r.target)return!0}catch(e){}return!1}(RN,e))&&(t({event:e,name:i,global:r}),RN=e),clearTimeout(PN),PN=ha.setTimeout(function(){PN=void 0},1e3)}}}var Dz=null;var Az=null;var Ize=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function Pze(t,r){return t.__proto__=r,t}:function Rze(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e]);return t});var Os=function(t){function r(e){var i=this.constructor,o=t.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,Ize(o,i.prototype),o}return mI(r,t),r}(Error),Lze=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function CI(t,r){void 0===r&&(r=!1);var e=t.host,i=t.path,o=t.pass,a=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function coe(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function LN(t){var r="string"==typeof t?function Nze(t){var r=Lze.exec(t);if(!r)throw new Os("Invalid Sentry Dsn: "+t);var e=tu(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],f=void 0===u?"":u,v="",C=e[5],B=C.split("/");if(B.length>1&&(v=B.slice(0,-1).join("/"),C=B.pop()),C){var G=C.match(/^\d+/);G&&(C=G[0])}return coe({host:l,pass:s,path:v,projectId:C,port:f,protocol:i,publicKey:o})}(t):coe(t);return function Bze(t){if(Yk){var r=t.port,e=t.projectId,i=t.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!t[a])throw new Os("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Os("Invalid Sentry Dsn: Invalid projectId "+e);if(!function Zze(t){return"http"===t||"https"===t}(i))throw new Os("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Os("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function pb(t,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return foe("",t,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function doe(t,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=pb(t,r);return function jze(t){return function Hze(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(i)>e?doe(t,r-1,e):i}function foe(t,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function Fze(){var t="function"==typeof WeakSet,r=t?new WeakSet:[];return[function e(o){if(t)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(t)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=tu(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 zje(t){return"number"==typeof t&&t!=t}(r))return r;var f=function Uze(t,r){try{return"domain"===t&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function jje(t){return zk(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+$g(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(t,r);if(!f.startsWith("[object "))return f;if(0===e)return f.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},v=0,C=hz(r)||MN(r)?Yie(r):r;for(var B in C)if(Object.prototype.hasOwnProperty.call(C,B)){if(v>=i){h[B]="[MaxProperties ~]";break}var G=C[B];h[B]=foe(B,G,e-1,i,o),v+=1}return l(r),h}var poe=[];function hoe(t){return t.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function Vze(t){var r={};return function zze(t){var r=t.defaultIntegrations&&ys(t.defaultIntegrations)||[],e=t.integrations,i=ys(hoe(r));Array.isArray(e)?i=ys(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),hoe(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,ys(i.splice(o.indexOf(a),1))),i}(t).forEach(function(e){r[e.name]=e,function Wze(t){-1===poe.indexOf(t.name)&&(t.setupOnce(kz,nu),poe.push(t.name),bs&&Ii.log("Integration installed: "+t.name))}(e)}),SN(r,"initialized",!0),r}var moe="Not capturing exception because it's already been captured.",Yze=function(){function t(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=LN(e.dsn))}return t.prototype.captureException=function(r,e,i){var o=this;if(!Jie(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}bs&&Ii.log(moe)},t.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=mz(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},t.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&Jie(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}bs&&Ii.log(moe)},t.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?bs&&Ii.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):bs&&Ii.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.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})})},t.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Vze(this._options))},t.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return bs&&Ii.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},t.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=wm(l),f=u.next();!f.done;f=u.next()){var v=f.value.mechanism;if(v&&!1===v.handled){a=!0;break}}}catch(G){i={error:G}}finally{try{f&&!f.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(Gn(Gn({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},t.prototype._sendSession=function(r){this._getBackend().sendSession(r)},t.prototype._isClientDoneProcessing=function(r){var e=this;return new Qg(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)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,f=void 0===u?1e3:u,h=Gn(Gn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:Wk()),timestamp:r.timestamp||(0,Vk.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var v=e;i&&i.captureContext&&(v=DN.clone(v).update(i.captureContext));var C=fb(h);return v&&(C=v.applyToEvent(h,i)),C.then(function(B){return B&&(B.sdkProcessingMetadata=Gn(Gn({},B.sdkProcessingMetadata),{normalizeDepth:pb(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(B,l,f):B})},t.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=Gn(Gn(Gn(Gn(Gn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return Gn(Gn({},a),a.data&&{data:pb(a.data,e,i)})})}),r.user&&{user:pb(r.user,e,i)}),r.contexts&&{contexts:pb(r.contexts,e,i)}),r.extra&&{extra:pb(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=Gn(Gn({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},t.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=_I(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=_I(u.value,l));var f=r.request;f&&f.url&&(f.url=_I(f.url,l))},t.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=ys(r.sdk.integrations||[],e))},t.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},t.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){bs&&Ii.error(o)})},t.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function f(v,C){u.recordLostEvent&&u.recordLostEvent(v,C)}if(!this._isEnabled())return vI(new Os("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(f("sample_rate","event"),vI(new Os("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(v){if(null===v)throw f("event_processor",r.type||"event"),new Os("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?v:function Gze(t){var r="`beforeSend` method has to return `null` or a valid event.";if(_z(t))return t.then(function(e){if(!zk(e)&&null!==e)throw new Os(r);return e},function(e){throw new Os("beforeSend rejected with "+e)});if(!zk(t)&&null!==t)throw new Os(r);return t}(s(v,e))}).then(function(v){if(null===v)throw f("before_send",r.type||"event"),new Os("`beforeSend` returned `null`, will not send event.");var C=i&&i.getSession&&i.getSession();return!h&&C&&o._updateSessionFromEvent(C,v),o._sendEvent(v),v}).then(null,function(v){throw v instanceof Os?v:(o.captureException(v,{data:{__sentry__:!0},originalException:v}),new Os("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+v))})},t.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})},t}();!function(){function t(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=LN(r),this.metadata=e,this._tunnel=i}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return Oz(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return yoe(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Iz(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return wI(this._dsnObject,this._tunnel)}}();function ZN(t,r,e){return{initDsn:t,metadata:r||{},dsn:LN(t),tunnel:e}}function Oz(t){var r=t.protocol?t.protocol+":":"",e=t.port?":"+t.port:"";return r+"//"+t.host+e+(t.path?"/"+t.path:"")+"/api/"}function goe(t,r){return""+Oz(t)+t.projectId+"/"+r+"/"}function voe(t){return function Yje(t){return Object.keys(t).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(t[r])}).join("&")}({sentry_key:t.publicKey,sentry_version:"7"})}function yoe(t){return goe(t,"store")}function Iz(t){return yoe(t)+"?"+voe(t)}function wI(t,r){return r||function qze(t){return goe(t,"envelope")}(t)+"?"+voe(t)}function NN(t,r){return void 0===r&&(r=[]),[t,r]}function BN(t){var r=tu(t,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=tu(s,2),u=l[0],f=l[1],h=mz(f)?String(f):JSON.stringify(f);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function Pz(t){if(t.metadata&&t.metadata.sdk){var r=t.metadata.sdk;return{name:r.name,version:r.version}}}function boe(t,r){return r&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||r.name,t.sdk.version=t.sdk.version||r.version,t.sdk.integrations=ys(t.sdk.integrations||[],r.integrations||[]),t.sdk.packages=ys(t.sdk.packages||[],r.packages||[])),t}function Coe(t,r){var e=Pz(r),o="aggregates"in t?"sessions":"session";return[NN(Gn(Gn({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:CI(r.dsn)}),[[{type:o},t]]),o]}var Op,eWe=function(){function t(){}return t.prototype.sendEvent=function(r){return fb({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(r){return fb(!0)},t}(),tWe=function(){function t(r){this._options=r,this._options.dsn||bs&&Ii.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(r,e){throw new Os("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(r,e,i){throw new Os("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function Xze(t,r){var e=Pz(r),i=t.type||"event",a=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return boe(t,r.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,NN(Gn(Gn({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:CI(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},t]])}(r,ZN(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){bs&&Ii.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){bs&&Ii.error("Error while sending event:",o)})},t.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=tu(Coe(r,ZN(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){bs&&Ii.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){bs&&Ii.error("Error while sending session:",a)});else bs&&Ii.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new eWe},t}();!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(Op||(Op={}));function kI(t,r,e,i){var o={filename:t,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var sWe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lWe=/\((\S*)(?::(\d+))(?::(\d+))\)/,cWe=[30,function(r){var e=sWe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=lWe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=tu(woe(e[1]||"?",e[2]),2),s=a[0];return kI(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],dWe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fWe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hWe=[50,function(r){var e,i=dWe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=fWe.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=tu(woe(l,s),2))[0],kI(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],mWe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gWe=[40,function(r){var e=mWe.exec(r);return e?kI(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],vWe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,bWe=[10,function(r){var e=vWe.exec(r);return e?kI(e[2],e[3]||"?",+e[1]):void 0}],CWe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,kWe=[20,function(r){var e=CWe.exec(r);return e?kI(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],woe=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 koe(t){var r=Lz(t),e={type:t&&t.name,value:SWe(t)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function Rz(t){return{exception:{values:[koe(t)]}}}function Lz(t){var r=t.stacktrace||t.stack||"",e=function MWe(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(EWe.test(t.message))return 1}return 0}(t);try{return function hze(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.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 f=[];try{for(var h=wm(i.split("\n").slice(o)),v=h.next();!v.done;v=h.next()){var C=v.value;try{for(var B=(l=void 0,wm(e)),G=B.next();!G.done;G=B.next()){var ae=(0,G.value)(C);if(ae){f.push(ae);break}}}catch(pe){l={error:pe}}finally{try{G&&!G.done&&(u=B.return)&&u.call(B)}finally{if(l)throw l.error}}}}catch(pe){a={error:pe}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return mze(f)}}(bWe,kWe,cWe,gWe,hWe)(r,e)}catch(i){}return[]}var EWe=/Minified React error #\d+;/i;function SWe(t){var r=t&&t.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function Zz(t,r,e,i){var o;if(jie(t)&&t.error)return Rz(t.error);if(zie(t)||function Fje(t){return Hk(t,"DOMException")}(t)){var s=t;if("stack"in t)o=Rz(t);else{var l=s.name||(zie(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;wz(o=Nz(u,r,e),u)}return"code"in s&&(o.tags=Gn(Gn({},o.tags),{"DOMException.code":""+s.code})),o}return hz(t)?Rz(t):zk(t)||MN(t)?(o=function TWe(t,r,e){var i={exception:{values:[{type:MN(t)?t.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+Gje(t)}]},extra:{__serialized__:doe(t)}};if(r){var o=Lz(r);o.length&&(i.stacktrace={frames:o})}return i}(t,r,i),gI(o,{synthetic:!0}),o):(wz(o=Nz(t,r,e),""+t,void 0),gI(o,{synthetic:!0}),o)}function Nz(t,r,e){var i={message:t};if(e&&r){var o=Lz(r);o.length&&(i.stacktrace={frames:o})}return i}function Toe(t){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===t||r.length<t}())return vI(new Os("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 Qg(function(l,u){var f=r.length;if(!f)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(v){fb(v).then(function(){--f||(clearTimeout(h),l(!0))},u)})})}}}function Bz(t,r){return t[r]||t.all||0}function Eoe(t,r,e){return void 0===e&&(e=Date.now()),Bz(t,r)>e}function Moe(t,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=Gn({},t),u=r["x-sentry-rate-limits"],f=r["retry-after"];if(u)try{for(var h=wm(u.trim().split(",")),v=h.next();!v.done;v=h.next()){var B=v.value.split(":",2),G=parseInt(B[0],10),q=1e3*(isNaN(G)?60:G);if(B[1])try{for(var ae=(a=void 0,wm(B[1].split(";"))),pe=ae.next();!pe.done;pe=ae.next()){l[pe.value]=e+q}}catch(Me){a={error:Me}}finally{try{pe&&!pe.done&&(s=ae.return)&&s.call(ae)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Me){i={error:Me}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else f&&(l.all=e+function OWe(t,r){void 0===r&&(r=Date.now());var e=parseInt(""+t,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+t);return isNaN(i)?6e4:i-r}(f,e));return l}function Soe(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}function xoe(t,r,e){void 0===e&&(e=Toe(t.bufferSize||30));var i={};return{send:function a(s){var l=function Jze(t){var r=tu(t,2),e=tu(r[1],1);return tu(e[0],1)[0].type}(s),u="event"===l?"error":l,f={category:u,body:BN(s)};return Eoe(i,u)?vI({status:"rate_limit",reason:Doe(i,u)}):e.add(function(){return r(f).then(function(C){var B=C.body,G=C.headers,q=C.reason,pe=Soe(C.statusCode);return G&&(i=Moe(i,G)),"success"===pe?fb({status:pe,reason:q}):vI({status:pe,reason:q||B||("rate_limit"===pe?Doe(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Doe(t,r){return"Too many "+r+" requests, backing off until: "+new Date(Bz(t,r)).toISOString()}var FN,nd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,lf=(0,Za.R)();function Fz(){if(FN)return FN;if(xz(lf.fetch))return FN=lf.fetch.bind(lf);var t=lf.document,r=lf.fetch;if(t&&"function"==typeof t.createElement)try{var e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),t.head.removeChild(e)}catch(o){nd&&Ii.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return FN=r.bind(lf)}function RWe(t,r){return"[object Navigator]"===Object.prototype.toString.call(lf&&lf.navigator)&&"function"==typeof lf.navigator.sendBeacon?lf.navigator.sendBeacon.bind(lf.navigator)(t,r):ON()?function PWe(t){t.then(null,function(r){console.error(r)})}(Fz()(t,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function Uz(t){return"event"===t?"error":t}var Hz=(0,Za.R)(),Aoe=function(){function t(r){var e=this;this.options=r,this._buffer=Toe(30),this._rateLimits={},this._outcomes={},this._api=ZN(r.dsn,r._metadata,r.tunnel),this.url=Iz(this._api.dsn),this.options.sendClientReports&&Hz.document&&Hz.document.addEventListener("visibilitychange",function(){"hidden"===Hz.document.visibilityState&&e._flushOutcomes()})}return t.prototype.sendEvent=function(r){return this._sendRequest(function $ze(t,r){var f,e=Pz(r),i=t.type||"event",o="transaction"===i||!!r.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;boe(t,r.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{f=JSON.stringify(t)}catch(q){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=q;try{f=JSON.stringify(pb(t))}catch(ae){var h=ae;f=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var v={body:f,type:i,url:o?wI(r.dsn,r.tunnel):Iz(r.dsn)};if(o){var G=NN(Gn(Gn({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:CI(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},v.body]]);v.body=BN(G)}return v}(r,this._api),r)},t.prototype.sendSession=function(r){return this._sendRequest(function Qze(t,r){var e=tu(Coe(t,r),2),i=e[0],o=e[1];return{body:BN(i),type:o,url:wI(r.dsn,r.tunnel)}}(r,this._api),r)},t.prototype.close=function(r){return this._buffer.drain(r)},t.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=Uz(e)+":"+r;nd&&Ii.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(nd&&Ii.log("No outcomes to flush"));nd&&Ii.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=wI(this._api.dsn,this._api.tunnel),o=function ZWe(t,r,e){return NN(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,Vk.yW)(),discarded_events:t}]])}(Object.keys(r).map(function(a){var s=tu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&CI(this._api.dsn));try{RWe(e,BN(o))}catch(a){nd&&Ii.error(a)}}},t.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=Soe(i.status);this._rateLimits=Moe(this._rateLimits,o),this._isRateLimited(e)&&nd&&Ii.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},t.prototype._disabledUntil=function(r){var e=Uz(r);return new Date(Bz(this._rateLimits,e))},t.prototype._isRateLimited=function(r){var e=Uz(r);return Eoe(this._rateLimits,e)},t}(),NWe=function(t){function r(e,i){void 0===i&&(i=Fz());var o=t.call(this,e)||this;return o._fetch=i,o}return mI(r,t),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:gze()?"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 Qg(function(s,l){o._fetch(e.url,a).then(function(u){var f={"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:f,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Os?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(Aoe);var UWe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return mI(r,t),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 Qg(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var f={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:f,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 Os?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(Aoe),HWe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return mI(r,t),r.prototype.eventFromException=function(e,i){return function xWe(t,r,e){var o=Zz(t,r&&r.syntheticException||void 0,e);return gI(o),o.level=Op.Error,r&&r.event_id&&(o.event_id=r.event_id),fb(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=Op.Info),function DWe(t,r,e,i){void 0===r&&(r=Op.Info);var a=Nz(t,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),fb(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=Gn(Gn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=ZN(e.dsn,e._metadata,e.tunnel),o=wI(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(ON()){var a=Gn({},e.fetchParameters);return this._newTransport=function LWe(t,r){return void 0===r&&(r=Fz()),xoe({bufferSize:t.bufferSize},function e(i){var o=Gn({body:i.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return r(t.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 NWe(e)}return this._newTransport=function FWe(t){return xoe({bufferSize:t.bufferSize},function r(e){return new Qg(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",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&a.setRequestHeader(s,t.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new UWe(e)},r}(tWe),UN=(0,Za.R)(),jz=0;function Ooe(){return jz>0}function jWe(){jz+=1,setTimeout(function(){jz-=1})}function qk(t,r,e){if(void 0===r&&(r={}),"function"!=typeof t)return t;try{var i=t.__sentry_wrapped__;if(i)return i;if(yz(t))return t}catch(l){return t}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var f=u.map(function(h){return qk(h,r)});return t.apply(this,f)}catch(h){throw jWe(),tze(function(v){v.addEventProcessor(function(C){return r.mechanism&&(wz(C,void 0,void 0),gI(C,r.mechanism)),C.extra=Gn(Gn({},C.extra),{arguments:u}),C}),ioe(h)}),h}};try{for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=t[a])}catch(l){}Vie(o,t),SN(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(l){}return o}function zWe(t){if(void 0===t&&(t={}),UN.document){if(!t.eventId)return void(nd&&Ii.error("Missing eventId option in showReportDialog call"));if(!t.dsn)return void(nd&&Ii.error("Missing dsn option in showReportDialog call"));var r=UN.document.createElement("script");r.async=!0,r.src=function Kze(t,r){var e=LN(t),i=Oz(e)+"embed/error-page/",o="dsn="+CI(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}(t.dsn,t),t.onLoad&&(r.onload=t.onLoad);var e=UN.document.head||UN.document.body;e&&e.appendChild(r)}}var WWe=["fatal","error","warning","log","info","debug","critical"];function YWe(t){return"warn"===t?Op.Warning:function VWe(t){return-1!==WWe.indexOf(t)}(t)?t:Op.Log}var Ioe=function(){function t(r){this.name=t.id,this._options=Gn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return t.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||nu().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:db(r)},{event:r})},t.prototype.setupOnce=function(){this._options.console&&ev("console",qWe),this._options.dom&&ev("dom",function GWe(t){function r(e){var i,o="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?gz(e.event.target,o):gz(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&nu().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&ev("xhr",KWe),this._options.fetch&&ev("fetch",JWe),this._options.history&&ev("history",QWe)},t.id="Breadcrumbs",t}();function qWe(t){var r={category:"console",data:{arguments:t.args,logger:"console"},level:YWe(t.level),message:Wie(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: "+(Wie(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}nu().addBreadcrumb(r,{input:t.args,level:t.level})}function KWe(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var r=t.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;nu().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:t.xhr,input:a})}else;}function JWe(t){!t.endTimestamp||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?nu().addBreadcrumb({category:"fetch",data:t.fetchData,level:Op.Error,type:"http"},{data:t.error,input:t.args}):nu().addBreadcrumb({category:"fetch",data:Gn(Gn({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response}))}function QWe(t){var r=(0,Za.R)(),e=t.from,i=t.to,o=Cz(r.location.href),a=Cz(e),s=Cz(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),nu().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var XWe=function(t){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"},t.call(this,HWe,e)||this}return mI(r,t),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,Za.R)().document){if(!this._isEnabled())return void(nd&&Ii.error("Trying to call showReportDialog with Sentry Client disabled"));zWe(Gn(Gn({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(Ioe);i&&i.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},r}(Yze),$We=["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"],eVe=function(){function t(r){this.name=t.id,this._options=Gn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return t.prototype.setupOnce=function(){var r=(0,Za.R)();this._options.setTimeout&&Rl(r,"setTimeout",Poe),this._options.setInterval&&Rl(r,"setInterval",Poe),this._options.requestAnimationFrame&&Rl(r,"requestAnimationFrame",tVe),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Rl(XMLHttpRequest.prototype,"send",nVe);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:$We).forEach(rVe)},t.id="TryCatch",t}();function Poe(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=qk(i,{mechanism:{data:{function:$g(t)},handled:!0,type:"instrument"}}),t.apply(this,r)}}function tVe(t){return function(r){return t.apply(this,[qk(r,{mechanism:{data:{function:"requestAnimationFrame",handler:$g(t)},handled:!0,type:"instrument"}})])}}function nVe(t){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]&&Rl(i,a,function(s){var l={mechanism:{data:{function:a,handler:$g(s)},handled:!0,type:"instrument"}},u=yz(s);return u&&(l.mechanism.data.handler=$g(u)),qk(s,l)})}),t.apply(this,r)}}function rVe(t){var r=(0,Za.R)(),e=r[t]&&r[t].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Rl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=qk(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:$g(a),target:t},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,qk(a,{mechanism:{data:{function:"addEventListener",handler:$g(a),target:t},handled:!0,type:"instrument"}}),s])}}),Rl(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(f){}return i.call(this,o,l,s)}}))}var zz=function(){function t(r){this.name=t.id,this._installFunc={onerror:iVe,onunhandledrejection:oVe},this._options=Gn({onerror:!0,onunhandledrejection:!0},r)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(lVe(e),i(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function iVe(){ev("error",function(t){var r=tu(Zoe(),2),e=r[0],i=r[1];if(e.getIntegration(zz)){var o=t.msg,a=t.url,s=t.line,l=t.column,u=t.error;if(!(Ooe()||u&&u.__sentry_own_request__)){var f=void 0===u&&jk(o)?function sVe(t,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=jie(t)?t.message:t,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),Roe({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):Roe(Zz(u||o,void 0,i,!1),a,s,l);f.level=Op.Error,Loe(e,u,f,"onerror")}}})}function oVe(){ev("unhandledrejection",function(t){var r=tu(Zoe(),2),e=r[0],i=r[1];if(e.getIntegration(zz)){var o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch(s){}if(Ooe()||o&&o.__sentry_own_request__)return!0;var a=mz(o)?function aVe(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}(o):Zz(o,void 0,i,!0);a.level=Op.Error,Loe(e,o,a,"onunhandledrejection")}})}function Roe(t,r,e,i){var o=t.exception=t.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],f=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,v=jk(r)&&r.length>0?r:function Vje(){var t=(0,Za.R)();try{return t.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:f,filename:v,function:"?",in_app:!0,lineno:h}),t}function lVe(t){nd&&Ii.log("Global Handler attached: "+t)}function Loe(t,r,e,i){gI(e,{handled:!1,type:i}),t.captureEvent(e,{originalException:r})}function Zoe(){var t=nu(),r=t.getClient();return[t,r&&r.getOptions().attachStacktrace]}var dVe=function(){function t(r){void 0===r&&(r={}),this.name=t.id,this._key=r.key||"cause",this._limit=r.limit||5}return t.prototype.setupOnce=function(){kz(function(r,e){var i=nu().getIntegration(t);return i?function fVe(t,r,e,i){if(!(e.exception&&e.exception.values&&i&&Jg(i.originalException,Error)))return e;var o=Noe(r,i.originalException,t);return e.exception.values=ys(o,e.exception.values),e}(i._key,i._limit,r,e):r})},t.id="LinkedErrors",t}();function Noe(t,r,e,i){if(void 0===i&&(i=[]),!Jg(r[e],Error)||i.length+1>=t)return i;var o=koe(r[e]);return Noe(t,r[e],e,ys([o],i))}var pVe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(t);if(o){try{if(function hVe(t,r){return!!r&&!(!function mVe(t,r){var e=t.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!Foe(t,r)||!Boe(t,r))}(t,r)&&!function _Ve(t,r){var e=Uoe(r),i=Uoe(t);return!!(e&&i&&e.type===i.type&&e.value===i.value&&Foe(t,r)&&Boe(t,r))}(t,r))}(i,o._previousEvent))return nd&&Ii.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})},t.id="Dedupe",t}();function Boe(t,r){var e=Hoe(t),i=Hoe(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||(e=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 Foe(t,r){var e=t.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;e=e,i=i;try{return e.join("")===i.join("")}catch(o){return!1}}function Uoe(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Hoe(t){var r=t.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(t.stacktrace)return t.stacktrace.frames}var hb=(0,Za.R)(),gVe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){kz(function(r){if(nu().getIntegration(t)){if(!hb.navigator&&!hb.location&&!hb.document)return r;var e=r.request&&r.request.url||hb.location&&hb.location.href,i=(hb.document||{}).referrer,o=(hb.navigator||{}).userAgent,a=Gn(Gn(Gn({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=Gn(Gn({},e&&{url:e}),{headers:a});return Gn(Gn({},r),{request:s})}return r})},t.id="UserAgent",t}(),vVe=[new ize,new fze,new eVe,new Ioe,new zz,new dVe,new pVe,new gVe];function joe(t){t.startSession({ignoreDuration:!0}),t.captureSession()}!function yVe(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=vVe),void 0===t.release){var r=(0,Za.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(t.release=r.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function nze(t,r){!0===r.debug&&(bs?Ii.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=nu(),i=e.getScope();i&&i.update(r.initialScope);var o=new t(r);e.bindClient(o)}(XWe,t),t.autoSessionTracking&&function bVe(){if(void 0===(0,Za.R)().document)return void(nd&&Ii.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=nu();!e.captureSession||(joe(e),ev("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||joe(nu())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var Kk=function(){function t(r){(0,j.Z)(this,t),this.injector=r}return(0,V.Z)(t,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof zu.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";ioe(i);as.N.production||console.error(i)}}]),t}();Kk.\u0275fac=function(r){return new(r||Kk)(n.LFG(n.zs3))},Kk.\u0275prov=n.Yz7({token:Kk,factory:Kk.\u0275fac});var mb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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,Ht.Z)((0,ln.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get($n);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(Kk);mb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(mb)))(e||mb)}}(),mb.\u0275prov=n.Yz7({token:mb,factory:mb.\u0275fac});var TI=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:[]}}]),t}();TI.\u0275fac=function(r){return new(r||TI)},TI.\u0275pipe=n.Yjl({name:"projectsfilter",type:TI,pure:!0});var zoe=["*"],wVe=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],EVe=function(){function t(){(0,j.Z)(this,t),this.columnIndex=0,this.rowIndex=0}return(0,V.Z)(t,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,$t.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 MVe(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}}]),t}(),MVe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.row=r,this.col=e}),Woe=new n.OlP("MAT_GRID_LIST"),EI=function(){function t(r,e){(0,j.Z)(this,t),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,V.Z)(t,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,Hn.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,Hn.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),t}();EI.\u0275fac=function(r){return new(r||EI)(n.Y36(n.SBq),n.Y36(Woe,8))},EI.\u0275cmp=n.Xpm({type:EI,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&n.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:zoe,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.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}\n"],encapsulation:2,changeDetection:0});var HN=function(){function t(r){(0,j.Z)(this,t),this._element=r}return(0,V.Z)(t,[{key:"ngAfterContentInit",value:function(){(0,sn.E0)(this._lines,this._element)}}]),t}();HN.\u0275fac=function(r){return new(r||HN)(n.Y36(n.SBq))},HN.\u0275cmp=n.Xpm({type:HN,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,sn.X2,5),2&r)&&(n.iGM(o=n.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&&(n.F$t(wVe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var jN=(0,V.Z)(function t(){(0,j.Z)(this,t)});jN.\u0275fac=function(r){return new(r||jN)},jN.\u0275dir=n.lG2({type:jN,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var zN=(0,V.Z)(function t(){(0,j.Z)(this,t)});zN.\u0275fac=function(r){return new(r||zN)},zN.\u0275dir=n.lG2({type:zN,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var WN=(0,V.Z)(function t(){(0,j.Z)(this,t)});WN.\u0275fac=function(r){return new(r||WN)},WN.\u0275dir=n.lG2({type:WN,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var SVe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Wz=function(){function t(){(0,j.Z)(this,t),this._rows=0,this._rowspan=0}return(0,V.Z)(t,[{key:"init",value:function(e,i,o,a){this._gutterSize=Voe(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":_b("(".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",_b(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}}]),t}(),xVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,V.Z)(e,[{key:"init",value:function(o,a,s,l){(0,Ht.Z)((0,ln.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=Voe(this.fixedRowHeight),SVe.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(o,a){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,a)),o._setStyle("height",_b(this.getTileSize(this.fixedRowHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",_b("".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}(Wz),DVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,V.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",_b(this.getTileSize(this.baseTileHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",_b("".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}(Wz),AVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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",_b(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}(Wz);function _b(t){return"calc(".concat(t,")")}function Voe(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var MI=function(){function t(r,e){(0,j.Z)(this,t),this._element=r,this._dir=e,this._gutter="1px"}return(0,V.Z)(t,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,Hn.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 AVe:e&&e.indexOf(":")>-1?this._tileStyler=new DVe(e):this._tileStyler=new xVe(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new EVe);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])}}]),t}();MI.\u0275fac=function(r){return new(r||MI)(n.Y36(n.SBq),n.Y36(Es.Is,8))},MI.\u0275cmp=n.Xpm({type:MI,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,EI,5),2&r)&&(n.iGM(o=n.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&n.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[n._Bn([{provide:Woe,useExisting:MI}])],ngContentSelectors:zoe,decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div"),n.Hsn(1),n.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}\n"],encapsulation:2,changeDetection:0});var Jk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jk.\u0275fac=function(r){return new(r||Jk)},Jk.\u0275mod=n.oAB({type:Jk}),Jk.\u0275inj=n.cJS({imports:[[sn.uc,sn.BQ],sn.uc,sn.BQ]});var VN=new n.OlP("CDK_TREE_NODE_OUTLET_NODE"),km=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this._node=e});km.\u0275fac=function(r){return new(r||km)(n.Y36(n.s_b),n.Y36(VN,8))},km.\u0275dir=n.lG2({type:km,selectors:[["","cdkTreeNodeOutlet",""]]});var IVe=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.$implicit=r}),tv=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});tv.\u0275fac=function(r){return new(r||tv)(n.Y36(n.Rgc))},tv.\u0275dir=n.lG2({type:tv,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var ic=function(){function t(r,e){(0,j.Z)(this,t),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new qn.xQ,this._levels=new Map,this.viewChange=new go.X({start:0,end:Number.MAX_VALUE})}return(0,V.Z)(t,[{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,po.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,I1.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,pr.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Yr.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,f,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(f),i._levels.delete(u.item);else{var v=a.get(f);a.move(v,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 IVe(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),ru.mostRecentTreeNode&&(ru.mostRecentTreeNode.data=e)}}]),t}();ic.\u0275fac=function(r){return new(r||ic)(n.Y36(n.ZZ4),n.Y36(n.sBO))},ic.\u0275cmp=n.Xpm({type:ic,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,tv,5),2&r)&&(n.iGM(o=n.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(km,7),2&r)&&(n.iGM(i=n.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&&n.GkF(0,0)},directives:[km],encapsulation:2});var ru=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._tree=e,this._destroyed=new qn.xQ,this._dataChanges=new qn.xQ,t.mostRecentTreeNode=this,this.role="treeitem"}return(0,V.Z)(t,[{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 PVe(t){for(var r=t.parentElement;r&&!RVe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,Hn.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.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"}}]),t}();function RVe(t){var r=t.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}ru.mostRecentTreeNode=null,ru.\u0275fac=function(r){return new(r||ru)(n.Y36(n.SBq),n.Y36(ic))},ru.\u0275dir=n.lG2({type:ru,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&n.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var Tm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,V.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,I1.b)(a)&&a.pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,Ht.Z)((0,ln.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}(ru);Tm.\u0275fac=function(r){return new(r||Tm)(n.Y36(n.SBq),n.Y36(ic),n.Y36(n.ZZ4))},Tm.\u0275dir=n.lG2({type:Tm,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,km,5),2&r)&&(n.iGM(o=n.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[n._Bn([{provide:ru,useExisting:Tm},{provide:VN,useExisting:Tm}]),n.qOj]});var LVe=/([A-Za-z%]+)$/,gb=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new qn.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,V.Z)(t,[{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,Hn.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(LVe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,Hn.su)(i),this._setPadding()}}]),t}();gb.\u0275fac=function(r){return new(r||gb)(n.Y36(ru),n.Y36(ic),n.Y36(n.SBq),n.Y36(Es.Is,8))},gb.\u0275dir=n.lG2({type:gb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var vb=function(){function t(r,e){(0,j.Z)(this,t),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,V.Z)(t,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,Hn.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()}}]),t}();vb.\u0275fac=function(r){return new(r||vb)(n.Y36(ic),n.Y36(ru))},vb.\u0275dir=n.lG2({type:vb,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var Qk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qk.\u0275fac=function(r){return new(r||Qk)},Qk.\u0275mod=n.oAB({type:Qk}),Qk.\u0275inj=n.cJS({});var Xk=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,V.Z)(e,[{key:"ngOnInit",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,sn.sb)((0,sn.Id)(ru)));Xk.\u0275fac=function(r){return new(r||Xk)(n.Y36(n.SBq),n.Y36(ic),n.$8M("tabindex"))},Xk.\u0275dir=n.lG2({type:Xk,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[n._Bn([{provide:ru,useExisting:Xk}]),n.qOj]});var yb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(tv);yb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(yb)))(e||yb)}}(),yb.\u0275dir=n.lG2({type:yb,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[n._Bn([{provide:tv,useExisting:yb}]),n.qOj]});var nv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Hn.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,Ht.Z)((0,ln.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,ln.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}(Tm);nv.\u0275fac=function(r){return new(r||nv)(n.Y36(n.SBq),n.Y36(ic),n.Y36(n.ZZ4),n.$8M("tabindex"))},nv.\u0275dir=n.lG2({type:nv,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[n._Bn([{provide:Tm,useExisting:nv},{provide:ru,useExisting:nv},{provide:VN,useExisting:nv}]),n.qOj]});var bb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(gb);bb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(bb)))(e||bb)}}(),bb.\u0275dir=n.lG2({type:bb,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[n._Bn([{provide:gb,useExisting:bb}]),n.qOj]});var rv=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this._node=e});rv.\u0275fac=function(r){return new(r||rv)(n.Y36(n.s_b),n.Y36(VN,8))},rv.\u0275dir=n.lG2({type:rv,selectors:[["","matTreeNodeOutlet",""]],features:[n._Bn([{provide:km,useExisting:rv}])]});var Cb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ic);Cb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Cb)))(e||Cb)}}(),Cb.\u0275cmp=n.Xpm({type:Cb,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(rv,7),2&r)&&(n.iGM(i=n.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[n._Bn([{provide:ic,useExisting:Cb}]),n.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[rv],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}\n"],encapsulation:2});var wb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(vb);wb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(wb)))(e||wb)}}(),wb.\u0275dir=n.lG2({type:wb,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[n._Bn([{provide:vb,useExisting:wb}]),n.qOj]});var $k=(0,V.Z)(function t(){(0,j.Z)(this,t)});$k.\u0275fac=function(r){return new(r||$k)},$k.\u0275mod=n.oAB({type:$k}),$k.\u0275inj=n.cJS({imports:[[Qk,sn.BQ],sn.BQ]});po.o2,po.o2;var NVe=[tk,Fh,lg,iw,kk,rg,Un.lN,ow,mw,ww,Pw,$C,Qy,d0,fw,lw,ik,xi.LD,Ky,Iw,yw,Jk,so.Nh,$k,R0,Ck],kb=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),as.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof Zh&&(gtag("set","page",i.url),gtag("send","pageview"))})});kb.\u0275fac=function(r){return new(r||kb)(n.LFG(kr),n.LFG(hm.g))},kb.\u0275prov=n.Yz7({token:kb,factory:kb.\u0275fac});var eT=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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})}}]),t}();function Vz(){Vz=function(){return t};var t={},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(E,_,A){return Object.defineProperty(E,_,{value:A,enumerable:!0,configurable:!0,writable:!0}),E[_]}try{l({},"")}catch(E){l=function(A,H,ee){return A[H]=ee}}function u(E,_,A,H){var ft,St,be,rt,ee=_&&_.prototype instanceof v?_:v,re=Object.create(ee.prototype),ge=new Pe(H||[]);return re._invoke=(ft=E,St=A,be=ge,rt="suspendedStart",function(Pt,Bn){if("executing"===rt)throw new Error("Generator is already running");if("completed"===rt){if("throw"===Pt)throw Bn;return{value:void 0,done:!0}}for(be.method=Pt,be.arg=Bn;;){var er=be.delegate;if(er){var Rn=Be(er,be);if(Rn){if(Rn===h)continue;return Rn}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if("suspendedStart"===rt)throw rt="completed",be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);rt="executing";var gn=f(ft,St,be);if("normal"===gn.type){if(rt=be.done?"completed":"suspendedYield",gn.arg===h)continue;return{value:gn.arg,done:be.done}}"throw"===gn.type&&(rt="completed",be.method="throw",be.arg=gn.arg)}}),re}function f(E,_,A){try{return{type:"normal",arg:E.call(_,A)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(at([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var pe=B.prototype=v.prototype=Object.create(G);function Ve(E){["next","throw","return"].forEach(function(_){l(E,_,function(A){return this._invoke(_,A)})})}function Me(E,_){function A(ee,re,ge,ft){var St=f(E[ee],E,re);if("throw"!==St.type){var be=St.arg,rt=be.value;return rt&&"object"==typeof rt&&e.call(rt,"__await")?_.resolve(rt.__await).then(function(Pt){A("next",Pt,ge,ft)},function(Pt){A("throw",Pt,ge,ft)}):_.resolve(rt).then(function(Pt){be.value=Pt,ge(be)},function(Pt){return A("throw",Pt,ge,ft)})}ft(St.arg)}var H;this._invoke=function(ee,re){function ge(){return new _(function(ft,St){A(ee,re,ft,St)})}return H=H?H.then(ge,ge):ge()}}function Be(E,_){var A=E.iterator[_.method];if(void 0===A){if(_.delegate=null,"throw"===_.method){if(E.iterator.return&&(_.method="return",_.arg=void 0,Be(E,_),"throw"===_.method))return h;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(A,E.iterator,_.arg);if("throw"===H.type)return _.method="throw",_.arg=H.arg,_.delegate=null,h;var ee=H.arg;return ee?ee.done?(_[E.resultName]=ee.value,_.next=E.nextLoc,"return"!==_.method&&(_.method="next",_.arg=void 0),_.delegate=null,h):ee:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,h)}function pt(E){var _={tryLoc:E[0]};1 in E&&(_.catchLoc=E[1]),2 in E&&(_.finallyLoc=E[2],_.afterLoc=E[3]),this.tryEntries.push(_)}function ht(E){var _=E.completion||{};_.type="normal",delete _.arg,E.completion=_}function Pe(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(pt,this),this.reset(!0)}function at(E){if(E){var _=E[o];if(_)return _.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,H=function ee(){for(;++A<E.length;)if(e.call(E,A))return ee.value=E[A],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return H.next=H}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return C.prototype=B,l(pe,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(E){var _="function"==typeof E&&E.constructor;return!!_&&(_===C||"GeneratorFunction"===(_.displayName||_.name))},t.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,B):(E.__proto__=B,l(E,s,"GeneratorFunction")),E.prototype=Object.create(pe),E},t.awrap=function(E){return{__await:E}},Ve(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(E,_,A,H,ee){void 0===ee&&(ee=Promise);var re=new Me(u(E,_,A,H),ee);return t.isGeneratorFunction(_)?re:re.next().then(function(ge){return ge.done?ge.value:re.next()})},Ve(pe),l(pe,s,"Generator"),l(pe,o,function(){return this}),l(pe,"toString",function(){return"[object Generator]"}),t.keys=function(E){var _=[];for(var A in E)_.push(A);return _.reverse(),function H(){for(;_.length;){var ee=_.pop();if(ee in E)return H.value=ee,H.done=!1,H}return H.done=!0,H}},t.values=at,Pe.prototype={constructor:Pe,reset:function(_){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(ht),!_)for(var A in this)"t"===A.charAt(0)&&e.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if("throw"===_.type)throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var A=this;function H(be,rt){return ge.type="throw",ge.arg=_,A.next=be,rt&&(A.method="next",A.arg=void 0),!!rt}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var re=this.tryEntries[ee],ge=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var ft=e.call(re,"catchLoc"),St=e.call(re,"finallyLoc");if(ft&&St){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(ft){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!St)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(_,A){for(var H=this.tryEntries.length-1;H>=0;--H){var ee=this.tryEntries[H];if(ee.tryLoc<=this.prev&&e.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var re=ee;break}}re&&("break"===_||"continue"===_)&&re.tryLoc<=A&&A<=re.finallyLoc&&(re=null);var ge=re?re.completion:{};return ge.type=_,ge.arg=A,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ge)},complete:function(_,A){if("throw"===_.type)throw _.arg;return"break"===_.type||"continue"===_.type?this.next=_.arg:"return"===_.type?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):"normal"===_.type&&A&&(this.next=A),h},finish:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.finallyLoc===_)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(_){for(var A=this.tryEntries.length-1;A>=0;--A){var H=this.tryEntries[A];if(H.tryLoc===_){var ee=H.completion;if("throw"===ee.type){var re=ee.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(_,A,H){return this.delegate={iterator:at(_),resultName:A,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}eT.\u0275fac=function(r){return new(r||eT)(n.LFG(Wo.zw))},eT.\u0275prov=n.Yz7({token:eT,factory:eT.\u0275fac});var tT=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.loginService=e}return(0,V.Z)(t,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,Vd.K)(function(a){if(401!==a.status&&403!==a.status)return(0,YC._)(a);o.call()}))}},{key:"call",value:function(){var e;return Yi(this,void 0,void 0,Vz().mark(function i(){var o,a,s,l;return Vz().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,f.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=f.sent).tokenExpired=!0,f.next=8,this.controllerService.update(s);case 8:if(f.prev=8,!o||!o.isRememberMe){f.next=20;break}return f.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=f.sent,s.authToken=l.access_token,s.tokenExpired=!1,f.next=17,this.controllerService.update(s);case 17:return f.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:f.next=25;break;case 22:throw f.prev=22,f.t0=f.catch(8),f.t0;case 25:case"end":return f.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),t}();tT.\u0275fac=function(r){return new(r||tT)(n.LFG(vr),n.LFG(jh))},tT.\u0275prov=n.Yz7({token:tT,factory:tT.\u0275fac});var BVe=["thumbContainer"],FVe=["toggleBar"],UVe=["input"],HVe=function(r){return{enterDuration:r}},zVe=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),WVe=0,VVe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return SI}),multi:!0},YVe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.checked=e}),GVe=(0,sn.sb)((0,sn.pj)((0,sn.Kr)((0,sn.Id)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}())))),SI=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i))._focusMonitor=o,f._changeDetectorRef=a,f.defaults=l,f._onChange=function(h){},f._onTouched=function(){},f._uniqueId="mat-slide-toggle-".concat(++WVe),f._required=!1,f._checked=!1,f.name=null,f.id=f._uniqueId,f.labelPosition="after",f.ariaLabel=null,f.ariaLabelledby=null,f.change=new n.vpe,f.toggleChange=new n.vpe,f.tabIndex=parseInt(s)||0,f.color=f.defaultColor=l.color||"accent",f._noopAnimations="NoopAnimations"===u,f}return(0,V.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,Hn.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,Hn.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){a||Promise.resolve().then(function(){return o._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{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:"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:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new YVe(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(GVe);SI.\u0275fac=function(r){return new(r||SI)(n.Y36(n.SBq),n.Y36(Oi.tE),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(zVe),n.Y36(Ta.Qb,8))},SI.\u0275cmp=n.Xpm({type:SI,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(BVe,5),n.Gf(FVe,5),n.Gf(UVe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e._thumbEl=i.first),n.iGM(i=n.CRH())&&(e._thumbBarEl=i.first),n.iGM(i=n.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(n.Ikx("id",e.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.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",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"},exportAs:["matSlideToggle"],features:[n._Bn([VVe]),n.qOj],ngContentSelectors:["*"],decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),n.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),n.qZA(),n.TgZ(6,"span",6,7),n._UZ(8,"span",8),n.TgZ(9,"span",9),n._UZ(10,"span",10),n.qZA()()(),n.TgZ(11,"span",11,12),n.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),n.TgZ(13,"span",13),n._uU(14,"\xa0"),n.qZA(),n.Hsn(15),n.qZA()()),2&r){var i=n.MAs(1),o=n.MAs(12);n.uIk("for",e.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),n.xp6(2),n.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),n.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(5),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,HVe,e._noopAnimations?0:150))}},directives:[sn.wG,TZ.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:transparent}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0});var qVe={provide:ne.Cf,useExisting:(0,n.Gpc)(function(){return nT}),multi:!0},nT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ne.Zs);nT.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(nT)))(e||nT)}}(),nT.\u0275dir=n.lG2({type:nT,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[n._Bn([qVe]),n.qOj]});var Tb=(0,V.Z)(function t(){(0,j.Z)(this,t)});Tb.\u0275fac=function(r){return new(r||Tb)},Tb.\u0275mod=n.oAB({type:Tb}),Tb.\u0275inj=n.cJS({});var rT=(0,V.Z)(function t(){(0,j.Z)(this,t)});rT.\u0275fac=function(r){return new(r||rT)},rT.\u0275mod=n.oAB({type:rT}),rT.\u0275inj=n.cJS({imports:[[Tb,sn.si,sn.BQ,TZ.Q8],Tb,sn.BQ]});var iT=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._googleAnalyticsService=r});iT.\u0275fac=function(r){return new(r||iT)(n.LFG(kb))},iT.\u0275mod=n.oAB({type:iT,bootstrap:[hI]}),iT.\u0275inj=n.cJS({providers:[hm.g,{provide:n.qLn,useClass:mb},{provide:zu.TP,useClass:tT,multi:!0},uH,zh,dl.Y,cp,vr,Gd,Xr,pl,us,Wo.zw,ym,zg,$n,ul,Ug,pm.F,ls.G,cb,Wg,Il,P0,La,Wo.CJ,up,ku,Sp,eT,vu,em,Sl,Xh,Xl,zc,o0,i0,r0,Kh,Qh,fg,tm,Qu,$h,pg,Uc,dp,Wc,cg,CN.p,Vg,$d,Yg,X0,G0,tf,Rg,fl,B0,Yd.X,Lg,q0,Ju.f,kb,eu,rc,ni,tb,An.Dx,F0,$0,jh,hl],imports:[[An.b2,zu.JF,Nk,ne.u5,ne.UX,Ta.PW,ju,Uk,VC,WC,lh,Un.lN,lg,UM.ym,Zf,w_,O$,NVe,HC.forRoot(),Ao.U8,rT,d0,Tk]]}),n.B6R(_k,[Tn,ne._Y,ne.JL,ne.F,Un.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,wt.O5,vi,Vn,Da,Oa,Aa,Ia],[TI]),as.N.production&&(0,n.G48)(),An.q6().bootstrapModule(iT).then(function(t){var e=t.injector.get(n.z2F).components[0];(0,An.HJ)(e)}).catch(function(t){return console.log(t)})},7312:function(qe,J,m){"use strict";m.d(J,{R:function(){return S},Y:function(){return U}});var z=m(3295),Y={};function S(){return(0,z.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Y}function U(L,P,D){var y=D||S(),K=y.__SENTRY__=y.__SENTRY__||{};return K[L]||(K[L]=P())}},3295:function(qe,J,m){"use strict";function Y(){return!function z(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function S(L,P){return L.require(P)}m.d(J,{l$:function(){return S},KV:function(){return Y}}),qe=m.hmd(qe)},3169:function(qe,J,m){"use strict";m.d(J,{ph:function(){return K},yW:function(){return y}});var z=m(7312),Y=m(3295);qe=m.hmd(qe);var S={nowSeconds:function(){return Date.now()/1e3}};var P=(0,Y.KV)()?function L(){try{return(0,Y.l$)(qe,"perf_hooks").performance}catch(T){return}}():function U(){var I=(0,z.R)().performance;if(I&&I.now)return{now:function(){return I.now()},timeOrigin:Date.now()-I.now()}}(),D=void 0===P?S:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},y=S.nowSeconds.bind(S),K=D.nowSeconds.bind(D);!function(){var I=(0,z.R)().performance;if(I&&I.now){var T=36e5,w=I.now(),x=Date.now(),N=I.timeOrigin?Math.abs(I.timeOrigin+w-x):T,R=N<T,W=I.timing&&I.timing.navigationStart,ce="number"==typeof W?Math.abs(W+w-x):T;return R||ce<T?N<=ce?("timeOrigin",I.timeOrigin):("navigationStart",W):("dateNow",x)}"none"}()},2072:function(qe,J,m){"use strict";m.d(J,{E$:function(){return Xe},ym:function(){return vt}});var z=m(7685),Y=m(5671),S=m(3144),U=m(9808),L=m(5e3),P=m(8929),D=m(6787),y=m(8896),K=m(7451),F=m(3753),M=m(2994),O=m(8117),k=m(1059),I=m(4850),T=m(7545),w=m(7568),x=m(7625),N=m(1709),R=m(2986),W=m(519),$=m(9664),ce="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function se(nt,Lt){var It=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,on=Math.abs(nt-Lt);return on<It}function te(nt,Lt,It,on){var _n={top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right};return Lt.top&&(_n.top+=on),Lt.bottom&&(_n.bottom+=on),Lt.left&&(_n.left+=It),Lt.right&&(_n.right+=It),_n.height=_n.bottom-_n.top,_n.width=_n.right-_n.left,_n}function ve(nt){var Lt=nt.clientY,It=nt.rect;return Lt>=It.top&&Lt<=It.bottom}function Oe(nt){var Lt=nt.clientX,It=nt.rect;return Lt>=It.left&&Lt<=It.right}function st(nt){var Lt=nt.clientX,It=nt.clientY,on=nt.elm,_n=nt.allowedEdges,An=nt.cursorPrecision,Gt=on.nativeElement.getBoundingClientRect(),Zt={};return _n.left&&se(Lt,Gt.left,An)&&ve({clientY:It,rect:Gt})&&(Zt.left=!0),_n.right&&se(Lt,Gt.right,An)&&ve({clientY:It,rect:Gt})&&(Zt.right=!0),_n.top&&se(It,Gt.top,An)&&Oe({clientX:Lt,rect:Gt})&&(Zt.top=!0),_n.bottom&&se(It,Gt.bottom,An)&&Oe({clientX:Lt,rect:Gt})&&(Zt.bottom=!0),Zt}var xe=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function _e(nt,Lt){return nt.left&&nt.top?Lt.topLeft:nt.right&&nt.top?Lt.topRight:nt.left&&nt.bottom?Lt.bottomLeft:nt.right&&nt.bottom?Lt.bottomRight:nt.left||nt.right?Lt.leftOrRight:nt.top||nt.bottom?Lt.topOrBottom:""}function ke(nt){var Lt=nt.edges,It=nt.initialRectangle,on=nt.newRectangle,_n={};return Object.keys(Lt).forEach(function(An){_n[An]=(on[An]||0)-(It[An]||0)}),_n}var Fe="resize-active",Xe=function(){function nt(Lt,It,on,_n){(0,Y.Z)(this,nt),this.platformId=Lt,this.renderer=It,this.elm=on,this.zone=_n,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=xe,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new L.vpe,this.resizing=new L.vpe,this.resizeEnd=new L.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=jt.getInstance(It,_n)}return(0,S.Z)(nt,[{key:"ngOnInit",value:function(){var Gt,It=this,on=(0,D.T)(this.pointerEventListeners.pointerDown,this.mousedown),_n=(0,D.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,M.b)(function(Ht){var ln=Ht.event;if(Gt)try{ln.preventDefault()}catch(yt){}}),(0,O.B)()),An=(0,D.T)(this.pointerEventListeners.pointerUp,this.mouseup),Zt=function(){Gt&&Gt.clonedNode&&(It.elm.nativeElement.parentElement.removeChild(Gt.clonedNode),It.renderer.setStyle(It.elm.nativeElement,"visibility","inherit"))},Et=function(){return Object.assign({},xe,It.resizeCursors)};this.resizeEdges$.pipe((0,k.O)(this.resizeEdges),(0,I.U)(function(){return It.resizeEdges&&Object.keys(It.resizeEdges).some(function(Ht){return!!It.resizeEdges[Ht]})}),(0,T.w)(function(Ht){return Ht?_n:y.E}),(0,w.e)(this.mouseMoveThrottleMS),(0,x.R)(this.destroy$)).subscribe(function(Ht){var mt=st({clientX:Ht.clientX,clientY:Ht.clientY,elm:It.elm,allowedEdges:It.resizeEdges,cursorPrecision:It.resizeCursorPrecision}),cn=Et();if(!Gt){var $t=_e(mt,cn);It.renderer.setStyle(It.elm.nativeElement,"cursor",$t)}It.setElementClass(It.elm,"resize-left-hover",!0===mt.left),It.setElementClass(It.elm,"resize-right-hover",!0===mt.right),It.setElementClass(It.elm,"resize-top-hover",!0===mt.top),It.setElementClass(It.elm,"resize-bottom-hover",!0===mt.bottom)}),on.pipe((0,N.zg)(function(Ht){function ln(cn){return{clientX:cn.clientX-Ht.clientX,clientY:cn.clientY-Ht.clientY}}var yt=function(){var $t={x:1,y:1};return Gt&&(It.resizeSnapGrid.left&&Gt.edges.left?$t.x=+It.resizeSnapGrid.left:It.resizeSnapGrid.right&&Gt.edges.right&&($t.x=+It.resizeSnapGrid.right),It.resizeSnapGrid.top&&Gt.edges.top?$t.y=+It.resizeSnapGrid.top:It.resizeSnapGrid.bottom&&Gt.edges.bottom&&($t.y=+It.resizeSnapGrid.bottom)),$t};function mt(cn,$t){return{x:Math.ceil(cn.clientX/$t.x),y:Math.ceil(cn.clientY/$t.y)}}return(0,D.T)(_n.pipe((0,R.q)(1)).pipe((0,I.U)(function(cn){return[,cn]})),_n.pipe((0,W.G)())).pipe((0,I.U)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];return[j&&ln(j),ln(V)]})).pipe((0,$.h)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];if(!j)return!0;var Jn=yt(),wn=mt(j,Jn),Bt=mt(V,Jn);return wn.x!==Bt.x||wn.y!==Bt.y})).pipe((0,I.U)(function(cn){var j=(0,z.Z)(cn,2)[1],V=yt();return{clientX:Math.round(j.clientX/V.x)*V.x,clientY:Math.round(j.clientY/V.y)*V.y}})).pipe((0,x.R)((0,D.T)(An,on)))})).pipe((0,$.h)(function(){return!!Gt})).pipe((0,I.U)(function(Ht){var ln=Ht.clientX,yt=Ht.clientY;return te(Gt.startingRect,Gt.edges,ln,yt)})).pipe((0,$.h)(function(Ht){return It.allowNegativeResizes||!!(Ht.height&&Ht.width&&Ht.height>0&&Ht.width>0)})).pipe((0,$.h)(function(Ht){return!It.validateResize||It.validateResize({rectangle:Ht,edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Ht})})}),(0,x.R)(this.destroy$)).subscribe(function(Ht){Gt&&Gt.clonedNode&&(It.renderer.setStyle(Gt.clonedNode,"height","".concat(Ht.height,"px")),It.renderer.setStyle(Gt.clonedNode,"width","".concat(Ht.width,"px")),It.renderer.setStyle(Gt.clonedNode,"top","".concat(Ht.top,"px")),It.renderer.setStyle(Gt.clonedNode,"left","".concat(Ht.left,"px"))),It.resizing.observers.length>0&&It.zone.run(function(){It.resizing.emit({edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Ht}),rectangle:Ht})}),Gt.currentRect=Ht}),on.pipe((0,I.U)(function(Ht){var ln=Ht.clientX,yt=Ht.clientY;return Ht.edges||st({clientX:ln,clientY:yt,elm:It.elm,allowedEdges:It.resizeEdges,cursorPrecision:It.resizeCursorPrecision})})).pipe((0,$.h)(function(Ht){return Object.keys(Ht).length>0}),(0,x.R)(this.destroy$)).subscribe(function(Ht){Gt&&Zt();var ln=function oe(nt,Lt){var It=0,on=0,_n=nt.nativeElement.style,Gt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Et){return _n[Et]}).find(function(Et){return!!Et});if(Gt&&Gt.includes("translate")&&(It=Gt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),on=Gt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Lt)return{height:nt.nativeElement.offsetHeight,width:nt.nativeElement.offsetWidth,top:nt.nativeElement.offsetTop-on,bottom:nt.nativeElement.offsetHeight+nt.nativeElement.offsetTop-on,left:nt.nativeElement.offsetLeft-It,right:nt.nativeElement.offsetWidth+nt.nativeElement.offsetLeft-It};var Zt=nt.nativeElement.getBoundingClientRect();return{height:Zt.height,width:Zt.width,top:Zt.top-on,bottom:Zt.bottom-on,left:Zt.left-It,right:Zt.right-It,scrollTop:nt.nativeElement.scrollTop,scrollLeft:nt.nativeElement.scrollLeft}}(It.elm,It.ghostElementPositioning);Gt={edges:Ht,startingRect:ln,currentRect:ln};var yt=Et(),mt=_e(Gt.edges,yt);It.renderer.setStyle(document.body,"cursor",mt),It.setElementClass(It.elm,Fe,!0),It.enableGhostResize&&(Gt.clonedNode=It.elm.nativeElement.cloneNode(!0),It.elm.nativeElement.parentElement.appendChild(Gt.clonedNode),It.renderer.setStyle(It.elm.nativeElement,"visibility","hidden"),It.renderer.setStyle(Gt.clonedNode,"position",It.ghostElementPositioning),It.renderer.setStyle(Gt.clonedNode,"left","".concat(Gt.startingRect.left,"px")),It.renderer.setStyle(Gt.clonedNode,"top","".concat(Gt.startingRect.top,"px")),It.renderer.setStyle(Gt.clonedNode,"height","".concat(Gt.startingRect.height,"px")),It.renderer.setStyle(Gt.clonedNode,"width","".concat(Gt.startingRect.width,"px")),It.renderer.setStyle(Gt.clonedNode,"cursor",_e(Gt.edges,yt)),It.renderer.addClass(Gt.clonedNode,"resize-ghost-element"),Gt.clonedNode.scrollTop=Gt.startingRect.scrollTop,Gt.clonedNode.scrollLeft=Gt.startingRect.scrollLeft),It.resizeStart.observers.length>0&&It.zone.run(function(){It.resizeStart.emit({edges:ke({edges:Ht,initialRectangle:ln,newRectangle:ln}),rectangle:te(ln,{},0,0)})})}),An.pipe((0,x.R)(this.destroy$)).subscribe(function(){Gt&&(It.renderer.removeClass(It.elm.nativeElement,Fe),It.renderer.setStyle(document.body,"cursor",""),It.renderer.setStyle(It.elm.nativeElement,"cursor",""),It.resizeEnd.observers.length>0&&It.zone.run(function(){It.resizeEnd.emit({edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Gt.currentRect}),rectangle:Gt.currentRect})}),Zt(),Gt=null)})}},{key:"ngOnChanges",value:function(It){It.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,U.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(It,on,_n){_n?this.renderer.addClass(It.nativeElement,on):this.renderer.removeClass(It.nativeElement,on)}}]),nt}();Xe.\u0275fac=function(Lt){return new(Lt||Xe)(L.Y36(L.Lbi),L.Y36(L.Qsj),L.Y36(L.SBq),L.Y36(L.R0b))},Xe.\u0275dir=L.lG2({type:Xe,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:[L.TTD]}),Xe.ctorParameters=function(){return[{type:void 0,decorators:[{type:L.tBr,args:[L.Lbi]}]},{type:L.Qsj},{type:L.SBq},{type:L.R0b}]},Xe.propDecorators={validateResize:[{type:L.IIB}],resizeEdges:[{type:L.IIB}],enableGhostResize:[{type:L.IIB}],resizeSnapGrid:[{type:L.IIB}],resizeCursors:[{type:L.IIB}],resizeCursorPrecision:[{type:L.IIB}],ghostElementPositioning:[{type:L.IIB}],allowNegativeResizes:[{type:L.IIB}],mouseMoveThrottleMS:[{type:L.IIB}],resizeStart:[{type:L.r_U}],resizing:[{type:L.r_U}],resizeEnd:[{type:L.r_U}]};var jt=function(){function nt(Lt,It){(0,Y.Z)(this,nt),this.pointerDown=new K.y(function(on){var _n,An;return It.runOutsideAngular(function(){_n=Lt.listen("document","mousedown",function(Gt){on.next({clientX:Gt.clientX,clientY:Gt.clientY,event:Gt})}),ce&&(An=Lt.listen("document","touchstart",function(Gt){on.next({clientX:Gt.touches[0].clientX,clientY:Gt.touches[0].clientY,event:Gt})}))}),function(){_n(),ce&&An()}}).pipe((0,O.B)()),this.pointerMove=new K.y(function(on){var _n,An;return It.runOutsideAngular(function(){_n=Lt.listen("document","mousemove",function(Gt){on.next({clientX:Gt.clientX,clientY:Gt.clientY,event:Gt})}),ce&&(An=Lt.listen("document","touchmove",function(Gt){on.next({clientX:Gt.targetTouches[0].clientX,clientY:Gt.targetTouches[0].clientY,event:Gt})}))}),function(){_n(),ce&&An()}}).pipe((0,O.B)()),this.pointerUp=new K.y(function(on){var _n,An,Gt;return It.runOutsideAngular(function(){_n=Lt.listen("document","mouseup",function(Zt){on.next({clientX:Zt.clientX,clientY:Zt.clientY,event:Zt})}),ce&&(An=Lt.listen("document","touchend",function(Zt){on.next({clientX:Zt.changedTouches[0].clientX,clientY:Zt.changedTouches[0].clientY,event:Zt})}),Gt=Lt.listen("document","touchcancel",function(Zt){on.next({clientX:Zt.changedTouches[0].clientX,clientY:Zt.changedTouches[0].clientY,event:Zt})}))}),function(){_n(),ce&&(An(),Gt())}}).pipe((0,O.B)())}return(0,S.Z)(nt,null,[{key:"getInstance",value:function(It,on){return nt.instance||(nt.instance=new nt(It,on)),nt.instance}}]),nt}(),it=function(){function nt(Lt,It,on,_n){(0,Y.Z)(this,nt),this.renderer=Lt,this.element=It,this.zone=on,this.resizableDirective=_n,this.resizeEdges={},this.eventListeners={},this.destroy$=new P.xQ}return(0,S.Z)(nt,[{key:"ngOnInit",value:function(){var It=this;this.zone.runOutsideAngular(function(){It.listenOnTheHost("mousedown").subscribe(function(on){It.onMousedown(on,on.clientX,on.clientY)}),It.listenOnTheHost("mouseup").subscribe(function(on){It.onMouseup(on.clientX,on.clientY)}),ce&&(It.listenOnTheHost("touchstart").subscribe(function(on){It.onMousedown(on,on.touches[0].clientX,on.touches[0].clientY)}),(0,D.T)(It.listenOnTheHost("touchend"),It.listenOnTheHost("touchcancel")).subscribe(function(on){It.onMouseup(on.changedTouches[0].clientX,on.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(It,on,_n){var An=this;It.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(Gt){An.onMousemove(Gt,Gt.targetTouches[0].clientX,Gt.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(Gt){An.onMousemove(Gt,Gt.clientX,Gt.clientY)})),this.resizable.mousedown.next({clientX:on,clientY:_n,edges:this.resizeEdges})}},{key:"onMouseup",value:function(It,on){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:It,clientY:on,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(It,on,_n){this.resizable.mousemove.next({clientX:on,clientY:_n,edges:this.resizeEdges,event:It})}},{key:"unsubscribeEventListeners",value:function(){var It=this;Object.keys(this.eventListeners).forEach(function(on){It.eventListeners[on](),delete It.eventListeners[on]})}},{key:"listenOnTheHost",value:function(It){return(0,F.R)(this.element.nativeElement,It).pipe((0,x.R)(this.destroy$))}}]),nt}();it.\u0275fac=function(Lt){return new(Lt||it)(L.Y36(L.Qsj),L.Y36(L.SBq),L.Y36(L.R0b),L.Y36(Xe,8))},it.\u0275dir=L.lG2({type:it,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),it.ctorParameters=function(){return[{type:L.Qsj},{type:L.SBq},{type:L.R0b},{type:Xe,decorators:[{type:L.FiY}]}]},it.propDecorators={resizeEdges:[{type:L.IIB}],resizableContainer:[{type:L.IIB}]};var vt=(0,S.Z)(function nt(){(0,Y.Z)(this,nt)});vt.\u0275fac=function(Lt){return new(Lt||vt)},vt.\u0275mod=L.oAB({type:vt}),vt.\u0275inj=L.cJS({})},7521:function(qe,J,m){var z;!function(Y,S,U){if(Y){for(var K,L={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:"'"},D={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},y={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},F=1;F<20;++F)L[111+F]="f"+F;for(F=0;F<=9;++F)L[F+96]=F.toString();se.prototype.bind=function(te,oe,ve){return te=te instanceof Array?te:[te],this._bindMultiple.call(this,te,oe,ve),this},se.prototype.unbind=function(te,oe){return this.bind.call(this,te,function(){},oe)},se.prototype.trigger=function(te,oe){return this._directMap[te+":"+oe]&&this._directMap[te+":"+oe]({},te),this},se.prototype.reset=function(){return this._callbacks={},this._directMap={},this},se.prototype.stopCallback=function(te,oe){if((" "+oe.className+" ").indexOf(" mousetrap ")>-1||ce(oe,this.target))return!1;if("composedPath"in te&&"function"==typeof te.composedPath){var Oe=te.composedPath()[0];Oe!==te.target&&(oe=Oe)}return"INPUT"==oe.tagName||"SELECT"==oe.tagName||"TEXTAREA"==oe.tagName||oe.isContentEditable},se.prototype.handleKey=function(){var te=this;return te._handleKey.apply(te,arguments)},se.addKeycodes=function(te){for(var oe in te)te.hasOwnProperty(oe)&&(L[oe]=te[oe]);K=null},se.init=function(){var te=se(S);for(var oe in te)"_"!==oe.charAt(0)&&(se[oe]=function(ve){return function(){return te[ve].apply(te,arguments)}}(oe))},se.init(),Y.Mousetrap=se,qe.exports&&(qe.exports=se),void 0!==(z=function(){return se}.call(J,m,J,qe))&&(qe.exports=z)}function M(te,oe,ve){te.addEventListener?te.addEventListener(oe,ve,!1):te.attachEvent("on"+oe,ve)}function O(te){if("keypress"==te.type){var oe=String.fromCharCode(te.which);return te.shiftKey||(oe=oe.toLowerCase()),oe}return L[te.which]?L[te.which]:P[te.which]?P[te.which]:String.fromCharCode(te.which).toLowerCase()}function k(te,oe){return te.sort().join(",")===oe.sort().join(",")}function x(te){return"shift"==te||"ctrl"==te||"alt"==te||"meta"==te}function R(te,oe,ve){return ve||(ve=function N(){if(!K)for(var te in K={},L)te>95&&te<112||L.hasOwnProperty(te)&&(K[L[te]]=te);return K}()[te]?"keydown":"keypress"),"keypress"==ve&&oe.length&&(ve="keydown"),ve}function $(te,oe){var ve,Oe,st,xe=[];for(ve=function W(te){return"+"===te?["+"]:(te=te.replace(/\+{2}/g,"+plus")).split("+")}(te),st=0;st<ve.length;++st)Oe=ve[st],y[Oe]&&(Oe=y[Oe]),oe&&"keypress"!=oe&&D[Oe]&&(Oe=D[Oe],xe.push("shift")),x(Oe)&&xe.push(Oe);return{key:Oe,modifiers:xe,action:oe=R(Oe,xe,oe)}}function ce(te,oe){return null!==te&&te!==S&&(te===oe||ce(te.parentNode,oe))}function se(te){var oe=this;if(te=te||S,!(oe instanceof se))return new se(te);oe.target=te,oe._callbacks={},oe._directMap={};var Oe,ve={},st=!1,xe=!1,_e=!1;function ke(qt){qt=qt||{};var jt,Xe=!1;for(jt in ve)qt[jt]?Xe=!0:ve[jt]=0;Xe||(_e=!1)}function Fe(qt,Xe,jt,it,vt,nt){var Lt,It,on=[],_n=jt.type;if(!oe._callbacks[qt])return[];for("keyup"==_n&&x(qt)&&(Xe=[qt]),Lt=0;Lt<oe._callbacks[qt].length;++Lt)if(It=oe._callbacks[qt][Lt],(it||!It.seq||ve[It.seq]==It.level)&&_n==It.action&&("keypress"==_n&&!jt.metaKey&&!jt.ctrlKey||k(Xe,It.modifiers))){var An=!it&&It.combo==vt,Gt=it&&It.seq==it&&It.level==nt;(An||Gt)&&oe._callbacks[qt].splice(Lt,1),on.push(It)}return on}function ct(qt,Xe,jt,it){oe.stopCallback(Xe,Xe.target||Xe.srcElement,jt,it)||!1===qt(Xe,jt)&&(function T(te){te.preventDefault?te.preventDefault():te.returnValue=!1}(Xe),function w(te){te.stopPropagation?te.stopPropagation():te.cancelBubble=!0}(Xe))}function Mt(qt){"number"!=typeof qt.which&&(qt.which=qt.keyCode);var Xe=O(qt);if(Xe){if("keyup"==qt.type&&st===Xe)return void(st=!1);oe.handleKey(Xe,function I(te){var oe=[];return te.shiftKey&&oe.push("shift"),te.altKey&&oe.push("alt"),te.ctrlKey&&oe.push("ctrl"),te.metaKey&&oe.push("meta"),oe}(qt),qt)}}function Xt(qt,Xe,jt,it){function vt(_n){return function(){_e=_n,++ve[qt],function Nt(){clearTimeout(Oe),Oe=setTimeout(ke,1e3)}()}}function nt(_n){ct(jt,_n,qt),"keyup"!==it&&(st=O(_n)),setTimeout(ke,10)}ve[qt]=0;for(var Lt=0;Lt<Xe.length;++Lt){var on=Lt+1===Xe.length?nt:vt(it||$(Xe[Lt+1]).action);en(Xe[Lt],on,it,qt,Lt)}}function en(qt,Xe,jt,it,vt){oe._directMap[qt+":"+jt]=Xe;var Lt,nt=(qt=qt.replace(/\s+/g," ")).split(" ");nt.length>1?Xt(qt,nt,Xe,jt):(Lt=$(qt,jt),oe._callbacks[Lt.key]=oe._callbacks[Lt.key]||[],Fe(Lt.key,Lt.modifiers,{type:Lt.action},it,qt,vt),oe._callbacks[Lt.key][it?"unshift":"push"]({callback:Xe,modifiers:Lt.modifiers,action:Lt.action,seq:it,level:vt,combo:qt}))}oe._handleKey=function(qt,Xe,jt){var vt,it=Fe(qt,Xe,jt),nt={},Lt=0,It=!1;for(vt=0;vt<it.length;++vt)it[vt].seq&&(Lt=Math.max(Lt,it[vt].level));for(vt=0;vt<it.length;++vt)if(it[vt].seq){if(it[vt].level!=Lt)continue;It=!0,nt[it[vt].seq]=1,ct(it[vt].callback,jt,it[vt].combo,it[vt].seq)}else It||ct(it[vt].callback,jt,it[vt].combo);var on="keypress"==jt.type&&xe;jt.type==_e&&!x(qt)&&!on&&ke(nt),xe=It&&"keydown"==jt.type},oe._bindMultiple=function(qt,Xe,jt){for(var it=0;it<qt.length;++it)en(qt[it],Xe,jt)},M(te,"keypress",Mt),M(te,"keydown",Mt),M(te,"keyup",Mt)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.Observable=z.Observable,J.Subject=z.Subject;var Y=m(5718);J.AnonymousSubject=Y.AnonymousSubject;var S=m(5718);J.config=S.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 U=m(4822);J.Subscription=U.Subscription,J.ReplaySubject=U.ReplaySubject,J.BehaviorSubject=U.BehaviorSubject,J.Notification=U.Notification,J.EmptyError=U.EmptyError,J.ArgumentOutOfRangeError=U.ArgumentOutOfRangeError,J.ObjectUnsubscribedError=U.ObjectUnsubscribedError,J.UnsubscriptionError=U.UnsubscriptionError,J.pipe=U.pipe;var L=m(9594);J.TestScheduler=L.TestScheduler;var P=m(4822);J.Subscriber=P.Subscriber,J.AsyncSubject=P.AsyncSubject,J.ConnectableObservable=P.ConnectableObservable,J.TimeoutError=P.TimeoutError,J.VirtualTimeScheduler=P.VirtualTimeScheduler;var D=m(8679);J.AjaxResponse=D.AjaxResponse,J.AjaxError=D.AjaxError,J.AjaxTimeoutError=D.AjaxTimeoutError;var y=m(4822),K=m(5718),F=m(5718);J.TimeInterval=F.TimeInterval,J.Timestamp=F.Timestamp;var M=m(6650);J.operators=M;var O={asap:y.asapScheduler,queue:y.queueScheduler,animationFrame:y.animationFrameScheduler,async:y.asyncScheduler};J.Scheduler=O;var k={rxSubscriber:K.rxSubscriber,observable:K.observable,iterator:K.iterator};J.Symbol=k},5010:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.bindCallback=z.bindCallback},9471:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.bindNodeCallback=z.bindNodeCallback},2687:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.combineLatest=z.combineLatest},2750:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.concat=z.concat},2977:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.defer=z.defer},8173:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8679);z.Observable.ajax=Y.ajax},1357:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2301);z.Observable.webSocket=Y.webSocket},2925:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.empty=z.empty},2231:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.forkJoin=z.forkJoin},1897:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.from=z.from},7026:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromEvent=z.fromEvent},6187:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromEventPattern=z.fromEventPattern},1562:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromPromise=z.from},9470:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.generate=z.generate},4641:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.if=z.iif},3408:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.interval=z.interval},7975:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.merge=z.merge},3518:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);function Y(){return z.NEVER}J.staticNever=Y,z.Observable.never=Y},1305:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.of=z.of},9566:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.onErrorResumeNext=z.onErrorResumeNext},6839:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.pairs=z.pairs},6034:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.race=z.race},1672:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.range=z.range},987:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.throw=z.throwError,z.Observable.throwError=z.throwError},8366:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.timer=z.timer},1216:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.using=z.using},5991:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.zip=z.zip},9982:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5641);z.Observable.prototype.audit=Y.audit},7980:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4657);z.Observable.prototype.auditTime=Y.auditTime},5615:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2792);z.Observable.prototype.buffer=Y.buffer},3056:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1667);z.Observable.prototype.bufferCount=Y.bufferCount},7551:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4283);z.Observable.prototype.bufferTime=Y.bufferTime},2080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1028);z.Observable.prototype.bufferToggle=Y.bufferToggle},8273:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(188);z.Observable.prototype.bufferWhen=Y.bufferWhen},5500:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8747);z.Observable.prototype.catch=Y._catch,z.Observable.prototype._catch=Y._catch},8413:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(572);z.Observable.prototype.combineAll=Y.combineAll},39:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(648);z.Observable.prototype.combineLatest=Y.combineLatest},2964:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9075);z.Observable.prototype.concat=Y.concat},3569:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6979);z.Observable.prototype.concatAll=Y.concatAll},2243:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3268);z.Observable.prototype.concatMap=Y.concatMap},3768:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3382);z.Observable.prototype.concatMapTo=Y.concatMapTo},1989:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3337);z.Observable.prototype.count=Y.count},4655:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1066);z.Observable.prototype.debounce=Y.debounce},4997:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9959);z.Observable.prototype.debounceTime=Y.debounceTime},7417:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2448);z.Observable.prototype.defaultIfEmpty=Y.defaultIfEmpty},5934:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5514);z.Observable.prototype.delay=Y.delay},7199:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7607);z.Observable.prototype.delayWhen=Y.delayWhen},7613:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5395);z.Observable.prototype.dematerialize=Y.dematerialize},8047:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9440);z.Observable.prototype.distinct=Y.distinct},1381:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3943);z.Observable.prototype.distinctUntilChanged=Y.distinctUntilChanged},1817:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9749);z.Observable.prototype.distinctUntilKeyChanged=Y.distinctUntilKeyChanged},9754:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6764);z.Observable.prototype.do=Y._do,z.Observable.prototype._do=Y._do},2995:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3833);z.Observable.prototype.elementAt=Y.elementAt},598:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8648);z.Observable.prototype.every=Y.every},9574:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(14);z.Observable.prototype.exhaust=Y.exhaust},8124:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4768);z.Observable.prototype.exhaustMap=Y.exhaustMap},230:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(326);z.Observable.prototype.expand=Y.expand},2181:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1973);z.Observable.prototype.filter=Y.filter},5803:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5032);z.Observable.prototype.finally=Y._finally,z.Observable.prototype._finally=Y._finally},3928:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8302);z.Observable.prototype.find=Y.find},9193:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5286);z.Observable.prototype.findIndex=Y.findIndex},9733:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9311);z.Observable.prototype.first=Y.first},5755:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6595);z.Observable.prototype.groupBy=Y.groupBy},8744:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5783);z.Observable.prototype.ignoreElements=Y.ignoreElements},1872:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6866);z.Observable.prototype.isEmpty=Y.isEmpty},3368:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1409);z.Observable.prototype.last=Y.last},1448:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5953);z.Observable.prototype.let=Y.letProto,z.Observable.prototype.letBind=Y.letProto},5772:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8137);z.Observable.prototype.map=Y.map},2172:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1234);z.Observable.prototype.mapTo=Y.mapTo},5136:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2876);z.Observable.prototype.materialize=Y.materialize},600:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8821);z.Observable.prototype.max=Y.max},69:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2136);z.Observable.prototype.merge=Y.merge},7939:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9883);z.Observable.prototype.mergeAll=Y.mergeAll},8345:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(621);z.Observable.prototype.mergeMap=Y.mergeMap,z.Observable.prototype.flatMap=Y.mergeMap},1128:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6881);z.Observable.prototype.flatMapTo=Y.mergeMapTo,z.Observable.prototype.mergeMapTo=Y.mergeMapTo},7943:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8589);z.Observable.prototype.mergeScan=Y.mergeScan},7896:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1348);z.Observable.prototype.min=Y.min},8324:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6134);z.Observable.prototype.multicast=Y.multicast},1736:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(386);z.Observable.prototype.observeOn=Y.observeOn},9473:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8394);z.Observable.prototype.onErrorResumeNext=Y.onErrorResumeNext},8418:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(400);z.Observable.prototype.pairwise=Y.pairwise},8180:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1396);z.Observable.prototype.partition=Y.partition},3373:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9782);z.Observable.prototype.pluck=Y.pluck},5313:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7437);z.Observable.prototype.publish=Y.publish},1860:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5990);z.Observable.prototype.publishBehavior=Y.publishBehavior},2941:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4254);z.Observable.prototype.publishLast=Y.publishLast},4376:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(397);z.Observable.prototype.publishReplay=Y.publishReplay},9762:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9023);z.Observable.prototype.race=Y.race},5507:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(345);z.Observable.prototype.reduce=Y.reduce},522:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2085);z.Observable.prototype.repeat=Y.repeat},6278:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3679);z.Observable.prototype.repeatWhen=Y.repeatWhen},7459:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7080);z.Observable.prototype.retry=Y.retry},6269:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9302);z.Observable.prototype.retryWhen=Y.retryWhen},1080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3266);z.Observable.prototype.sample=Y.sample},3634:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(615);z.Observable.prototype.sampleTime=Y.sampleTime},4051:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8305);z.Observable.prototype.scan=Y.scan},5161:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1289);z.Observable.prototype.sequenceEqual=Y.sequenceEqual},5247:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(896);z.Observable.prototype.share=Y.share},6776:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4791);z.Observable.prototype.shareReplay=Y.shareReplay},7337:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6462);z.Observable.prototype.single=Y.single},8:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3458);z.Observable.prototype.skip=Y.skip},1405:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(801);z.Observable.prototype.skipLast=Y.skipLast},5431:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8249);z.Observable.prototype.skipUntil=Y.skipUntil},1986:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9603);z.Observable.prototype.skipWhile=Y.skipWhile},454:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(295);z.Observable.prototype.startWith=Y.startWith},2738:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1112);z.Observable.prototype.subscribeOn=Y.subscribeOn},8201:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(761);z.Observable.prototype.switch=Y._switch,z.Observable.prototype._switch=Y._switch},7024:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3573);z.Observable.prototype.switchMap=Y.switchMap},1434:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2892);z.Observable.prototype.switchMapTo=Y.switchMapTo},492:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7203);z.Observable.prototype.take=Y.take},6166:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7579);z.Observable.prototype.takeLast=Y.takeLast},1730:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1583);z.Observable.prototype.takeUntil=Y.takeUntil},7499:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7694);z.Observable.prototype.takeWhile=Y.takeWhile},1281:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9259);z.Observable.prototype.throttle=Y.throttle},523:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4630);z.Observable.prototype.throttleTime=Y.throttleTime},9049:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3578);z.Observable.prototype.timeInterval=Y.timeInterval},9061:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7945);z.Observable.prototype.timeout=Y.timeout},9922:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3060);z.Observable.prototype.timeoutWith=Y.timeoutWith},2769:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1265);z.Observable.prototype.timestamp=Y.timestamp},1636:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2561);z.Observable.prototype.toArray=Y.toArray},6044:function(){},9773:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9766);z.Observable.prototype.window=Y.window},1798:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8227);z.Observable.prototype.windowCount=Y.windowCount},6916:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1868);z.Observable.prototype.windowTime=Y.windowTime},6694:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(30);z.Observable.prototype.windowToggle=Y.windowToggle},9975:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9687);z.Observable.prototype.windowWhen=Y.windowWhen},6193:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5196);z.Observable.prototype.withLatestFrom=Y.withLatestFrom},7558:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2357);z.Observable.prototype.zip=Y.zipProto},368:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7381);z.Observable.prototype.zipAll=Y.zipAll},5641:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.audit=function Y(S){return z.audit(S)(this)}},4657:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.auditTime=function S(U,L){return void 0===L&&(L=z.asyncScheduler),Y.auditTime(U,L)(this)}},2792:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.buffer=function Y(S){return z.buffer(S)(this)}},1667:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferCount=function Y(S,U){return void 0===U&&(U=null),z.bufferCount(S,U)(this)}},4283:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),S=m(6650);J.bufferTime=function U(L){var P=arguments.length,D=z.asyncScheduler;Y.isScheduler(arguments[arguments.length-1])&&(D=arguments[arguments.length-1],P--);var y=null;P>=2&&(y=arguments[1]);var K=Number.POSITIVE_INFINITY;return P>=3&&(K=arguments[2]),S.bufferTime(L,y,K,D)(this)}},1028:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferToggle=function Y(S,U){return z.bufferToggle(S,U)(this)}},188:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferWhen=function Y(S){return z.bufferWhen(S)(this)}},8747:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._catch=function Y(S){return z.catchError(S)(this)}},572:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.combineAll=function Y(S){return z.combineAll(S)(this)}},648:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718);J.combineLatest=function S(){for(var U=[],L=0;L<arguments.length;L++)U[L]=arguments[L];var P=null;return"function"==typeof U[U.length-1]&&(P=U.pop()),1===U.length&&Y.isArray(U[0])&&(U=U[0].slice()),this.lift.call(z.of.apply(void 0,[this].concat(U)),new Y.CombineLatestOperator(P))}},9075:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.concat=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return this.lift.call(z.concat.apply(void 0,[this].concat(S)))}},6979:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatAll=function Y(){return z.concatAll()(this)}},3268:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatMap=function Y(S){return z.concatMap(S)(this)}},3382:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatMapTo=function Y(S){return z.concatMapTo(S)(this)}},3337:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.count=function Y(S){return z.count(S)(this)}},1066:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.debounce=function Y(S){return z.debounce(S)(this)}},9959:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.debounceTime=function S(U,L){return void 0===L&&(L=z.asyncScheduler),Y.debounceTime(U,L)(this)}},2448:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.defaultIfEmpty=function Y(S){return void 0===S&&(S=null),z.defaultIfEmpty(S)(this)}},5514:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.delay=function S(U,L){return void 0===L&&(L=z.asyncScheduler),Y.delay(U,L)(this)}},7607:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.delayWhen=function Y(S,U){return z.delayWhen(S,U)(this)}},5395:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.dematerialize=function Y(){return z.dematerialize()(this)}},9440:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinct=function Y(S,U){return z.distinct(S,U)(this)}},3943:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinctUntilChanged=function Y(S,U){return z.distinctUntilChanged(S,U)(this)}},9749:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinctUntilKeyChanged=function Y(S,U){return z.distinctUntilKeyChanged(S,U)(this)}},6764:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._do=function Y(S,U,L){return z.tap(S,U,L)(this)}},3833:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.elementAt=function Y(S,U){return z.elementAt.apply(void 0,arguments)(this)}},8648:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.every=function Y(S,U){return z.every(S,U)(this)}},14:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.exhaust=function Y(){return z.exhaust()(this)}},4768:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.exhaustMap=function Y(S){return z.exhaustMap(S)(this)}},326:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.expand=function Y(S,U,L){return void 0===U&&(U=Number.POSITIVE_INFINITY),void 0===L&&(L=void 0),U=(U||0)<1?Number.POSITIVE_INFINITY:U,z.expand(S,U,L)(this)}},1973:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.filter=function Y(S,U){return z.filter(S,U)(this)}},5032:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._finally=function Y(S){return z.finalize(S)(this)}},8302:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.find=function Y(S,U){return z.find(S,U)(this)}},5286:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.findIndex=function Y(S,U){return z.findIndex(S,U)(this)}},9311:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.first=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.first.apply(void 0,S)(this)}},6595:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.groupBy=function Y(S,U,L,P){return z.groupBy(S,U,L,P)(this)}},5783:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.ignoreElements=function Y(){return z.ignoreElements()(this)}},6866:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.isEmpty=function Y(){return z.isEmpty()(this)}},1409:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.last=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.last.apply(void 0,S)(this)}},5953:function(qe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.letProto=function m(z){return z(this)}},8137:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.map=function Y(S,U){return z.map(S,U)(this)}},1234:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mapTo=function Y(S){return z.mapTo(S)(this)}},2876:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.materialize=function Y(){return z.materialize()(this)}},8821:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.max=function Y(S){return z.max(S)(this)}},2136:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.merge=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return this.lift.call(z.merge.apply(void 0,[this].concat(S)))}},9883:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeAll=function Y(S){return void 0===S&&(S=Number.POSITIVE_INFINITY),z.mergeAll(S)(this)}},621:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeMap=function Y(S,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),z.mergeMap(S,U)(this)}},6881:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeMapTo=function Y(S,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),z.mergeMapTo(S,U)(this)}},8589:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeScan=function Y(S,U,L){return void 0===L&&(L=Number.POSITIVE_INFINITY),z.mergeScan(S,U,L)(this)}},1348:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.min=function Y(S){return z.min(S)(this)}},6134:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.multicast=function Y(S,U){return z.multicast(S,U)(this)}},386:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.observeOn=function Y(S,U){return void 0===U&&(U=0),z.observeOn(S,U)(this)}},8394:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.onErrorResumeNext=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.onErrorResumeNext.apply(void 0,S)(this)}},400:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.pairwise=function Y(){return z.pairwise()(this)}},1396:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.partition=function Y(S,U){return z.partition(S,U)(this)}},9782:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.pluck=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.pluck.apply(void 0,S)(this)}},7437:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publish=function Y(S){return z.publish(S)(this)}},5990:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishBehavior=function Y(S){return z.publishBehavior(S)(this)}},4254:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishLast=function Y(){return z.publishLast()(this)}},397:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishReplay=function Y(S,U,L,P){return z.publishReplay(S,U,L,P)(this)}},9023:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.race=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.race.apply(void 0,S)(this)}},345:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.reduce=function Y(S,U){return arguments.length>=2?z.reduce(S,U)(this):z.reduce(S)(this)}},2085:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.repeat=function Y(S){return void 0===S&&(S=-1),z.repeat(S)(this)}},3679:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.repeatWhen=function Y(S){return z.repeatWhen(S)(this)}},7080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.retry=function Y(S){return void 0===S&&(S=-1),z.retry(S)(this)}},9302:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.retryWhen=function Y(S){return z.retryWhen(S)(this)}},3266:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.sample=function Y(S){return z.sample(S)(this)}},615:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.sampleTime=function S(U,L){return void 0===L&&(L=z.asyncScheduler),Y.sampleTime(U,L)(this)}},8305:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.scan=function Y(S,U){return arguments.length>=2?z.scan(S,U)(this):z.scan(S)(this)}},1289:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.sequenceEqual=function Y(S,U){return z.sequenceEqual(S,U)(this)}},896:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.share=function Y(){return z.share()(this)}},4791:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.shareReplay=function Y(S,U,L){return S&&"object"==typeof S?z.shareReplay(S)(this):z.shareReplay(S,U,L)(this)}},6462:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.single=function Y(S){return z.single(S)(this)}},3458:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skip=function Y(S){return z.skip(S)(this)}},801:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipLast=function Y(S){return z.skipLast(S)(this)}},8249:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipUntil=function Y(S){return z.skipUntil(S)(this)}},9603:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipWhile=function Y(S){return z.skipWhile(S)(this)}},295:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.startWith=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.startWith.apply(void 0,S)(this)}},1112:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.subscribeOn=function Y(S,U){return void 0===U&&(U=0),z.subscribeOn(S,U)(this)}},761:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._switch=function Y(){return z.switchAll()(this)}},3573:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.switchMap=function Y(S){return z.switchMap(S)(this)}},2892:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.switchMapTo=function Y(S){return z.switchMapTo(S)(this)}},7203:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.take=function Y(S){return z.take(S)(this)}},7579:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeLast=function Y(S){return z.takeLast(S)(this)}},1583:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeUntil=function Y(S){return z.takeUntil(S)(this)}},7694:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeWhile=function Y(S){return z.takeWhile(S)(this)}},9259:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650),Y=m(5718);J.throttle=function S(U,L){return void 0===L&&(L=Y.defaultThrottleConfig),z.throttle(U,L)(this)}},4630:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),S=m(6650);J.throttleTime=function U(L,P,D){return void 0===P&&(P=z.asyncScheduler),void 0===D&&(D=Y.defaultThrottleConfig),S.throttleTime(L,P,D)(this)}},3578:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeInterval=function S(U){return void 0===U&&(U=z.asyncScheduler),Y.timeInterval(U)(this)}},7945:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeout=function S(U,L){return void 0===L&&(L=z.asyncScheduler),Y.timeout(U,L)(this)}},3060:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeoutWith=function S(U,L,P){return void 0===P&&(P=z.asyncScheduler),Y.timeoutWith(U,L,P)(this)}},1265:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timestamp=function S(U){return void 0===U&&(U=z.asyncScheduler),Y.timestamp(U)(this)}},2561:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.toArray=function Y(){return z.toArray()(this)}},9766:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.window=function Y(S){return z.window(S)(this)}},8227:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowCount=function Y(S,U){return void 0===U&&(U=0),z.windowCount(S,U)(this)}},1868:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),S=m(6650);J.windowTime=function U(L){var P=z.asyncScheduler,D=null,y=Number.POSITIVE_INFINITY;return Y.isScheduler(arguments[3])&&(P=arguments[3]),Y.isScheduler(arguments[2])?P=arguments[2]:Y.isNumeric(arguments[2])&&(y=Number(arguments[2])),Y.isScheduler(arguments[1])?P=arguments[1]:Y.isNumeric(arguments[1])&&(D=Number(arguments[1])),S.windowTime(L,D,y,P)(this)}},30:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowToggle=function Y(S,U){return z.windowToggle(S,U)(this)}},9687:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowWhen=function Y(S){return z.windowWhen(S)(this)}},5196:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.withLatestFrom=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return z.withLatestFrom.apply(void 0,S)(this)}},2357:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.zipProto=function Y(){for(var S=[],U=0;U<arguments.length;U++)S[U]=arguments[U];return this.lift.call(z.zip.apply(void 0,[this].concat(S)))}},7381:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.zipAll=function Y(S){return z.zipAll(S)(this)}},5887:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),function z(Y){for(var S in Y)J.hasOwnProperty(S)||(J[S]=Y[S])}(m(285))},8679:function(qe,J,m){"use strict";m.r(J),m.d(J,{AjaxError:function(){return Y.iM},AjaxResponse:function(){return Y.vD},AjaxTimeoutError:function(){return Y.cw},ajax:function(){return z.h}});var z=m(8059),Y=m(8452)},4822:function(qe,J,m){"use strict";m.r(J),m.d(J,{ArgumentOutOfRangeError:function(){return ce.W},AsyncSubject:function(){return y.c},BehaviorSubject:function(){return P.X},ConnectableObservable:function(){return Y.c},EMPTY:function(){return nt.E},EmptyError:function(){return se.K},GroupedObservable:function(){return S.T},NEVER:function(){return ln},Notification:function(){return x.P},NotificationKind:function(){return x.W},ObjectUnsubscribedError:function(){return te.N},Observable:function(){return z.y},ReplaySubject:function(){return D.t},Scheduler:function(){return I.b},Subject:function(){return L.xQ},Subscriber:function(){return w.L},Subscription:function(){return T.w},TimeoutError:function(){return ve.W},UnsubscriptionError:function(){return oe.B},VirtualAction:function(){return k.h},VirtualTimeScheduler:function(){return k.y},animationFrame:function(){return O.r},animationFrameScheduler:function(){return O.Z},asap:function(){return K.e},asapScheduler:function(){return K.E},async:function(){return F.P},asyncScheduler:function(){return F.z},bindCallback:function(){return Fe},bindNodeCallback:function(){return Xt},combineLatest:function(){return jt.aj},concat:function(){return it.z},config:function(){return tn.v},defer:function(){return vt.P},empty:function(){return nt.c},forkJoin:function(){return Lt.D},from:function(){return It.D},fromEvent:function(){return on.R},fromEventPattern:function(){return An},generate:function(){return Gt},identity:function(){return W.y},iif:function(){return Et},interval:function(){return Ut.F},isObservable:function(){return $.b},merge:function(){return Ht.T},never:function(){return yt},noop:function(){return R.Z},observable:function(){return U.L},of:function(){return mt.of},onErrorResumeNext:function(){return cn},pairs:function(){return $t},partition:function(){return Bt},pipe:function(){return N.z},queue:function(){return M.c},queueScheduler:function(){return M.N},race:function(){return dt.S3},range:function(){return de.w},scheduled:function(){return Dt.x},throwError:function(){return Te._},timer:function(){return ue.H},using:function(){return We},zip:function(){return lt.$R}});var z=m(7451),Y=m(1762),S=m(4002),U=m(3821),L=m(8929),P=m(591),D=m(839),y=m(2185),K=m(9931),F=m(353),M=m(341),O=m(352),k=m(9027),I=m(2221),T=m(4096),w=m(3489),x=m(9312),N=m(4843),R=m(7876),W=m(5379),$=m(4715),ce=m(4231),se=m(4450),te=m(5279),oe=m(7964),ve=m(854),Oe=m(4902),st=m(4850),xe=m(9476),_e=m(6688),ke=m(2866);function Fe(Jt,nn,dn){if(nn){if(!(0,ke.K)(nn))return function(){return Fe(Jt,dn).apply(void 0,arguments).pipe((0,st.U)(function(On){return(0,_e.k)(On)?nn.apply(void 0,(0,Oe.Z)(On)):nn(On)}))};dn=nn}return function(){for(var On=arguments.length,Dn=new Array(On),zn=0;zn<On;zn++)Dn[zn]=arguments[zn];var jn,Zn=this,mn={context:Zn,subject:jn,callbackFunc:Jt,scheduler:dn};return new z.y(function(lr){if(dn){var Kt={args:Dn,subscriber:lr,params:mn};return dn.schedule(ct,0,Kt)}if(!jn){jn=new y.c;try{Jt.apply(Zn,[].concat(Dn,[function(){for(var Ue=arguments.length,Ee=new Array(Ue),He=0;He<Ue;He++)Ee[He]=arguments[He];jn.next(Ee.length<=1?Ee[0]:Ee),jn.complete()}]))}catch(tt){(0,xe._)(jn)?jn.error(tt):console.warn(tt)}}return jn.subscribe(lr)})}}function ct(Jt){var nn=this,On=Jt.args,Dn=Jt.subscriber,zn=Jt.params,Zn=zn.callbackFunc,jn=zn.context,mn=zn.scheduler,lr=zn.subject;if(!lr){lr=zn.subject=new y.c;try{Zn.apply(jn,[].concat((0,Oe.Z)(On),[function(){for(var tt=arguments.length,Ue=new Array(tt),Ee=0;Ee<tt;Ee++)Ue[Ee]=arguments[Ee];var He=Ue.length<=1?Ue[0]:Ue;nn.add(mn.schedule(Mt,0,{value:He,subject:lr}))}]))}catch(Kt){lr.error(Kt)}}this.add(lr.subscribe(Dn))}function Mt(Jt){var nn=Jt.value,dn=Jt.subject;dn.next(nn),dn.complete()}function Xt(Jt,nn,dn){if(nn){if(!(0,ke.K)(nn))return function(){return Xt(Jt,dn).apply(void 0,arguments).pipe((0,st.U)(function(On){return(0,_e.k)(On)?nn.apply(void 0,(0,Oe.Z)(On)):nn(On)}))};dn=nn}return function(){for(var On=arguments.length,Dn=new Array(On),zn=0;zn<On;zn++)Dn[zn]=arguments[zn];var Zn={subject:void 0,args:Dn,callbackFunc:Jt,scheduler:dn,context:this};return new z.y(function(jn){var mn=Zn.context,lr=Zn.subject;if(dn)return dn.schedule(en,0,{params:Zn,subscriber:jn,context:mn});if(!lr){lr=Zn.subject=new y.c;try{Jt.apply(mn,[].concat(Dn,[function(){for(var tt=arguments.length,Ue=new Array(tt),Ee=0;Ee<tt;Ee++)Ue[Ee]=arguments[Ee];var He=Ue.shift();He?lr.error(He):(lr.next(Ue.length<=1?Ue[0]:Ue),lr.complete())}]))}catch(Kt){(0,xe._)(lr)?lr.error(Kt):console.warn(Kt)}}return lr.subscribe(jn)})}}function en(Jt){var nn=this,dn=Jt.params,On=Jt.subscriber,Dn=Jt.context,zn=dn.callbackFunc,Zn=dn.args,jn=dn.scheduler,mn=dn.subject;if(!mn){mn=dn.subject=new y.c;try{zn.apply(Dn,[].concat((0,Oe.Z)(Zn),[function(){for(var Kt=arguments.length,tt=new Array(Kt),Ue=0;Ue<Kt;Ue++)tt[Ue]=arguments[Ue];var Ee=tt.shift();if(Ee)nn.add(jn.schedule(Xe,0,{err:Ee,subject:mn}));else{var He=tt.length<=1?tt[0]:tt;nn.add(jn.schedule(qt,0,{value:He,subject:mn}))}}]))}catch(Yn){this.add(jn.schedule(Xe,0,{err:Yn,subject:mn}))}}this.add(mn.subscribe(On))}function qt(Jt){var nn=Jt.value,dn=Jt.subject;dn.next(nn),dn.complete()}function Xe(Jt){var nn=Jt.err;Jt.subject.error(nn)}var jt=m(6053),it=m(1961),vt=m(8514),nt=m(8896),Lt=m(567),It=m(3527),on=m(3753),_n=m(7043);function An(Jt,nn,dn){return dn?An(Jt,nn).pipe((0,st.U)(function(On){return(0,_e.k)(On)?dn.apply(void 0,(0,Oe.Z)(On)):dn(On)})):new z.y(function(On){var zn,Dn=function(){for(var jn=arguments.length,mn=new Array(jn),lr=0;lr<jn;lr++)mn[lr]=arguments[lr];return On.next(1===mn.length?mn[0]:mn)};try{zn=Jt(Dn)}catch(Zn){return void On.error(Zn)}if((0,_n.m)(nn))return function(){return nn(Dn,zn)}})}function Gt(Jt,nn,dn,On,Dn){var zn,Zn;if(1==arguments.length){var jn=Jt;Zn=jn.initialState,nn=jn.condition,dn=jn.iterate,zn=jn.resultSelector||W.y,Dn=jn.scheduler}else void 0===On||(0,ke.K)(On)?(Zn=Jt,zn=W.y,Dn=On):(Zn=Jt,zn=On);return new z.y(function(mn){var lr=Zn;if(Dn)return Dn.schedule(Zt,0,{subscriber:mn,iterate:dn,condition:nn,resultSelector:zn,state:lr});for(;;){if(nn){var Yn=void 0;try{Yn=nn(lr)}catch(tt){return void mn.error(tt)}if(!Yn){mn.complete();break}}var Kt=void 0;try{Kt=zn(lr)}catch(tt){return void mn.error(tt)}if(mn.next(Kt),mn.closed)break;try{lr=dn(lr)}catch(tt){return void mn.error(tt)}}})}function Zt(Jt){var nn=Jt.subscriber,dn=Jt.condition;if(!nn.closed){if(Jt.needIterate)try{Jt.state=Jt.iterate(Jt.state)}catch(zn){return void nn.error(zn)}else Jt.needIterate=!0;if(dn){var On;try{On=dn(Jt.state)}catch(zn){return void nn.error(zn)}if(!On)return void nn.complete();if(nn.closed)return}var Dn;try{Dn=Jt.resultSelector(Jt.state)}catch(zn){return void nn.error(zn)}if(!nn.closed&&(nn.next(Dn),!nn.closed))return this.schedule(Jt)}}function Et(Jt){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.E,dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt.E;return(0,vt.P)(function(){return Jt()?nn:dn})}var Ut=m(1715),Ht=m(6787),ln=new z.y(R.Z);function yt(){return ln}var mt=m(1086);function cn(){for(var Jt=arguments.length,nn=new Array(Jt),dn=0;dn<Jt;dn++)nn[dn]=arguments[dn];if(0===nn.length)return nt.E;var On=nn[0],Dn=nn.slice(1);return 1===nn.length&&(0,_e.k)(On)?cn.apply(void 0,(0,Oe.Z)(On)):new z.y(function(zn){var Zn=function(){return zn.add(cn.apply(void 0,(0,Oe.Z)(Dn)).subscribe(zn))};return(0,It.D)(On).subscribe({next:function(mn){zn.next(mn)},error:Zn,complete:Zn})})}function $t(Jt,nn){return nn?new z.y(function(dn){var On=Object.keys(Jt),Dn=new T.w;return Dn.add(nn.schedule(j,0,{keys:On,index:0,subscriber:dn,subscription:Dn,obj:Jt})),Dn}):new z.y(function(dn){for(var On=Object.keys(Jt),Dn=0;Dn<On.length&&!dn.closed;Dn++){var zn=On[Dn];Jt.hasOwnProperty(zn)&&dn.next([zn,Jt[zn]])}dn.complete()})}function j(Jt){var nn=Jt.keys,dn=Jt.index,On=Jt.subscriber,Dn=Jt.subscription,zn=Jt.obj;if(!On.closed)if(dn<nn.length){var Zn=nn[dn];On.next([Zn,zn[Zn]]),Dn.add(this.schedule({keys:nn,index:dn+1,subscriber:On,subscription:Dn,obj:zn}))}else On.complete()}var V=m(5884),Jn=m(3071),wn=m(9664);function Bt(Jt,nn,dn){return[(0,wn.h)(nn,dn)(new z.y((0,Jn.s)(Jt))),(0,wn.h)((0,V.f)(nn,dn))(new z.y((0,Jn.s)(Jt)))]}var dt=m(1946),de=m(3103),Te=m(1737),ue=m(8723);function We(Jt,nn){return new z.y(function(dn){var On,Dn;try{On=Jt()}catch(jn){return void dn.error(jn)}try{Dn=nn(On)}catch(jn){return void dn.error(jn)}var Zn=(Dn?(0,It.D)(Dn):nt.E).subscribe(dn);return function(){Zn.unsubscribe(),On&&On.unsubscribe()}})}var lt=m(1746),Dt=m(6266),tn=m(2830)},5718:function(qe,J,m){"use strict";m.r(J),m.d(J,{AjaxError:function(){return x.iM},AjaxObservable:function(){return x.i6},AjaxResponse:function(){return x.vD},AjaxSubscriber:function(){return x.de},AjaxTimeoutError:function(){return x.cw},AnonymousSubject:function(){return L.ug},ArgumentOutOfRangeError:function(){return xe.W},CombineLatestOperator:function(){return R.Ms},EmptyError:function(){return _e.K},GroupedObservable:function(){return te.T},Immediate:function(){return ke.H},InnerSubscriber:function(){return Y.d},ObjectUnsubscribedError:function(){return Fe.N},OuterSubscriber:function(){return S.L},Scheduler:function(){return U.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return $.e},Subscriber:function(){return D.L},TimeInterval:function(){return se.R},TimeoutError:function(){return ct.W},Timestamp:function(){return ce.E},UnsubscriptionError:function(){return Mt.B},WebSocketSubject:function(){return N.p},ajax:function(){return T.h},ajaxDelete:function(){return x._c},ajaxGet:function(){return x.Ck},ajaxGetJSON:function(){return x.uX},ajaxPatch:function(){return x.YB},ajaxPost:function(){return x.tB},ajaxPut:function(){return x.Vk},applyMixins:function(){return Nt.e},config:function(){return z.v},defaultThrottleConfig:function(){return oe.d},dispatch:function(){return W.W},errorObject:function(){return Xt},fromIterable:function(){return I},fromPromise:function(){return M},hostReportError:function(){return en.z},identity:function(){return qt.y},isArray:function(){return Xe.k},isArrayLike:function(){return jt.z},isDate:function(){return it.J},isFunction:function(){return vt.m},isIterable:function(){return nt.T},isNumeric:function(){return Lt.k},isObject:function(){return It.K},isObservable:function(){return on.c},isPromise:function(){return _n.t},isScheduler:function(){return An.K},iterator:function(){return Oe.hZ},noop:function(){return Gt.Z},not:function(){return Zt.f},observable:function(){return st.L},pipe:function(){return Et.z},root:function(){return Ut.J},rxSubscriber:function(){return ve.b},subscribeTo:function(){return Ht.s},subscribeToArray:function(){return ln.V},subscribeToIterable:function(){return O.u},subscribeToObservable:function(){return yt.h},subscribeToPromise:function(){return K.A},subscribeToResult:function(){return mt.D},toSubscriber:function(){return cn.Y},tryCatch:function(){return V},webSocket:function(){return w.j}});var z=m(2830),Y=m(1869),S=m(826),U=m(2221),L=m(8929),P=m(5283),D=m(3489),y=m(7451),K=m(3445),F=m(8687);function M(Jn,wn){return wn?(0,F.c)(Jn,wn):new y.y((0,K.A)(Jn))}var O=m(3720),k=m(6389);function I(Jn,wn){if(!Jn)throw new Error("Iterable cannot be null");return wn?(0,k.Q)(Jn,wn):new y.y((0,O.u)(Jn))}var $t,T=m(8059),w=m(7623),x=m(8452),N=m(2741),R=m(6053),W=m(3103),$=m(3837),ce=m(7781),se=m(3485),te=m(4002),oe=m(2444),ve=m(7668),Oe=m(5430),st=m(3821),xe=m(4231),_e=m(4450),ke=m(1450),Fe=m(5279),ct=m(854),Mt=m(7964),Nt=m(5128),Xt={e:{}},en=m(2782),qt=m(5379),Xe=m(6688),jt=m(8515),it=m(2697),vt=m(7043),nt=m(2198),Lt=m(4241),It=m(7830),on=m(8845),_n=m(8955),An=m(2866),Gt=m(7876),Zt=m(5884),Et=m(4843),Ut=m(797),Ht=m(3071),ln=m(3650),yt=m(1810),mt=m(9054),cn=m(5221);function j(){Xt.e=void 0;try{return $t.apply(this,arguments)}catch(Jn){return Xt.e=Jn,Xt}finally{$t=void 0}}function V(Jn){return $t=Jn,j}},2185:function(qe,J,m){"use strict";m.d(J,{c:function(){return K}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(4096),K=function(F){(0,L.Z)(O,F);var M=(0,P.Z)(O);function O(){var k;return(0,z.Z)(this,O),(k=M.apply(this,arguments)).value=null,k.hasNext=!1,k.hasCompleted=!1,k}return(0,Y.Z)(O,[{key:"_subscribe",value:function(I){return this.hasError?(I.error(this.thrownError),y.w.EMPTY):this.hasCompleted&&this.hasNext?(I.next(this.value),I.complete(),y.w.EMPTY):(0,S.Z)((0,U.Z)(O.prototype),"_subscribe",this).call(this,I)}},{key:"next",value:function(I){this.hasCompleted||(this.value=I,this.hasNext=!0)}},{key:"error",value:function(I){this.hasCompleted||(0,S.Z)((0,U.Z)(O.prototype),"error",this).call(this,I)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,S.Z)((0,U.Z)(O.prototype),"next",this).call(this,this.value),(0,S.Z)((0,U.Z)(O.prototype),"complete",this).call(this)}}]),O}(D.xQ)},591:function(qe,J,m){"use strict";m.d(J,{X:function(){return K}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(5279),K=function(F){(0,L.Z)(O,F);var M=(0,P.Z)(O);function O(k){var I;return(0,z.Z)(this,O),(I=M.call(this))._value=k,I}return(0,Y.Z)(O,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(I){var T=(0,S.Z)((0,U.Z)(O.prototype),"_subscribe",this).call(this,I);return T&&!T.closed&&I.next(this._value),T}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new y.N;return this._value}},{key:"next",value:function(I){(0,S.Z)((0,U.Z)(O.prototype),"next",this).call(this,this._value=I)}}]),O}(D.xQ)},1869:function(qe,J,m){"use strict";m.d(J,{d:function(){return P}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),P=function(D){(0,S.Z)(K,D);var y=(0,U.Z)(K);function K(F,M,O){var k;return(0,z.Z)(this,K),(k=y.call(this)).parent=F,k.outerValue=M,k.outerIndex=O,k.index=0,k}return(0,Y.Z)(K,[{key:"_next",value:function(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}},{key:"_error",value:function(M){this.parent.notifyError(M,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),K}(m(3489).L)},9312:function(qe,J,m){"use strict";m.d(J,{P:function(){return D},W:function(){return P}});var P,y,z=m(5671),Y=m(3144),S=m(8896),U=m(1086),L=m(1737);(y=P||(P={})).NEXT="N",y.ERROR="E",y.COMPLETE="C";var D=function(){function y(K,F,M){(0,z.Z)(this,y),this.kind=K,this.value=F,this.error=M,this.hasValue="N"===K}return(0,Y.Z)(y,[{key:"observe",value:function(F){switch(this.kind){case"N":return F.next&&F.next(this.value);case"E":return F.error&&F.error(this.error);case"C":return F.complete&&F.complete()}}},{key:"do",value:function(F,M,O){switch(this.kind){case"N":return F&&F(this.value);case"E":return M&&M(this.error);case"C":return O&&O()}}},{key:"accept",value:function(F,M,O){return F&&"function"==typeof F.next?this.observe(F):this.do(F,M,O)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,U.of)(this.value);case"E":return(0,L._)(this.error);case"C":return(0,S.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(F){return void 0!==F?new y("N",F):y.undefinedValueNotification}},{key:"createError",value:function(F){return new y("E",void 0,F)}},{key:"createComplete",value:function(){return y.completeNotification}}]),y}();D.completeNotification=new D("C"),D.undefinedValueNotification=new D("N",void 0)},7451:function(qe,J,m){"use strict";m.d(J,{y:function(){return y}});var z=m(5671),Y=m(3144),S=m(9476),U=m(5221),L=m(3821),P=m(4843),D=m(2830),y=function(){function F(M){(0,z.Z)(this,F),this._isScalar=!1,M&&(this._subscribe=M)}return(0,Y.Z)(F,[{key:"lift",value:function(O){var k=new F;return k.source=this,k.operator=O,k}},{key:"subscribe",value:function(O,k,I){var T=this.operator,w=(0,U.Y)(O,k,I);if(T?w.add(T.call(w,this.source)):w.add(this.source||D.v.useDeprecatedSynchronousErrorHandling&&!w.syncErrorThrowable?this._subscribe(w):this._trySubscribe(w)),D.v.useDeprecatedSynchronousErrorHandling&&w.syncErrorThrowable&&(w.syncErrorThrowable=!1,w.syncErrorThrown))throw w.syncErrorValue;return w}},{key:"_trySubscribe",value:function(O){try{return this._subscribe(O)}catch(k){D.v.useDeprecatedSynchronousErrorHandling&&(O.syncErrorThrown=!0,O.syncErrorValue=k),(0,S._)(O)?O.error(k):console.warn(k)}}},{key:"forEach",value:function(O,k){var I=this;return new(k=K(k))(function(T,w){var x;x=I.subscribe(function(N){try{O(N)}catch(R){w(R),x&&x.unsubscribe()}},w,T)})}},{key:"_subscribe",value:function(O){var k=this.source;return k&&k.subscribe(O)}},{key:L.L,value:function(){return this}},{key:"pipe",value:function(){for(var O=arguments.length,k=new Array(O),I=0;I<O;I++)k[I]=arguments[I];return 0===k.length?this:(0,P.U)(k)(this)}},{key:"toPromise",value:function(O){var k=this;return new(O=K(O))(function(I,T){var w;k.subscribe(function(x){return w=x},function(x){return T(x)},function(){return I(w)})})}}]),F}();function K(F){if(F||(F=D.v.Promise||Promise),!F)throw new Error("no Promise impl found");return F}y.create=function(F){return new y(F)}},3292:function(qe,J,m){"use strict";m.d(J,{c:function(){return S}});var z=m(2830),Y=m(2782),S={closed:!0,next:function(L){},error:function(L){if(z.v.useDeprecatedSynchronousErrorHandling)throw L;(0,Y.z)(L)},complete:function(){}}},826:function(qe,J,m){"use strict";m.d(J,{L:function(){return P}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),P=function(D){(0,S.Z)(K,D);var y=(0,U.Z)(K);function K(){return(0,z.Z)(this,K),y.apply(this,arguments)}return(0,Y.Z)(K,[{key:"notifyNext",value:function(M,O,k,I,T){this.destination.next(O)}},{key:"notifyError",value:function(M,O){this.destination.error(M)}},{key:"notifyComplete",value:function(M){this.destination.complete()}}]),K}(m(3489).L)},839:function(qe,J,m){"use strict";m.d(J,{t:function(){return k}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(341),K=m(4096),F=m(7770),M=m(5279),O=m(5283),k=function(T){(0,L.Z)(x,T);var w=(0,P.Z)(x);function x(){var N,R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,$=arguments.length>2?arguments[2]:void 0;return(0,z.Z)(this,x),(N=w.call(this)).scheduler=$,N._events=[],N._infiniteTimeWindow=!1,N._bufferSize=R<1?1:R,N._windowTime=W<1?1:W,W===Number.POSITIVE_INFINITY?(N._infiniteTimeWindow=!0,N.next=N.nextInfiniteTimeWindow):N.next=N.nextTimeWindow,N}return(0,Y.Z)(x,[{key:"nextInfiniteTimeWindow",value:function(R){if(!this.isStopped){var W=this._events;W.push(R),W.length>this._bufferSize&&W.shift()}(0,S.Z)((0,U.Z)(x.prototype),"next",this).call(this,R)}},{key:"nextTimeWindow",value:function(R){this.isStopped||(this._events.push(new I(this._getNow(),R)),this._trimBufferThenGetEvents()),(0,S.Z)((0,U.Z)(x.prototype),"next",this).call(this,R)}},{key:"_subscribe",value:function(R){var te,W=this._infiniteTimeWindow,$=W?this._events:this._trimBufferThenGetEvents(),ce=this.scheduler,se=$.length;if(this.closed)throw new M.N;if(this.isStopped||this.hasError?te=K.w.EMPTY:(this.observers.push(R),te=new O.W(this,R)),ce&&R.add(R=new F.ht(R,ce)),W)for(var oe=0;oe<se&&!R.closed;oe++)R.next($[oe]);else for(var ve=0;ve<se&&!R.closed;ve++)R.next($[ve].value);return this.hasError?R.error(this.thrownError):this.isStopped&&R.complete(),te}},{key:"_getNow",value:function(){return(this.scheduler||y.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var R=this._getNow(),W=this._bufferSize,$=this._windowTime,ce=this._events,se=ce.length,te=0;te<se&&!(R-ce[te].time<$);)te++;return se>W&&(te=Math.max(te,se-W)),te>0&&ce.splice(0,te),ce}}]),x}(D.xQ),I=(0,Y.Z)(function T(w,x){(0,z.Z)(this,T),this.time=w,this.value=x})},2221:function(qe,J,m){"use strict";m.d(J,{b:function(){return S}});var z=m(5671),Y=m(3144),S=function(){function U(L){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.now;(0,z.Z)(this,U),this.SchedulerAction=L,this.now=P}return(0,Y.Z)(U,[{key:"schedule",value:function(P){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,y=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(y,D)}}]),U}();S.now=function(){return Date.now()}},8929:function(qe,J,m){"use strict";m.d(J,{Yc:function(){return k},ug:function(){return T},xQ:function(){return I}});var z=m(3237),Y=m(1120),S=m(3144),U=m(5671),L=m(136),P=m(9388),D=m(7451),y=m(3489),K=m(4096),F=m(5279),M=m(5283),O=m(7668),k=function(w){(0,L.Z)(N,w);var x=(0,P.Z)(N);function N(R){var W;return(0,U.Z)(this,N),(W=x.call(this,R)).destination=R,W}return(0,S.Z)(N)}(y.L),I=function(w){(0,L.Z)(N,w);var x=(0,P.Z)(N);function N(){var R;return(0,U.Z)(this,N),(R=x.call(this)).observers=[],R.closed=!1,R.isStopped=!1,R.hasError=!1,R.thrownError=null,R}return(0,S.Z)(N,[{key:O.b,value:function(){return new k(this)}},{key:"lift",value:function(W){var $=new T(this,this);return $.operator=W,$}},{key:"next",value:function(W){if(this.closed)throw new F.N;if(!this.isStopped)for(var $=this.observers,ce=$.length,se=$.slice(),te=0;te<ce;te++)se[te].next(W)}},{key:"error",value:function(W){if(this.closed)throw new F.N;this.hasError=!0,this.thrownError=W,this.isStopped=!0;for(var $=this.observers,ce=$.length,se=$.slice(),te=0;te<ce;te++)se[te].error(W);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new F.N;this.isStopped=!0;for(var W=this.observers,$=W.length,ce=W.slice(),se=0;se<$;se++)ce[se].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(W){if(this.closed)throw new F.N;return(0,z.Z)((0,Y.Z)(N.prototype),"_trySubscribe",this).call(this,W)}},{key:"_subscribe",value:function(W){if(this.closed)throw new F.N;return this.hasError?(W.error(this.thrownError),K.w.EMPTY):this.isStopped?(W.complete(),K.w.EMPTY):(this.observers.push(W),new M.W(this,W))}},{key:"asObservable",value:function(){var W=new D.y;return W.source=this,W}}]),N}(D.y);I.create=function(w,x){return new T(w,x)};var T=function(w){(0,L.Z)(N,w);var x=(0,P.Z)(N);function N(R,W){var $;return(0,U.Z)(this,N),($=x.call(this)).destination=R,$.source=W,$}return(0,S.Z)(N,[{key:"next",value:function(W){var $=this.destination;$&&$.next&&$.next(W)}},{key:"error",value:function(W){var $=this.destination;$&&$.error&&this.destination.error(W)}},{key:"complete",value:function(){var W=this.destination;W&&W.complete&&this.destination.complete()}},{key:"_subscribe",value:function(W){return this.source?this.source.subscribe(W):K.w.EMPTY}}]),N}(I)},5283:function(qe,J,m){"use strict";m.d(J,{W:function(){return P}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),P=function(D){(0,S.Z)(K,D);var y=(0,U.Z)(K);function K(F,M){var O;return(0,z.Z)(this,K),(O=y.call(this)).subject=F,O.subscriber=M,O.closed=!1,O}return(0,Y.Z)(K,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var M=this.subject,O=M.observers;if(this.subject=null,O&&0!==O.length&&!M.isStopped&&!M.closed){var k=O.indexOf(this.subscriber);-1!==k&&O.splice(k,1)}}}}]),K}(m(4096).w)},3489:function(qe,J,m){"use strict";m.d(J,{L:function(){return I}});var z=m(5671),Y=m(3144),S=m(7326),U=m(3237),L=m(1120),P=m(136),D=m(9388),y=m(7043),K=m(3292),F=m(4096),M=m(7668),O=m(2830),k=m(2782),I=function(w){(0,P.Z)(N,w);var x=(0,D.Z)(N);function N(R,W,$){var ce;switch((0,z.Z)(this,N),(ce=x.call(this)).syncErrorValue=null,ce.syncErrorThrown=!1,ce.syncErrorThrowable=!1,ce.isStopped=!1,arguments.length){case 0:ce.destination=K.c;break;case 1:if(!R){ce.destination=K.c;break}if("object"==typeof R){R instanceof N?(ce.syncErrorThrowable=R.syncErrorThrowable,ce.destination=R,R.add((0,S.Z)(ce))):(ce.syncErrorThrowable=!0,ce.destination=new T((0,S.Z)(ce),R));break}default:ce.syncErrorThrowable=!0,ce.destination=new T((0,S.Z)(ce),R,W,$)}return ce}return(0,Y.Z)(N,[{key:M.b,value:function(){return this}},{key:"next",value:function(W){this.isStopped||this._next(W)}},{key:"error",value:function(W){this.isStopped||(this.isStopped=!0,this._error(W))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,U.Z)((0,L.Z)(N.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(W){this.destination.next(W)}},{key:"_error",value:function(W){this.destination.error(W),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var W=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=W,this}}],[{key:"create",value:function(W,$,ce){var se=new N(W,$,ce);return se.syncErrorThrowable=!1,se}}]),N}(F.w),T=function(w){(0,P.Z)(N,w);var x=(0,D.Z)(N);function N(R,W,$,ce){var se;(0,z.Z)(this,N),(se=x.call(this))._parentSubscriber=R;var te,oe=(0,S.Z)(se);return(0,y.m)(W)?te=W:W&&(te=W.next,$=W.error,ce=W.complete,W!==K.c&&(oe=Object.create(W),(0,y.m)(oe.unsubscribe)&&se.add(oe.unsubscribe.bind(oe)),oe.unsubscribe=se.unsubscribe.bind((0,S.Z)(se)))),se._context=oe,se._next=te,se._error=$,se._complete=ce,se}return(0,Y.Z)(N,[{key:"next",value:function(W){if(!this.isStopped&&this._next){var $=this._parentSubscriber;O.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,W)&&this.unsubscribe():this.__tryOrUnsub(this._next,W)}}},{key:"error",value:function(W){if(!this.isStopped){var $=this._parentSubscriber,ce=O.v.useDeprecatedSynchronousErrorHandling;if(this._error)ce&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,W),this.unsubscribe()):(this.__tryOrUnsub(this._error,W),this.unsubscribe());else if($.syncErrorThrowable)ce?($.syncErrorValue=W,$.syncErrorThrown=!0):(0,k.z)(W),this.unsubscribe();else{if(this.unsubscribe(),ce)throw W;(0,k.z)(W)}}}},{key:"complete",value:function(){var W=this;if(!this.isStopped){var $=this._parentSubscriber;if(this._complete){var ce=function(){return W._complete.call(W._context)};O.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,ce),this.unsubscribe()):(this.__tryOrUnsub(ce),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(W,$){try{W.call(this._context,$)}catch(ce){if(this.unsubscribe(),O.v.useDeprecatedSynchronousErrorHandling)throw ce;(0,k.z)(ce)}}},{key:"__tryOrSetError",value:function(W,$,ce){if(!O.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,ce)}catch(se){return O.v.useDeprecatedSynchronousErrorHandling?(W.syncErrorValue=se,W.syncErrorThrown=!0,!0):((0,k.z)(se),!0)}return!1}},{key:"_unsubscribe",value:function(){var W=this._parentSubscriber;this._context=null,this._parentSubscriber=null,W.unsubscribe()}}]),N}(I)},4096:function(qe,J,m){"use strict";m.d(J,{w:function(){return D}});var K,z=m(5671),Y=m(3144),S=m(6688),U=m(7830),L=m(7043),P=m(7964),D=function(){function K(F){(0,z.Z)(this,K),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,F&&(this._ctorUnsubscribe=!0,this._unsubscribe=F)}return(0,Y.Z)(K,[{key:"unsubscribe",value:function(){var M;if(!this.closed){var O=this._parentOrParents,k=this._ctorUnsubscribe,I=this._unsubscribe,T=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,O instanceof K)O.remove(this);else if(null!==O)for(var w=0;w<O.length;++w){O[w].remove(this)}if((0,L.m)(I)){k&&(this._unsubscribe=void 0);try{I.call(this)}catch($){M=$ instanceof P.B?y($.errors):[$]}}if((0,S.k)(T))for(var N=-1,R=T.length;++N<R;){var W=T[N];if((0,U.K)(W))try{W.unsubscribe()}catch($){M=M||[],$ instanceof P.B?M=M.concat(y($.errors)):M.push($)}}if(M)throw new P.B(M)}}},{key:"add",value:function(M){var O=M;if(!M)return K.EMPTY;switch(typeof M){case"function":O=new K(M);case"object":if(O===this||O.closed||"function"!=typeof O.unsubscribe)return O;if(this.closed)return O.unsubscribe(),O;if(!(O instanceof K)){var k=O;(O=new K)._subscriptions=[k]}break;default:throw new Error("unrecognized teardown "+M+" added to Subscription.")}var T=O._parentOrParents;if(null===T)O._parentOrParents=this;else if(T instanceof K){if(T===this)return O;O._parentOrParents=[T,this]}else{if(-1!==T.indexOf(this))return O;T.push(this)}var w=this._subscriptions;return null===w?this._subscriptions=[O]:w.push(O),O}},{key:"remove",value:function(M){var O=this._subscriptions;if(O){var k=O.indexOf(M);-1!==k&&O.splice(k,1)}}}]),K}();function y(K){return K.reduce(function(F,M){return F.concat(M instanceof P.B?M.errors:M)},[])}D.EMPTY=((K=new D).closed=!0,K)},2830:function(qe,J,m){"use strict";m.d(J,{v:function(){return Y}});var z=!1,Y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(S){if(S){var U=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+U.stack)}else z&&console.log("RxJS: Back to a better error behavior. Thank you. <3");z=S},get useDeprecatedSynchronousErrorHandling(){return z}}},1177:function(qe,J,m){"use strict";m.d(J,{Ds:function(){return F},IY:function(){return y},ft:function(){return O}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(3489),P=m(7451),D=m(3071),y=function(k){(0,S.Z)(T,k);var I=(0,U.Z)(T);function T(w){var x;return(0,z.Z)(this,T),(x=I.call(this)).parent=w,x}return(0,Y.Z)(T,[{key:"_next",value:function(x){this.parent.notifyNext(x)}},{key:"_error",value:function(x){this.parent.notifyError(x),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),T}(L.L),F=function(k){(0,S.Z)(T,k);var I=(0,U.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T,[{key:"notifyNext",value:function(x){this.destination.next(x)}},{key:"notifyError",value:function(x){this.destination.error(x)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),T}(L.L);function O(k,I){if(!I.closed){if(k instanceof P.y)return k.subscribe(I);var T;try{T=(0,D.s)(k)(I)}catch(w){I.error(w)}return T}}},1762:function(qe,J,m){"use strict";m.d(J,{N:function(){return k},c:function(){return O}});var x,z=m(3237),Y=m(1120),S=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(8929),y=m(7451),K=m(3489),F=m(4096),M=m(4327),O=function(x){(0,L.Z)(R,x);var N=(0,P.Z)(R);function R(W,$){var ce;return(0,S.Z)(this,R),(ce=N.call(this)).source=W,ce.subjectFactory=$,ce._refCount=0,ce._isComplete=!1,ce}return(0,U.Z)(R,[{key:"_subscribe",value:function($){return this.getSubject().subscribe($)}},{key:"getSubject",value:function(){var $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var $=this._connection;return $||(this._isComplete=!1,($=this._connection=new F.w).add(this.source.subscribe(new I(this.getSubject(),this))),$.closed&&(this._connection=null,$=F.w.EMPTY)),$}},{key:"refCount",value:function(){return(0,M.x)()(this)}}]),R}(y.y),k={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(x=O.prototype)._subscribe},_isComplete:{value:x._isComplete,writable:!0},getSubject:{value:x.getSubject},connect:{value:x.connect},refCount:{value:x.refCount}},I=function(x){(0,L.Z)(R,x);var N=(0,P.Z)(R);function R(W,$){var ce;return(0,S.Z)(this,R),(ce=N.call(this,W)).connectable=$,ce}return(0,U.Z)(R,[{key:"_error",value:function($){this._unsubscribe(),(0,z.Z)((0,Y.Z)(R.prototype),"_error",this).call(this,$)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,z.Z)((0,Y.Z)(R.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var $=this.connectable;if($){this.connectable=null;var ce=$._connection;$._refCount=0,$._subject=null,$._connection=null,ce&&ce.unsubscribe()}}}]),R}(D.Yc);K.L},3837:function(qe,J,m){"use strict";m.d(J,{e:function(){return y}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),L=m(7451),P=m(9931),D=m(4241),y=function(K){(0,S.Z)(M,K);var F=(0,U.Z)(M);function M(O){var k,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,z.Z)(this,M),(k=F.call(this)).source=O,k.delayTime=I,k.scheduler=T,(!(0,D.k)(I)||I<0)&&(k.delayTime=0),(!T||"function"!=typeof T.schedule)&&(k.scheduler=P.e),k}return(0,Y.Z)(M,[{key:"_subscribe",value:function(k){var I=this.delayTime,T=this.source;return this.scheduler.schedule(M.dispatch,I,{source:T,subscriber:k})}}],[{key:"create",value:function(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new M(k,I,T)}},{key:"dispatch",value:function(k){var I=k.source,T=k.subscriber;return this.add(I.subscribe(T))}}]),M}(L.y)},6053:function(qe,J,m){"use strict";m.d(J,{Ms:function(){return O},aj:function(){return M}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(2866),P=m(6688),D=m(826),y=m(9054),K=m(3009),F={};function M(){for(var I=arguments.length,T=new Array(I),w=0;w<I;w++)T[w]=arguments[w];var x=void 0,N=void 0;return(0,L.K)(T[T.length-1])&&(N=T.pop()),"function"==typeof T[T.length-1]&&(x=T.pop()),1===T.length&&(0,P.k)(T[0])&&(T=T[0]),(0,K.n)(T,N).lift(new O(x))}var O=function(){function I(T){(0,S.Z)(this,I),this.resultSelector=T}return(0,U.Z)(I,[{key:"call",value:function(w,x){return x.subscribe(new k(w,this.resultSelector))}}]),I}(),k=function(I){(0,z.Z)(w,I);var T=(0,Y.Z)(w);function w(x,N){var R;return(0,S.Z)(this,w),(R=T.call(this,x)).resultSelector=N,R.active=0,R.values=[],R.observables=[],R}return(0,U.Z)(w,[{key:"_next",value:function(N){this.values.push(F),this.observables.push(N)}},{key:"_complete",value:function(){var N=this.observables,R=N.length;if(0===R)this.destination.complete();else{this.active=R,this.toRespond=R;for(var W=0;W<R;W++){var $=N[W];this.add((0,y.D)(this,$,void 0,W))}}}},{key:"notifyComplete",value:function(N){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(N,R,W){var $=this.values,ce=$[W],se=this.toRespond?ce===F?--this.toRespond:this.toRespond:0;$[W]=R,0===se&&(this.resultSelector?this._tryResultSelector($):this.destination.next($.slice()))}},{key:"_tryResultSelector",value:function(N){var R;try{R=this.resultSelector.apply(this,N)}catch(W){return void this.destination.error(W)}this.destination.next(R)}}]),w}(D.L)},1961:function(qe,J,m){"use strict";m.d(J,{z:function(){return S}});var z=m(1086),Y=m(534);function S(){return(0,Y.u)()(z.of.apply(void 0,arguments))}},8514:function(qe,J,m){"use strict";m.d(J,{P:function(){return U}});var z=m(7451),Y=m(3527),S=m(8896);function U(L){return new z.y(function(P){var D;try{D=L()}catch(K){return void P.error(K)}return(D?(0,Y.D)(D):(0,S.c)()).subscribe(P)})}},8452:function(qe,J,m){"use strict";m.d(J,{Ck:function(){return k},Vk:function(){return w},YB:function(){return x},_c:function(){return T},cw:function(){return st},de:function(){return $},i6:function(){return W},iM:function(){return te},tB:function(){return I},uX:function(){return R},vD:function(){return ce}});var z=m(3237),Y=m(1120),S=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(797),y=m(7451),K=m(3489);function k(xe){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new W({method:"GET",url:xe,headers:_e})}function I(xe,_e,ke){return new W({method:"POST",url:xe,body:_e,headers:ke})}function T(xe,_e){return new W({method:"DELETE",url:xe,headers:_e})}function w(xe,_e,ke){return new W({method:"PUT",url:xe,body:_e,headers:ke})}function x(xe,_e,ke){return new W({method:"PATCH",url:xe,body:_e,headers:ke})}var N=(0,m(4850).U)(function(xe,_e){return xe.response});function R(xe,_e){return N(new W({method:"GET",url:xe,responseType:"json",headers:_e}))}var xe,W=function(xe){(0,L.Z)(ke,xe);var _e=(0,P.Z)(ke);function ke(Fe){var ct;(0,S.Z)(this,ke),ct=_e.call(this);var Mt={async:!0,createXHR:function(){return this.crossDomain?function M(){if(D.J.XMLHttpRequest)return new D.J.XMLHttpRequest;if(D.J.XDomainRequest)return new D.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function O(){if(D.J.XMLHttpRequest)return new D.J.XMLHttpRequest;var xe;try{for(var _e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ke=0;ke<3;ke++)try{if(xe=_e[ke],new D.J.ActiveXObject(xe))break}catch(Fe){}return new D.J.ActiveXObject(xe)}catch(Fe){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof Fe)Mt.url=Fe;else for(var Nt in Fe)Fe.hasOwnProperty(Nt)&&(Mt[Nt]=Fe[Nt]);return ct.request=Mt,ct}return(0,U.Z)(ke,[{key:"_subscribe",value:function(ct){return new $(ct,this.request)}}]),ke}(y.y);W.create=((xe=function(ke){return new W(ke)}).get=k,xe.post=I,xe.delete=T,xe.put=w,xe.patch=x,xe.getJSON=R,xe);var $=function(xe){(0,L.Z)(ke,xe);var _e=(0,P.Z)(ke);function ke(Fe,ct){var Mt;(0,S.Z)(this,ke),(Mt=_e.call(this,Fe)).request=ct,Mt.done=!1;var Nt=ct.headers=ct.headers||{};return!ct.crossDomain&&!Mt.getHeader(Nt,"X-Requested-With")&&(Nt["X-Requested-With"]="XMLHttpRequest"),!Mt.getHeader(Nt,"Content-Type")&&!(D.J.FormData&&ct.body instanceof D.J.FormData)&&void 0!==ct.body&&(Nt["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),ct.body=Mt.serializeBody(ct.body,Mt.getHeader(ct.headers,"Content-Type")),Mt.send(),Mt}return(0,U.Z)(ke,[{key:"next",value:function(ct){this.done=!0;var en,Mt=this.xhr,Nt=this.request,Xt=this.destination;try{en=new ce(ct,Mt,Nt)}catch(qt){return Xt.error(qt)}Xt.next(en)}},{key:"send",value:function(){var ct=this.request,Mt=this.request,Nt=Mt.user,Xt=Mt.method,en=Mt.url,qt=Mt.async,Xe=Mt.password,jt=Mt.headers,it=Mt.body;try{var vt=this.xhr=ct.createXHR();this.setupEvents(vt,ct),Nt?vt.open(Xt,en,qt,Nt,Xe):vt.open(Xt,en,qt),qt&&(vt.timeout=ct.timeout,vt.responseType=ct.responseType),"withCredentials"in vt&&(vt.withCredentials=!!ct.withCredentials),this.setHeaders(vt,jt),it?vt.send(it):vt.send()}catch(nt){this.error(nt)}}},{key:"serializeBody",value:function(ct,Mt){if(!ct||"string"==typeof ct)return ct;if(D.J.FormData&&ct instanceof D.J.FormData)return ct;if(Mt){var Nt=Mt.indexOf(";");-1!==Nt&&(Mt=Mt.substring(0,Nt))}switch(Mt){case"application/x-www-form-urlencoded":return Object.keys(ct).map(function(Xt){return"".concat(encodeURIComponent(Xt),"=").concat(encodeURIComponent(ct[Xt]))}).join("&");case"application/json":return JSON.stringify(ct);default:return ct}}},{key:"setHeaders",value:function(ct,Mt){for(var Nt in Mt)Mt.hasOwnProperty(Nt)&&ct.setRequestHeader(Nt,Mt[Nt])}},{key:"getHeader",value:function(ct,Mt){for(var Nt in ct)if(Nt.toLowerCase()===Mt.toLowerCase())return ct[Nt]}},{key:"setupEvents",value:function(ct,Mt){var Nt=Mt.progressSubscriber;function Xt(it){var It,vt=Xt.subscriber,nt=Xt.progressSubscriber,Lt=Xt.request;nt&&nt.error(it);try{It=new st(this,Lt)}catch(on){It=on}vt.error(It)}if(ct.ontimeout=Xt,Xt.request=Mt,Xt.subscriber=this,Xt.progressSubscriber=Nt,ct.upload&&"withCredentials"in ct){var en,qt;if(Nt)en=function(vt){en.progressSubscriber.next(vt)},D.J.XDomainRequest?ct.onprogress=en:ct.upload.onprogress=en,en.progressSubscriber=Nt;qt=function(vt){var _n,nt=qt,Lt=nt.progressSubscriber,It=nt.subscriber,on=nt.request;Lt&&Lt.error(vt);try{_n=new te("ajax error",this,on)}catch(An){_n=An}It.error(_n)},ct.onerror=qt,qt.request=Mt,qt.subscriber=this,qt.progressSubscriber=Nt}function Xe(it){}function jt(it){var vt=jt.subscriber,nt=jt.progressSubscriber,Lt=jt.request;if(4===this.readyState){var It=1223===this.status?204:this.status,on="text"===this.responseType?this.response||this.responseText:this.response;if(0===It&&(It=on?200:0),It<400)nt&&nt.complete(),vt.next(it),vt.complete();else{var _n;nt&&nt.error(it);try{_n=new te("ajax error "+It,this,Lt)}catch(An){_n=An}vt.error(_n)}}}ct.onreadystatechange=Xe,Xe.subscriber=this,Xe.progressSubscriber=Nt,Xe.request=Mt,ct.onload=jt,jt.subscriber=this,jt.progressSubscriber=Nt,jt.request=Mt}},{key:"unsubscribe",value:function(){var ct=this.done,Mt=this.xhr;!ct&&Mt&&4!==Mt.readyState&&"function"==typeof Mt.abort&&Mt.abort(),(0,z.Z)((0,Y.Z)(ke.prototype),"unsubscribe",this).call(this)}}]),ke}(K.L),ce=(0,U.Z)(function xe(_e,ke,Fe){(0,S.Z)(this,xe),this.originalEvent=_e,this.xhr=ke,this.request=Fe,this.status=ke.status,this.responseType=ke.responseType||Fe.responseType,this.response=ve(this.responseType,ke)}),se=function(){function xe(_e,ke,Fe){return Error.call(this),this.message=_e,this.name="AjaxError",this.xhr=ke,this.request=Fe,this.status=ke.status,this.responseType=ke.responseType||Fe.responseType,this.response=ve(this.responseType,ke),this}return xe.prototype=Object.create(Error.prototype),xe}(),te=se;function ve(xe,_e){switch(xe){case"json":return function oe(xe){return"response"in xe?xe.responseType?xe.response:JSON.parse(xe.response||xe.responseText||"null"):JSON.parse(xe.responseText||"null")}(_e);case"xml":return _e.responseXML;default:return"response"in _e?_e.response:_e.responseText}}var st=function Oe(xe,_e){return te.call(this,"ajax timeout",xe,_e),this.name="AjaxTimeoutError",this}},2741:function(qe,J,m){"use strict";m.d(J,{p:function(){return I}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(3489),K=m(7451),F=m(4096),M=m(839),O={url:"",deserializer:function(w){return JSON.parse(w.data)},serializer:function(w){return JSON.stringify(w)}},I=function(T){(0,L.Z)(x,T);var w=(0,P.Z)(x);function x(N,R){var W;if((0,z.Z)(this,x),W=w.call(this),N instanceof K.y)W.destination=R,W.source=N;else{var $=W._config=Object.assign({},O);if(W._output=new D.xQ,"string"==typeof N)$.url=N;else for(var ce in N)N.hasOwnProperty(ce)&&($[ce]=N[ce]);if(!$.WebSocketCtor&&WebSocket)$.WebSocketCtor=WebSocket;else if(!$.WebSocketCtor)throw new Error("no WebSocket constructor can be found");W.destination=new M.t}return W}return(0,Y.Z)(x,[{key:"lift",value:function(R){var W=new x(this._config,this.destination);return W.operator=R,W.source=this,W}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new M.t),this._output=new D.xQ}},{key:"multiplex",value:function(R,W,$){var ce=this;return new K.y(function(se){try{ce.next(R())}catch(oe){se.error(oe)}var te=ce.subscribe(function(oe){try{$(oe)&&se.next(oe)}catch(ve){se.error(ve)}},function(oe){return se.error(oe)},function(){return se.complete()});return function(){try{ce.next(W())}catch(oe){se.error(oe)}te.unsubscribe()}})}},{key:"_connectSocket",value:function(){var R=this,W=this._config,$=W.WebSocketCtor,ce=W.protocol,se=W.url,te=W.binaryType,oe=this._output,ve=null;try{ve=ce?new $(se,ce):new $(se),this._socket=ve,te&&(this._socket.binaryType=te)}catch(st){return void oe.error(st)}var Oe=new F.w(function(){R._socket=null,ve&&1===ve.readyState&&ve.close()});ve.onopen=function(st){if(!R._socket)return ve.close(),void R._resetState();var _e=R._config.openObserver;_e&&_e.next(st);var ke=R.destination;R.destination=y.L.create(function(Fe){if(1===ve.readyState)try{var ct=R._config.serializer;ve.send(ct(Fe))}catch(Mt){R.destination.error(Mt)}},function(Fe){var ct=R._config.closingObserver;ct&&ct.next(void 0),Fe&&Fe.code?ve.close(Fe.code,Fe.reason):oe.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),R._resetState()},function(){var Fe=R._config.closingObserver;Fe&&Fe.next(void 0),ve.close(),R._resetState()}),ke&&ke instanceof M.t&&Oe.add(ke.subscribe(R.destination))},ve.onerror=function(st){R._resetState(),oe.error(st)},ve.onclose=function(st){R._resetState();var xe=R._config.closeObserver;xe&&xe.next(st),st.wasClean?oe.complete():oe.error(st)},ve.onmessage=function(st){try{var xe=R._config.deserializer;oe.next(xe(st))}catch(_e){oe.error(_e)}}}},{key:"_subscribe",value:function(R){var W=this,$=this.source;return $?$.subscribe(R):(this._socket||this._connectSocket(),this._output.subscribe(R),R.add(function(){var ce=W._socket;0===W._output.observers.length&&(ce&&1===ce.readyState&&ce.close(),W._resetState())}),R)}},{key:"unsubscribe",value:function(){var R=this._socket;R&&1===R.readyState&&R.close(),this._resetState(),(0,S.Z)((0,U.Z)(x.prototype),"unsubscribe",this).call(this)}}]),x}(D.ug)},8059:function(qe,J,m){"use strict";m.d(J,{h:function(){return Y}});var Y=m(8452).i6.create},7623:function(qe,J,m){"use strict";m.d(J,{j:function(){return Y}});var z=m(2741);function Y(S){return new z.p(S)}},8896:function(qe,J,m){"use strict";m.d(J,{E:function(){return Y},c:function(){return S}});var z=m(7451),Y=new z.y(function(L){return L.complete()});function S(L){return L?function U(L){return new z.y(function(P){return L.schedule(function(){return P.complete()})})}(L):Y}},567:function(qe,J,m){"use strict";m.d(J,{D:function(){return D}});var z=m(4902),Y=m(7451),S=m(6688),U=m(4850),L=m(7830),P=m(3527);function D(){for(var K=arguments.length,F=new Array(K),M=0;M<K;M++)F[M]=arguments[M];if(1===F.length){var O=F[0];if((0,S.k)(O))return y(O,null);if((0,L.K)(O)&&Object.getPrototypeOf(O)===Object.prototype){var k=Object.keys(O);return y(k.map(function(T){return O[T]}),k)}}if("function"==typeof F[F.length-1]){var I=F.pop();return y(F=1===F.length&&(0,S.k)(F[0])?F[0]:F,null).pipe((0,U.U)(function(T){return I.apply(void 0,(0,z.Z)(T))}))}return y(F,null)}function y(K,F){return new Y.y(function(M){var O=K.length;if(0!==O)for(var k=new Array(O),I=0,T=0,w=function(R){var W=(0,P.D)(K[R]),$=!1;M.add(W.subscribe({next:function(se){$||($=!0,T++),k[R]=se},error:function(se){return M.error(se)},complete:function(){(++I===O||!$)&&(T===O&&M.next(F?F.reduce(function(se,te,oe){return se[te]=k[oe],se},{}):k),M.complete())}}))},x=0;x<O;x++)w(x);else M.complete()})}},3527:function(qe,J,m){"use strict";m.d(J,{D:function(){return U}});var z=m(7451),Y=m(3071),S=m(6266);function U(L,P){return P?(0,S.x)(L,P):L instanceof z.y?L:new z.y((0,Y.s)(L))}},3009:function(qe,J,m){"use strict";m.d(J,{n:function(){return U}});var z=m(7451),Y=m(3650),S=m(6454);function U(L,P){return P?(0,S.r)(L,P):new z.y((0,Y.V)(L))}},3753:function(qe,J,m){"use strict";m.d(J,{R:function(){return D}});var z=m(4902),Y=m(7451),S=m(6688),U=m(7043),L=m(4850);Object.prototype.toString;function D(O,k,I,T){return(0,U.m)(I)&&(T=I,I=void 0),T?D(O,k,I).pipe((0,L.U)(function(w){return(0,S.k)(w)?T.apply(void 0,(0,z.Z)(w)):T(w)})):new Y.y(function(w){y(O,k,function x(N){arguments.length>1?w.next(Array.prototype.slice.call(arguments)):w.next(N)},w,I)})}function y(O,k,I,T,w){var x;if(function M(O){return O&&"function"==typeof O.addEventListener&&"function"==typeof O.removeEventListener}(O)){var N=O;O.addEventListener(k,I,w),x=function(){return N.removeEventListener(k,I,w)}}else if(function F(O){return O&&"function"==typeof O.on&&"function"==typeof O.off}(O)){var R=O;O.on(k,I),x=function(){return R.off(k,I)}}else if(function K(O){return O&&"function"==typeof O.addListener&&"function"==typeof O.removeListener}(O)){var W=O;O.addListener(k,I),x=function(){return W.removeListener(k,I)}}else{if(!O||!O.length)throw new TypeError("Invalid event target");for(var $=0,ce=O.length;$<ce;$++)y(O[$],k,I,T,w)}T.add(x)}},1715:function(qe,J,m){"use strict";m.d(J,{F:function(){return U}});var z=m(7451),Y=m(353),S=m(4241);function U(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P;return(!(0,S.k)(P)||P<0)&&(P=0),(!D||"function"!=typeof D.schedule)&&(D=Y.P),new z.y(function(y){return y.add(D.schedule(L,P,{subscriber:y,counter:0,period:P})),y})}function L(P){var D=P.subscriber,y=P.counter,K=P.period;D.next(y),this.schedule({subscriber:D,counter:y+1,period:K},K)}},6787:function(qe,J,m){"use strict";m.d(J,{T:function(){return L}});var z=m(7451),Y=m(2866),S=m(9146),U=m(3009);function L(){for(var P=Number.POSITIVE_INFINITY,D=null,y=arguments.length,K=new Array(y),F=0;F<y;F++)K[F]=arguments[F];var M=K[K.length-1];return(0,Y.K)(M)?(D=K.pop(),K.length>1&&"number"==typeof K[K.length-1]&&(P=K.pop())):"number"==typeof M&&(P=K.pop()),null===D&&1===K.length&&K[0]instanceof z.y?K[0]:(0,S.J)(P)((0,U.n)(K,D))}},1086:function(qe,J,m){"use strict";m.d(J,{of:function(){return U}});var z=m(2866),Y=m(3009),S=m(6454);function U(){for(var L=arguments.length,P=new Array(L),D=0;D<L;D++)P[D]=arguments[D];var y=P[P.length-1];return(0,z.K)(y)?(P.pop(),(0,S.r)(P,y)):(0,Y.n)(P)}},1946:function(qe,J,m){"use strict";m.d(J,{S3:function(){return K}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(6688),P=m(3009),D=m(826),y=m(9054);function K(){for(var O=arguments.length,k=new Array(O),I=0;I<O;I++)k[I]=arguments[I];if(1===k.length){if(!(0,L.k)(k[0]))return k[0];k=k[0]}return(0,P.n)(k,void 0).lift(new F)}var F=function(){function O(){(0,S.Z)(this,O)}return(0,U.Z)(O,[{key:"call",value:function(I,T){return T.subscribe(new M(I))}}]),O}(),M=function(O){(0,z.Z)(I,O);var k=(0,Y.Z)(I);function I(T){var w;return(0,S.Z)(this,I),(w=k.call(this,T)).hasFirst=!1,w.observables=[],w.subscriptions=[],w}return(0,U.Z)(I,[{key:"_next",value:function(w){this.observables.push(w)}},{key:"_complete",value:function(){var w=this.observables,x=w.length;if(0===x)this.destination.complete();else{for(var N=0;N<x&&!this.hasFirst;N++){var R=w[N],W=(0,y.D)(this,R,void 0,N);this.subscriptions&&this.subscriptions.push(W),this.add(W)}this.observables=null}}},{key:"notifyNext",value:function(w,x,N){if(!this.hasFirst){this.hasFirst=!0;for(var R=0;R<this.subscriptions.length;R++)if(R!==N){var W=this.subscriptions[R];W.unsubscribe(),this.remove(W)}this.subscriptions=null}this.destination.next(x)}}]),I}(D.L)},3103:function(qe,J,m){"use strict";m.d(J,{W:function(){return S},w:function(){return Y}});var z=m(7451);function Y(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,L=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new z.y(function(D){void 0===L&&(L=U,U=0);var y=0,K=U;if(P)return P.schedule(S,0,{index:y,count:L,start:U,subscriber:D});for(;;){if(y++>=L){D.complete();break}if(D.next(K++),D.closed)break}})}function S(U){var L=U.start,P=U.index,D=U.count,y=U.subscriber;P>=D?y.complete():(y.next(L),!y.closed&&(U.index=P+1,U.start=L+1,this.schedule(U)))}},1737:function(qe,J,m){"use strict";m.d(J,{_:function(){return Y}});var z=m(7451);function Y(U,L){return L?new z.y(function(P){return L.schedule(S,0,{error:U,subscriber:P})}):new z.y(function(P){return P.error(U)})}function S(U){var L=U.error;U.subscriber.error(L)}},8723:function(qe,J,m){"use strict";m.d(J,{H:function(){return L}});var z=m(7451),Y=m(353),S=m(4241),U=m(2866);function L(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y=arguments.length>1?arguments[1]:void 0,K=arguments.length>2?arguments[2]:void 0,F=-1;return(0,S.k)(y)?F=Number(y)<1?1:Number(y):(0,U.K)(y)&&(K=y),(0,U.K)(K)||(K=Y.P),new z.y(function(M){var O=(0,S.k)(D)?D:+D-K.now();return K.schedule(P,O,{index:0,period:F,subscriber:M})})}function P(D){var y=D.index,K=D.period,F=D.subscriber;if(F.next(y),!F.closed){if(-1===K)return F.complete();D.index=y+1,this.schedule(D,K)}}},1746:function(qe,J,m){"use strict";m.d(J,{$R:function(){return F},mx:function(){return M}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3009),P=m(6688),D=m(3489),y=m(5430),K=m(1177);function F(){for(var w=arguments.length,x=new Array(w),N=0;N<w;N++)x[N]=arguments[N];var R=x[x.length-1];return"function"==typeof R&&x.pop(),(0,L.n)(x,void 0).lift(new M(R))}var M=function(){function w(x){(0,S.Z)(this,w),this.resultSelector=x}return(0,U.Z)(w,[{key:"call",value:function(N,R){return R.subscribe(new O(N,this.resultSelector))}}]),w}(),O=function(w){(0,z.Z)(N,w);var x=(0,Y.Z)(N);function N(R,W){var $;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,S.Z)(this,N),($=x.call(this,R)).resultSelector=W,$.iterators=[],$.active=0,$.resultSelector="function"==typeof W?W:void 0,$}return(0,U.Z)(N,[{key:"_next",value:function(W){var $=this.iterators;(0,P.k)(W)?$.push(new I(W)):"function"==typeof W[y.hZ]?$.push(new k(W[y.hZ]())):$.push(new T(this.destination,this,W))}},{key:"_complete",value:function(){var W=this.iterators,$=W.length;if(this.unsubscribe(),0!==$){this.active=$;for(var ce=0;ce<$;ce++){var se=W[ce];if(se.stillUnsubscribed)this.destination.add(se.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 W=this.iterators,$=W.length,ce=this.destination,se=0;se<$;se++){var te=W[se];if("function"==typeof te.hasValue&&!te.hasValue())return}for(var oe=!1,ve=[],Oe=0;Oe<$;Oe++){var st=W[Oe],xe=st.next();if(st.hasCompleted()&&(oe=!0),xe.done)return void ce.complete();ve.push(xe.value)}this.resultSelector?this._tryresultSelector(ve):ce.next(ve),oe&&ce.complete()}},{key:"_tryresultSelector",value:function(W){var $;try{$=this.resultSelector.apply(this,W)}catch(ce){return void this.destination.error(ce)}this.destination.next($)}}]),N}(D.L),k=function(){function w(x){(0,S.Z)(this,w),this.iterator=x,this.nextResult=x.next()}return(0,U.Z)(w,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var N=this.nextResult;return this.nextResult=this.iterator.next(),N}},{key:"hasCompleted",value:function(){var N=this.nextResult;return Boolean(N&&N.done)}}]),w}(),I=function(){function w(x){(0,S.Z)(this,w),this.array=x,this.index=0,this.length=0,this.length=x.length}return(0,U.Z)(w,[{key:y.hZ,value:function(){return this}},{key:"next",value:function(N){var R=this.index++,W=this.array;return R<this.length?{value:W[R],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}}]),w}(),T=function(w){(0,z.Z)(N,w);var x=(0,Y.Z)(N);function N(R,W,$){var ce;return(0,S.Z)(this,N),(ce=x.call(this,R)).parent=W,ce.observable=$,ce.stillUnsubscribed=!0,ce.buffer=[],ce.isComplete=!1,ce}return(0,U.Z)(N,[{key:y.hZ,value:function(){return this}},{key:"next",value:function(){var W=this.buffer;return 0===W.length&&this.isComplete?{value:null,done:!0}:{value:W.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(W){this.buffer.push(W),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,K.ft)(this.observable,new K.IY(this))}}]),N}(K.Ds)},384:function(qe,J,m){"use strict";m.d(J,{U:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(1177);function P(K){return function(M){return M.lift(new D(K))}}var D=function(){function K(F){(0,S.Z)(this,K),this.durationSelector=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.durationSelector))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k){var I;return(0,S.Z)(this,M),(I=F.call(this,O)).durationSelector=k,I.hasValue=!1,I}return(0,U.Z)(M,[{key:"_next",value:function(k){if(this.value=k,this.hasValue=!0,!this.throttled){var I;try{I=(0,this.durationSelector)(k)}catch(x){return this.destination.error(x)}var w=(0,L.ft)(I,new L.IY(this));!w||w.closed?this.clearThrottle():this.add(this.throttled=w)}}},{key:"clearThrottle",value:function(){var k=this.value,I=this.hasValue,T=this.throttled;T&&(this.remove(T),this.throttled=void 0,T.unsubscribe()),I&&(this.value=void 0,this.hasValue=!1,this.destination.next(k))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),M}(L.Ds)},7568:function(qe,J,m){"use strict";m.d(J,{e:function(){return U}});var z=m(353),Y=m(384),S=m(8723);function U(L){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.P;return(0,Y.U)(function(){return(0,S.H)(L,P)})}},7221:function(qe,J,m){"use strict";m.d(J,{K:function(){return y}});var z=m(3237),Y=m(1120),S=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(1177);function y(M){return function(k){var I=new K(M),T=k.lift(I);return I.caught=T}}var K=function(){function M(O){(0,L.Z)(this,M),this.selector=O}return(0,P.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.selector,this.caught))}}]),M}(),F=function(M){(0,S.Z)(k,M);var O=(0,U.Z)(k);function k(I,T,w){var x;return(0,L.Z)(this,k),(x=O.call(this,I)).selector=T,x.caught=w,x}return(0,P.Z)(k,[{key:"error",value:function(T){if(!this.isStopped){var w;try{w=this.selector(T,this.caught)}catch(R){return void(0,z.Z)((0,Y.Z)(k.prototype),"error",this).call(this,R)}this._unsubscribeAndRecycle();var x=new D.IY(this);this.add(x);var N=(0,D.ft)(w,x);N!==x&&this.add(N)}}}]),k}(D.Ds)},534:function(qe,J,m){"use strict";m.d(J,{u:function(){return Y}});var z=m(9146);function Y(){return(0,z.J)(1)}},1406:function(qe,J,m){"use strict";m.d(J,{b:function(){return Y}});var z=m(1709);function Y(S,U){return(0,z.zg)(S,U,1)}},3906:function(qe,J,m){"use strict";m.d(J,{Q:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K,F))}}var D=function(){function K(F,M){(0,S.Z)(this,K),this.predicate=F,this.source=M}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.predicate,this.source))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k,I){var T;return(0,S.Z)(this,M),(T=F.call(this,O)).predicate=k,T.source=I,T.count=0,T.index=0,T}return(0,U.Z)(M,[{key:"_next",value:function(k){this.predicate?this._tryPredicate(k):this.count++}},{key:"_tryPredicate",value:function(k){var I;try{I=this.predicate(k,this.index++,this.source)}catch(T){return void this.destination.error(T)}I&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),M}(L.L)},13:function(qe,J,m){"use strict";m.d(J,{b:function(){return D}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489),P=m(353);function D(M){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(k){return k.lift(new y(M,O))}}var y=function(){function M(O,k){(0,S.Z)(this,M),this.dueTime=O,this.scheduler=k}return(0,U.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.dueTime,this.scheduler))}}]),M}(),K=function(M){(0,z.Z)(k,M);var O=(0,Y.Z)(k);function k(I,T,w){var x;return(0,S.Z)(this,k),(x=O.call(this,I)).dueTime=T,x.scheduler=w,x.debouncedSubscription=null,x.lastValue=null,x.hasValue=!1,x}return(0,U.Z)(k,[{key:"_next",value:function(T){this.clearDebounce(),this.lastValue=T,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(F,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var T=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(T)}}},{key:"clearDebounce",value:function(){var T=this.debouncedSubscription;null!==T&&(this.remove(T),T.unsubscribe(),this.debouncedSubscription=null)}}]),k}(L.L);function F(M){M.debouncedNext()}},7314:function(qe,J,m){"use strict";m.d(J,{d:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,S.Z)(this,K),this.defaultValue=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.defaultValue))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k){var I;return(0,S.Z)(this,M),(I=F.call(this,O)).defaultValue=k,I.isEmpty=!0,I}return(0,U.Z)(M,[{key:"_next",value:function(k){this.isEmpty=!1,this.destination.next(k)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),M}(L.L)},943:function(qe,J,m){"use strict";m.d(J,{g:function(){return K}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(353),P=m(2697),D=m(3489),y=m(9312);function K(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.P,T=(0,P.J)(k),w=T?+k-I.now():Math.abs(k);return function(x){return x.lift(new F(w,I))}}var F=function(){function k(I,T){(0,S.Z)(this,k),this.delay=I,this.scheduler=T}return(0,U.Z)(k,[{key:"call",value:function(T,w){return w.subscribe(new M(T,this.delay,this.scheduler))}}]),k}(),M=function(k){(0,z.Z)(T,k);var I=(0,Y.Z)(T);function T(w,x,N){var R;return(0,S.Z)(this,T),(R=I.call(this,w)).delay=x,R.scheduler=N,R.queue=[],R.active=!1,R.errored=!1,R}return(0,U.Z)(T,[{key:"_schedule",value:function(x){this.active=!0,this.destination.add(x.schedule(T.dispatch,this.delay,{source:this,destination:this.destination,scheduler:x}))}},{key:"scheduleNotification",value:function(x){if(!0!==this.errored){var N=this.scheduler,R=new O(N.now()+this.delay,x);this.queue.push(R),!1===this.active&&this._schedule(N)}}},{key:"_next",value:function(x){this.scheduleNotification(y.P.createNext(x))}},{key:"_error",value:function(x){this.errored=!0,this.queue=[],this.destination.error(x),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(y.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(x){for(var N=x.source,R=N.queue,W=x.scheduler,$=x.destination;R.length>0&&R[0].time-W.now()<=0;)R.shift().notification.observe($);if(R.length>0){var ce=Math.max(0,R[0].time-W.now());this.schedule(x,ce)}else this.unsubscribe(),N.active=!1}}]),T}(D.L),O=(0,U.Z)(function k(I,T){(0,S.Z)(this,k),this.time=I,this.notification=T})},5778:function(qe,J,m){"use strict";m.d(J,{x:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K,F){return function(M){return M.lift(new D(K,F))}}var D=function(){function K(F,M){(0,S.Z)(this,K),this.compare=F,this.keySelector=M}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.compare,this.keySelector))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k,I){var T;return(0,S.Z)(this,M),(T=F.call(this,O)).keySelector=I,T.hasKey=!1,"function"==typeof k&&(T.compare=k),T}return(0,U.Z)(M,[{key:"compare",value:function(k,I){return k===I}},{key:"_next",value:function(k){var I;try{var T=this.keySelector;I=T?T(k):k}catch(N){return this.destination.error(N)}var w=!1;if(this.hasKey)try{w=(0,this.compare)(this.key,I)}catch(N){return this.destination.error(N)}else this.hasKey=!0;w||(this.key=I,this.destination.next(k))}}]),M}(L.L)},9664:function(qe,J,m){"use strict";m.d(J,{h:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K,F){return function(O){return O.lift(new D(K,F))}}var D=function(){function K(F,M){(0,S.Z)(this,K),this.predicate=F,this.thisArg=M}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.predicate,this.thisArg))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k,I){var T;return(0,S.Z)(this,M),(T=F.call(this,O)).predicate=k,T.thisArg=I,T.count=0,T}return(0,U.Z)(M,[{key:"_next",value:function(k){var I;try{I=this.predicate.call(this.thisArg,k,this.count++)}catch(T){return void this.destination.error(T)}I&&this.destination.next(k)}}]),M}(L.L)},537:function(qe,J,m){"use strict";m.d(J,{x:function(){return D}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489),P=m(4096);function D(F){return function(M){return M.lift(new y(F))}}var y=function(){function F(M){(0,S.Z)(this,F),this.callback=M}return(0,U.Z)(F,[{key:"call",value:function(O,k){return k.subscribe(new K(O,this.callback))}}]),F}(),K=function(F){(0,z.Z)(O,F);var M=(0,Y.Z)(O);function O(k,I){var T;return(0,S.Z)(this,O),(T=M.call(this,k)).add(new P.w(I)),T}return(0,U.Z)(O)}(L.L)},7224:function(qe,J,m){"use strict";m.d(J,{P:function(){return D}});var z=m(4450),Y=m(9664),S=m(2986),U=m(7314),L=m(4907),P=m(5379);function D(y,K){var F=arguments.length>=2;return function(M){return M.pipe(y?(0,Y.h)(function(O,k){return y(O,k,M)}):P.y,(0,S.q)(1),F?(0,U.d)(K):(0,L.T)(function(){return new z.K}))}}},4002:function(qe,J,m){"use strict";m.d(J,{T:function(){return T},v:function(){return M}});var z=m(3237),Y=m(1120),S=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(3489),y=m(4096),K=m(7451),F=m(8929);function M(x,N,R,W){return function($){return $.lift(new O(x,N,R,W))}}var O=function(){function x(N,R,W,$){(0,L.Z)(this,x),this.keySelector=N,this.elementSelector=R,this.durationSelector=W,this.subjectSelector=$}return(0,P.Z)(x,[{key:"call",value:function(R,W){return W.subscribe(new k(R,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),x}(),k=function(x){(0,S.Z)(R,x);var N=(0,U.Z)(R);function R(W,$,ce,se,te){var oe;return(0,L.Z)(this,R),(oe=N.call(this,W)).keySelector=$,oe.elementSelector=ce,oe.durationSelector=se,oe.subjectSelector=te,oe.groups=null,oe.attemptedToUnsubscribe=!1,oe.count=0,oe}return(0,P.Z)(R,[{key:"_next",value:function($){var ce;try{ce=this.keySelector($)}catch(se){return void this.error(se)}this._group($,ce)}},{key:"_group",value:function($,ce){var se=this.groups;se||(se=this.groups=new Map);var oe,te=se.get(ce);if(this.elementSelector)try{oe=this.elementSelector($)}catch(st){this.error(st)}else oe=$;if(!te){te=this.subjectSelector?this.subjectSelector():new F.xQ,se.set(ce,te);var ve=new T(ce,te,this);if(this.destination.next(ve),this.durationSelector){var Oe;try{Oe=this.durationSelector(new T(ce,te))}catch(st){return void this.error(st)}this.add(Oe.subscribe(new I(ce,te,this)))}}te.closed||te.next(oe)}},{key:"_error",value:function($){var ce=this.groups;ce&&(ce.forEach(function(se,te){se.error($)}),ce.clear()),this.destination.error($)}},{key:"_complete",value:function(){var $=this.groups;$&&($.forEach(function(ce,se){ce.complete()}),$.clear()),this.destination.complete()}},{key:"removeGroup",value:function($){this.groups.delete($)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,z.Z)((0,Y.Z)(R.prototype),"unsubscribe",this).call(this))}}]),R}(D.L),I=function(x){(0,S.Z)(R,x);var N=(0,U.Z)(R);function R(W,$,ce){var se;return(0,L.Z)(this,R),(se=N.call(this,$)).key=W,se.group=$,se.parent=ce,se}return(0,P.Z)(R,[{key:"_next",value:function($){this.complete()}},{key:"_unsubscribe",value:function(){var $=this.parent,ce=this.key;this.key=this.parent=null,$&&$.removeGroup(ce)}}]),R}(D.L),T=function(x){(0,S.Z)(R,x);var N=(0,U.Z)(R);function R(W,$,ce){var se;return(0,L.Z)(this,R),(se=N.call(this)).key=W,se.groupSubject=$,se.refCountSubscription=ce,se}return(0,P.Z)(R,[{key:"_subscribe",value:function($){var ce=new y.w,se=this.refCountSubscription,te=this.groupSubject;return se&&!se.closed&&ce.add(new w(se)),ce.add(te.subscribe($)),ce}}]),R}(K.y),w=function(x){(0,S.Z)(R,x);var N=(0,U.Z)(R);function R(W){var $;return(0,L.Z)(this,R),($=N.call(this)).parent=W,W.count++,$}return(0,P.Z)(R,[{key:"unsubscribe",value:function(){var $=this.parent;!$.closed&&!this.closed&&((0,z.Z)((0,Y.Z)(R.prototype),"unsubscribe",this).call(this),$.count-=1,0===$.count&&$.attemptedToUnsubscribe&&$.unsubscribe())}}]),R}(y.w)},8127:function(qe,J,m){"use strict";m.d(J,{Z:function(){return D}});var z=m(4450),Y=m(9664),S=m(2821),U=m(4907),L=m(7314),P=m(5379);function D(y,K){var F=arguments.length>=2;return function(M){return M.pipe(y?(0,Y.h)(function(O,k){return y(O,k,M)}):P.y,(0,S.h)(1),F?(0,L.d)(K):(0,U.T)(function(){return new z.K}))}}},4850:function(qe,J,m){"use strict";m.d(J,{U:function(){return D}});var z=m(7326),Y=m(136),S=m(9388),U=m(5671),L=m(3144),P=m(3489);function D(F,M){return function(k){if("function"!=typeof F)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return k.lift(new y(F,M))}}var y=function(){function F(M,O){(0,U.Z)(this,F),this.project=M,this.thisArg=O}return(0,L.Z)(F,[{key:"call",value:function(O,k){return k.subscribe(new K(O,this.project,this.thisArg))}}]),F}(),K=function(F){(0,Y.Z)(O,F);var M=(0,S.Z)(O);function O(k,I,T){var w;return(0,U.Z)(this,O),(w=M.call(this,k)).project=I,w.count=0,w.thisArg=T||(0,z.Z)(w),w}return(0,L.Z)(O,[{key:"_next",value:function(I){var T;try{T=this.project.call(this.thisArg,I,this.count++)}catch(w){return void this.destination.error(w)}this.destination.next(T)}}]),O}(P.L)},7604:function(qe,J,m){"use strict";m.d(J,{h:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,S.Z)(this,K),this.value=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.value))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k){var I;return(0,S.Z)(this,M),(I=F.call(this,O)).value=k,I}return(0,U.Z)(M,[{key:"_next",value:function(k){this.destination.next(this.value)}}]),M}(L.L)},9146:function(qe,J,m){"use strict";m.d(J,{J:function(){return S}});var z=m(1709),Y=m(5379);function S(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,z.zg)(Y.y,U)}},1709:function(qe,J,m){"use strict";m.d(J,{VS:function(){return M},zg:function(){return y}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(4850),P=m(3527),D=m(1177);function y(O,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof k?function(T){return T.pipe(y(function(w,x){return(0,P.D)(O(w,x)).pipe((0,L.U)(function(N,R){return k(w,N,x,R)}))},I))}:("number"==typeof k&&(I=k),function(T){return T.lift(new K(O,I))})}var K=function(){function O(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,S.Z)(this,O),this.project=k,this.concurrent=I}return(0,U.Z)(O,[{key:"call",value:function(I,T){return T.subscribe(new F(I,this.project,this.concurrent))}}]),O}(),F=function(O){(0,z.Z)(I,O);var k=(0,Y.Z)(I);function I(T,w){var x,N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,S.Z)(this,I),(x=k.call(this,T)).project=w,x.concurrent=N,x.hasCompleted=!1,x.buffer=[],x.active=0,x.index=0,x}return(0,U.Z)(I,[{key:"_next",value:function(w){this.active<this.concurrent?this._tryNext(w):this.buffer.push(w)}},{key:"_tryNext",value:function(w){var x,N=this.index++;try{x=this.project(w,N)}catch(R){return void this.destination.error(R)}this.active++,this._innerSub(x)}},{key:"_innerSub",value:function(w){var x=new D.IY(this),N=this.destination;N.add(x);var R=(0,D.ft)(w,x);R!==x&&N.add(R)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(w){this.destination.next(w)}},{key:"notifyComplete",value:function(){var w=this.buffer;this.active--,w.length>0?this._next(w.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),I}(D.Ds),M=y},2536:function(qe,J,m){"use strict";m.d(J,{O:function(){return U}});var z=m(5671),Y=m(3144),S=m(1762);function U(P,D){return function(K){var F;if(F="function"==typeof P?P:function(){return P},"function"==typeof D)return K.lift(new L(F,D));var M=Object.create(K,S.N);return M.source=K,M.subjectFactory=F,M}}var L=function(){function P(D,y){(0,z.Z)(this,P),this.subjectFactory=D,this.selector=y}return(0,Y.Z)(P,[{key:"call",value:function(y,K){var F=this.selector,M=this.subjectFactory(),O=F(M).subscribe(y);return O.add(K.subscribe(M)),O}}]),P}()},7770:function(qe,J,m){"use strict";m.d(J,{QV:function(){return D},ht:function(){return K}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489),P=m(9312);function D(M){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(I){return I.lift(new y(M,O))}}var y=function(){function M(O){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,S.Z)(this,M),this.scheduler=O,this.delay=k}return(0,U.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.scheduler,this.delay))}}]),M}(),K=function(M){(0,z.Z)(k,M);var O=(0,Y.Z)(k);function k(I,T){var w,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,S.Z)(this,k),(w=O.call(this,I)).scheduler=T,w.delay=x,w}return(0,U.Z)(k,[{key:"scheduleMessage",value:function(T){this.destination.add(this.scheduler.schedule(k.dispatch,this.delay,new F(T,this.destination)))}},{key:"_next",value:function(T){this.scheduleMessage(P.P.createNext(T))}},{key:"_error",value:function(T){this.scheduleMessage(P.P.createError(T)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){var w=T.notification,x=T.destination;w.observe(x),this.unsubscribe()}}]),k}(L.L),F=(0,U.Z)(function M(O,k){(0,S.Z)(this,M),this.notification=O,this.destination=k})},519:function(qe,J,m){"use strict";m.d(J,{G:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(){return function(K){return K.lift(new D)}}var D=function(){function K(){(0,S.Z)(this,K)}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O){var k;return(0,S.Z)(this,M),(k=F.call(this,O)).hasPrev=!1,k}return(0,U.Z)(M,[{key:"_next",value:function(k){var I;this.hasPrev?I=[this.prev,k]:this.hasPrev=!0,this.prev=k,I&&this.destination.next(I)}}]),M}(L.L)},4327:function(qe,J,m){"use strict";m.d(J,{x:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(){return function(F){return F.lift(new D(F))}}var D=function(){function K(F){(0,S.Z)(this,K),this.connectable=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){var k=this.connectable;k._refCount++;var I=new y(M,k),T=O.subscribe(I);return I.closed||(I.connection=k.connect()),T}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k){var I;return(0,S.Z)(this,M),(I=F.call(this,O)).connectable=k,I}return(0,U.Z)(M,[{key:"_unsubscribe",value:function(){var k=this.connectable;if(k){this.connectable=null;var I=k._refCount;if(I<=0)this.connection=null;else if(k._refCount=I-1,I>1)this.connection=null;else{var T=this.connection,w=k._connection;this.connection=null,w&&(!T||w===T)&&w.unsubscribe()}}else this.connection=null}}]),M}(L.L)},2014:function(qe,J,m){"use strict";m.d(J,{R:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K,F){var M=!1;return arguments.length>=2&&(M=!0),function(k){return k.lift(new D(K,F,M))}}var D=function(){function K(F,M){var O=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,S.Z)(this,K),this.accumulator=F,this.seed=M,this.hasSeed=O}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.accumulator,this.seed,this.hasSeed))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k,I,T){var w;return(0,S.Z)(this,M),(w=F.call(this,O)).accumulator=k,w._seed=I,w.hasSeed=T,w.index=0,w}return(0,U.Z)(M,[{key:"seed",get:function(){return this._seed},set:function(k){this.hasSeed=!0,this._seed=k}},{key:"_next",value:function(k){if(this.hasSeed)return this._tryNext(k);this.seed=k,this.destination.next(k)}},{key:"_tryNext",value:function(k){var T,I=this.index++;try{T=this.accumulator(this.seed,k,I)}catch(w){this.destination.error(w)}this.seed=T,this.destination.next(T)}}]),M}(L.L)},8117:function(qe,J,m){"use strict";m.d(J,{B:function(){return L}});var z=m(2536),Y=m(4327),S=m(8929);function U(){return new S.xQ}function L(){return function(P){return(0,Y.x)()((0,z.O)(U)(P))}}},5154:function(qe,J,m){"use strict";m.d(J,{d:function(){return Y}});var z=m(839);function Y(U,L,P){var D;return D=U&&"object"==typeof U?U:{bufferSize:U,windowTime:L,refCount:!1,scheduler:P},function(y){return y.lift(function S(U){var M,k,L=U.bufferSize,P=void 0===L?Number.POSITIVE_INFINITY:L,D=U.windowTime,y=void 0===D?Number.POSITIVE_INFINITY:D,K=U.refCount,F=U.scheduler,O=0,I=!1,T=!1;return function(x){var N;O++,!M||I?(I=!1,M=new z.t(P,y,F),N=M.subscribe(this),k=x.subscribe({next:function(W){M.next(W)},error:function(W){I=!0,M.error(W)},complete:function(){T=!0,k=void 0,M.complete()}}),T&&(k=void 0)):N=M.subscribe(this),this.add(function(){O--,N.unsubscribe(),N=void 0,k&&!T&&K&&0===O&&(k.unsubscribe(),k=void 0,M=void 0)})}}(D))}}},1307:function(qe,J,m){"use strict";m.d(J,{T:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,S.Z)(this,K),this.total=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.total))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k){var I;return(0,S.Z)(this,M),(I=F.call(this,O)).total=k,I.count=0,I}return(0,U.Z)(M,[{key:"_next",value:function(k){++this.count>this.total&&this.destination.next(k)}}]),M}(L.L)},1059:function(qe,J,m){"use strict";m.d(J,{O:function(){return S}});var z=m(1961),Y=m(2866);function S(){for(var U=arguments.length,L=new Array(U),P=0;P<U;P++)L[P]=arguments[P];var D=L[L.length-1];return(0,Y.K)(D)?(L.pop(),function(y){return(0,z.z)(L,y,D)}):function(y){return(0,z.z)(L,y)}}},7545:function(qe,J,m){"use strict";m.d(J,{w:function(){return F}});var z=m(3237),Y=m(1120),S=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(4850),y=m(3527),K=m(1177);function F(k,I){return"function"==typeof I?function(T){return T.pipe(F(function(w,x){return(0,y.D)(k(w,x)).pipe((0,D.U)(function(N,R){return I(w,N,x,R)}))}))}:function(T){return T.lift(new M(k))}}var M=function(){function k(I){(0,L.Z)(this,k),this.project=I}return(0,P.Z)(k,[{key:"call",value:function(T,w){return w.subscribe(new O(T,this.project))}}]),k}(),O=function(k){(0,S.Z)(T,k);var I=(0,U.Z)(T);function T(w,x){var N;return(0,L.Z)(this,T),(N=I.call(this,w)).project=x,N.index=0,N}return(0,P.Z)(T,[{key:"_next",value:function(x){var N,R=this.index++;try{N=this.project(x,R)}catch(W){return void this.destination.error(W)}this._innerSub(N)}},{key:"_innerSub",value:function(x){var N=this.innerSubscription;N&&N.unsubscribe();var R=new K.IY(this),W=this.destination;W.add(R),this.innerSubscription=(0,K.ft)(x,R),this.innerSubscription!==R&&W.add(this.innerSubscription)}},{key:"_complete",value:function(){var x=this.innerSubscription;(!x||x.closed)&&(0,z.Z)((0,Y.Z)(T.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,z.Z)((0,Y.Z)(T.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(x){this.destination.next(x)}}]),T}(K.Ds)},2986:function(qe,J,m){"use strict";m.d(J,{q:function(){return y}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489),P=m(4231),D=m(8896);function y(M){return function(O){return 0===M?(0,D.c)():O.lift(new K(M))}}var K=function(){function M(O){if((0,S.Z)(this,M),this.total=O,this.total<0)throw new P.W}return(0,U.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.total))}}]),M}(),F=function(M){(0,z.Z)(k,M);var O=(0,Y.Z)(k);function k(I,T){var w;return(0,S.Z)(this,k),(w=O.call(this,I)).total=T,w.count=0,w}return(0,U.Z)(k,[{key:"_next",value:function(T){var w=this.total,x=++this.count;x<=w&&(this.destination.next(T),x===w&&(this.destination.complete(),this.unsubscribe()))}}]),k}(L.L)},2821:function(qe,J,m){"use strict";m.d(J,{h:function(){return y}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489),P=m(4231),D=m(8896);function y(M){return function(k){return 0===M?(0,D.c)():k.lift(new K(M))}}var K=function(){function M(O){if((0,S.Z)(this,M),this.total=O,this.total<0)throw new P.W}return(0,U.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.total))}}]),M}(),F=function(M){(0,z.Z)(k,M);var O=(0,Y.Z)(k);function k(I,T){var w;return(0,S.Z)(this,k),(w=O.call(this,I)).total=T,w.ring=new Array,w.count=0,w}return(0,U.Z)(k,[{key:"_next",value:function(T){var w=this.ring,x=this.total,N=this.count++;w.length<x?w.push(T):w[N%x]=T}},{key:"_complete",value:function(){var T=this.destination,w=this.count;if(w>0)for(var x=this.count>=this.total?this.total:this.count,N=this.ring,R=0;R<x;R++){var W=w++%x;T.next(N[W])}T.complete()}}]),k}(L.L)},7625:function(qe,J,m){"use strict";m.d(J,{R:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(1177);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,S.Z)(this,K),this.notifier=F}return(0,U.Z)(K,[{key:"call",value:function(M,O){var k=new y(M),I=(0,L.ft)(this.notifier,new L.IY(k));return I&&!k.seenValue?(k.add(I),O.subscribe(k)):k}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O){var k;return(0,S.Z)(this,M),(k=F.call(this,O)).seenValue=!1,k}return(0,U.Z)(M,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),M}(L.Ds)},4290:function(qe,J,m){"use strict";m.d(J,{o:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(3489);function P(K){var F=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(M){return M.lift(new D(K,F))}}var D=function(){function K(F,M){(0,S.Z)(this,K),this.predicate=F,this.inclusive=M}return(0,U.Z)(K,[{key:"call",value:function(M,O){return O.subscribe(new y(M,this.predicate,this.inclusive))}}]),K}(),y=function(K){(0,z.Z)(M,K);var F=(0,Y.Z)(M);function M(O,k,I){var T;return(0,S.Z)(this,M),(T=F.call(this,O)).predicate=k,T.inclusive=I,T.index=0,T}return(0,U.Z)(M,[{key:"_next",value:function(k){var T,I=this.destination;try{T=this.predicate(k,this.index++)}catch(w){return void I.error(w)}this.nextOrComplete(k,T)}},{key:"nextOrComplete",value:function(k,I){var T=this.destination;Boolean(I)?T.next(k):(this.inclusive&&T.next(k),T.complete())}}]),M}(L.L)},2994:function(qe,J,m){"use strict";m.d(J,{b:function(){return K}});var z=m(7326),Y=m(136),S=m(9388),U=m(5671),L=m(3144),P=m(3489),D=m(7876),y=m(7043);function K(O,k,I){return function(w){return w.lift(new F(O,k,I))}}var F=function(){function O(k,I,T){(0,U.Z)(this,O),this.nextOrObserver=k,this.error=I,this.complete=T}return(0,L.Z)(O,[{key:"call",value:function(I,T){return T.subscribe(new M(I,this.nextOrObserver,this.error,this.complete))}}]),O}(),M=function(O){(0,Y.Z)(I,O);var k=(0,S.Z)(I);function I(T,w,x,N){var R;return(0,U.Z)(this,I),(R=k.call(this,T))._tapNext=D.Z,R._tapError=D.Z,R._tapComplete=D.Z,R._tapError=x||D.Z,R._tapComplete=N||D.Z,(0,y.m)(w)?(R._context=(0,z.Z)(R),R._tapNext=w):w&&(R._context=w,R._tapNext=w.next||D.Z,R._tapError=w.error||D.Z,R._tapComplete=w.complete||D.Z),R}return(0,L.Z)(I,[{key:"_next",value:function(w){try{this._tapNext.call(this._context,w)}catch(x){return void this.destination.error(x)}this.destination.next(w)}},{key:"_error",value:function(w){try{this._tapError.call(this._context,w)}catch(x){return void this.destination.error(x)}this.destination.error(w)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(w){return void this.destination.error(w)}return this.destination.complete()}}]),I}(P.L)},2444:function(qe,J,m){"use strict";m.d(J,{P:function(){return D},d:function(){return P}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(1177),P={leading:!0,trailing:!1};function D(F){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(O){return O.lift(new y(F,!!M.leading,!!M.trailing))}}var y=function(){function F(M,O,k){(0,S.Z)(this,F),this.durationSelector=M,this.leading=O,this.trailing=k}return(0,U.Z)(F,[{key:"call",value:function(O,k){return k.subscribe(new K(O,this.durationSelector,this.leading,this.trailing))}}]),F}(),K=function(F){(0,z.Z)(O,F);var M=(0,Y.Z)(O);function O(k,I,T,w){var x;return(0,S.Z)(this,O),(x=M.call(this,k)).destination=k,x.durationSelector=I,x._leading=T,x._trailing=w,x._hasValue=!1,x}return(0,U.Z)(O,[{key:"_next",value:function(I){this._hasValue=!0,this._sendValue=I,this._throttled||(this._leading?this.send():this.throttle(I))}},{key:"send",value:function(){var I=this._hasValue,T=this._sendValue;I&&(this.destination.next(T),this.throttle(T)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(I){var T=this.tryDurationSelector(I);T&&this.add(this._throttled=(0,L.ft)(T,new L.IY(this)))}},{key:"tryDurationSelector",value:function(I){try{return this.durationSelector(I)}catch(T){return this.destination.error(T),null}}},{key:"throttlingDone",value:function(){var I=this._throttled,T=this._trailing;I&&I.unsubscribe(),this._throttled=void 0,T&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),O}(L.Ds)},4907:function(qe,J,m){"use strict";m.d(J,{T:function(){return D}});var z=m(136),Y=m(9388),S=m(5671),U=m(3144),L=m(4450),P=m(3489);function D(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;return function(O){return O.lift(new y(M))}}var y=function(){function M(O){(0,S.Z)(this,M),this.errorFactory=O}return(0,U.Z)(M,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.errorFactory))}}]),M}(),K=function(M){(0,z.Z)(k,M);var O=(0,Y.Z)(k);function k(I,T){var w;return(0,S.Z)(this,k),(w=O.call(this,I)).errorFactory=T,w.hasValue=!1,w}return(0,U.Z)(k,[{key:"_next",value:function(T){this.hasValue=!0,this.destination.next(T)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var T;try{T=this.errorFactory()}catch(w){T=w}this.destination.error(T)}}]),k}(P.L);function F(){return new L.K}},3485:function(qe,J,m){"use strict";m.d(J,{J:function(){return D},R:function(){return y}});var z=m(3144),Y=m(5671),S=m(353),U=m(2014),L=m(8514),P=m(4850);function D(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.P;return function(F){return(0,L.P)(function(){return F.pipe((0,U.R)(function(M,O){var k=M.current;return{value:O,current:K.now(),last:k}},{current:K.now(),value:void 0,last:void 0}),(0,P.U)(function(M){var O=M.current,k=M.last,I=M.value;return new y(I,O-k)}))})}}var y=(0,z.Z)(function K(F,M){(0,Y.Z)(this,K),this.value=F,this.interval=M})},7781:function(qe,J,m){"use strict";m.d(J,{A:function(){return L},E:function(){return P}});var z=m(3144),Y=m(5671),S=m(353),U=m(4850);function L(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.P;return(0,U.U)(function(y){return new P(y,D.now())})}var P=(0,z.Z)(function D(y,K){(0,Y.Z)(this,D),this.value=y,this.timestamp=K})},6454:function(qe,J,m){"use strict";m.d(J,{r:function(){return S}});var z=m(7451),Y=m(4096);function S(U,L){return new z.y(function(P){var D=new Y.w,y=0;return D.add(L.schedule(function(){y!==U.length?(P.next(U[y++]),P.closed||D.add(this.schedule())):P.complete()})),D})}},6389:function(qe,J,m){"use strict";m.d(J,{Q:function(){return U}});var z=m(7451),Y=m(4096),S=m(5430);function U(L,P){if(!L)throw new Error("Iterable cannot be null");return new z.y(function(D){var K,y=new Y.w;return y.add(function(){K&&"function"==typeof K.return&&K.return()}),y.add(P.schedule(function(){K=L[S.hZ](),y.add(P.schedule(function(){if(!D.closed){var F,M;try{var O=K.next();F=O.value,M=O.done}catch(k){return void D.error(k)}M?D.complete():(D.next(F),this.schedule())}}))})),y})}},8687:function(qe,J,m){"use strict";m.d(J,{c:function(){return S}});var z=m(7451),Y=m(4096);function S(U,L){return new z.y(function(P){var D=new Y.w;return D.add(L.schedule(function(){return U.then(function(y){D.add(L.schedule(function(){P.next(y),D.add(L.schedule(function(){return P.complete()}))}))},function(y){D.add(L.schedule(function(){return P.error(y)}))})})),D})}},6266:function(qe,J,m){"use strict";m.d(J,{x:function(){return O}});var z=m(7451),Y=m(4096),S=m(3821);var L=m(8687),P=m(6454),D=m(6389),y=m(8845),K=m(8955),F=m(8515),M=m(2198);function O(k,I){if(null!=k){if((0,y.c)(k))return function U(k,I){return new z.y(function(T){var w=new Y.w;return w.add(I.schedule(function(){var x=k[S.L]();w.add(x.subscribe({next:function(R){w.add(I.schedule(function(){return T.next(R)}))},error:function(R){w.add(I.schedule(function(){return T.error(R)}))},complete:function(){w.add(I.schedule(function(){return T.complete()}))}}))})),w})}(k,I);if((0,K.t)(k))return(0,L.c)(k,I);if((0,F.z)(k))return(0,P.r)(k,I);if((0,M.T)(k)||"string"==typeof k)return(0,D.Q)(k,I)}throw new TypeError((null!==k&&typeof k||k)+" is not observable")}},6686:function(qe,J,m){"use strict";m.d(J,{o:function(){return D}});var z=m(5671),Y=m(3144),S=m(136),U=m(9388),P=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(M,O){return(0,z.Z)(this,F),K.call(this)}return(0,Y.Z)(F,[{key:"schedule",value:function(O){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),F}(m(4096).w),D=function(y){(0,S.Z)(F,y);var K=(0,U.Z)(F);function F(M,O){var k;return(0,z.Z)(this,F),(k=K.call(this,M,O)).scheduler=M,k.work=O,k.pending=!1,k}return(0,Y.Z)(F,[{key:"schedule",value:function(O){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=O;var I=this.id,T=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(T,I,k)),this.pending=!0,this.delay=k,this.id=this.id||this.requestAsyncId(T,this.id,k),this}},{key:"requestAsyncId",value:function(O,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(O.flush.bind(O,this),I)}},{key:"recycleAsyncId",value:function(O,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==I&&this.delay===I&&!1===this.pending)return k;clearInterval(k)}},{key:"execute",value:function(O,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var I=this._execute(O,k);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(O,k){var I=!1,T=void 0;try{this.work(O)}catch(w){I=!0,T=!!w&&w||new Error(w)}if(I)return this.unsubscribe(),T}},{key:"_unsubscribe",value:function(){var O=this.id,k=this.scheduler,I=k.actions,T=I.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&I.splice(T,1),null!=O&&(this.id=this.recycleAsyncId(k,O,null)),this.delay=null}}]),F}(P)},198:function(qe,J,m){"use strict";m.d(J,{v:function(){return K}});var z=m(5671),Y=m(3144),S=m(7326),U=m(3237),L=m(1120),P=m(136),D=m(9388),y=m(2221),K=function(F){(0,P.Z)(O,F);var M=(0,D.Z)(O);function O(k){var I,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.b.now;return(0,z.Z)(this,O),(I=M.call(this,k,function(){return O.delegate&&O.delegate!==(0,S.Z)(I)?O.delegate.now():T()})).actions=[],I.active=!1,I.scheduled=void 0,I}return(0,Y.Z)(O,[{key:"schedule",value:function(I){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,w=arguments.length>2?arguments[2]:void 0;return O.delegate&&O.delegate!==this?O.delegate.schedule(I,T,w):(0,U.Z)((0,L.Z)(O.prototype),"schedule",this).call(this,I,T,w)}},{key:"flush",value:function(I){var T=this.actions;if(this.active)T.push(I);else{var w;this.active=!0;do{if(w=I.execute(I.state,I.delay))break}while(I=T.shift());if(this.active=!1,w){for(;I=T.shift();)I.unsubscribe();throw w}}}}]),O}(y.b)},9027:function(qe,J,m){"use strict";m.d(J,{h:function(){return F},y:function(){return K}});var z=m(3237),Y=m(1120),S=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(6686),K=function(M){(0,L.Z)(k,M);var O=(0,P.Z)(k);function k(){var I,T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,S.Z)(this,k),(I=O.call(this,T,function(){return I.frame})).maxFrames=w,I.frame=0,I.index=-1,I}return(0,U.Z)(k,[{key:"flush",value:function(){for(var x,N,T=this.actions,w=this.maxFrames;(N=T[0])&&N.delay<=w&&(T.shift(),this.frame=N.delay,!(x=N.execute(N.state,N.delay))););if(x){for(;N=T.shift();)N.unsubscribe();throw x}}}]),k}(m(198).v);K.frameTimeFactor=10;var F=function(M){(0,L.Z)(k,M);var O=(0,P.Z)(k);function k(I,T){var w,x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.index+=1;return(0,S.Z)(this,k),(w=O.call(this,I,T)).scheduler=I,w.work=T,w.index=x,w.active=!0,w.index=I.index=x,w}return(0,U.Z)(k,[{key:"schedule",value:function(T){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,z.Z)((0,Y.Z)(k.prototype),"schedule",this).call(this,T,w);this.active=!1;var x=new k(this.scheduler,this.work);return this.add(x),x.schedule(T,w)}},{key:"requestAsyncId",value:function(T,w){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=T.frame+x;var N=T.actions;return N.push(this),N.sort(k.sortActions),!0}},{key:"recycleAsyncId",value:function(T,w){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(T,w){if(!0===this.active)return(0,z.Z)((0,Y.Z)(k.prototype),"_execute",this).call(this,T,w)}}],[{key:"sortActions",value:function(T,w){return T.delay===w.delay?T.index===w.index?0:T.index>w.index?1:-1:T.delay>w.delay?1:-1}}]),k}(D.o)},352:function(qe,J,m){"use strict";m.d(J,{r:function(){return O},Z:function(){return M}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),y=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(w,x){var N;return(0,z.Z)(this,T),(N=I.call(this,w,x)).scheduler=w,N.work=x,N}return(0,Y.Z)(T,[{key:"requestAsyncId",value:function(x,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==R&&R>0?(0,S.Z)((0,U.Z)(T.prototype),"requestAsyncId",this).call(this,x,N,R):(x.actions.push(this),x.scheduled||(x.scheduled=requestAnimationFrame(function(){return x.flush(null)})))}},{key:"recycleAsyncId",value:function(x,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==R&&R>0||null===R&&this.delay>0)return(0,S.Z)((0,U.Z)(T.prototype),"recycleAsyncId",this).call(this,x,N,R);0===x.actions.length&&(cancelAnimationFrame(N),x.scheduled=void 0)}}]),T}(m(6686).o),F=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T,[{key:"flush",value:function(x){this.active=!0,this.scheduled=void 0;var R,N=this.actions,W=-1,$=N.length;x=x||N.shift();do{if(R=x.execute(x.state,x.delay))break}while(++W<$&&(x=N.shift()));if(this.active=!1,R){for(;++W<$&&(x=N.shift());)x.unsubscribe();throw R}}}]),T}(m(198).v),M=new F(y),O=M},9931:function(qe,J,m){"use strict";m.d(J,{e:function(){return k},E:function(){return O}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(1450),K=function(I){(0,L.Z)(w,I);var T=(0,P.Z)(w);function w(x,N){var R;return(0,z.Z)(this,w),(R=T.call(this,x,N)).scheduler=x,R.work=N,R}return(0,Y.Z)(w,[{key:"requestAsyncId",value:function(N,R){var W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==W&&W>0?(0,S.Z)((0,U.Z)(w.prototype),"requestAsyncId",this).call(this,N,R,W):(N.actions.push(this),N.scheduled||(N.scheduled=D.H.setImmediate(N.flush.bind(N,null))))}},{key:"recycleAsyncId",value:function(N,R){var W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==W&&W>0||null===W&&this.delay>0)return(0,S.Z)((0,U.Z)(w.prototype),"recycleAsyncId",this).call(this,N,R,W);0===N.actions.length&&(D.H.clearImmediate(R),N.scheduled=void 0)}}]),w}(m(6686).o),M=function(I){(0,L.Z)(w,I);var T=(0,P.Z)(w);function w(){return(0,z.Z)(this,w),T.apply(this,arguments)}return(0,Y.Z)(w,[{key:"flush",value:function(N){this.active=!0,this.scheduled=void 0;var W,R=this.actions,$=-1,ce=R.length;N=N||R.shift();do{if(W=N.execute(N.state,N.delay))break}while(++$<ce&&(N=R.shift()));if(this.active=!1,W){for(;++$<ce&&(N=R.shift());)N.unsubscribe();throw W}}}]),w}(m(198).v),O=new M(K),k=O},353:function(qe,J,m){"use strict";m.d(J,{P:function(){return U},z:function(){return S}});var z=m(6686),S=new(m(198).v)(z.o),U=S},341:function(qe,J,m){"use strict";m.d(J,{c:function(){return O},N:function(){return M}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),y=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(w,x){var N;return(0,z.Z)(this,T),(N=I.call(this,w,x)).scheduler=w,N.work=x,N}return(0,Y.Z)(T,[{key:"schedule",value:function(x){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N>0?(0,S.Z)((0,U.Z)(T.prototype),"schedule",this).call(this,x,N):(this.delay=N,this.state=x,this.scheduler.flush(this),this)}},{key:"execute",value:function(x,N){return N>0||this.closed?(0,S.Z)((0,U.Z)(T.prototype),"execute",this).call(this,x,N):this._execute(x,N)}},{key:"requestAsyncId",value:function(x,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==R&&R>0||null===R&&this.delay>0?(0,S.Z)((0,U.Z)(T.prototype),"requestAsyncId",this).call(this,x,N,R):x.flush(this)}}]),T}(m(6686).o),F=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T)}(m(198).v),M=new F(y),O=M},5430:function(qe,J,m){"use strict";m.d(J,{hZ:function(){return Y}});var Y=function z(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(qe,J,m){"use strict";m.d(J,{L:function(){return z}});var z="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(qe,J,m){"use strict";m.d(J,{b:function(){return z}});var z="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(qe,J,m){"use strict";m.d(J,{W:function(){return Y}});var Y=function(){function S(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return S.prototype=Object.create(Error.prototype),S}()},4450:function(qe,J,m){"use strict";m.d(J,{K:function(){return Y}});var Y=function(){function S(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return S.prototype=Object.create(Error.prototype),S}()},1450:function(qe,J,m){"use strict";m.d(J,{H:function(){return L}});var z=1,Y=Promise.resolve(),S={};function U(D){return D in S&&(delete S[D],!0)}var L={setImmediate:function(y){var K=z++;return S[K]=!0,Y.then(function(){return U(K)&&y()}),K},clearImmediate:function(y){U(y)}}},5279:function(qe,J,m){"use strict";m.d(J,{N:function(){return Y}});var Y=function(){function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return S.prototype=Object.create(Error.prototype),S}()},854:function(qe,J,m){"use strict";m.d(J,{W:function(){return Y}});var Y=function(){function S(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return S.prototype=Object.create(Error.prototype),S}()},7964:function(qe,J,m){"use strict";m.d(J,{B:function(){return Y}});var Y=function(){function S(U){return Error.call(this),this.message=U?"".concat(U.length," errors occurred during unsubscription:\n").concat(U.map(function(L,P){return"".concat(P+1,") ").concat(L.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=U,this}return S.prototype=Object.create(Error.prototype),S}()},5128:function(qe,J,m){"use strict";function z(Y,S){for(var U=0,L=S.length;U<L;U++)for(var P=S[U],D=Object.getOwnPropertyNames(P.prototype),y=0,K=D.length;y<K;y++){var F=D[y];Y.prototype[F]=P.prototype[F]}}m.d(J,{e:function(){return z}})},9476:function(qe,J,m){"use strict";m.d(J,{_:function(){return Y}});var z=m(3489);function Y(S){for(;S;){var U=S,L=U.closed,P=U.destination,D=U.isStopped;if(L||D)return!1;S=P&&P instanceof z.L?P:null}return!0}},2782:function(qe,J,m){"use strict";function z(Y){setTimeout(function(){throw Y},0)}m.d(J,{z:function(){return z}})},5379:function(qe,J,m){"use strict";function z(Y){return Y}m.d(J,{y:function(){return z}})},6688:function(qe,J,m){"use strict";m.d(J,{k:function(){return z}});var z=Array.isArray||function(Y){return Y&&"number"==typeof Y.length}},8515:function(qe,J,m){"use strict";m.d(J,{z:function(){return z}});var z=function(S){return S&&"number"==typeof S.length&&"function"!=typeof S}},2697:function(qe,J,m){"use strict";function z(Y){return Y instanceof Date&&!isNaN(+Y)}m.d(J,{J:function(){return z}})},7043:function(qe,J,m){"use strict";function z(Y){return"function"==typeof Y}m.d(J,{m:function(){return z}})},8845:function(qe,J,m){"use strict";m.d(J,{c:function(){return Y}});var z=m(3821);function Y(S){return S&&"function"==typeof S[z.L]}},2198:function(qe,J,m){"use strict";m.d(J,{T:function(){return Y}});var z=m(5430);function Y(S){return S&&"function"==typeof S[z.hZ]}},4241:function(qe,J,m){"use strict";m.d(J,{k:function(){return Y}});var z=m(6688);function Y(S){return!(0,z.k)(S)&&S-parseFloat(S)+1>=0}},7830:function(qe,J,m){"use strict";function z(Y){return null!==Y&&"object"==typeof Y}m.d(J,{K:function(){return z}})},4715:function(qe,J,m){"use strict";m.d(J,{b:function(){return Y}});var z=m(7451);function Y(S){return!!S&&(S instanceof z.y||"function"==typeof S.lift&&"function"==typeof S.subscribe)}},8955:function(qe,J,m){"use strict";function z(Y){return!!Y&&"function"!=typeof Y.subscribe&&"function"==typeof Y.then}m.d(J,{t:function(){return z}})},2866:function(qe,J,m){"use strict";function z(Y){return Y&&"function"==typeof Y.schedule}m.d(J,{K:function(){return z}})},7876:function(qe,J,m){"use strict";function z(){}m.d(J,{Z:function(){return z}})},5884:function(qe,J,m){"use strict";function z(Y,S){function U(){return!U.pred.apply(U.thisArg,arguments)}return U.pred=Y,U.thisArg=S,U}m.d(J,{f:function(){return z}})},4843:function(qe,J,m){"use strict";m.d(J,{U:function(){return S},z:function(){return Y}});var z=m(5379);function Y(){for(var U=arguments.length,L=new Array(U),P=0;P<U;P++)L[P]=arguments[P];return S(L)}function S(U){return 0===U.length?z.y:1===U.length?U[0]:function(P){return U.reduce(function(D,y){return y(D)},P)}}},797:function(qe,J,m){"use strict";m.d(J,{J:function(){return U}});var z="undefined"!=typeof window&&window,Y="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,S="undefined"!=typeof global&&global,U=z||S||Y;!function(){if(!U)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(qe,J,m){"use strict";m.d(J,{s:function(){return F}});var z=m(3650),Y=m(3445),S=m(3720),U=m(1810),L=m(8515),P=m(8955),D=m(7830),y=m(5430),K=m(3821),F=function(O){if(O&&"function"==typeof O[K.L])return(0,U.h)(O);if((0,L.z)(O))return(0,z.V)(O);if((0,P.t)(O))return(0,Y.A)(O);if(O&&"function"==typeof O[y.hZ])return(0,S.u)(O);var k=(0,D.K)(O)?"an invalid object":"'".concat(O,"'"),I="You provided ".concat(k," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(I)}},3650:function(qe,J,m){"use strict";m.d(J,{V:function(){return z}});var z=function(S){return function(U){for(var L=0,P=S.length;L<P&&!U.closed;L++)U.next(S[L]);U.complete()}}},3720:function(qe,J,m){"use strict";m.d(J,{u:function(){return Y}});var z=m(5430),Y=function(U){return function(L){for(var P=U[z.hZ]();;){var D=void 0;try{D=P.next()}catch(y){return L.error(y),L}if(D.done){L.complete();break}if(L.next(D.value),L.closed)break}return"function"==typeof P.return&&L.add(function(){P.return&&P.return()}),L}}},1810:function(qe,J,m){"use strict";m.d(J,{h:function(){return Y}});var z=m(3821),Y=function(U){return function(L){var P=U[z.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(L)}}},3445:function(qe,J,m){"use strict";m.d(J,{A:function(){return Y}});var z=m(2782),Y=function(U){return function(L){return U.then(function(P){L.closed||(L.next(P),L.complete())},function(P){return L.error(P)}).then(null,z.z),L}}},9054:function(qe,J,m){"use strict";m.d(J,{D:function(){return U}});var z=m(1869),Y=m(3071),S=m(7451);function U(L,P,D,y){var K=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new z.d(L,D,y);if(!K.closed)return P instanceof S.y?P.subscribe(K):(0,Y.s)(P)(K)}},5221:function(qe,J,m){"use strict";m.d(J,{Y:function(){return U}});var z=m(3489),Y=m(7668),S=m(3292);function U(L,P,D){if(L){if(L instanceof z.L)return L;if(L[Y.b])return L[Y.b]()}return L||P||D?new z.L(L,P,D):new z.L(S.c)}},6650:function(qe,J,m){"use strict";m.r(J),m.d(J,{audit:function(){return z.U},auditTime:function(){return Y.e},buffer:function(){return K},bufferCount:function(){return T},bufferTime:function(){return $},bufferToggle:function(){return ke},bufferWhen:function(){return Mt},catchError:function(){return en.K},combineAll:function(){return Xe},combineLatest:function(){return Lt},concat:function(){return on},concatAll:function(){return _n.u},concatMap:function(){return An.b},concatMapTo:function(){return Gt},count:function(){return Zt.Q},debounce:function(){return Et},debounceTime:function(){return ln.b},defaultIfEmpty:function(){return yt.d},delay:function(){return mt.g},delayWhen:function(){return $t},dematerialize:function(){return Bt},distinct:function(){return Te},distinctUntilChanged:function(){return lt.x},distinctUntilKeyChanged:function(){return Dt},elementAt:function(){return On},endWith:function(){return zn},every:function(){return Zn},exhaust:function(){return lr},exhaustMap:function(){return Ue},expand:function(){return bt},filter:function(){return Jt.h},finalize:function(){return rr.x},find:function(){return pn},findIndex:function(){return Ae},first:function(){return Qe.P},flatMap:function(){return ci.VS},groupBy:function(){return _t.v},ignoreElements:function(){return Wt},isEmpty:function(){return cr},last:function(){return Mr.Z},map:function(){return tt.U},mapTo:function(){return Hi.h},materialize:function(){return qi},max:function(){return Qa},merge:function(){return or},mergeAll:function(){return Pr.J},mergeMap:function(){return ci.zg},mergeMapTo:function(){return lo},mergeScan:function(){return uo},min:function(){return ei},multicast:function(){return Pi.O},observeOn:function(){return Wi.QV},onErrorResumeNext:function(){return hr},pairwise:function(){return Do.G},partition:function(){return Jo},pluck:function(){return ga},publish:function(){return ws},publishBehavior:function(){return Ba},publishLast:function(){return Cn},publishReplay:function(){return Li},race:function(){return ti},reduce:function(){return yi},refCount:function(){return Oo.x},repeat:function(){return va},repeatWhen:function(){return Co},retry:function(){return ya},retryWhen:function(){return mo},sample:function(){return io},sampleTime:function(){return Qo},scan:function(){return qo.R},sequenceEqual:function(){return ba},share:function(){return es.B},shareReplay:function(){return Ua.d},single:function(){return Ha},skip:function(){return Rs.T},skipLast:function(){return iu},skipUntil:function(){return Su},skipWhile:function(){return Ge},startWith:function(){return un.O},subscribeOn:function(){return Pn},switchAll:function(){return ai},switchMap:function(){return jr.w},switchMapTo:function(){return $i},take:function(){return dn.q},takeLast:function(){return _a.h},takeUntil:function(){return So.R},takeWhile:function(){return Di.o},tap:function(){return $o.b},throttle:function(){return Ye.P},throttleTime:function(){return Le},throwIfEmpty:function(){return nn.T},timeInterval:function(){return Rt.J},timeout:function(){return ou},timeoutWith:function(){return Lr},timestamp:function(){return rd.A},toArray:function(){return si},window:function(){return dr},windowCount:function(){return wi},windowTime:function(){return xu},windowToggle:function(){return Ze},windowWhen:function(){return Ft},withLatestFrom:function(){return bn},zip:function(){return gr},zipAll:function(){return di}});var z=m(384),Y=m(7568),S=m(7326),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(1177);function K(Ne){return function(X){return X.lift(new F(Ne))}}var F=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingNotifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new M(X,this.closingNotifier))}}]),Ne}(),M=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).buffer=[],ot.add((0,y.ft)(De,new y.IY((0,S.Z)(ot)))),ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"notifyNext",value:function(){var De=this.buffer;this.buffer=[],this.destination.next(De)}}]),X}(y.Ds),O=m(3237),k=m(1120),I=m(3489);function T(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(je){return je.lift(new w(Ne,we))}}var w=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.bufferSize=we,this.startBufferEvery=X,this.subscriberClass=X&&we!==X?N:x}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new this.subscriberClass(X,this.bufferSize,this.startBufferEvery))}}]),Ne}(),x=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).bufferSize=De,ot.buffer=[],ot}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this.buffer;ot.push(De),ot.length==this.bufferSize&&(this.destination.next(ot),this.buffer=[])}},{key:"_complete",value:function(){var De=this.buffer;De.length>0&&this.destination.next(De),(0,O.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}}]),X}(I.L),N=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).bufferSize=De,At.startBufferEvery=ot,At.buffers=[],At.count=0,At}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this.bufferSize,At=this.startBufferEvery,fn=this.buffers,Sn=this.count;this.count++,Sn%At==0&&fn.push([]);for(var Sr=fn.length;Sr--;){var Ti=fn[Sr];Ti.push(De),Ti.length===ot&&(fn.splice(Sr,1),this.destination.next(Ti))}}},{key:"_complete",value:function(){for(var De=this.buffers,ot=this.destination;De.length>0;){var At=De.shift();At.length>0&&ot.next(At)}(0,O.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}}]),X}(I.L),R=m(353),W=m(2866);function $(Ne){var we=arguments.length,X=R.P;(0,W.K)(arguments[arguments.length-1])&&(X=arguments[arguments.length-1],we--);var je=null;we>=2&&(je=arguments[1]);var De=Number.POSITIVE_INFINITY;return we>=3&&(De=arguments[2]),function(At){return At.lift(new ce(Ne,je,De,X))}}var ce=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.bufferTimeSpan=we,this.bufferCreationInterval=X,this.maxBufferSize=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new te(X,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ne}(),se=(0,D.Z)(function Ne(){(0,P.Z)(this,Ne),this.buffer=[]}),te=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At,fn){var Sn;(0,P.Z)(this,X),(Sn=we.call(this,je)).bufferTimeSpan=De,Sn.bufferCreationInterval=ot,Sn.maxBufferSize=At,Sn.scheduler=fn,Sn.contexts=[];var Sr=Sn.openContext();if(Sn.timespanOnly=null==ot||ot<0,Sn.timespanOnly){var Ti={subscriber:(0,S.Z)(Sn),context:Sr,bufferTimeSpan:De};Sn.add(Sr.closeAction=fn.schedule(oe,De,Ti))}else{var jo={subscriber:(0,S.Z)(Sn),context:Sr},eo={bufferTimeSpan:De,bufferCreationInterval:ot,subscriber:(0,S.Z)(Sn),scheduler:fn};Sn.add(Sr.closeAction=fn.schedule(Oe,De,jo)),Sn.add(fn.schedule(ve,ot,eo))}return Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var fn,ot=this.contexts,At=ot.length,Sn=0;Sn<At;Sn++){var Sr=ot[Sn],Ti=Sr.buffer;Ti.push(De),Ti.length==this.maxBufferSize&&(fn=Sr)}fn&&this.onBufferFull(fn)}},{key:"_error",value:function(De){this.contexts.length=0,(0,O.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts,ot=this.destination;De.length>0;){var At=De.shift();ot.next(At.buffer)}(0,O.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(De){this.closeContext(De);var ot=De.closeAction;if(ot.unsubscribe(),this.remove(ot),!this.closed&&this.timespanOnly){De=this.openContext();var At=this.bufferTimeSpan,fn={subscriber:this,context:De,bufferTimeSpan:At};this.add(De.closeAction=this.scheduler.schedule(oe,At,fn))}}},{key:"openContext",value:function(){var De=new se;return this.contexts.push(De),De}},{key:"closeContext",value:function(De){this.destination.next(De.buffer);var ot=this.contexts;(ot?ot.indexOf(De):-1)>=0&&ot.splice(ot.indexOf(De),1)}}]),X}(I.L);function oe(Ne){var we=Ne.subscriber,X=Ne.context;X&&we.closeContext(X),we.closed||(Ne.context=we.openContext(),Ne.context.closeAction=this.schedule(Ne,Ne.bufferTimeSpan))}function ve(Ne){var we=Ne.bufferCreationInterval,X=Ne.bufferTimeSpan,je=Ne.subscriber,De=Ne.scheduler,ot=je.openContext();je.closed||(je.add(ot.closeAction=De.schedule(Oe,X,{subscriber:je,context:ot})),this.schedule(Ne,we))}function Oe(Ne){var we=Ne.subscriber,X=Ne.context;we.closeContext(X)}var st=m(4096),xe=m(9054),_e=m(826);function ke(Ne,we){return function(je){return je.lift(new Fe(Ne,we))}}var Fe=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.openings=we,this.closingSelector=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ct(X,this.openings,this.closingSelector))}}]),Ne}(),ct=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).closingSelector=ot,At.contexts=[],At.add((0,xe.D)((0,S.Z)(At),De)),At}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var ot=this.contexts,At=ot.length,fn=0;fn<At;fn++)ot[fn].buffer.push(De)}},{key:"_error",value:function(De){for(var ot=this.contexts;ot.length>0;){var At=ot.shift();At.subscription.unsubscribe(),At.buffer=null,At.subscription=null}this.contexts=null,(0,O.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts;De.length>0;){var ot=De.shift();this.destination.next(ot.buffer),ot.subscription.unsubscribe(),ot.buffer=null,ot.subscription=null}this.contexts=null,(0,O.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(De,ot){De?this.closeBuffer(De):this.openBuffer(ot)}},{key:"notifyComplete",value:function(De){this.closeBuffer(De.context)}},{key:"openBuffer",value:function(De){try{var At=this.closingSelector.call(this,De);At&&this.trySubscribe(At)}catch(fn){this._error(fn)}}},{key:"closeBuffer",value:function(De){var ot=this.contexts;if(ot&&De){var At=De.buffer,fn=De.subscription;this.destination.next(At),ot.splice(ot.indexOf(De),1),this.remove(fn),fn.unsubscribe()}}},{key:"trySubscribe",value:function(De){var ot=this.contexts,fn=new st.w,Sn={buffer:[],subscription:fn};ot.push(Sn);var Sr=(0,xe.D)(this,De,Sn);!Sr||Sr.closed?this.closeBuffer(Sn):(Sr.context=Sn,this.add(Sr),fn.add(Sr))}}]),X}(_e.L);function Mt(Ne){return function(we){return we.lift(new Nt(Ne))}}var Nt=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Xt(X,this.closingSelector))}}]),Ne}(),Xt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).closingSelector=De,ot.subscribing=!1,ot.openBuffer(),ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"_complete",value:function(){var De=this.buffer;De&&this.destination.next(De),(0,O.Z)((0,k.Z)(X.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 De=this.closingSubscription;De&&(this.remove(De),De.unsubscribe());var At,ot=this.buffer;this.buffer&&this.destination.next(ot),this.buffer=[];try{At=(0,this.closingSelector)()}catch(Sn){return this.error(Sn)}De=new st.w,this.closingSubscription=De,this.add(De),this.subscribing=!0,De.add((0,y.ft)(At,new y.IY(this))),this.subscribing=!1}}]),X}(y.Ds),en=m(7221),qt=m(6053);function Xe(Ne){return function(we){return we.lift(new qt.Ms(Ne))}}var jt=m(4902),it=m(6688),vt=m(3527);function Lt(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];var je=null;return"function"==typeof we[we.length-1]&&(je=we.pop()),1===we.length&&(0,it.k)(we[0])&&(we=we[0].slice()),function(De){return De.lift.call((0,vt.D)([De].concat((0,jt.Z)(we))),new qt.Ms(je))}}var It=m(1961);function on(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return je.lift.call(It.z.apply(void 0,[je].concat(we)))}}var _n=m(534),An=m(1406);function Gt(Ne,we){return(0,An.b)(function(){return Ne},we)}var Zt=m(3906);function Et(Ne){return function(we){return we.lift(new Ut(Ne))}}var Ut=function(){function Ne(we){(0,P.Z)(this,Ne),this.durationSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ht(X,this.durationSelector))}}]),Ne}(),Ht=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).durationSelector=De,ot.hasValue=!1,ot}return(0,D.Z)(X,[{key:"_next",value:function(De){try{var ot=this.durationSelector.call(this,De);ot&&this._tryNext(De,ot)}catch(At){this.destination.error(At)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(De,ot){var At=this.durationSubscription;this.value=De,this.hasValue=!0,At&&(At.unsubscribe(),this.remove(At)),(At=(0,y.ft)(ot,new y.IY(this)))&&!At.closed&&this.add(this.durationSubscription=At)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var De=this.value,ot=this.durationSubscription;ot&&(this.durationSubscription=void 0,ot.unsubscribe(),this.remove(ot)),this.value=void 0,this.hasValue=!1,(0,O.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}}}]),X}(y.Ds),ln=m(13),yt=m(7314),mt=m(943),cn=m(7451);function $t(Ne,we){return we?function(X){return new Jn(X,we).lift(new j(Ne))}:function(X){return X.lift(new j(Ne))}}var j=function(){function Ne(we){(0,P.Z)(this,Ne),this.delayDurationSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new V(X,this.delayDurationSelector))}}]),Ne}(),V=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).delayDurationSelector=De,ot.completed=!1,ot.delayNotifierSubscriptions=[],ot.index=0,ot}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,ot,At,fn,Sn){this.destination.next(De),this.removeSubscription(Sn),this.tryComplete()}},{key:"notifyError",value:function(De,ot){this._error(De)}},{key:"notifyComplete",value:function(De){var ot=this.removeSubscription(De);ot&&this.destination.next(ot),this.tryComplete()}},{key:"_next",value:function(De){var ot=this.index++;try{var At=this.delayDurationSelector(De,ot);At&&this.tryDelay(At,De)}catch(fn){this.destination.error(fn)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(De){De.unsubscribe();var ot=this.delayNotifierSubscriptions.indexOf(De);return-1!==ot&&this.delayNotifierSubscriptions.splice(ot,1),De.outerValue}},{key:"tryDelay",value:function(De,ot){var At=(0,xe.D)(this,De,ot);At&&!At.closed&&(this.destination.add(At),this.delayNotifierSubscriptions.push(At))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),X}(_e.L),Jn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this)).source=je,ot.subscriptionDelay=De,ot}return(0,D.Z)(X,[{key:"_subscribe",value:function(De){this.subscriptionDelay.subscribe(new wn(De,this.source))}}]),X}(cn.y),wn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this)).parent=je,ot.source=De,ot.sourceSubscribed=!1,ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.subscribeToSource()}},{key:"_error",value:function(De){this.unsubscribe(),this.parent.error(De)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),X}(I.L);function Bt(){return function(we){return we.lift(new dt)}}var dt=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new de(X))}}]),Ne}(),de=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"_next",value:function(De){De.observe(this.destination)}}]),X}(I.L);function Te(Ne,we){return function(X){return X.lift(new ue(Ne,we))}}var ue=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.keySelector=we,this.flushes=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new We(X,this.keySelector,this.flushes))}}]),Ne}(),We=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).keySelector=De,At.values=new Set,ot&&At.add((0,y.ft)(ot,new y.IY((0,S.Z)(At)))),At}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"_next",value:function(De){this.keySelector?this._useKeySelector(De):this._finalizeNext(De,De)}},{key:"_useKeySelector",value:function(De){var ot,At=this.destination;try{ot=this.keySelector(De)}catch(fn){return void At.error(fn)}this._finalizeNext(ot,De)}},{key:"_finalizeNext",value:function(De,ot){var At=this.values;At.has(De)||(At.add(De),this.destination.next(ot))}}]),X}(y.Ds),lt=m(5778);function Dt(Ne,we){return(0,lt.x)(function(X,je){return we?we(X[Ne],je[Ne]):X[Ne]===je[Ne]})}var tn=m(4231),Jt=m(9664),nn=m(4907),dn=m(2986);function On(Ne,we){if(Ne<0)throw new tn.W;var X=arguments.length>=2;return function(je){return je.pipe((0,Jt.h)(function(De,ot){return ot===Ne}),(0,dn.q)(1),X?(0,yt.d)(we):(0,nn.T)(function(){return new tn.W}))}}var Dn=m(1086);function zn(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return(0,It.z)(je,Dn.of.apply(void 0,we))}}function Zn(Ne,we){return function(X){return X.lift(new jn(Ne,we,X))}}var jn=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.predicate=we,this.thisArg=X,this.source=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new mn(X,this.predicate,this.thisArg,this.source))}}]),Ne}(),mn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).predicate=De,fn.thisArg=ot,fn.source=At,fn.index=0,fn.thisArg=ot||(0,S.Z)(fn),fn}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){this.destination.next(De),this.destination.complete()}},{key:"_next",value:function(De){var ot=!1;try{ot=this.predicate.call(this.thisArg,De,this.index++,this.source)}catch(At){return void this.destination.error(At)}ot||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),X}(I.L);function lr(){return function(Ne){return Ne.lift(new Yn)}}var Yn=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Kt(X))}}]),Ne}(),Kt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){var De;return(0,P.Z)(this,X),(De=we.call(this,je)).hasCompleted=!1,De.hasSubscription=!1,De}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasSubscription||(this.hasSubscription=!0,this.add((0,y.ft)(De,new y.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()}}]),X}(y.Ds),tt=m(4850);function Ue(Ne,we){return we?function(X){return X.pipe(Ue(function(je,De){return(0,vt.D)(Ne(je,De)).pipe((0,tt.U)(function(ot,At){return we(je,ot,De,At)}))}))}:function(X){return X.lift(new Ee(Ne))}}var Ee=function(){function Ne(we){(0,P.Z)(this,Ne),this.project=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new He(X,this.project))}}]),Ne}(),He=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).project=De,ot.hasSubscription=!1,ot.hasCompleted=!1,ot.index=0,ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasSubscription||this.tryNext(De)}},{key:"tryNext",value:function(De){var ot,At=this.index++;try{ot=this.project(De,At)}catch(fn){return void this.destination.error(fn)}this.hasSubscription=!0,this._innerSub(ot)}},{key:"_innerSub",value:function(De){var ot=new y.IY(this),At=this.destination;At.add(ot);var fn=(0,y.ft)(De,ot);fn!==ot&&At.add(fn)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this.destination.next(De)}},{key:"notifyError",value:function(De){this.destination.error(De)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),X}(y.Ds);function bt(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,X=arguments.length>2?arguments[2]:void 0;return we=(we||0)<1?Number.POSITIVE_INFINITY:we,function(je){return je.lift(new Yt(Ne,we,X))}}var Yt=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.project=we,this.concurrent=X,this.scheduler=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new En(X,this.project,this.concurrent,this.scheduler))}}]),Ne}(),En=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).project=De,fn.concurrent=ot,fn.scheduler=At,fn.index=0,fn.active=0,fn.hasCompleted=!1,ot<Number.POSITIVE_INFINITY&&(fn.buffer=[]),fn}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this.destination;if(ot.closed)this._complete();else{var At=this.index++;if(this.active<this.concurrent){ot.next(De);try{var Sn=(0,this.project)(De,At);if(this.scheduler){var Sr={subscriber:this,result:Sn,value:De,index:At};this.destination.add(this.scheduler.schedule(X.dispatch,0,Sr))}else this.subscribeToProjection(Sn,De,At)}catch(jo){ot.error(jo)}}else this.buffer.push(De)}}},{key:"subscribeToProjection",value:function(De,ot,At){this.active++,this.destination.add((0,y.ft)(De,new y.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this._next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De&&De.length>0&&this._next(De.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(De){var ot=De.subscriber,At=De.result,fn=De.value,Sn=De.index;ot.subscribeToProjection(At,fn,Sn)}}]),X}(y.Ds),rr=m(537);function pn(Ne,we){if("function"!=typeof Ne)throw new TypeError("predicate is not a function");return function(X){return X.lift(new ut(Ne,X,!1,we))}}var ut=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.predicate=we,this.source=X,this.yieldIndex=je,this.thisArg=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Se(X,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ne}(),Se=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).predicate=De,Sn.source=ot,Sn.yieldIndex=At,Sn.thisArg=fn,Sn.index=0,Sn}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){var ot=this.destination;ot.next(De),ot.complete(),this.unsubscribe()}},{key:"_next",value:function(De){var ot=this.predicate,At=this.thisArg,fn=this.index++;try{ot.call(At||this,De,fn,this.source)&&this.notifyComplete(this.yieldIndex?fn:De)}catch(Sr){this.destination.error(Sr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),X}(I.L);function Ae(Ne,we){return function(X){return X.lift(new ut(Ne,X,!0,we))}}var Qe=m(7224),_t=m(4002);function Wt(){return function(we){return we.lift(new vn)}}var vn=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ln(X))}}]),Ne}(),Ln=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){return(0,P.Z)(this,X),we.apply(this,arguments)}return(0,D.Z)(X,[{key:"_next",value:function(De){}}]),X}(I.L);function cr(){return function(Ne){return Ne.lift(new Rr)}}var Rr=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new $r(X))}}]),Ne}(),$r=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){var ot=this.destination;ot.next(De),ot.complete()}},{key:"_next",value:function(De){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),X}(I.L),Mr=m(8127),Hi=m(7604),bo=m(9312);function qi(){return function(we){return we.lift(new Ja)}}var Ja=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Na(X))}}]),Ne}(),Na=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"_next",value:function(De){this.destination.next(bo.P.createNext(De))}},{key:"_error",value:function(De){var ot=this.destination;ot.next(bo.P.createError(De)),ot.complete()}},{key:"_complete",value:function(){var De=this.destination;De.next(bo.P.createComplete()),De.complete()}}]),X}(I.L),qo=m(2014),_a=m(2821),Ko=m(4843);function yi(Ne,we){return arguments.length>=2?function(je){return(0,Ko.z)((0,qo.R)(Ne,we),(0,_a.h)(1),(0,yt.d)(we))(je)}:function(je){return(0,Ko.z)((0,qo.R)(function(De,ot,At){return Ne(De,ot,At+1)}),(0,_a.h)(1))(je)}}function Qa(Ne){return yi("function"==typeof Ne?function(X,je){return Ne(X,je)>0?X:je}:function(X,je){return X>je?X:je})}var zi=m(6787);function or(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return je.lift.call(zi.T.apply(void 0,[je].concat(we)))}}var Pr=m(9146),ci=m(1709);function lo(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof we?(0,ci.zg)(function(){return Ne},we,X):("number"==typeof we&&(X=we),(0,ci.zg)(function(){return Ne},X))}function uo(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(je){return je.lift(new mi(Ne,we,X))}}var mi=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.accumulator=we,this.seed=X,this.concurrent=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Bo(X,this.accumulator,this.seed,this.concurrent))}}]),Ne}(),Bo=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).accumulator=De,fn.acc=ot,fn.concurrent=At,fn.hasValue=!1,fn.hasCompleted=!1,fn.buffer=[],fn.active=0,fn.index=0,fn}return(0,D.Z)(X,[{key:"_next",value:function(De){if(this.active<this.concurrent){var fn,ot=this.index++,At=this.destination;try{fn=(0,this.accumulator)(this.acc,De,ot)}catch(Sr){return At.error(Sr)}this.active++,this._innerSub(fn)}else this.buffer.push(De)}},{key:"_innerSub",value:function(De){var ot=new y.IY(this),At=this.destination;At.add(ot);var fn=(0,y.ft)(De,ot);fn!==ot&&At.add(fn)}},{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(De){var ot=this.destination;this.acc=De,this.hasValue=!0,ot.next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De.length>0?this._next(De.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),X}(y.Ds);function ei(Ne){return yi("function"==typeof Ne?function(X,je){return Ne(X,je)<0?X:je}:function(X,je){return X<je?X:je})}var Pi=m(2536),Wi=m(7770);function hr(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return 1===we.length&&(0,it.k)(we[0])&&(we=we[0]),function(je){return je.lift(new Xa(we))}}var Xa=function(){function Ne(we){(0,P.Z)(this,Ne),this.nextSources=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ri(X,this.nextSources))}}]),Ne}(),Ri=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).destination=je,ot.nextSources=De,ot}return(0,D.Z)(X,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(De){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var De=this.nextSources.shift();if(De){var ot=new y.IY(this),At=this.destination;At.add(ot);var fn=(0,y.ft)(De,ot);fn!==ot&&At.add(fn)}else this.destination.complete()}}]),X}(y.Ds),Do=m(519),_i=m(5884);function Jo(Ne,we){return function(X){return[(0,Jt.h)(Ne,we)(X),(0,Jt.h)((0,_i.f)(Ne,we))(X)]}}function ga(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];var je=we.length;if(0===je)throw new Error("list of properties cannot be empty.");return function(De){return(0,tt.U)(bi(we,je))(De)}}function bi(Ne,we){return function(De){for(var ot=De,At=0;At<we;At++){var fn=null!=ot?ot[Ne[At]]:void 0;if(void 0===fn)return;ot=fn}return ot}}var Nr=m(8929);function ws(Ne){return Ne?(0,Pi.O)(function(){return new Nr.xQ},Ne):(0,Pi.O)(new Nr.xQ)}var oa=m(591);function Ba(Ne){return function(we){return(0,Pi.O)(new oa.X(Ne))(we)}}var yn=m(2185);function Cn(){return function(Ne){return(0,Pi.O)(new yn.c)(Ne)}}var oi=m(839);function Li(Ne,we,X,je){X&&"function"!=typeof X&&(je=X);var De="function"==typeof X?X:void 0,ot=new oi.t(Ne,we,je);return function(At){return(0,Pi.O)(function(){return ot},De)(At)}}var Ki=m(1946);function ti(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(De){return 1===we.length&&(0,it.k)(we[0])&&(we=we[0]),De.lift.call(Ki.S3.apply(void 0,[De].concat((0,jt.Z)(we))))}}var Fo=m(8896);function va(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(we){return 0===Ne?(0,Fo.c)():Ne<0?we.lift(new Ji(-1,we)):we.lift(new Ji(Ne-1,we))}}var Ji=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.count=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ci(X,this.count,this.source))}}]),Ne}(),Ci=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).count=De,At.source=ot,At}return(0,D.Z)(X,[{key:"complete",value:function(){if(!this.isStopped){var De=this.source,ot=this.count;if(0===ot)return(0,O.Z)((0,k.Z)(X.prototype),"complete",this).call(this);ot>-1&&(this.count=ot-1),De.subscribe(this._unsubscribeAndRecycle())}}}]),X}(I.L);function Co(Ne){return function(we){return we.lift(new ks(Ne))}}var ks=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Uo(X,this.notifier,je))}}]),Ne}(),Uo=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).notifier=De,At.source=ot,At.sourceIsBeingSubscribedTo=!0,At}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,O.Z)((0,k.Z)(X.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,O.Z)((0,k.Z)(X.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var De=this.notifications,ot=this.retriesSubscription;De&&(De.unsubscribe(),this.notifications=void 0),ot&&(ot.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var De=this._unsubscribe;return this._unsubscribe=null,(0,O.Z)((0,k.Z)(X.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=De,this}},{key:"subscribeToRetries",value:function(){var De;this.notifications=new Nr.xQ;try{De=(0,this.notifier)(this.notifications)}catch(At){return(0,O.Z)((0,k.Z)(X.prototype),"complete",this).call(this)}this.retries=De,this.retriesSubscription=(0,y.ft)(De,new y.IY(this))}}]),X}(y.Ds);function ya(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(we){return we.lift(new Ho(Ne,we))}}var Ho=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.count=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Qi(X,this.count,this.source))}}]),Ne}(),Qi=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).count=De,At.source=ot,At}return(0,D.Z)(X,[{key:"error",value:function(De){if(!this.isStopped){var ot=this.source,At=this.count;if(0===At)return(0,O.Z)((0,k.Z)(X.prototype),"error",this).call(this,De);At>-1&&(this.count=At-1),ot.subscribe(this._unsubscribeAndRecycle())}}}]),X}(I.L);function mo(Ne){return function(we){return we.lift(new tr(Ne,we))}}var tr=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.notifier=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Fa(X,this.notifier,this.source))}}]),Ne}(),Fa=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).notifier=De,At.source=ot,At}return(0,D.Z)(X,[{key:"error",value:function(De){if(!this.isStopped){var ot=this.errors,At=this.retries,fn=this.retriesSubscription;if(At)this.errors=void 0,this.retriesSubscription=void 0;else{ot=new Nr.xQ;try{At=(0,this.notifier)(ot)}catch(Sr){return(0,O.Z)((0,k.Z)(X.prototype),"error",this).call(this,Sr)}fn=(0,y.ft)(At,new y.IY(this))}this._unsubscribeAndRecycle(),this.errors=ot,this.retries=At,this.retriesSubscription=fn,ot.next(De)}}},{key:"_unsubscribe",value:function(){var De=this.errors,ot=this.retriesSubscription;De&&(De.unsubscribe(),this.errors=void 0),ot&&(ot.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var De=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=De,this.source.subscribe(this)}}]),X}(y.Ds),Oo=m(4327);function io(Ne){return function(we){return we.lift(new Kr(Ne))}}var Kr=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){var De=new la(X),ot=je.subscribe(De);return ot.add((0,y.ft)(this.notifier,new y.IY(De))),ot}}]),Ne}(),la=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){var je;return(0,P.Z)(this,X),(je=we.apply(this,arguments)).hasValue=!1,je}return(0,D.Z)(X,[{key:"_next",value:function(De){this.value=De,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))}}]),X}(y.Ds);function Qo(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(X){return X.lift(new br(Ne,we))}}var br=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.period=we,this.scheduler=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Is(X,this.period,this.scheduler))}}]),Ne}(),Is=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).period=De,At.scheduler=ot,At.hasValue=!1,At.add(ot.schedule(cs,De,{subscriber:(0,S.Z)(At),period:De})),At}return(0,D.Z)(X,[{key:"_next",value:function(De){this.lastValue=De,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),X}(I.L);function cs(Ne){var we=Ne.subscriber,X=Ne.period;we.notifyNext(),this.schedule(Ne,X)}function ba(Ne,we){return function(X){return X.lift(new Xi(Ne,we))}}var Xi=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.compareTo=we,this.comparator=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new $a(X,this.compareTo,this.comparator))}}]),Ne}(),$a=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).compareTo=De,At.comparator=ot,At._a=[],At._b=[],At._oneComplete=!1,At.destination.add(De.subscribe(new Ps(je,(0,S.Z)(At)))),At}return(0,D.Z)(X,[{key:"_next",value:function(De){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(De),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 De=this._a,ot=this._b,At=this.comparator;De.length>0&&ot.length>0;){var fn=De.shift(),Sn=ot.shift(),Sr=!1;try{Sr=At?At(fn,Sn):fn===Sn}catch(Ti){this.destination.error(Ti)}Sr||this.emit(!1)}}},{key:"emit",value:function(De){var ot=this.destination;ot.next(De),ot.complete()}},{key:"nextB",value:function(De){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(De),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),X}(I.L),Ps=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).parent=De,ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.parent.nextB(De)}},{key:"_error",value:function(De){this.parent.error(De),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),X}(I.L),es=m(8117),Ua=m(5154),Mu=m(4450);function Ha(Ne){return function(we){return we.lift(new Xo(Ne,we))}}var Xo=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.predicate=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ts(X,this.predicate,this.source))}}]),Ne}(),ts=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).predicate=De,At.source=ot,At.seenValue=!1,At.index=0,At}return(0,D.Z)(X,[{key:"applySingleValue",value:function(De){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=De)}},{key:"_next",value:function(De){var ot=this.index++;this.predicate?this.tryNext(De,ot):this.applySingleValue(De)}},{key:"tryNext",value:function(De,ot){try{this.predicate(De,ot,this.source)&&this.applySingleValue(De)}catch(At){this.destination.error(At)}}},{key:"_complete",value:function(){var De=this.destination;this.index>0?(De.next(this.seenValue?this.singleValue:void 0),De.complete()):De.error(new Mu.K)}}]),X}(I.L),Rs=m(1307);function iu(Ne){return function(we){return we.lift(new wo(Ne))}}var wo=function(){function Ne(we){if((0,P.Z)(this,Ne),this._skipCount=we,this._skipCount<0)throw new tn.W}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return 0===this._skipCount?je.subscribe(new I.L(X)):je.subscribe(new ja(X,this._skipCount))}}]),Ne}(),ja=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je))._skipCount=De,ot._count=0,ot._ring=new Array(De),ot}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this._skipCount,At=this._count++;if(At<ot)this._ring[At]=De;else{var fn=At%ot,Sn=this._ring,Sr=Sn[fn];Sn[fn]=De,this.destination.next(Sr)}}}]),X}(I.L);function Su(Ne){return function(we){return we.lift(new ye(Ne))}}var ye=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Re(X,this.notifier))}}]),Ne}(),Re=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;(0,P.Z)(this,X),(ot=we.call(this,je)).hasValue=!1;var At=new y.IY((0,S.Z)(ot));ot.add(At),ot.innerSubscription=At;var fn=(0,y.ft)(De,At);return fn!==At&&(ot.add(fn),ot.innerSubscription=fn),ot}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasValue&&(0,O.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),X}(y.Ds);function Ge(Ne){return function(we){return we.lift(new gt(Ne))}}var gt=function(){function Ne(we){(0,P.Z)(this,Ne),this.predicate=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new xt(X,this.predicate))}}]),Ne}(),xt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).predicate=De,ot.skipping=!0,ot.index=0,ot}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this.destination;this.skipping&&this.tryCallPredicate(De),this.skipping||ot.next(De)}},{key:"tryCallPredicate",value:function(De){try{var ot=this.predicate(De,this.index++);this.skipping=Boolean(ot)}catch(At){this.destination.error(At)}}}]),X}(I.L),un=m(1059),Mn=m(3837);function Pn(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(je){return je.lift(new Or(Ne,we))}}var Or=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.scheduler=we,this.delay=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return new Mn.e(je,this.delay,this.scheduler).subscribe(X)}}]),Ne}(),jr=m(7545),ar=m(5379);function ai(){return(0,jr.w)(ar.y)}function $i(Ne,we){return we?(0,jr.w)(function(){return Ne},we):(0,jr.w)(function(){return Ne})}var So=m(7625),Di=m(4290),$o=m(2994),Ye=m(2444);function Le(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ye.d;return function(je){return je.lift(new Ce(Ne,we,X.leading,X.trailing))}}var Ce=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.duration=we,this.scheduler=X,this.leading=je,this.trailing=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Je(X,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ne}(),Je=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).duration=De,Sn.scheduler=ot,Sn.leading=At,Sn.trailing=fn,Sn._hasTrailingValue=!1,Sn._trailingValue=null,Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){this.throttled?this.trailing&&(this._trailingValue=De,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ke,this.duration,{subscriber:this})),this.leading?this.destination.next(De):this.trailing&&(this._trailingValue=De,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 De=this.throttled;De&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),De.unsubscribe(),this.remove(De),this.throttled=null)}}]),X}(I.L);function Ke(Ne){Ne.subscriber.clearThrottle()}var Rt=m(3485),an=m(854),nr=m(2697);function Lr(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.P;return function(je){var De=(0,nr.J)(Ne),ot=De?+Ne-X.now():Math.abs(Ne);return je.lift(new Ir(ot,De,we,X))}}var Ir=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.waitFor=we,this.absoluteTimeout=X,this.withObservable=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new _o(X,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ne}(),_o=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).absoluteTimeout=De,Sn.waitFor=ot,Sn.withObservable=At,Sn.scheduler=fn,Sn.scheduleTimeout(),Sn}return(0,D.Z)(X,[{key:"scheduleTimeout",value:function(){var De=this.action;De?this.action=De.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(X.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(De){this.absoluteTimeout||this.scheduleTimeout(),(0,O.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(De){var ot=De.withObservable;De._unsubscribeAndRecycle(),De.add((0,y.ft)(ot,new y.IY(De)))}}]),X}(y.Ds),uf=m(1737);function ou(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return Lr(Ne,(0,uf._)(new an.W),we)}var rd=m(7781);function oc(Ne,we,X){return 0===X?[we]:(Ne.push(we),Ne)}function si(){return yi(oc,[])}function dr(Ne){return function(X){return X.lift(new ac(Ne))}}var ac=function(){function Ne(we){(0,P.Z)(this,Ne),this.windowBoundaries=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){var De=new Nn(X),ot=je.subscribe(De);return ot.closed||De.add((0,y.ft)(this.windowBoundaries,new y.IY(De))),ot}}]),Ne}(),Nn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){var De;return(0,P.Z)(this,X),(De=we.call(this,je)).window=new Nr.xQ,je.next(De.window),De}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var De=this.window;De&&De.complete();var ot=this.destination,At=this.window=new Nr.xQ;ot.next(At)}}]),X}(y.Ds);function wi(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(je){return je.lift(new pi(Ne,we))}}var pi=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.windowSize=we,this.startWindowEvery=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ai(X,this.windowSize,this.startWindowEvery))}}]),Ne}(),Ai=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).destination=je,At.windowSize=De,At.startWindowEvery=ot,At.windows=[new Nr.xQ],At.count=0,je.next(At.windows[0]),At}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var ot=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,At=this.destination,fn=this.windowSize,Sn=this.windows,Sr=Sn.length,Ti=0;Ti<Sr&&!this.closed;Ti++)Sn[Ti].next(De);var jo=this.count-fn+1;if(jo>=0&&jo%ot==0&&!this.closed&&Sn.shift().complete(),++this.count%ot==0&&!this.closed){var eo=new Nr.xQ;Sn.push(eo),At.next(eo)}}},{key:"_error",value:function(De){var ot=this.windows;if(ot)for(;ot.length>0&&!this.closed;)ot.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){var De=this.windows;if(De)for(;De.length>0&&!this.closed;)De.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),X}(I.L),cf=m(4241);function xu(Ne){var we=R.P,X=null,je=Number.POSITIVE_INFINITY;return(0,W.K)(arguments[3])&&(we=arguments[3]),(0,W.K)(arguments[2])?we=arguments[2]:(0,cf.k)(arguments[2])&&(je=Number(arguments[2])),(0,W.K)(arguments[1])?we=arguments[1]:(0,cf.k)(arguments[1])&&(X=Number(arguments[1])),function(ot){return ot.lift(new ji(Ne,X,je,we))}}var ji=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.windowTimeSpan=we,this.windowCreationInterval=X,this.maxWindowSize=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ze(X,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ne}(),ml=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){var je;return(0,P.Z)(this,X),(je=we.apply(this,arguments))._numberOfNextedValues=0,je}return(0,D.Z)(X,[{key:"next",value:function(De){this._numberOfNextedValues++,(0,O.Z)((0,k.Z)(X.prototype),"next",this).call(this,De)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),X}(Nr.xQ),ze=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot,At,fn){var Sn;(0,P.Z)(this,X),(Sn=we.call(this,je)).destination=je,Sn.windowTimeSpan=De,Sn.windowCreationInterval=ot,Sn.maxWindowSize=At,Sn.scheduler=fn,Sn.windows=[];var Sr=Sn.openWindow();if(null!==ot&&ot>=0){var Ti={subscriber:(0,S.Z)(Sn),window:Sr,context:null},jo={windowTimeSpan:De,windowCreationInterval:ot,subscriber:(0,S.Z)(Sn),scheduler:fn};Sn.add(fn.schedule(fe,De,Ti)),Sn.add(fn.schedule(ie,ot,jo))}else{var eo={subscriber:(0,S.Z)(Sn),window:Sr,windowTimeSpan:De};Sn.add(fn.schedule(me,De,eo))}return Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var ot=this.windows,At=ot.length,fn=0;fn<At;fn++){var Sn=ot[fn];Sn.closed||(Sn.next(De),Sn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Sn))}}},{key:"_error",value:function(De){for(var ot=this.windows;ot.length>0;)ot.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){for(var De=this.windows;De.length>0;){var ot=De.shift();ot.closed||ot.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var De=new ml;return this.windows.push(De),this.destination.next(De),De}},{key:"closeWindow",value:function(De){De.complete();var ot=this.windows;ot.splice(ot.indexOf(De),1)}}]),X}(I.L);function me(Ne){var we=Ne.subscriber,X=Ne.windowTimeSpan,je=Ne.window;je&&we.closeWindow(je),Ne.window=we.openWindow(),this.schedule(Ne,X)}function ie(Ne){var we=Ne.windowTimeSpan,X=Ne.subscriber,je=Ne.scheduler,De=Ne.windowCreationInterval,ot=X.openWindow(),fn={action:this,subscription:null},Sn={subscriber:X,window:ot,context:fn};fn.subscription=je.schedule(fe,we,Sn),this.add(fn.subscription),this.schedule(Ne,De)}function fe(Ne){var we=Ne.subscriber,X=Ne.window,je=Ne.context;je&&je.action&&je.subscription&&je.action.remove(je.subscription),we.closeWindow(X)}function Ze(Ne,we){return function(X){return X.lift(new $e(Ne,we))}}var $e=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.openings=we,this.closingSelector=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new kt(X,this.openings,this.closingSelector))}}]),Ne}(),kt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).openings=De,At.closingSelector=ot,At.contexts=[],At.add(At.openSubscription=(0,xe.D)((0,S.Z)(At),De,De)),At}return(0,D.Z)(X,[{key:"_next",value:function(De){var ot=this.contexts;if(ot)for(var At=ot.length,fn=0;fn<At;fn++)ot[fn].window.next(De)}},{key:"_error",value:function(De){var ot=this.contexts;if(this.contexts=null,ot)for(var At=ot.length,fn=-1;++fn<At;){var Sn=ot[fn];Sn.window.error(De),Sn.subscription.unsubscribe()}(0,O.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var ot=De.length,At=-1;++At<ot;){var fn=De[At];fn.window.complete(),fn.subscription.unsubscribe()}(0,O.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var ot=De.length,At=-1;++At<ot;){var fn=De[At];fn.window.unsubscribe(),fn.subscription.unsubscribe()}}},{key:"notifyNext",value:function(De,ot,At,fn,Sn){if(De===this.openings){var Sr;try{Sr=(0,this.closingSelector)(ot)}catch(df){return this.error(df)}var jo=new Nr.xQ,eo=new st.w,Ts={window:jo,subscription:eo};this.contexts.push(Ts);var to=(0,xe.D)(this,Sr,Ts);to.closed?this.closeWindow(this.contexts.length-1):(to.context=Ts,eo.add(to)),this.destination.next(jo)}else this.closeWindow(this.contexts.indexOf(De))}},{key:"notifyError",value:function(De){this.error(De)}},{key:"notifyComplete",value:function(De){De!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(De.context))}},{key:"closeWindow",value:function(De){if(-1!==De){var ot=this.contexts,At=ot[De],fn=At.window,Sn=At.subscription;ot.splice(De,1),fn.complete(),Sn.unsubscribe()}}}]),X}(_e.L);function Ft(Ne){return function(X){return X.lift(new Vt(Ne))}}var Vt=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Qt(X,this.closingSelector))}}]),Ne}(),Qt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var ot;return(0,P.Z)(this,X),(ot=we.call(this,je)).destination=je,ot.closingSelector=De,ot.openWindow(),ot}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,ot,At,fn,Sn){this.openWindow(Sn)}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(De){this.openWindow(De)}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De),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 De=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;De&&(this.remove(De),De.unsubscribe());var ot=this.window;ot&&ot.complete();var fn,At=this.window=new Nr.xQ;this.destination.next(At);try{var Sn=this.closingSelector;fn=Sn()}catch(Sr){return this.destination.error(Sr),void this.window.error(Sr)}this.add(this.closingNotification=(0,xe.D)(this,fn))}}]),X}(_e.L);function bn(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){var De;"function"==typeof we[we.length-1]&&(De=we.pop());var ot=we;return je.lift(new Qn(ot,De))}}var Qn=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.observables=we,this.project=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ir(X,this.observables,this.project))}}]),Ne}(),ir=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,ot){var At;(0,P.Z)(this,X),(At=we.call(this,je)).observables=De,At.project=ot,At.toRespond=[];var fn=De.length;At.values=new Array(fn);for(var Sn=0;Sn<fn;Sn++)At.toRespond.push(Sn);for(var Sr=0;Sr<fn;Sr++){var Ti=De[Sr];At.add((0,xe.D)((0,S.Z)(At),Ti,void 0,Sr))}return At}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,ot,At){this.values[At]=ot;var fn=this.toRespond;if(fn.length>0){var Sn=fn.indexOf(At);-1!==Sn&&fn.splice(Sn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(De){if(0===this.toRespond.length){var ot=[De].concat((0,jt.Z)(this.values));this.project?this._tryProject(ot):this.destination.next(ot)}}},{key:"_tryProject",value:function(De){var ot;try{ot=this.project.apply(this,De)}catch(At){return void this.destination.error(At)}this.destination.next(ot)}}]),X}(_e.L),_r=m(1746);function gr(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(De){return De.lift.call(_r.$R.apply(void 0,[De].concat(we)))}}function di(Ne){return function(we){return we.lift(new _r.mx(Ne))}}},9594:function(qe,J,m){"use strict";m.r(J),m.d(J,{TestScheduler:function(){return R}});var z=m(5671),Y=m(3144),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(7451),y=m(9312),K=m(4096),F=(0,Y.Z)(function W($){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,z.Z)(this,W),this.subscribedFrame=$,this.unsubscribedFrame=ce}),M=function(){function W(){(0,z.Z)(this,W),this.subscriptions=[]}return(0,Y.Z)(W,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new F(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(ce){var se=this.subscriptions,te=se[ce];se[ce]=new F(te.subscribedFrame,this.scheduler.now())}}]),W}(),O=m(5128),k=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se,te){var oe;return(0,z.Z)(this,ce),(oe=$.call(this,function(ve){var Oe=this,st=Oe.logSubscribedFrame(),xe=new K.w;return xe.add(new K.w(function(){Oe.logUnsubscribedFrame(st)})),Oe.scheduleMessages(ve),xe})).messages=se,oe.subscriptions=[],oe.scheduler=te,oe}return(0,Y.Z)(ce,[{key:"scheduleMessages",value:function(te){for(var oe=this.messages.length,ve=0;ve<oe;ve++){var Oe=this.messages[ve];te.add(this.scheduler.schedule(function(st){var xe=st.message,_e=st.subscriber;xe.notification.observe(_e)},Oe.frame,{message:Oe,subscriber:te}))}}}]),ce}(D.y);(0,O.e)(k,[M]);var T=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se,te){var oe;return(0,z.Z)(this,ce),(oe=$.call(this)).messages=se,oe.subscriptions=[],oe.scheduler=te,oe}return(0,Y.Z)(ce,[{key:"_subscribe",value:function(te){var oe=this,ve=oe.logSubscribedFrame(),Oe=new K.w;return Oe.add(new K.w(function(){oe.logUnsubscribedFrame(ve)})),Oe.add((0,S.Z)((0,U.Z)(ce.prototype),"_subscribe",this).call(this,te)),Oe}},{key:"setup",value:function(){for(var te=this,oe=te.messages.length,ve=0;ve<oe;ve++)!function(){var Oe=te.messages[ve];te.scheduler.schedule(function(){Oe.notification.observe(te)},Oe.frame)}()}}]),ce}(m(8929).xQ);(0,O.e)(T,[M]);var w=m(9027),x=m(198),R=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se){var te;return(0,z.Z)(this,ce),(te=$.call(this,w.h,750)).assertDeepEqual=se,te.hotObservables=[],te.coldObservables=[],te.flushTests=[],te.runMode=!1,te}return(0,Y.Z)(ce,[{key:"createTime",value:function(te){var oe=te.indexOf("|");if(-1===oe)throw new Error('marble diagram for time should have a completion marker "|"');return oe*ce.frameTimeFactor}},{key:"createColdObservable",value:function(te,oe,ve){if(-1!==te.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==te.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var Oe=ce.parseMarbles(te,oe,ve,void 0,this.runMode),st=new k(Oe,this);return this.coldObservables.push(st),st}},{key:"createHotObservable",value:function(te,oe,ve){if(-1!==te.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var Oe=ce.parseMarbles(te,oe,ve,void 0,this.runMode),st=new T(Oe,this);return this.hotObservables.push(st),st}},{key:"materializeInnerObservable",value:function(te,oe){var ve=this,Oe=[];return te.subscribe(function(st){Oe.push({frame:ve.frame-oe,notification:y.P.createNext(st)})},function(st){Oe.push({frame:ve.frame-oe,notification:y.P.createError(st)})},function(){Oe.push({frame:ve.frame-oe,notification:y.P.createComplete()})}),Oe}},{key:"expectObservable",value:function(te){var Fe,oe=this,ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=[],st={actual:Oe,ready:!1},xe=ce.parseMarblesAsSubscriptions(ve,this.runMode),_e=xe.subscribedFrame===Number.POSITIVE_INFINITY?0:xe.subscribedFrame,ke=xe.unsubscribedFrame;this.schedule(function(){Fe=te.subscribe(function(Mt){var Nt=Mt;Mt instanceof D.y&&(Nt=oe.materializeInnerObservable(Nt,oe.frame)),Oe.push({frame:oe.frame,notification:y.P.createNext(Nt)})},function(Mt){Oe.push({frame:oe.frame,notification:y.P.createError(Mt)})},function(){Oe.push({frame:oe.frame,notification:y.P.createComplete()})})},_e),ke!==Number.POSITIVE_INFINITY&&this.schedule(function(){return Fe.unsubscribe()},ke),this.flushTests.push(st);var ct=this.runMode;return{toBe:function(Nt,Xt,en){st.ready=!0,st.expected=ce.parseMarbles(Nt,Xt,en,!0,ct)}}}},{key:"expectSubscriptions",value:function(te){var oe={actual:te,ready:!1};this.flushTests.push(oe);var ve=this.runMode;return{toBe:function(st){var xe="string"==typeof st?[st]:st;oe.ready=!0,oe.expected=xe.map(function(_e){return ce.parseMarblesAsSubscriptions(_e,ve)})}}}},{key:"flush",value:function(){for(var te=this,oe=this.hotObservables;oe.length>0;)oe.shift().setup();(0,S.Z)((0,U.Z)(ce.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ve){return!ve.ready||(te.assertDeepEqual(ve.actual,ve.expected),!1)})}},{key:"run",value:function(te){var oe=ce.frameTimeFactor,ve=this.maxFrames;ce.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,x.v.delegate=this;var Oe={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 st=te(Oe);return this.flush(),st}finally{ce.frameTimeFactor=oe,this.maxFrames=ve,this.runMode=!1,x.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(te){var oe=this,ve=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof te)return new F(Number.POSITIVE_INFINITY);for(var Oe=te.length,st=-1,xe=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,ke=0,Fe=0;Fe<Oe;Fe++){var ct=ke,Mt=function(vt){ct+=vt*oe.frameTimeFactor},Nt=te[Fe];switch(Nt){case" ":ve||Mt(1);break;case"-":Mt(1);break;case"(":st=ke,Mt(1);break;case")":st=-1,Mt(1);break;case"^":if(xe!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");xe=st>-1?st:ke,Mt(1);break;case"!":if(_e!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");_e=st>-1?st:ke;break;default:if(ve&&Nt.match(/^[0-9]$/)&&(0===Fe||" "===te[Fe-1])){var Xt=te.slice(Fe),en=Xt.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(en){Fe+=en[0].length-1;var qt=parseFloat(en[1]),Xe=en[2],jt=void 0;switch(Xe){case"ms":jt=qt;break;case"s":jt=1e3*qt;break;case"m":jt=1e3*qt*60}Mt(jt/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Nt+"'.")}ke=ct}return _e<0?new F(xe):new F(xe,_e)}},{key:"parseMarbles",value:function(te,oe,ve){var Oe=this,st=arguments.length>3&&void 0!==arguments[3]&&arguments[3],xe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==te.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var _e=te.length,ke=[],Fe=xe?te.replace(/^[ ]+/,"").indexOf("^"):te.indexOf("^"),ct=-1===Fe?0:Fe*-this.frameTimeFactor,Mt="object"!=typeof oe?function(on){return on}:function(on){return st&&oe[on]instanceof k?oe[on].messages:oe[on]},Nt=-1,Xt=0;Xt<_e;Xt++){var en=ct,qt=function(_n){en+=_n*Oe.frameTimeFactor},Xe=void 0,jt=te[Xt];switch(jt){case" ":xe||qt(1);break;case"-":case"^":qt(1);break;case"(":Nt=ct,qt(1);break;case")":Nt=-1,qt(1);break;case"|":Xe=y.P.createComplete(),qt(1);break;case"#":Xe=y.P.createError(ve||"error"),qt(1);break;default:if(xe&&jt.match(/^[0-9]$/)&&(0===Xt||" "===te[Xt-1])){var it=te.slice(Xt),vt=it.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(vt){Xt+=vt[0].length-1;var nt=parseFloat(vt[1]),Lt=vt[2],It=void 0;switch(Lt){case"ms":It=nt;break;case"s":It=1e3*nt;break;case"m":It=1e3*nt*60}qt(It/this.frameTimeFactor);break}}Xe=y.P.createNext(Mt(jt)),qt(1)}Xe&&ke.push({frame:Nt>-1?Nt:ct,notification:Xe}),ct=en}return ke}}]),ce}(w.y)},2301:function(qe,J,m){"use strict";m.r(J),m.d(J,{WebSocketSubject:function(){return Y.p},webSocket:function(){return z.j}});var z=m(7623),Y=m(2741)},5561:function(qe,J,m){"use strict";m(5772)},2033:function(qe,J){"use strict";var m,z;!function(){var Y=J||{};m=[],void 0!==(z=function(){return Y}.apply(J,m))&&(qe.exports=z),Y.default=Y;var S="http://www.w3.org/2000/xmlns/",L="http://www.w3.org/2000/svg",D=/url\(["']?(.+?)["']?\)/,y={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"},K=function(xe){return xe instanceof HTMLElement||xe instanceof SVGElement},F=function(xe){if(!K(xe))throw new Error("an HTMLElement or SVGElement is required; got "+xe)},M=function(xe){return new Promise(function(_e,ke){K(xe)?_e(xe):ke(new Error("an HTMLElement or SVGElement is required; got "+xe))})},k=function(xe){var _e=Object.keys(y).filter(function(ke){return xe.indexOf("."+ke)>0}).map(function(ke){return y[ke]});return _e?_e[0]:(console.error("Unknown font format for "+xe+". Fonts may not be working correctly."),"application/octet-stream")},T=function(xe,_e,ke){var Fe=xe.viewBox&&xe.viewBox.baseVal&&xe.viewBox.baseVal[ke]||null!==_e.getAttribute(ke)&&!_e.getAttribute(ke).match(/%$/)&&parseInt(_e.getAttribute(ke))||xe.getBoundingClientRect()[ke]||parseInt(_e.style[ke])||parseInt(window.getComputedStyle(xe).getPropertyValue(ke));return null==Fe||isNaN(parseFloat(Fe))?0:Fe},N=function(xe){for(var _e=window.atob(xe.split(",")[1]),ke=xe.split(",")[0].split(":")[1].split(";")[0],Fe=new ArrayBuffer(_e.length),ct=new Uint8Array(Fe),Mt=0;Mt<_e.length;Mt++)ct[Mt]=_e.charCodeAt(Mt);return new Blob([Fe],{type:ke})},$=function(xe){return Promise.all(Array.from(xe.querySelectorAll("image")).map(function(_e){var ke=_e.getAttributeNS("http://www.w3.org/1999/xlink","href")||_e.getAttribute("href");return ke?(function(xe){return xe&&0===xe.lastIndexOf("http",0)&&-1===xe.lastIndexOf(window.location.host)}(ke)&&(ke+=(-1===ke.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(Fe,ct){var Mt=document.createElement("canvas"),Nt=new Image;Nt.crossOrigin="anonymous",Nt.src=ke,Nt.onerror=function(){return ct(new Error("Could not load "+ke))},Nt.onload=function(){Mt.width=Nt.width,Mt.height=Nt.height,Mt.getContext("2d").drawImage(Nt,0,0),_e.setAttributeNS("http://www.w3.org/1999/xlink","href",Mt.toDataURL("image/png")),Fe(!0)}})):Promise.resolve(null)}))},ce={},se=function(xe){return Promise.all(xe.map(function(_e){return new Promise(function(ke,Fe){if(ce[_e.url])return ke(ce[_e.url]);var ct=new XMLHttpRequest;ct.addEventListener("load",function(){var Mt=function(xe){for(var _e="",ke=new Uint8Array(xe),Fe=0;Fe<ke.byteLength;Fe++)_e+=String.fromCharCode(ke[Fe]);return window.btoa(_e)}(ct.response),Nt=_e.text.replace(D,'url("data:'+_e.format+";base64,"+Mt+'")')+"\n";ce[_e.url]=Nt,ke(Nt)}),ct.addEventListener("error",function(Mt){console.warn("Failed to load font from: "+_e.url,Mt),ce[_e.url]=null,ke(null)}),ct.addEventListener("abort",function(Mt){console.warn("Aborted loading font from: "+_e.url,Mt),ke(null)}),ct.open("GET",_e.url),ct.responseType="arraybuffer",ct.send()})})).then(function(_e){return _e.filter(function(ke){return ke}).join("")})},te=null,ve=function(xe,_e){var ke=_e||{},Fe=ke.selectorRemap,ct=ke.modifyStyle,Mt=ke.modifyCss,Nt=ke.fonts,Xt=ke.excludeUnusedCss,en=Mt||function(it,vt){return(Fe?Fe(it):it)+"{"+(ct?ct(vt):vt)+"}\n"},qt=[],Xe=void 0===Nt,jt=Nt||[];return(te||(te=Array.from(document.styleSheets).map(function(xe){try{return{rules:xe.cssRules,href:xe.href}}catch(_e){return console.warn("Stylesheet could not be loaded: "+xe.href,_e),{}}}))).forEach(function(it){var vt=it.rules,nt=it.href;!vt||Array.from(vt).forEach(function(Lt){if(void 0!==Lt.style)if(function(xe,_e){if(_e)try{return xe.querySelector(_e)||xe.parentNode&&xe.parentNode.querySelector(_e)}catch(ke){console.warn('Invalid CSS selector "'+_e+'"',ke)}}(xe,Lt.selectorText))qt.push(en(Lt.selectorText,Lt.style.cssText));else if(Xe&&Lt.cssText.match(/^@font-face/)){var It=function(xe,_e){var ke=xe.cssText.match(D),Fe=ke&&ke[1]||"";if(Fe&&!Fe.match(/^data:/)&&"about:blank"!==Fe){var ct=Fe.startsWith("../")?_e+"/../"+Fe:Fe.startsWith("./")?_e+"/."+Fe:Fe;return{text:xe.cssText,format:k(ct),url:ct}}}(Lt,nt);It&&jt.push(It)}else Xt||qt.push(Lt.cssText)})}),se(jt).then(function(it){return qt.join("\n")+it})},Oe=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};Y.prepareSvg=function(st,xe,_e){F(st);var ke=xe||{},Fe=ke.left,ct=void 0===Fe?0:Fe,Mt=ke.top,Nt=void 0===Mt?0:Mt,Xt=ke.width,en=ke.height,qt=ke.scale,Xe=void 0===qt?1:qt,jt=ke.responsive,it=void 0!==jt&&jt,vt=ke.excludeCss,nt=void 0!==vt&&vt;return $(st).then(function(){var Lt=st.cloneNode(!0);Lt.style.backgroundColor=(xe||{}).backgroundColor||st.style.backgroundColor;var It=function(xe,_e,ke,Fe){if("svg"===xe.tagName)return{width:ke||T(xe,_e,"width"),height:Fe||T(xe,_e,"height")};if(xe.getBBox){var ct=xe.getBBox(),Mt=ct.x,Nt=ct.y;return{width:Mt+ct.width,height:Nt+ct.height}}}(st,Lt,Xt,en),on=It.width,_n=It.height;if("svg"!==st.tagName){if(!st.getBBox)return void console.error("Attempted to render non-SVG element",st);null!=Lt.getAttribute("transform")&&Lt.setAttribute("transform",Lt.getAttribute("transform").replace(/translate\(.*?\)/,""));var An=document.createElementNS("http://www.w3.org/2000/svg","svg");An.appendChild(Lt),Lt=An}if(Lt.setAttribute("version","1.1"),Lt.setAttribute("viewBox",[ct,Nt,on,_n].join(" ")),Lt.getAttribute("xmlns")||Lt.setAttributeNS(S,"xmlns",L),Lt.getAttribute("xmlns:xlink")||Lt.setAttributeNS(S,"xmlns:xlink","http://www.w3.org/1999/xlink"),it?(Lt.removeAttribute("width"),Lt.removeAttribute("height"),Lt.setAttribute("preserveAspectRatio","xMinYMin meet")):(Lt.setAttribute("width",on*Xe),Lt.setAttribute("height",_n*Xe)),Array.from(Lt.querySelectorAll("foreignObject > *")).forEach(function(Et){Et.setAttributeNS(S,"xmlns","svg"===Et.tagName?L:"http://www.w3.org/1999/xhtml")}),!nt)return ve(st,xe).then(function(Et){var Ut=document.createElement("style");Ut.setAttribute("type","text/css"),Ut.innerHTML="<![CDATA[\n"+Et+"\n]]>";var Ht=document.createElement("defs");Ht.appendChild(Ut),Lt.insertBefore(Ht,Lt.firstChild);var ln=document.createElement("div");ln.appendChild(Lt);var yt=ln.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof _e)return{src:yt,width:on,height:_n};_e(yt,on,_n)});var Gt=document.createElement("div");Gt.appendChild(Lt);var Zt=Gt.innerHTML;if("function"!=typeof _e)return{src:Zt,width:on,height:_n};_e(Zt,on,_n)})},Y.svgAsDataUri=function(st,xe,_e){return F(st),Y.prepareSvg(st,xe).then(function(ke){var Fe=ke.src,ct=ke.width,Mt=ke.height,Nt="data:image/svg+xml;base64,"+window.btoa(function(xe){return decodeURIComponent(encodeURIComponent(xe).replace(/%([0-9A-F]{2})/g,function(_e,ke){var Fe=String.fromCharCode("0x"+ke);return"%"===Fe?"%25":Fe}))}('<?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 "&#160;">]>'+Fe));return"function"==typeof _e&&_e(Nt,ct,Mt),Nt})},Y.svgAsPngUri=function(st,xe,_e){F(st);var ke=xe||{},Fe=ke.encoderType,ct=void 0===Fe?"image/png":Fe,Mt=ke.encoderOptions,Nt=void 0===Mt?.8:Mt,Xt=ke.canvg,en=function(Xe){var jt=Xe.src,it=Xe.width,vt=Xe.height,nt=document.createElement("canvas"),Lt=nt.getContext("2d"),It=window.devicePixelRatio||1;nt.width=it*It,nt.height=vt*It,nt.style.width=nt.width+"px",nt.style.height=nt.height+"px",Lt.setTransform(It,0,0,It,0,0),Xt?Xt(nt,jt):Lt.drawImage(jt,0,0);var on=void 0;try{on=nt.toDataURL(ct,Nt)}catch(_n){if("undefined"!=typeof SecurityError&&_n instanceof SecurityError||"SecurityError"===_n.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw _n}return"function"==typeof _e&&_e(on,nt.width,nt.height),Promise.resolve(on)};return Xt?Y.prepareSvg(st,xe).then(en):Y.svgAsDataUri(st,xe).then(function(qt){return new Promise(function(Xe,jt){var it=new Image;it.onload=function(){return Xe(en({src:it,width:it.width,height:it.height}))},it.onerror=function(){jt("There was an error loading the data URI as an image on the following SVG\n"+window.atob(qt.slice(26))+"Open the following link to see browser's diagnosis\n"+qt)},it.src=qt})})},Y.download=function(st,xe,_e){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(N(xe),st);else{var ke=document.createElement("a");if("download"in ke){ke.download=st,ke.style.display="none",document.body.appendChild(ke);try{var Fe=N(xe),ct=URL.createObjectURL(Fe);ke.href=ct,ke.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(ct)})}}catch(Mt){console.error(Mt),console.warn("Error while getting object URL. Falling back to string URL."),ke.href=xe}ke.click(),document.body.removeChild(ke)}else _e&&_e.popup&&(_e.popup.document.title=st,_e.popup.location.replace(xe))}},Y.saveSvg=function(st,xe,_e){var ke=Oe();return M(st).then(function(Fe){return Y.svgAsDataUri(Fe,_e||{})}).then(function(Fe){return Y.download(xe,Fe,ke)})},Y.saveSvgAsPng=function(st,xe,_e){var ke=Oe();return M(st).then(function(Fe){return Y.svgAsPngUri(Fe,_e||{})}).then(function(Fe){return Y.download(xe,Fe,ke)})}}()},6842:function(qe,J,m){var z=m(2472),Y=Object.prototype.hasOwnProperty,S="undefined"!=typeof Map;function U(){this._array=[],this._set=S?new Map:Object.create(null)}U.fromArray=function(P,D){for(var y=new U,K=0,F=P.length;K<F;K++)y.add(P[K],D);return y},U.prototype.size=function(){return S?this._set.size:Object.getOwnPropertyNames(this._set).length},U.prototype.add=function(P,D){var y=S?P:z.toSetString(P),K=S?this.has(P):Y.call(this._set,y),F=this._array.length;(!K||D)&&this._array.push(P),K||(S?this._set.set(P,F):this._set[y]=F)},U.prototype.has=function(P){if(S)return this._set.has(P);var D=z.toSetString(P);return Y.call(this._set,D)},U.prototype.indexOf=function(P){if(S){var D=this._set.get(P);if(D>=0)return D}else{var y=z.toSetString(P);if(Y.call(this._set,y))return this._set[y]}throw new Error('"'+P+'" is not in the set.')},U.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw new Error("No element indexed by "+P)},U.prototype.toArray=function(){return this._array.slice()},J.I=U},3357:function(qe,J,m){var z=m(5773);J.encode=function(K){var M,F="",O=function P(y){return y<0?1+(-y<<1):0+(y<<1)}(K);do{M=31&O,(O>>>=5)>0&&(M|=32),F+=z.encode(M)}while(O>0);return F},J.decode=function(K,F,M){var T,w,O=K.length,k=0,I=0;do{if(F>=O)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(w=z.decode(K.charCodeAt(F++))))throw new Error("Invalid base64 digit: "+K.charAt(F-1));T=!!(32&w),k+=(w&=31)<<I,I+=5}while(T);M.value=function D(y){var F=y>>1;return 1==(1&y)?-F:F}(k),M.rest=F}},5773:function(qe,J){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");J.encode=function(z){if(0<=z&&z<m.length)return m[z];throw new TypeError("Must be between 0 and 63: "+z)},J.decode=function(z){return 65<=z&&z<=90?z-65:97<=z&&z<=122?z-97+26:48<=z&&z<=57?z-48+52:43==z?62:47==z?63:-1}},1490:function(qe,J,m){var z=m(2472);function S(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}S.prototype.unsortedForEach=function(L,P){this._array.forEach(L,P)},S.prototype.add=function(L){!function Y(U,L){var P=U.generatedLine,D=L.generatedLine,y=U.generatedColumn,K=L.generatedColumn;return D>P||D==P&&K>=y||z.compareByGeneratedPositionsInflated(U,L)<=0}(this._last,L)?(this._sorted=!1,this._array.push(L)):(this._last=L,this._array.push(L))},S.prototype.toArray=function(){return this._sorted||(this._array.sort(z.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},J.H=S},3058:function(qe,J,m){var z=m(3357),Y=m(2472),S=m(6842).I,U=m(1490).H;function L(P){P||(P={}),this._file=Y.getArg(P,"file",null),this._sourceRoot=Y.getArg(P,"sourceRoot",null),this._skipValidation=Y.getArg(P,"skipValidation",!1),this._sources=new S,this._names=new S,this._mappings=new U,this._sourcesContents=null}L.prototype._version=3,L.fromSourceMap=function(D){var y=D.sourceRoot,K=new L({file:D.file,sourceRoot:y});return D.eachMapping(function(F){var M={generated:{line:F.generatedLine,column:F.generatedColumn}};null!=F.source&&(M.source=F.source,null!=y&&(M.source=Y.relative(y,M.source)),M.original={line:F.originalLine,column:F.originalColumn},null!=F.name&&(M.name=F.name)),K.addMapping(M)}),D.sources.forEach(function(F){var M=F;null!==y&&(M=Y.relative(y,F)),K._sources.has(M)||K._sources.add(M);var O=D.sourceContentFor(F);null!=O&&K.setSourceContent(F,O)}),K},L.prototype.addMapping=function(D){var y=Y.getArg(D,"generated"),K=Y.getArg(D,"original",null),F=Y.getArg(D,"source",null),M=Y.getArg(D,"name",null);this._skipValidation||this._validateMapping(y,K,F,M),null!=F&&(F=String(F),this._sources.has(F)||this._sources.add(F)),null!=M&&(M=String(M),this._names.has(M)||this._names.add(M)),this._mappings.add({generatedLine:y.line,generatedColumn:y.column,originalLine:null!=K&&K.line,originalColumn:null!=K&&K.column,source:F,name:M})},L.prototype.setSourceContent=function(D,y){var K=D;null!=this._sourceRoot&&(K=Y.relative(this._sourceRoot,K)),null!=y?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Y.toSetString(K)]=y):this._sourcesContents&&(delete this._sourcesContents[Y.toSetString(K)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},L.prototype.applySourceMap=function(D,y,K){var F=y;if(null==y){if(null==D.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');F=D.file}var M=this._sourceRoot;null!=M&&(F=Y.relative(M,F));var O=new S,k=new S;this._mappings.unsortedForEach(function(I){if(I.source===F&&null!=I.originalLine){var T=D.originalPositionFor({line:I.originalLine,column:I.originalColumn});null!=T.source&&(I.source=T.source,null!=K&&(I.source=Y.join(K,I.source)),null!=M&&(I.source=Y.relative(M,I.source)),I.originalLine=T.line,I.originalColumn=T.column,null!=T.name&&(I.name=T.name))}var w=I.source;null!=w&&!O.has(w)&&O.add(w);var x=I.name;null!=x&&!k.has(x)&&k.add(x)},this),this._sources=O,this._names=k,D.sources.forEach(function(I){var T=D.sourceContentFor(I);null!=T&&(null!=K&&(I=Y.join(K,I)),null!=M&&(I=Y.relative(M,I)),this.setSourceContent(I,T))},this)},L.prototype._validateMapping=function(D,y,K,F){if(y&&"number"!=typeof y.line&&"number"!=typeof y.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(!(D&&"line"in D&&"column"in D&&D.line>0&&D.column>=0)||y||K||F){if(D&&"line"in D&&"column"in D&&y&&"line"in y&&"column"in y&&D.line>0&&D.column>=0&&y.line>0&&y.column>=0&&K)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:D,source:K,original:y,name:F}))}},L.prototype._serializeMappings=function(){for(var I,T,w,x,D=0,y=1,K=0,F=0,M=0,O=0,k="",N=this._mappings.toArray(),R=0,W=N.length;R<W;R++){if(I="",(T=N[R]).generatedLine!==y)for(D=0;T.generatedLine!==y;)I+=";",y++;else if(R>0){if(!Y.compareByGeneratedPositionsInflated(T,N[R-1]))continue;I+=","}I+=z.encode(T.generatedColumn-D),D=T.generatedColumn,null!=T.source&&(x=this._sources.indexOf(T.source),I+=z.encode(x-O),O=x,I+=z.encode(T.originalLine-1-F),F=T.originalLine-1,I+=z.encode(T.originalColumn-K),K=T.originalColumn,null!=T.name&&(w=this._names.indexOf(T.name),I+=z.encode(w-M),M=w)),k+=I}return k},L.prototype._generateSourcesContent=function(D,y){return D.map(function(K){if(!this._sourcesContents)return null;null!=y&&(K=Y.relative(y,K));var F=Y.toSetString(K);return Object.prototype.hasOwnProperty.call(this._sourcesContents,F)?this._sourcesContents[F]:null},this)},L.prototype.toJSON=function(){var D={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(D.file=this._file),null!=this._sourceRoot&&(D.sourceRoot=this._sourceRoot),this._sourcesContents&&(D.sourcesContent=this._generateSourcesContent(D.sources,D.sourceRoot)),D},L.prototype.toString=function(){return JSON.stringify(this.toJSON())},J.h=L},2472:function(qe,J){J.getArg=function m(se,te,oe){if(te in se)return se[te];if(3===arguments.length)return oe;throw new Error('"'+te+'" is a required argument.')};var z=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Y=/^data:.+\,.+$/;function S(se){var te=se.match(z);return te?{scheme:te[1],auth:te[2],host:te[3],port:te[4],path:te[5]}:null}function U(se){var te="";return se.scheme&&(te+=se.scheme+":"),te+="//",se.auth&&(te+=se.auth+"@"),se.host&&(te+=se.host),se.port&&(te+=":"+se.port),se.path&&(te+=se.path),te}J.urlParse=S,J.urlGenerate=U;var D=function P(se){var te=[];return function(oe){for(var ve=0;ve<te.length;ve++)if(te[ve].input===oe){var Oe=te[0];return te[0]=te[ve],te[ve]=Oe,te[0].result}var st=se(oe);return te.unshift({input:oe,result:st}),te.length>32&&te.pop(),st}}(function(te){var oe=te,ve=S(te);if(ve){if(!ve.path)return te;oe=ve.path}for(var Oe=J.isAbsolute(oe),st=[],xe=0,_e=0;;){if(xe=_e,-1===(_e=oe.indexOf("/",xe))){st.push(oe.slice(xe));break}for(st.push(oe.slice(xe,_e));_e<oe.length&&"/"===oe[_e];)_e++}var ke,Fe=0;for(_e=st.length-1;_e>=0;_e--)"."===(ke=st[_e])?st.splice(_e,1):".."===ke?Fe++:Fe>0&&(""===ke?(st.splice(_e+1,Fe),Fe=0):(st.splice(_e,2),Fe--));return""===(oe=st.join("/"))&&(oe=Oe?"/":"."),ve?(ve.path=oe,U(ve)):oe});function y(se,te){""===se&&(se="."),""===te&&(te=".");var oe=S(te),ve=S(se);if(ve&&(se=ve.path||"/"),oe&&!oe.scheme)return ve&&(oe.scheme=ve.scheme),U(oe);if(oe||te.match(Y))return te;if(ve&&!ve.host&&!ve.path)return ve.host=te,U(ve);var Oe="/"===te.charAt(0)?te:D(se.replace(/\/+$/,"")+"/"+te);return ve?(ve.path=Oe,U(ve)):Oe}J.normalize=D,J.join=y,J.isAbsolute=function(se){return"/"===se.charAt(0)||z.test(se)},J.relative=function K(se,te){""===se&&(se="."),se=se.replace(/\/$/,"");for(var oe=0;0!==te.indexOf(se+"/");){var ve=se.lastIndexOf("/");if(ve<0||(se=se.slice(0,ve)).match(/^([^\/]+:\/)?\/*$/))return te;++oe}return Array(oe+1).join("../")+te.substr(se.length+1)};var F=!("__proto__"in Object.create(null));function M(se){return se}function I(se){if(!se)return!1;var te=se.length;if(te<9||95!==se.charCodeAt(te-1)||95!==se.charCodeAt(te-2)||111!==se.charCodeAt(te-3)||116!==se.charCodeAt(te-4)||111!==se.charCodeAt(te-5)||114!==se.charCodeAt(te-6)||112!==se.charCodeAt(te-7)||95!==se.charCodeAt(te-8)||95!==se.charCodeAt(te-9))return!1;for(var oe=te-10;oe>=0;oe--)if(36!==se.charCodeAt(oe))return!1;return!0}function R(se,te){return se===te?0:null===se?1:null===te?-1:se>te?1:-1}J.toSetString=F?M:function O(se){return I(se)?"$"+se:se},J.fromSetString=F?M:function k(se){return I(se)?se.slice(1):se},J.compareByOriginalPositions=function T(se,te,oe){var ve=R(se.source,te.source);return 0!==ve||0!==(ve=se.originalLine-te.originalLine)||(0!==(ve=se.originalColumn-te.originalColumn)||oe)||0!==(ve=se.generatedColumn-te.generatedColumn)||0!==(ve=se.generatedLine-te.generatedLine)?ve:R(se.name,te.name)},J.compareByOriginalPositionsNoSource=function w(se,te,oe){var ve;return 0!==(ve=se.originalLine-te.originalLine)||(0!==(ve=se.originalColumn-te.originalColumn)||oe)||0!==(ve=se.generatedColumn-te.generatedColumn)||0!==(ve=se.generatedLine-te.generatedLine)?ve:R(se.name,te.name)},J.compareByGeneratedPositionsDeflated=function x(se,te,oe){var ve=se.generatedLine-te.generatedLine;return 0!==ve||(0!==(ve=se.generatedColumn-te.generatedColumn)||oe)||0!==(ve=R(se.source,te.source))||0!==(ve=se.originalLine-te.originalLine)||0!==(ve=se.originalColumn-te.originalColumn)?ve:R(se.name,te.name)},J.compareByGeneratedPositionsDeflatedNoLine=function N(se,te,oe){var ve=se.generatedColumn-te.generatedColumn;return 0!==ve||oe||0!==(ve=R(se.source,te.source))||0!==(ve=se.originalLine-te.originalLine)||0!==(ve=se.originalColumn-te.originalColumn)?ve:R(se.name,te.name)},J.compareByGeneratedPositionsInflated=function W(se,te){var oe=se.generatedLine-te.generatedLine;return 0!==oe||0!==(oe=se.generatedColumn-te.generatedColumn)||0!==(oe=R(se.source,te.source))||0!==(oe=se.originalLine-te.originalLine)||0!==(oe=se.originalColumn-te.originalColumn)?oe:R(se.name,te.name)},J.parseSourceMapInput=function $(se){return JSON.parse(se.replace(/^\)]}'[^\n]*\n/,""))},J.computeSourceURL=function ce(se,te,oe){if(te=te||"",se&&("/"!==se[se.length-1]&&"/"!==te[0]&&(se+="/"),te=se+te),oe){var ve=S(oe);if(!ve)throw new Error("sourceMapURL could not be parsed");if(ve.path){var Oe=ve.path.lastIndexOf("/");Oe>=0&&(ve.path=ve.path.substring(0,Oe+1))}te=y(U(ve),te)}return D(te)}},1452:function(qe){qe.exports=function(J){"use strict";var z=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function S(w,x){var N=w[0],R=w[1],W=w[2],$=w[3];R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+x[0]-680876936|0)<<7|N>>>25)+R|0)&R|~N&W)+x[1]-389564586|0)<<12|$>>>20)+N|0)&N|~$&R)+x[2]+606105819|0)<<17|W>>>15)+$|0)&$|~W&N)+x[3]-1044525330|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+x[4]-176418897|0)<<7|N>>>25)+R|0)&R|~N&W)+x[5]+1200080426|0)<<12|$>>>20)+N|0)&N|~$&R)+x[6]-1473231341|0)<<17|W>>>15)+$|0)&$|~W&N)+x[7]-45705983|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+x[8]+1770035416|0)<<7|N>>>25)+R|0)&R|~N&W)+x[9]-1958414417|0)<<12|$>>>20)+N|0)&N|~$&R)+x[10]-42063|0)<<17|W>>>15)+$|0)&$|~W&N)+x[11]-1990404162|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+x[12]+1804603682|0)<<7|N>>>25)+R|0)&R|~N&W)+x[13]-40341101|0)<<12|$>>>20)+N|0)&N|~$&R)+x[14]-1502002290|0)<<17|W>>>15)+$|0)&$|~W&N)+x[15]+1236535329|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+x[1]-165796510|0)<<5|N>>>27)+R|0)&W|R&~W)+x[6]-1069501632|0)<<9|$>>>23)+N|0)&R|N&~R)+x[11]+643717713|0)<<14|W>>>18)+$|0)&N|$&~N)+x[0]-373897302|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+x[5]-701558691|0)<<5|N>>>27)+R|0)&W|R&~W)+x[10]+38016083|0)<<9|$>>>23)+N|0)&R|N&~R)+x[15]-660478335|0)<<14|W>>>18)+$|0)&N|$&~N)+x[4]-405537848|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+x[9]+568446438|0)<<5|N>>>27)+R|0)&W|R&~W)+x[14]-1019803690|0)<<9|$>>>23)+N|0)&R|N&~R)+x[3]-187363961|0)<<14|W>>>18)+$|0)&N|$&~N)+x[8]+1163531501|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+x[13]-1444681467|0)<<5|N>>>27)+R|0)&W|R&~W)+x[2]-51403784|0)<<9|$>>>23)+N|0)&R|N&~R)+x[7]+1735328473|0)<<14|W>>>18)+$|0)&N|$&~N)+x[12]-1926607734|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+x[5]-378558|0)<<4|N>>>28)+R|0)^R^W)+x[8]-2022574463|0)<<11|$>>>21)+N|0)^N^R)+x[11]+1839030562|0)<<16|W>>>16)+$|0)^$^N)+x[14]-35309556|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+x[1]-1530992060|0)<<4|N>>>28)+R|0)^R^W)+x[4]+1272893353|0)<<11|$>>>21)+N|0)^N^R)+x[7]-155497632|0)<<16|W>>>16)+$|0)^$^N)+x[10]-1094730640|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+x[13]+681279174|0)<<4|N>>>28)+R|0)^R^W)+x[0]-358537222|0)<<11|$>>>21)+N|0)^N^R)+x[3]-722521979|0)<<16|W>>>16)+$|0)^$^N)+x[6]+76029189|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+x[9]-640364487|0)<<4|N>>>28)+R|0)^R^W)+x[12]-421815835|0)<<11|$>>>21)+N|0)^N^R)+x[15]+530742520|0)<<16|W>>>16)+$|0)^$^N)+x[2]-995338651|0)<<23|R>>>9)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+x[0]-198630844|0)<<6|N>>>26)+R|0)|~W))+x[7]+1126891415|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+x[14]-1416354905|0)<<15|W>>>17)+$|0)|~N))+x[5]-57434055|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+x[12]+1700485571|0)<<6|N>>>26)+R|0)|~W))+x[3]-1894986606|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+x[10]-1051523|0)<<15|W>>>17)+$|0)|~N))+x[1]-2054922799|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+x[8]+1873313359|0)<<6|N>>>26)+R|0)|~W))+x[15]-30611744|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+x[6]-1560198380|0)<<15|W>>>17)+$|0)|~N))+x[13]+1309151649|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+x[4]-145523070|0)<<6|N>>>26)+R|0)|~W))+x[11]-1120210379|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+x[2]+718787259|0)<<15|W>>>17)+$|0)|~N))+x[9]-343485551|0)<<21|R>>>11)+W|0,w[0]=N+w[0]|0,w[1]=R+w[1]|0,w[2]=W+w[2]|0,w[3]=$+w[3]|0}function U(w){var N,x=[];for(N=0;N<64;N+=4)x[N>>2]=w.charCodeAt(N)+(w.charCodeAt(N+1)<<8)+(w.charCodeAt(N+2)<<16)+(w.charCodeAt(N+3)<<24);return x}function L(w){var N,x=[];for(N=0;N<64;N+=4)x[N>>2]=w[N]+(w[N+1]<<8)+(w[N+2]<<16)+(w[N+3]<<24);return x}function P(w){var R,W,$,ce,se,te,x=w.length,N=[1732584193,-271733879,-1732584194,271733878];for(R=64;R<=x;R+=64)S(N,U(w.substring(R-64,R)));for(W=(w=w.substring(R-64)).length,$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=0;R<W;R+=1)$[R>>2]|=w.charCodeAt(R)<<(R%4<<3);if($[R>>2]|=128<<(R%4<<3),R>55)for(S(N,$),R=0;R<16;R+=1)$[R]=0;return ce=(ce=8*x).toString(16).match(/(.*?)(.{0,8})$/),se=parseInt(ce[2],16),te=parseInt(ce[1],16)||0,$[14]=se,$[15]=te,S(N,$),N}function D(w){var R,W,$,ce,se,te,x=w.length,N=[1732584193,-271733879,-1732584194,271733878];for(R=64;R<=x;R+=64)S(N,L(w.subarray(R-64,R)));for(W=(w=R-64<x?w.subarray(R-64):new Uint8Array(0)).length,$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=0;R<W;R+=1)$[R>>2]|=w[R]<<(R%4<<3);if($[R>>2]|=128<<(R%4<<3),R>55)for(S(N,$),R=0;R<16;R+=1)$[R]=0;return ce=(ce=8*x).toString(16).match(/(.*?)(.{0,8})$/),se=parseInt(ce[2],16),te=parseInt(ce[1],16)||0,$[14]=se,$[15]=te,S(N,$),N}function y(w){var N,x="";for(N=0;N<4;N+=1)x+=z[w>>8*N+4&15]+z[w>>8*N&15];return x}function K(w){var x;for(x=0;x<w.length;x+=1)w[x]=y(w[x]);return w.join("")}function F(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function M(w,x){var $,N=w.length,R=new ArrayBuffer(N),W=new Uint8Array(R);for($=0;$<N;$+=1)W[$]=w.charCodeAt($);return x?W:R}function O(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function k(w,x,N){var R=new Uint8Array(w.byteLength+x.byteLength);return R.set(new Uint8Array(w)),R.set(new Uint8Array(x),w.byteLength),N?R:R.buffer}function I(w){var R,x=[],N=w.length;for(R=0;R<N-1;R+=2)x.push(parseInt(w.substr(R,2),16));return String.fromCharCode.apply(String,x)}function T(){this.reset()}return K(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function w(x,N){return(x=0|x||0)<0?Math.max(x+N,0):Math.min(x,N)}ArrayBuffer.prototype.slice=function(x,N){var ce,se,te,oe,R=this.byteLength,W=w(x,R),$=R;return N!==J&&($=w(N,R)),W>$?new ArrayBuffer(0):(ce=$-W,se=new ArrayBuffer(ce),te=new Uint8Array(se),oe=new Uint8Array(this,W,ce),te.set(oe),se)}}(),T.prototype.append=function(w){return this.appendBinary(F(w)),this},T.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var N,x=this._buff.length;for(N=64;N<=x;N+=64)S(this._hash,U(this._buff.substring(N-64,N)));return this._buff=this._buff.substring(N-64),this},T.prototype.end=function(w){var R,$,x=this._buff,N=x.length,W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(R=0;R<N;R+=1)W[R>>2]|=x.charCodeAt(R)<<(R%4<<3);return this._finish(W,N),$=K(this._hash),w&&($=I($)),this.reset(),$},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(w,x){var R,W,$,N=x;if(w[N>>2]|=128<<(N%4<<3),N>55)for(S(this._hash,w),N=0;N<16;N+=1)w[N]=0;R=(R=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),W=parseInt(R[2],16),$=parseInt(R[1],16)||0,w[14]=W,w[15]=$,S(this._hash,w)},T.hash=function(w,x){return T.hashBinary(F(w),x)},T.hashBinary=function(w,x){var R=K(P(w));return x?I(R):R},T.ArrayBuffer=function(){this.reset()},T.ArrayBuffer.prototype.append=function(w){var R,x=k(this._buff.buffer,w,!0),N=x.length;for(this._length+=w.byteLength,R=64;R<=N;R+=64)S(this._hash,L(x.subarray(R-64,R)));return this._buff=R-64<N?new Uint8Array(x.buffer.slice(R-64)):new Uint8Array(0),this},T.ArrayBuffer.prototype.end=function(w){var W,$,x=this._buff,N=x.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(W=0;W<N;W+=1)R[W>>2]|=x[W]<<(W%4<<3);return this._finish(R,N),$=K(this._hash),w&&($=I($)),this.reset(),$},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var w=T.prototype.getState.call(this);return w.buff=O(w.buff),w},T.ArrayBuffer.prototype.setState=function(w){return w.buff=M(w.buff,!0),T.prototype.setState.call(this,w)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(w,x){var R=K(D(new Uint8Array(w)));return x?I(R):R},T}()},986:function(qe){window,qe.exports=function(J){var m={};function z(Y){if(m[Y])return m[Y].exports;var S=m[Y]={i:Y,l:!1,exports:{}};return J[Y].call(S.exports,S,S.exports,z),S.l=!0,S.exports}return z.m=J,z.c=m,z.d=function(Y,S,U){z.o(Y,S)||Object.defineProperty(Y,S,{enumerable:!0,get:U})},z.r=function(Y){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},z.t=function(Y,S){if(1&S&&(Y=z(Y)),8&S||4&S&&"object"==typeof Y&&Y&&Y.__esModule)return Y;var U=Object.create(null);if(z.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:Y}),2&S&&"string"!=typeof Y)for(var L in Y)z.d(U,L,function(P){return Y[P]}.bind(null,L));return U},z.n=function(Y){var S=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return z.d(S,"a",S),S},z.o=function(Y,S){return Object.prototype.hasOwnProperty.call(Y,S)},z.p="",z(z.s=0)}([function(J,m,z){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var Y=function(){function U(L,P){this._disposables=[],this._socket=L,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return U.prototype.activate=function(L){var P=this;this._disposables.push(S(this._socket,"message",function(D){var y=D.data;L.write("string"==typeof y?y:new Uint8Array(y))})),this._bidirectional&&(this._disposables.push(L.onData(function(D){return P._sendData(D)})),this._disposables.push(L.onBinary(function(D){return P._sendBinary(D)}))),this._disposables.push(S(this._socket,"close",function(){return P.dispose()})),this._disposables.push(S(this._socket,"error",function(){return P.dispose()}))},U.prototype.dispose=function(){this._disposables.forEach(function(L){return L.dispose()})},U.prototype._sendData=function(L){1===this._socket.readyState&&this._socket.send(L)},U.prototype._sendBinary=function(L){if(1===this._socket.readyState){for(var P=new Uint8Array(L.length),D=0;D<L.length;++D)P[D]=255&L.charCodeAt(D);this._socket.send(P)}},U}();function S(U,L,P){return U.addEventListener(L,P),{dispose:function(){P&&U.removeEventListener(L,P)}}}m.AttachAddon=Y}])},9162:function(qe){self,qe.exports=function(){"use strict";var J={775:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.FitAddon=void 0;var U=function(){function L(){}return L.prototype.activate=function(P){this._terminal=P},L.prototype.dispose=function(){},L.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var D=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(D._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},L.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 D=window.getComputedStyle(this._terminal.element.parentElement),y=parseInt(D.getPropertyValue("height")),K=Math.max(0,parseInt(D.getPropertyValue("width"))),F=window.getComputedStyle(this._terminal.element),M=y-(parseInt(F.getPropertyValue("padding-top"))+parseInt(F.getPropertyValue("padding-bottom"))),O=K-(parseInt(F.getPropertyValue("padding-right"))+parseInt(F.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(O/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(M/P._renderService.dimensions.actualCellHeight))}}}},L}();S.FitAddon=U}},m={};return function z(Y){if(m[Y])return m[Y].exports;var S=m[Y]={exports:{}};return J[Y](S,S.exports,z),S.exports}(775)}()},4793:function(qe){self,qe.exports=function(){"use strict";var J={4567:function(Y,S,U){var L,P=this&&this.__extends||(L=function(w,x){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,x)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function x(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(x.prototype=w.prototype,new x)});Object.defineProperty(S,"__esModule",{value:!0}),S.AccessibilityManager=void 0;var D=U(9042),y=U(6114),K=U(9924),F=U(3656),M=U(844),O=U(5596),k=U(9631),I=function(T){function w(x,N){var R=T.call(this)||this;R._terminal=x,R._renderService=N,R._liveRegionLineCount=0,R._charsToConsume=[],R._charsToAnnounce="",R._accessibilityTreeRoot=document.createElement("div"),R._accessibilityTreeRoot.classList.add("xterm-accessibility"),R._accessibilityTreeRoot.tabIndex=0,R._rowContainer=document.createElement("div"),R._rowContainer.setAttribute("role","list"),R._rowContainer.classList.add("xterm-accessibility-tree"),R._rowElements=[];for(var W=0;W<R._terminal.rows;W++)R._rowElements[W]=R._createAccessibilityTreeNode(),R._rowContainer.appendChild(R._rowElements[W]);if(R._topBoundaryFocusListener=function($){return R._onBoundaryFocus($,0)},R._bottomBoundaryFocusListener=function($){return R._onBoundaryFocus($,1)},R._rowElements[0].addEventListener("focus",R._topBoundaryFocusListener),R._rowElements[R._rowElements.length-1].addEventListener("focus",R._bottomBoundaryFocusListener),R._refreshRowsDimensions(),R._accessibilityTreeRoot.appendChild(R._rowContainer),R._renderRowsDebouncer=new K.TimeBasedDebouncer(R._renderRows.bind(R)),R._refreshRows(),R._liveRegion=document.createElement("div"),R._liveRegion.classList.add("live-region"),R._liveRegion.setAttribute("aria-live","assertive"),R._accessibilityTreeRoot.appendChild(R._liveRegion),!R._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return R._terminal.element.insertAdjacentElement("afterbegin",R._accessibilityTreeRoot),R.register(R._renderRowsDebouncer),R.register(R._terminal.onResize(function($){return R._onResize($.rows)})),R.register(R._terminal.onRender(function($){return R._refreshRows($.start,$.end)})),R.register(R._terminal.onScroll(function(){return R._refreshRows()})),R.register(R._terminal.onA11yChar(function($){return R._onChar($)})),R.register(R._terminal.onLineFeed(function(){return R._onChar("\n")})),R.register(R._terminal.onA11yTab(function($){return R._onTab($)})),R.register(R._terminal.onKey(function($){return R._onKey($.key)})),R.register(R._terminal.onBlur(function(){return R._clearLiveRegion()})),R.register(R._renderService.onDimensionsChange(function(){return R._refreshRowsDimensions()})),R._screenDprMonitor=new O.ScreenDprMonitor,R.register(R._screenDprMonitor),R._screenDprMonitor.setListener(function(){return R._refreshRowsDimensions()}),R.register((0,F.addDisposableDomListener)(window,"resize",function(){return R._refreshRowsDimensions()})),R}return P(w,T),w.prototype.dispose=function(){T.prototype.dispose.call(this),(0,k.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},w.prototype._onBoundaryFocus=function(x,N){var R=x.target,W=this._rowElements[0===N?1:this._rowElements.length-2];if(R.getAttribute("aria-posinset")!==(0===N?"1":""+this._terminal.buffer.lines.length)&&x.relatedTarget===W){var $,ce;if(0===N?($=R,ce=this._rowElements.pop(),this._rowContainer.removeChild(ce)):($=this._rowElements.shift(),ce=R,this._rowContainer.removeChild($)),$.removeEventListener("focus",this._topBoundaryFocusListener),ce.removeEventListener("focus",this._bottomBoundaryFocusListener),0===N){var se=this._createAccessibilityTreeNode();this._rowElements.unshift(se),this._rowContainer.insertAdjacentElement("afterbegin",se)}else se=this._createAccessibilityTreeNode(),this._rowElements.push(se),this._rowContainer.appendChild(se);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===N?-1:1),this._rowElements[0===N?1:this._rowElements.length-2].focus(),x.preventDefault(),x.stopImmediatePropagation()}},w.prototype._onResize=function(x){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var N=this._rowContainer.children.length;N<this._terminal.rows;N++)this._rowElements[N]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[N]);for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},w.prototype._createAccessibilityTreeNode=function(){var x=document.createElement("div");return x.setAttribute("role","listitem"),x.tabIndex=-1,this._refreshRowDimensions(x),x},w.prototype._onTab=function(x){for(var N=0;N<x;N++)this._onChar(" ")},w.prototype._onChar=function(x){var N=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==x&&(this._charsToAnnounce+=x):this._charsToAnnounce+=x,"\n"===x&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=D.tooMuchOutput)),y.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){N._accessibilityTreeRoot.appendChild(N._liveRegion)},0))},w.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,y.isMac&&(0,k.removeElementFromParent)(this._liveRegion)},w.prototype._onKey=function(x){this._clearLiveRegion(),this._charsToConsume.push(x)},w.prototype._refreshRows=function(x,N){this._renderRowsDebouncer.refresh(x,N,this._terminal.rows)},w.prototype._renderRows=function(x,N){for(var R=this._terminal.buffer,W=R.lines.length.toString(),$=x;$<=N;$++){var ce=R.translateBufferLineToString(R.ydisp+$,!0),se=(R.ydisp+$+1).toString(),te=this._rowElements[$];te&&(0===ce.length?te.innerText="\xa0":te.textContent=ce,te.setAttribute("aria-posinset",se),te.setAttribute("aria-setsize",W))}this._announceCharacters()},w.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var x=0;x<this._terminal.rows;x++)this._refreshRowDimensions(this._rowElements[x])}},w.prototype._refreshRowDimensions=function(x){x.style.height=this._renderService.dimensions.actualCellHeight+"px"},w.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},w}(M.Disposable);S.AccessibilityManager=I},3614:function(Y,S){function U(y){return y.replace(/\r?\n/g,"\r")}function L(y,K){return K?"\x1b[200~"+y+"\x1b[201~":y}function P(y,K,F){y=L(y=U(y),F.decPrivateModes.bracketedPasteMode),F.triggerDataEvent(y,!0),K.value=""}function D(y,K,F){var M=F.getBoundingClientRect(),O=y.clientX-M.left-10,k=y.clientY-M.top-10;K.style.width="20px",K.style.height="20px",K.style.left=O+"px",K.style.top=k+"px",K.style.zIndex="1000",K.focus()}Object.defineProperty(S,"__esModule",{value:!0}),S.rightClickHandler=S.moveTextAreaUnderMouseCursor=S.paste=S.handlePasteEvent=S.copyHandler=S.bracketTextForPaste=S.prepareTextForTerminal=void 0,S.prepareTextForTerminal=U,S.bracketTextForPaste=L,S.copyHandler=function(y,K){y.clipboardData&&y.clipboardData.setData("text/plain",K.selectionText),y.preventDefault()},S.handlePasteEvent=function(y,K,F){y.stopPropagation(),y.clipboardData&&P(y.clipboardData.getData("text/plain"),K,F)},S.paste=P,S.moveTextAreaUnderMouseCursor=D,S.rightClickHandler=function(y,K,F,M,O){D(y,K,F),O&&M.rightClickSelect(y),K.value=M.selectionText,K.select()}},4774:function(Y,S){var U,L,P,D,F;function y(F){var M=F.toString(16);return M.length<2?"0"+M:M}function K(F,M){return F<M?(M+.05)/(F+.05):(F+.05)/(M+.05)}Object.defineProperty(S,"__esModule",{value:!0}),S.contrastRatio=S.toPaddedHex=S.rgba=S.rgb=S.css=S.color=S.channels=void 0,(F=U=S.channels||(S.channels={})).toCss=function(M,O,k,I){return void 0!==I?"#"+y(M)+y(O)+y(k)+y(I):"#"+y(M)+y(O)+y(k)},F.toRgba=function(M,O,k,I){return void 0===I&&(I=255),(M<<24|O<<16|k<<8|I)>>>0},(L=S.color||(S.color={})).blend=function(F,M){var O=(255&M.rgba)/255;if(1===O)return{css:M.css,rgba:M.rgba};var k=M.rgba>>24&255,I=M.rgba>>16&255,T=M.rgba>>8&255,w=F.rgba>>24&255,x=F.rgba>>16&255,N=F.rgba>>8&255,R=w+Math.round((k-w)*O),W=x+Math.round((I-x)*O),$=N+Math.round((T-N)*O);return{css:U.toCss(R,W,$),rgba:U.toRgba(R,W,$)}},L.isOpaque=function(F){return 255==(255&F.rgba)},L.ensureContrastRatio=function(F,M,O){var k=D.ensureContrastRatio(F.rgba,M.rgba,O);if(k)return D.toColor(k>>24&255,k>>16&255,k>>8&255)},L.opaque=function(F){var M=(255|F.rgba)>>>0,O=D.toChannels(M),k=O[0],I=O[1],T=O[2];return{css:U.toCss(k,I,T),rgba:M}},L.opacity=function(F,M){var O=Math.round(255*M),k=D.toChannels(F.rgba),I=k[0],T=k[1],w=k[2];return{css:U.toCss(I,T,w,O),rgba:U.toRgba(I,T,w,O)}},L.toColorRGB=function(F){return[F.rgba>>24&255,F.rgba>>16&255,F.rgba>>8&255]},(S.css||(S.css={})).toColor=function(F){switch(F.length){case 7:return{css:F,rgba:(parseInt(F.slice(1),16)<<8|255)>>>0};case 9:return{css:F,rgba:parseInt(F.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(F){function M(O,k,I){var T=O/255,w=k/255,x=I/255;return.2126*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.7152*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}F.relativeLuminance=function(O){return M(O>>16&255,O>>8&255,255&O)},F.relativeLuminance2=M}(P=S.rgb||(S.rgb={})),function(F){function M(k,I,T){for(var w=k>>24&255,x=k>>16&255,N=k>>8&255,R=I>>24&255,W=I>>16&255,$=I>>8&255,ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,x,N));ce<T&&(R>0||W>0||$>0);)R-=Math.max(0,Math.ceil(.1*R)),W-=Math.max(0,Math.ceil(.1*W)),$-=Math.max(0,Math.ceil(.1*$)),ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,x,N));return(R<<24|W<<16|$<<8|255)>>>0}function O(k,I,T){for(var w=k>>24&255,x=k>>16&255,N=k>>8&255,R=I>>24&255,W=I>>16&255,$=I>>8&255,ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,x,N));ce<T&&(R<255||W<255||$<255);)R=Math.min(255,R+Math.ceil(.1*(255-R))),W=Math.min(255,W+Math.ceil(.1*(255-W))),$=Math.min(255,$+Math.ceil(.1*(255-$))),ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,x,N));return(R<<24|W<<16|$<<8|255)>>>0}F.ensureContrastRatio=function(k,I,T){var w=P.relativeLuminance(k>>8),x=P.relativeLuminance(I>>8);if(K(w,x)<T)return x<w?M(k,I,T):O(k,I,T)},F.reduceLuminance=M,F.increaseLuminance=O,F.toChannels=function(k){return[k>>24&255,k>>16&255,k>>8&255,255&k]},F.toColor=function(k,I,T){return{css:U.toCss(k,I,T),rgba:U.toRgba(k,I,T)}}}(D=S.rgba||(S.rgba={})),S.toPaddedHex=y,S.contrastRatio=K},7239:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ColorContrastCache=void 0;var U=function(){function L(){this._color={},this._rgba={}}return L.prototype.clear=function(){this._color={},this._rgba={}},L.prototype.setCss=function(P,D,y){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][D]=y},L.prototype.getCss=function(P,D){return this._rgba[P]?this._rgba[P][D]:void 0},L.prototype.setColor=function(P,D,y){this._color[P]||(this._color[P]={}),this._color[P][D]=y},L.prototype.getColor=function(P,D){return this._color[P]?this._color[P][D]:void 0},L}();S.ColorContrastCache=U},5680:function(Y,S,U){var L=this&&this.__spreadArray||function(I,T,w){if(w||2===arguments.length)for(var x,N=0,R=T.length;N<R;N++)!x&&N in T||(x||(x=Array.prototype.slice.call(T,0,N)),x[N]=T[N]);return I.concat(x||Array.prototype.slice.call(T))};Object.defineProperty(S,"__esModule",{value:!0}),S.ColorManager=S.DEFAULT_ANSI_COLORS=void 0;var P=U(4774),D=U(7239),y=P.css.toColor("#ffffff"),K=P.css.toColor("#000000"),F=P.css.toColor("#ffffff"),M=P.css.toColor("#000000"),O={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};S.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var I=[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")],T=[0,95,135,175,215,255],w=0;w<216;w++){var x=T[w/36%6|0],N=T[w/6%6|0],R=T[w%6];I.push({css:P.channels.toCss(x,N,R),rgba:P.channels.toRgba(x,N,R)})}for(w=0;w<24;w++){var W=8+10*w;I.push({css:P.channels.toCss(W,W,W),rgba:P.channels.toRgba(W,W,W)})}return I}());var k=function(){function I(T,w){this.allowTransparency=w;var x=T.createElement("canvas");x.width=1,x.height=1;var N=x.getContext("2d");if(!N)throw new Error("Could not get rendering context");this._ctx=N,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new D.ColorContrastCache,this.colors={foreground:y,background:K,cursor:F,cursorAccent:M,selectionTransparent:O,selectionOpaque:P.color.blend(K,O),ansi:S.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return I.prototype.onOptionsChange=function(T){"minimumContrastRatio"===T&&this._contrastCache.clear()},I.prototype.setTheme=function(T){void 0===T&&(T={}),this.colors.foreground=this._parseColor(T.foreground,y),this.colors.background=this._parseColor(T.background,K),this.colors.cursor=this._parseColor(T.cursor,F,!0),this.colors.cursorAccent=this._parseColor(T.cursorAccent,M,!0),this.colors.selectionTransparent=this._parseColor(T.selection,O,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(T.black,S.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(T.red,S.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(T.green,S.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(T.yellow,S.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(T.blue,S.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(T.magenta,S.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(T.cyan,S.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(T.white,S.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(T.brightBlack,S.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(T.brightRed,S.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(T.brightGreen,S.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(T.brightYellow,S.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(T.brightBlue,S.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(T.brightMagenta,S.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(T.brightCyan,S.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(T.brightWhite,S.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},I.prototype.restoreColor=function(T){if(void 0!==T)switch(T){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[T]=this._restoreColors.ansi[T]}else for(var w=0;w<this._restoreColors.ansi.length;++w)this.colors.ansi[w]=this._restoreColors.ansi[w]},I.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:L([],this.colors.ansi,!0)}},I.prototype._parseColor=function(T,w,x){if(void 0===x&&(x=this.allowTransparency),void 0===T)return w;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=T,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+T+" is invalid using fallback "+w.css),w;this._ctx.fillRect(0,0,1,1);var N=this._ctx.getImageData(0,0,1,1).data;if(255!==N[3]){if(!x)return console.warn("Color: "+T+" is using transparency, but allowTransparency is false. Using fallback "+w.css+"."),w;var R=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),W=R[0],$=R[1],ce=R[2],se=R[3],te=Math.round(255*se);return{rgba:P.channels.toRgba(W,$,ce,te),css:T}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(N[0],N[1],N[2],N[3])}},I}();S.ColorManager=k},9631:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.removeElementFromParent=void 0,S.removeElementFromParent=function(){for(var U,L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];for(var D=0,y=L;D<y.length;D++){var K=y[D];null===(U=null==K?void 0:K.parentElement)||void 0===U||U.removeChild(K)}}},3656:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.addDisposableDomListener=void 0,S.addDisposableDomListener=function(U,L,P,D){U.addEventListener(L,P,D);var y=!1;return{dispose:function(){y||(y=!0,U.removeEventListener(L,P,D))}}}},3551:function(Y,S,U){var L=this&&this.__decorate||function(M,O,k,I){var T,w=arguments.length,x=w<3?O:null===I?I=Object.getOwnPropertyDescriptor(O,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(M,O,k,I);else for(var N=M.length-1;N>=0;N--)(T=M[N])&&(x=(w<3?T(x):w>3?T(O,k,x):T(O,k))||x);return w>3&&x&&Object.defineProperty(O,k,x),x},P=this&&this.__param||function(M,O){return function(k,I){O(k,I,M)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZone=S.Linkifier=void 0;var D=U(8460),y=U(2585),K=function(){function M(O,k,I){this._bufferService=O,this._logService=k,this._unicodeService=I,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new D.EventEmitter,this._onHideLinkUnderline=new D.EventEmitter,this._onLinkTooltip=new D.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(M.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),M.prototype.attachToDom=function(O,k){this._element=O,this._mouseZoneManager=k},M.prototype.linkifyRows=function(O,k){var I=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=O,this._rowsToLinkify.end=k):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,O),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,k)),this._mouseZoneManager.clearAll(O,k),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return I._linkifyRows()},M._timeBeforeLatency))},M.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var O=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var k=O.ydisp+this._rowsToLinkify.start;if(!(k>=O.lines.length)){for(var I=O.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,T=Math.ceil(2e3/this._bufferService.cols),w=this._bufferService.buffer.iterator(!1,k,I,T,T);w.hasNext();)for(var x=w.next(),N=0;N<this._linkMatchers.length;N++)this._doLinkifyRow(x.range.first,x.content,this._linkMatchers[N]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},M.prototype.registerLinkMatcher=function(O,k,I){if(void 0===I&&(I={}),!k)throw new Error("handler must be defined");var T={id:this._nextLinkMatcherId++,regex:O,handler:k,matchIndex:I.matchIndex,validationCallback:I.validationCallback,hoverTooltipCallback:I.tooltipCallback,hoverLeaveCallback:I.leaveCallback,willLinkActivate:I.willLinkActivate,priority:I.priority||0};return this._addLinkMatcherToList(T),T.id},M.prototype._addLinkMatcherToList=function(O){if(0!==this._linkMatchers.length){for(var k=this._linkMatchers.length-1;k>=0;k--)if(O.priority<=this._linkMatchers[k].priority)return void this._linkMatchers.splice(k+1,0,O);this._linkMatchers.splice(0,0,O)}else this._linkMatchers.push(O)},M.prototype.deregisterLinkMatcher=function(O){for(var k=0;k<this._linkMatchers.length;k++)if(this._linkMatchers[k].id===O)return this._linkMatchers.splice(k,1),!0;return!1},M.prototype._doLinkifyRow=function(O,k,I){for(var T,w=this,x=new RegExp(I.regex.source,(I.regex.flags||"")+"g"),N=-1,R=function(){var ce=T["number"!=typeof I.matchIndex?0:I.matchIndex];if(!ce)return W._logService.debug("match found without corresponding matchIndex",T,I),"break";if(N=k.indexOf(ce,N+1),x.lastIndex=N+ce.length,N<0)return"break";var se=W._bufferService.buffer.stringIndexToBufferIndex(O,N);if(se[0]<0)return"break";var te=W._bufferService.buffer.lines.get(se[0]);if(!te)return"break";var oe=te.getFg(se[1]),ve=oe?oe>>9&511:void 0;I.validationCallback?I.validationCallback(ce,function(Oe){w._rowsTimeoutId||Oe&&w._addLink(se[1],se[0]-w._bufferService.buffer.ydisp,ce,I,ve)}):W._addLink(se[1],se[0]-W._bufferService.buffer.ydisp,ce,I,ve)},W=this;null!==(T=x.exec(k))&&"break"!==R(););},M.prototype._addLink=function(O,k,I,T,w){var x=this;if(this._mouseZoneManager&&this._element){var N=this._unicodeService.getStringCellWidth(I),R=O%this._bufferService.cols,W=k+Math.floor(O/this._bufferService.cols),$=(R+N)%this._bufferService.cols,ce=W+Math.floor((R+N)/this._bufferService.cols);0===$&&($=this._bufferService.cols,ce--),this._mouseZoneManager.add(new F(R+1,W+1,$+1,ce+1,function(se){if(T.handler)return T.handler(se,I);var te=window.open();te?(te.opener=null,te.location.href=I):console.warn("Opening link blocked as opener could not be cleared")},function(){x._onShowLinkUnderline.fire(x._createLinkHoverEvent(R,W,$,ce,w)),x._element.classList.add("xterm-cursor-pointer")},function(se){x._onLinkTooltip.fire(x._createLinkHoverEvent(R,W,$,ce,w)),T.hoverTooltipCallback&&T.hoverTooltipCallback(se,I,{start:{x:R,y:W},end:{x:$,y:ce}})},function(){x._onHideLinkUnderline.fire(x._createLinkHoverEvent(R,W,$,ce,w)),x._element.classList.remove("xterm-cursor-pointer"),T.hoverLeaveCallback&&T.hoverLeaveCallback()},function(se){return!T.willLinkActivate||T.willLinkActivate(se,I)}))}},M.prototype._createLinkHoverEvent=function(O,k,I,T,w){return{x1:O,y1:k,x2:I,y2:T,cols:this._bufferService.cols,fg:w}},M._timeBeforeLatency=200,M=L([P(0,y.IBufferService),P(1,y.ILogService),P(2,y.IUnicodeService)],M)}();S.Linkifier=K;var F=function(O,k,I,T,w,x,N,R,W){this.x1=O,this.y1=k,this.x2=I,this.y2=T,this.clickCallback=w,this.hoverCallback=x,this.tooltipCallback=N,this.leaveCallback=R,this.willLinkActivate=W};S.MouseZone=F},6465:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Linkifier2=void 0;var K=U(2585),F=U(8460),M=U(844),O=U(3656),k=function(I){function T(w){var x=I.call(this)||this;return x._bufferService=w,x._linkProviders=[],x._linkCacheDisposables=[],x._isMouseOut=!0,x._activeLine=-1,x._onShowLinkUnderline=x.register(new F.EventEmitter),x._onHideLinkUnderline=x.register(new F.EventEmitter),x.register((0,M.getDisposeArrayDisposable)(x._linkCacheDisposables)),x}return P(T,I),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(w){var x=this;return this._linkProviders.push(w),{dispose:function(){var R=x._linkProviders.indexOf(w);-1!==R&&x._linkProviders.splice(R,1)}}},T.prototype.attachToDom=function(w,x,N){var R=this;this._element=w,this._mouseService=x,this._renderService=N,this.register((0,O.addDisposableDomListener)(this._element,"mouseleave",function(){R._isMouseOut=!0,R._clearCurrentLink()})),this.register((0,O.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},T.prototype._onMouseMove=function(w){if(this._lastMouseEvent=w,this._element&&this._mouseService){var x=this._positionFromMouseEvent(w,this._element,this._mouseService);if(x){this._isMouseOut=!1;for(var N=w.composedPath(),R=0;R<N.length;R++){var W=N[R];if(W.classList.contains("xterm"))break;if(W.classList.contains("xterm-hover"))return}this._lastBufferCell&&x.x===this._lastBufferCell.x&&x.y===this._lastBufferCell.y||(this._onHover(x),this._lastBufferCell=x)}}},T.prototype._onHover=function(w){if(this._activeLine!==w.y)return this._clearCurrentLink(),void this._askForLink(w,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,w)||(this._clearCurrentLink(),this._askForLink(w,!0))},T.prototype._askForLink=function(w,x){var N,R=this;this._activeProviderReplies&&x||(null===(N=this._activeProviderReplies)||void 0===N||N.forEach(function($){null==$||$.forEach(function(ce){ce.link.dispose&&ce.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=w.y);var W=!1;this._linkProviders.forEach(function($,ce){var se;x?(null===(se=R._activeProviderReplies)||void 0===se?void 0:se.get(ce))&&(W=R._checkLinkProviderResult(ce,w,W)):$.provideLinks(w.y,function(te){var oe,ve;if(!R._isMouseOut){var Oe=null==te?void 0:te.map(function(st){return{link:st}});null===(oe=R._activeProviderReplies)||void 0===oe||oe.set(ce,Oe),W=R._checkLinkProviderResult(ce,w,W),(null===(ve=R._activeProviderReplies)||void 0===ve?void 0:ve.size)===R._linkProviders.length&&R._removeIntersectingLinks(w.y,R._activeProviderReplies)}})})},T.prototype._removeIntersectingLinks=function(w,x){for(var N=new Set,R=0;R<x.size;R++){var W=x.get(R);if(W)for(var $=0;$<W.length;$++)for(var ce=W[$],se=ce.link.range.start.y<w?0:ce.link.range.start.x,te=ce.link.range.end.y>w?this._bufferService.cols:ce.link.range.end.x,oe=se;oe<=te;oe++){if(N.has(oe)){W.splice($--,1);break}N.add(oe)}}},T.prototype._checkLinkProviderResult=function(w,x,N){var R,W=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(w),ce=!1,se=0;se<w;se++)this._activeProviderReplies.has(se)&&!this._activeProviderReplies.get(se)||(ce=!0);if(!ce&&$){var te=$.find(function(ve){return W._linkAtPosition(ve.link,x)});te&&(N=!0,this._handleNewLink(te))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(se=0;se<this._activeProviderReplies.size;se++){var oe=null===(R=this._activeProviderReplies.get(se))||void 0===R?void 0:R.find(function(ve){return W._linkAtPosition(ve.link,x)});if(oe){N=!0,this._handleNewLink(oe);break}}return N},T.prototype._onClick=function(w){if(this._element&&this._mouseService&&this._currentLink){var x=this._positionFromMouseEvent(w,this._element,this._mouseService);x&&this._linkAtPosition(this._currentLink.link,x)&&this._currentLink.link.activate(w,this._currentLink.link.text)}},T.prototype._clearCurrentLink=function(w,x){this._element&&this._currentLink&&this._lastMouseEvent&&(!w||!x||this._currentLink.link.range.start.y>=w&&this._currentLink.link.range.end.y<=x)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,M.disposeArray)(this._linkCacheDisposables))},T.prototype._handleNewLink=function(w){var x=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(w.link,N)&&(this._currentLink=w,this._currentLink.state={decorations:{underline:void 0===w.link.decorations||w.link.decorations.underline,pointerCursor:void 0===w.link.decorations||w.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,w.link,this._lastMouseEvent),w.link.decorations={},Object.defineProperties(w.link.decorations,{pointerCursor:{get:function(){var W,$;return null===($=null===(W=x._currentLink)||void 0===W?void 0:W.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(W){var $,ce;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&x._currentLink.state.decorations.pointerCursor!==W&&(x._currentLink.state.decorations.pointerCursor=W,x._currentLink.state.isHovered&&(null===(ce=x._element)||void 0===ce||ce.classList.toggle("xterm-cursor-pointer",W)))}},underline:{get:function(){var W,$;return null===($=null===(W=x._currentLink)||void 0===W?void 0:W.state)||void 0===$?void 0:$.decorations.underline},set:function(W){var $,ce,se;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&(null===(se=null===(ce=x._currentLink)||void 0===ce?void 0:ce.state)||void 0===se?void 0:se.decorations.underline)!==W&&(x._currentLink.state.decorations.underline=W,x._currentLink.state.isHovered&&x._fireUnderlineEvent(w.link,W))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(R){var W=0===R.start?0:R.start+1+x._bufferService.buffer.ydisp;x._clearCurrentLink(W,R.end+1+x._bufferService.buffer.ydisp)})))}},T.prototype._linkHover=function(w,x,N){var R;(null===(R=this._currentLink)||void 0===R?void 0:R.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!0),this._currentLink.state.decorations.pointerCursor&&w.classList.add("xterm-cursor-pointer")),x.hover&&x.hover(N,x.text)},T.prototype._fireUnderlineEvent=function(w,x){var N=w.range,R=this._bufferService.buffer.ydisp,W=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-R-1,N.end.x,N.end.y-R-1,void 0);(x?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(W)},T.prototype._linkLeave=function(w,x,N){var R;(null===(R=this._currentLink)||void 0===R?void 0:R.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!1),this._currentLink.state.decorations.pointerCursor&&w.classList.remove("xterm-cursor-pointer")),x.leave&&x.leave(N,x.text)},T.prototype._linkAtPosition=function(w,x){var N=w.range.start.y===w.range.end.y,R=w.range.start.y<x.y,W=w.range.end.y>x.y;return(N&&w.range.start.x<=x.x&&w.range.end.x>=x.x||R&&w.range.end.x>=x.x||W&&w.range.start.x<=x.x||R&&W)&&w.range.start.y<=x.y&&w.range.end.y>=x.y},T.prototype._positionFromMouseEvent=function(w,x,N){var R=N.getCoords(w,x,this._bufferService.cols,this._bufferService.rows);if(R)return{x:R[0],y:R[1]+this._bufferService.buffer.ydisp}},T.prototype._createLinkUnderlineEvent=function(w,x,N,R,W){return{x1:w,y1:x,x2:N,y2:R,cols:this._bufferService.cols,fg:W}},D([y(0,K.IBufferService)],T)}(M.Disposable);S.Linkifier2=k},9042:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.tooMuchOutput=S.promptLabel=void 0,S.promptLabel="Terminal input",S.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseZoneManager=void 0;var K=U(844),F=U(3656),M=U(4725),O=U(2585),k=function(I){function T(w,x,N,R,W,$){var ce=I.call(this)||this;return ce._element=w,ce._screenElement=x,ce._bufferService=N,ce._mouseService=R,ce._selectionService=W,ce._optionsService=$,ce._zones=[],ce._areZonesActive=!1,ce._lastHoverCoords=[void 0,void 0],ce._initialSelectionLength=0,ce.register((0,F.addDisposableDomListener)(ce._element,"mousedown",function(se){return ce._onMouseDown(se)})),ce._mouseMoveListener=function(se){return ce._onMouseMove(se)},ce._mouseLeaveListener=function(se){return ce._onMouseLeave(se)},ce._clickListener=function(se){return ce._onClick(se)},ce}return P(T,I),T.prototype.dispose=function(){I.prototype.dispose.call(this),this._deactivate()},T.prototype.add=function(w){this._zones.push(w),1===this._zones.length&&this._activate()},T.prototype.clearAll=function(w,x){if(0!==this._zones.length){w&&x||(w=0,x=this._bufferService.rows-1);for(var N=0;N<this._zones.length;N++){var R=this._zones[N];(R.y1>w&&R.y1<=x+1||R.y2>w&&R.y2<=x+1||R.y1<w&&R.y2>x+1)&&(this._currentZone&&this._currentZone===R&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(N--,1))}0===this._zones.length&&this._deactivate()}},T.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))},T.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))},T.prototype._onMouseMove=function(w){this._lastHoverCoords[0]===w.pageX&&this._lastHoverCoords[1]===w.pageY||(this._onHover(w),this._lastHoverCoords=[w.pageX,w.pageY])},T.prototype._onHover=function(w){var x=this,N=this._findZoneEventAt(w);N!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),N&&(this._currentZone=N,N.hoverCallback&&N.hoverCallback(w),this._tooltipTimeout=window.setTimeout(function(){return x._onTooltip(w)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},T.prototype._onTooltip=function(w){this._tooltipTimeout=void 0;var x=this._findZoneEventAt(w);null==x||x.tooltipCallback(w)},T.prototype._onMouseDown=function(w){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var x=this._findZoneEventAt(w);(null==x?void 0:x.willLinkActivate(w))&&(w.preventDefault(),w.stopImmediatePropagation())}},T.prototype._onMouseLeave=function(w){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},T.prototype._onClick=function(w){var x=this._findZoneEventAt(w),N=this._getSelectionLength();x&&N===this._initialSelectionLength&&(x.clickCallback(w),w.preventDefault(),w.stopImmediatePropagation())},T.prototype._getSelectionLength=function(){var w=this._selectionService.selectionText;return w?w.length:0},T.prototype._findZoneEventAt=function(w){var x=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(x)for(var N=x[0],R=x[1],W=0;W<this._zones.length;W++){var $=this._zones[W];if($.y1===$.y2){if(R===$.y1&&N>=$.x1&&N<$.x2)return $}else if(R===$.y1&&N>=$.x1||R===$.y2&&N<$.x2||R>$.y1&&R<$.y2)return $}},D([y(2,O.IBufferService),y(3,M.IMouseService),y(4,M.ISelectionService),y(5,O.IOptionsService)],T)}(K.Disposable);S.MouseZoneManager=k},6193:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.RenderDebouncer=void 0;var U=function(){function L(P){this._renderCallback=P}return L.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},L.prototype.refresh=function(P,D,y){var K=this;this._rowCount=y,P=void 0!==P?P:0,D=void 0!==D?D: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,D):D,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return K._innerRefresh()}))},L.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(P,D)}},L}();S.RenderDebouncer=U},5596:function(Y,S,U){var L,P=this&&this.__extends||(L=function(K,F){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,O){M.__proto__=O}||function(M,O){for(var k in O)Object.prototype.hasOwnProperty.call(O,k)&&(M[k]=O[k])})(K,F)},function(y,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function F(){this.constructor=y}L(y,K),y.prototype=null===K?Object.create(K):(F.prototype=K.prototype,new F)});Object.defineProperty(S,"__esModule",{value:!0}),S.ScreenDprMonitor=void 0;var D=function(y){function K(){var F=null!==y&&y.apply(this,arguments)||this;return F._currentDevicePixelRatio=window.devicePixelRatio,F}return P(K,y),K.prototype.setListener=function(F){var M=this;this._listener&&this.clearListener(),this._listener=F,this._outerListener=function(){M._listener&&(M._listener(window.devicePixelRatio,M._currentDevicePixelRatio),M._updateDpr())},this._updateDpr()},K.prototype.dispose=function(){y.prototype.dispose.call(this),this.clearListener()},K.prototype._updateDpr=function(){var F;this._outerListener&&(null===(F=this._resolutionMediaMatchList)||void 0===F||F.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},K.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)},K}(U(844).Disposable);S.ScreenDprMonitor=D},3236:function(Y,S,U){var L,P=this&&this.__extends||(L=function(jt,it){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,nt){vt.__proto__=nt}||function(vt,nt){for(var Lt in nt)Object.prototype.hasOwnProperty.call(nt,Lt)&&(vt[Lt]=nt[Lt])})(jt,it)},function(Xe,jt){if("function"!=typeof jt&&null!==jt)throw new TypeError("Class extends value "+String(jt)+" is not a constructor or null");function it(){this.constructor=Xe}L(Xe,jt),Xe.prototype=null===jt?Object.create(jt):(it.prototype=jt.prototype,new it)});Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var D=U(2950),y=U(1680),K=U(3614),F=U(2584),M=U(5435),O=U(3525),k=U(3551),I=U(9312),T=U(6114),w=U(3656),x=U(9042),N=U(357),R=U(6954),W=U(4567),$=U(1296),ce=U(7399),se=U(8460),te=U(8437),oe=U(5680),ve=U(3230),Oe=U(4725),st=U(428),xe=U(8934),_e=U(6465),ke=U(5114),Fe=U(8969),ct=U(4774),Mt=U(4269),Nt=U(5941),Xt=U(7641),en="undefined"!=typeof window?window.document:null,qt=function(Xe){function jt(it){void 0===it&&(it={});var vt=Xe.call(this,it)||this;return vt.browser=T,vt._keyDownHandled=!1,vt._keyPressHandled=!1,vt._unprocessedDeadKey=!1,vt._onCursorMove=new se.EventEmitter,vt._onKey=new se.EventEmitter,vt._onRender=new se.EventEmitter,vt._onSelectionChange=new se.EventEmitter,vt._onTitleChange=new se.EventEmitter,vt._onBell=new se.EventEmitter,vt._onFocus=new se.EventEmitter,vt._onBlur=new se.EventEmitter,vt._onA11yCharEmitter=new se.EventEmitter,vt._onA11yTabEmitter=new se.EventEmitter,vt._setup(),vt.linkifier=vt._instantiationService.createInstance(k.Linkifier),vt.linkifier2=vt.register(vt._instantiationService.createInstance(_e.Linkifier2)),vt.decorationService=vt.register(vt._instantiationService.createInstance(Xt.DecorationService)),vt.register(vt._inputHandler.onRequestBell(function(){return vt.bell()})),vt.register(vt._inputHandler.onRequestRefreshRows(function(nt,Lt){return vt.refresh(nt,Lt)})),vt.register(vt._inputHandler.onRequestSendFocus(function(){return vt._reportFocus()})),vt.register(vt._inputHandler.onRequestReset(function(){return vt.reset()})),vt.register(vt._inputHandler.onRequestWindowsOptionsReport(function(nt){return vt._reportWindowsOptions(nt)})),vt.register(vt._inputHandler.onColor(function(nt){return vt._handleColorEvent(nt)})),vt.register((0,se.forwardEvent)(vt._inputHandler.onCursorMove,vt._onCursorMove)),vt.register((0,se.forwardEvent)(vt._inputHandler.onTitleChange,vt._onTitleChange)),vt.register((0,se.forwardEvent)(vt._inputHandler.onA11yChar,vt._onA11yCharEmitter)),vt.register((0,se.forwardEvent)(vt._inputHandler.onA11yTab,vt._onA11yTabEmitter)),vt.register(vt._bufferService.onResize(function(nt){return vt._afterResize(nt.cols,nt.rows)})),vt}return P(jt,Xe),Object.defineProperty(jt.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),jt.prototype._handleColorEvent=function(it){var vt,nt;if(this._colorManager){for(var Lt=0,It=it;Lt<It.length;Lt++){var on=It[Lt],_n=void 0,An="";switch(on.index){case 256:_n="foreground",An="10";break;case 257:_n="background",An="11";break;case 258:_n="cursor",An="12";break;default:_n="ansi",An="4;"+on.index}if(_n)switch(on.type){case 0:var Gt=ct.color.toColorRGB("ansi"===_n?this._colorManager.colors.ansi[on.index]:this._colorManager.colors[_n]);this.coreService.triggerDataEvent(F.C0.ESC+"]"+An+";"+(0,Nt.toRgbString)(Gt)+F.C0.BEL);break;case 1:"ansi"===_n?this._colorManager.colors.ansi[on.index]=ct.rgba.toColor.apply(ct.rgba,on.color):this._colorManager.colors[_n]=ct.rgba.toColor.apply(ct.rgba,on.color);break;case 2:this._colorManager.restoreColor(on.index)}}null===(vt=this._renderService)||void 0===vt||vt.setColors(this._colorManager.colors),null===(nt=this.viewport)||void 0===nt||nt.onThemeChange(this._colorManager.colors)}},jt.prototype.dispose=function(){var it,vt,nt;this._isDisposed||(Xe.prototype.dispose.call(this),null===(it=this._renderService)||void 0===it||it.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(nt=null===(vt=this.element)||void 0===vt?void 0:vt.parentNode)||void 0===nt||nt.removeChild(this.element))},jt.prototype._setup=function(){Xe.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(jt.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),jt.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},jt.prototype._updateOptions=function(it){var vt,nt,Lt,It;switch(Xe.prototype._updateOptions.call(this,it),it){case"fontFamily":case"fontSize":null===(vt=this._renderService)||void 0===vt||vt.clear(),null===(nt=this._charSizeService)||void 0===nt||nt.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===(Lt=this.viewport)||void 0===Lt||Lt.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new W.AccessibilityManager(this,this._renderService)):(null===(It=this._accessibilityManager)||void 0===It||It.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},jt.prototype._onTextAreaFocus=function(it){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(F.C0.ESC+"[I"),this.updateCursorStyle(it),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},jt.prototype.blur=function(){var it;return null===(it=this.textarea)||void 0===it?void 0:it.blur()},jt.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(F.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},jt.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var it=this.buffer.ybase+this.buffer.y,vt=this.buffer.lines.get(it);if(vt){var nt=Math.min(this.buffer.x,this.cols-1),Lt=this._renderService.dimensions.actualCellHeight,It=vt.getWidth(nt),on=this._renderService.dimensions.actualCellWidth*It,_n=this.buffer.y*this._renderService.dimensions.actualCellHeight,An=nt*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=An+"px",this.textarea.style.top=_n+"px",this.textarea.style.width=on+"px",this.textarea.style.height=Lt+"px",this.textarea.style.lineHeight=Lt+"px",this.textarea.style.zIndex="-5"}}},jt.prototype._initGlobal=function(){var it=this;this._bindKeys(),this.register((0,w.addDisposableDomListener)(this.element,"copy",function(nt){it.hasSelection()&&(0,K.copyHandler)(nt,it._selectionService)}));var vt=function(Lt){return(0,K.handlePasteEvent)(Lt,it.textarea,it.coreService)};this.register((0,w.addDisposableDomListener)(this.textarea,"paste",vt)),this.register((0,w.addDisposableDomListener)(this.element,"paste",vt)),T.isFirefox?this.register((0,w.addDisposableDomListener)(this.element,"mousedown",function(nt){2===nt.button&&(0,K.rightClickHandler)(nt,it.textarea,it.screenElement,it._selectionService,it.options.rightClickSelectsWord)})):this.register((0,w.addDisposableDomListener)(this.element,"contextmenu",function(nt){(0,K.rightClickHandler)(nt,it.textarea,it.screenElement,it._selectionService,it.options.rightClickSelectsWord)})),T.isLinux&&this.register((0,w.addDisposableDomListener)(this.element,"auxclick",function(nt){1===nt.button&&(0,K.moveTextAreaUnderMouseCursor)(nt,it.textarea,it.screenElement)}))},jt.prototype._bindKeys=function(){var it=this;this.register((0,w.addDisposableDomListener)(this.textarea,"keyup",function(vt){return it._keyUp(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"keydown",function(vt){return it._keyDown(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"keypress",function(vt){return it._keyPress(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionstart",function(){return it._compositionHelper.compositionstart()})),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionupdate",function(vt){return it._compositionHelper.compositionupdate(vt)})),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionend",function(){return it._compositionHelper.compositionend()})),this.register((0,w.addDisposableDomListener)(this.textarea,"input",function(vt){return it._inputEvent(vt)},!0)),this.register(this.onRender(function(){return it._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(vt){return it._queueLinkification(vt.start,vt.end)}))},jt.prototype.open=function(it){var vt=this;if(!it)throw new Error("Terminal requires a parent element.");it.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=it.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"),it.appendChild(this.element);var nt=en.createDocumentFragment();this._viewportElement=en.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),nt.appendChild(this._viewportElement),this._viewportScrollArea=en.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=en.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=en.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),nt.appendChild(this.screenElement),this.textarea=en.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",x.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,w.addDisposableDomListener)(this.textarea,"focus",function(on){return vt._onTextAreaFocus(on)})),this.register((0,w.addDisposableDomListener)(this.textarea,"blur",function(){return vt._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Lt=this._instantiationService.createInstance(ke.CoreBrowserService,this.textarea);this._instantiationService.setService(Oe.ICoreBrowserService,Lt),this._charSizeService=this._instantiationService.createInstance(st.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(Oe.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new oe.ColorManager(en,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(on){return vt._colorManager.onOptionsChange(on)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Mt.CharacterJoinerService),this._instantiationService.setService(Oe.ICharacterJoinerService,this._characterJoinerService);var It=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ve.RenderService,It,this.rows,this.screenElement)),this._instantiationService.setService(Oe.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(on){return vt._onRender.fire(on)})),this.onResize(function(on){return vt._renderService.resize(on.cols,on.rows)}),this._compositionView=en.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(D.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(nt),this._soundService=this._instantiationService.createInstance(N.SoundService),this._instantiationService.setService(Oe.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(xe.MouseService),this._instantiationService.setService(Oe.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(y.Viewport,function(on){return vt.scrollLines(on,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return vt.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){vt._renderService.onCursorMove(),vt._syncTextArea()})),this.register(this.onResize(function(){return vt._renderService.onResize(vt.cols,vt.rows)})),this.register(this.onBlur(function(){return vt._renderService.onBlur()})),this.register(this.onFocus(function(){return vt._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return vt.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(I.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(Oe.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(on){return vt.scrollLines(on.amount,on.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return vt._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(on){return vt._renderService.onSelectionChanged(on.start,on.end,on.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(on){vt.textarea.value=on,vt.textarea.focus(),vt.textarea.select()})),this.register(this._onScroll.event(function(on){vt.viewport.syncScrollArea(),vt._selectionService.refresh()})),this.register((0,w.addDisposableDomListener)(this._viewportElement,"scroll",function(){return vt._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(R.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return vt._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.decorationService.attachToDom(this.screenElement,this._renderService,this._bufferService),this.register((0,w.addDisposableDomListener)(this.element,"mousedown",function(on){return vt._selectionService.onMouseDown(on)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new W.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},jt.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(O.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance($.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},jt.prototype._setTheme=function(it){var vt,nt,Lt;this._theme=it,null===(vt=this._colorManager)||void 0===vt||vt.setTheme(it),null===(nt=this._renderService)||void 0===nt||nt.setColors(this._colorManager.colors),null===(Lt=this.viewport)||void 0===Lt||Lt.onThemeChange(this._colorManager.colors)},jt.prototype.bindMouse=function(){var it=this,vt=this,nt=this.element;function Lt(Zt){var Et,Ut,Ht=vt._mouseService.getRawByteCoords(Zt,vt.screenElement,vt.cols,vt.rows);if(!Ht)return!1;switch(Zt.overrideType||Zt.type){case"mousemove":Ut=32,void 0===Zt.buttons?(Et=3,void 0!==Zt.button&&(Et=Zt.button<3?Zt.button:3)):Et=1&Zt.buttons?0:4&Zt.buttons?1:2&Zt.buttons?2:3;break;case"mouseup":Ut=0,Et=Zt.button<3?Zt.button:3;break;case"mousedown":Ut=1,Et=Zt.button<3?Zt.button:3;break;case"wheel":0!==Zt.deltaY&&(Ut=Zt.deltaY<0?0:1),Et=4;break;default:return!1}return!(void 0===Ut||void 0===Et||Et>4)&&vt.coreMouseService.triggerMouseEvent({col:Ht.x-33,row:Ht.y-33,button:Et,action:Ut,ctrl:Zt.ctrlKey,alt:Zt.altKey,shift:Zt.shiftKey})}var It={mouseup:null,wheel:null,mousedrag:null,mousemove:null},on=function(Et){return Lt(Et),Et.buttons||(it._document.removeEventListener("mouseup",It.mouseup),It.mousedrag&&it._document.removeEventListener("mousemove",It.mousedrag)),it.cancel(Et)},_n=function(Et){return Lt(Et),it.cancel(Et,!0)},An=function(Et){Et.buttons&&Lt(Et)},Gt=function(Et){Et.buttons||Lt(Et)};this.register(this.coreMouseService.onProtocolChange(function(Zt){Zt?("debug"===it.optionsService.rawOptions.logLevel&&it._logService.debug("Binding to mouse events:",it.coreMouseService.explainEvents(Zt)),it.element.classList.add("enable-mouse-events"),it._selectionService.disable()):(it._logService.debug("Unbinding from mouse events."),it.element.classList.remove("enable-mouse-events"),it._selectionService.enable()),8&Zt?It.mousemove||(nt.addEventListener("mousemove",Gt),It.mousemove=Gt):(nt.removeEventListener("mousemove",It.mousemove),It.mousemove=null),16&Zt?It.wheel||(nt.addEventListener("wheel",_n,{passive:!1}),It.wheel=_n):(nt.removeEventListener("wheel",It.wheel),It.wheel=null),2&Zt?It.mouseup||(It.mouseup=on):(it._document.removeEventListener("mouseup",It.mouseup),It.mouseup=null),4&Zt?It.mousedrag||(It.mousedrag=An):(it._document.removeEventListener("mousemove",It.mousedrag),It.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,w.addDisposableDomListener)(nt,"mousedown",function(Zt){if(Zt.preventDefault(),it.focus(),it.coreMouseService.areMouseEventsActive&&!it._selectionService.shouldForceSelection(Zt))return Lt(Zt),It.mouseup&&it._document.addEventListener("mouseup",It.mouseup),It.mousedrag&&it._document.addEventListener("mousemove",It.mousedrag),it.cancel(Zt)})),this.register((0,w.addDisposableDomListener)(nt,"wheel",function(Zt){if(!It.wheel){if(!it.buffer.hasScrollback){var Et=it.viewport.getLinesScrolled(Zt);if(0===Et)return;for(var Ut=F.C0.ESC+(it.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Zt.deltaY<0?"A":"B"),Ht="",ln=0;ln<Math.abs(Et);ln++)Ht+=Ut;return it.coreService.triggerDataEvent(Ht,!0),it.cancel(Zt,!0)}return it.viewport.onWheel(Zt)?it.cancel(Zt):void 0}},{passive:!1})),this.register((0,w.addDisposableDomListener)(nt,"touchstart",function(Zt){if(!it.coreMouseService.areMouseEventsActive)return it.viewport.onTouchStart(Zt),it.cancel(Zt)},{passive:!0})),this.register((0,w.addDisposableDomListener)(nt,"touchmove",function(Zt){if(!it.coreMouseService.areMouseEventsActive)return it.viewport.onTouchMove(Zt)?void 0:it.cancel(Zt)},{passive:!1}))},jt.prototype.refresh=function(it,vt){var nt;null===(nt=this._renderService)||void 0===nt||nt.refreshRows(it,vt)},jt.prototype._queueLinkification=function(it,vt){var nt;null===(nt=this.linkifier)||void 0===nt||nt.linkifyRows(it,vt)},jt.prototype.updateCursorStyle=function(it){var vt;(null===(vt=this._selectionService)||void 0===vt?void 0:vt.shouldColumnSelect(it))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},jt.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},jt.prototype.scrollLines=function(it,vt,nt){void 0===nt&&(nt=0),Xe.prototype.scrollLines.call(this,it,vt,nt),this.refresh(0,this.rows-1)},jt.prototype.paste=function(it){(0,K.paste)(it,this.textarea,this.coreService)},jt.prototype.attachCustomKeyEventHandler=function(it){this._customKeyEventHandler=it},jt.prototype.registerLinkMatcher=function(it,vt,nt){var Lt=this.linkifier.registerLinkMatcher(it,vt,nt);return this.refresh(0,this.rows-1),Lt},jt.prototype.deregisterLinkMatcher=function(it){this.linkifier.deregisterLinkMatcher(it)&&this.refresh(0,this.rows-1)},jt.prototype.registerLinkProvider=function(it){return this.linkifier2.registerLinkProvider(it)},jt.prototype.registerCharacterJoiner=function(it){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var vt=this._characterJoinerService.register(it);return this.refresh(0,this.rows-1),vt},jt.prototype.deregisterCharacterJoiner=function(it){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(it)&&this.refresh(0,this.rows-1)},Object.defineProperty(jt.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),jt.prototype.addMarker=function(it){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+it)},jt.prototype.registerDecoration=function(it){return this.decorationService.registerDecoration(it)},jt.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},jt.prototype.select=function(it,vt,nt){this._selectionService.setSelection(it,vt,nt)},jt.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},jt.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]}},jt.prototype.clearSelection=function(){var it;null===(it=this._selectionService)||void 0===it||it.clearSelection()},jt.prototype.selectAll=function(){var it;null===(it=this._selectionService)||void 0===it||it.selectAll()},jt.prototype.selectLines=function(it,vt){var nt;null===(nt=this._selectionService)||void 0===nt||nt.selectLines(it,vt)},jt.prototype._keyDown=function(it){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(it))return!1;if(!this._compositionHelper.keydown(it))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;"Dead"!==it.key&&"AltGraph"!==it.key||(this._unprocessedDeadKey=!0);var vt=(0,ce.evaluateKeyboardEvent)(it,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(it),3===vt.type||2===vt.type){var nt=this.rows-1;return this.scrollLines(2===vt.type?-nt:nt),this.cancel(it,!0)}return 1===vt.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,it)||(vt.cancel&&this.cancel(it,!0),!vt.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(vt.key!==F.C0.ETX&&vt.key!==F.C0.CR||(this.textarea.value=""),this._onKey.fire({key:vt.key,domEvent:it}),this._showCursor(),this.coreService.triggerDataEvent(vt.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(it,!0))))},jt.prototype._isThirdLevelShift=function(it,vt){var nt=it.isMac&&!this.options.macOptionIsMeta&&vt.altKey&&!vt.ctrlKey&&!vt.metaKey||it.isWindows&&vt.altKey&&vt.ctrlKey&&!vt.metaKey||it.isWindows&&vt.getModifierState("AltGraph");return"keypress"===vt.type?nt:nt&&(!vt.keyCode||vt.keyCode>47)},jt.prototype._keyUp=function(it){var vt;this._customKeyEventHandler&&!1===this._customKeyEventHandler(it)||(16===(vt=it).keyCode||17===vt.keyCode||18===vt.keyCode||this.focus(),this.updateCursorStyle(it),this._keyPressHandled=!1)},jt.prototype._keyPress=function(it){var vt;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(it))return!1;if(this.cancel(it),it.charCode)vt=it.charCode;else if(null===it.which||void 0===it.which)vt=it.keyCode;else{if(0===it.which||0===it.charCode)return!1;vt=it.which}return!(!vt||(it.altKey||it.ctrlKey||it.metaKey)&&!this._isThirdLevelShift(this.browser,it)||(vt=String.fromCharCode(vt),this._onKey.fire({key:vt,domEvent:it}),this._showCursor(),this.coreService.triggerDataEvent(vt,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},jt.prototype._inputEvent=function(it){if(it.data&&"insertText"===it.inputType&&!it.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var vt=it.data;return this.coreService.triggerDataEvent(vt,!0),this.cancel(it),!0}return!1},jt.prototype.bell=function(){var it;this._soundBell()&&(null===(it=this._soundService)||void 0===it||it.playBellSound()),this._onBell.fire()},jt.prototype.resize=function(it,vt){it!==this.cols||vt!==this.rows?Xe.prototype.resize.call(this,it,vt):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},jt.prototype._afterResize=function(it,vt){var nt,Lt;null===(nt=this._charSizeService)||void 0===nt||nt.measure(),null===(Lt=this.viewport)||void 0===Lt||Lt.syncScrollArea(!0)},jt.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearMarkers(),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 it=1;it<this.rows;it++)this.buffer.lines.push(this.buffer.getBlankLine(te.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},jt.prototype.reset=function(){var it,vt;this.options.rows=this.rows,this.options.cols=this.cols;var nt=this._customKeyEventHandler;this._setup(),Xe.prototype.reset.call(this),null===(it=this._selectionService)||void 0===it||it.reset(),this._customKeyEventHandler=nt,this.refresh(0,this.rows-1),null===(vt=this.viewport)||void 0===vt||vt.syncScrollArea()},jt.prototype.clearTextureAtlas=function(){var it;null===(it=this._renderService)||void 0===it||it.clearTextureAtlas()},jt.prototype._reportFocus=function(){var it;(null===(it=this.element)||void 0===it?void 0:it.classList.contains("focus"))?this.coreService.triggerDataEvent(F.C0.ESC+"[I"):this.coreService.triggerDataEvent(F.C0.ESC+"[O")},jt.prototype._reportWindowsOptions=function(it){if(this._renderService)switch(it){case M.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var vt=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),nt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(F.C0.ESC+"[4;"+nt+";"+vt+"t");break;case M.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Lt=this._renderService.dimensions.scaledCellWidth.toFixed(0),It=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(F.C0.ESC+"[6;"+It+";"+Lt+"t")}},jt.prototype.cancel=function(it,vt){if(this.options.cancelEvents||vt)return it.preventDefault(),it.stopPropagation(),!1},jt.prototype._visualBell=function(){return!1},jt.prototype._soundBell=function(){return"sound"===this.options.bellStyle},jt}(Fe.CoreTerminal);S.Terminal=qt},9924:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.TimeBasedDebouncer=void 0;var U=function(){function L(P,D){void 0===D&&(D=1e3),this._renderCallback=P,this._debounceThresholdMS=D,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return L.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},L.prototype.refresh=function(P,D,y){var K=this;this._rowCount=y,P=void 0!==P?P:0,D=void 0!==D?D: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,D):D;var F=Date.now();if(F-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=F,this._innerRefresh();else if(!this._additionalRefreshRequested){var M=F-this._lastRefreshMs,O=this._debounceThresholdMS-M;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){K._lastRefreshMs=Date.now(),K._innerRefresh(),K._additionalRefreshRequested=!1,K._refreshTimeoutID=void 0},O)}},L.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,D)}},L}();S.TimeBasedDebouncer=U},1680:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Viewport=void 0;var K=U(844),F=U(3656),M=U(4725),O=U(2585),k=function(I){function T(w,x,N,R,W,$,ce,se){var te=I.call(this)||this;return te._scrollLines=w,te._viewportElement=x,te._scrollArea=N,te._element=R,te._bufferService=W,te._optionsService=$,te._charSizeService=ce,te._renderService=se,te.scrollBarWidth=0,te._currentRowHeight=0,te._currentScaledCellHeight=0,te._lastRecordedBufferLength=0,te._lastRecordedViewportHeight=0,te._lastRecordedBufferHeight=0,te._lastTouchY=0,te._lastScrollTop=0,te._lastHadScrollBar=!1,te._wheelPartialScroll=0,te._refreshAnimationFrame=null,te._ignoreNextScrollEvent=!1,te.scrollBarWidth=te._viewportElement.offsetWidth-te._scrollArea.offsetWidth||15,te._lastHadScrollBar=!0,te.register((0,F.addDisposableDomListener)(te._viewportElement,"scroll",te._onScroll.bind(te))),te._activeBuffer=te._bufferService.buffer,te.register(te._bufferService.buffers.onBufferActivate(function(oe){return te._activeBuffer=oe.activeBuffer})),te._renderDimensions=te._renderService.dimensions,te.register(te._renderService.onDimensionsChange(function(oe){return te._renderDimensions=oe})),setTimeout(function(){return te.syncScrollArea()},0),te}return P(T,I),T.prototype.onThemeChange=function(w){this._viewportElement.style.backgroundColor=w.background.css},T.prototype._refresh=function(w){var x=this;if(w)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return x._innerRefresh()}))},T.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 w=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==w&&(this._lastRecordedBufferHeight=w,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var x=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==x&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=x),0===this._optionsService.rawOptions.scrollback?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var N=window.getComputedStyle(this._element),R=parseInt(N.paddingLeft)+parseInt(N.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?R:0)).toString()+"px",this._refreshAnimationFrame=null},T.prototype.syncScrollArea=function(w){if(void 0===w&&(w=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(w);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(w):this._refresh(w)},T.prototype._onScroll=function(w){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var x=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(x)}},T.prototype._bubbleScroll=function(w,x){var N=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(x<0&&0!==this._viewportElement.scrollTop||x>0&&N<this._lastRecordedBufferHeight)||(w.cancelable&&w.preventDefault(),!1)},T.prototype.onWheel=function(w){var x=this._getPixelsScrolled(w);return 0!==x&&(this._viewportElement.scrollTop+=x,this._bubbleScroll(w,x))},T.prototype._getPixelsScrolled=function(w){if(0===w.deltaY||w.shiftKey)return 0;var x=this._applyScrollModifier(w.deltaY,w);return w.deltaMode===WheelEvent.DOM_DELTA_LINE?x*=this._currentRowHeight:w.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(x*=this._currentRowHeight*this._bufferService.rows),x},T.prototype.getLinesScrolled=function(w){if(0===w.deltaY||w.shiftKey)return 0;var x=this._applyScrollModifier(w.deltaY,w);return w.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(x/=this._currentRowHeight+0,this._wheelPartialScroll+=x,x=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):w.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(x*=this._bufferService.rows),x},T.prototype._applyScrollModifier=function(w,x){var N=this._optionsService.rawOptions.fastScrollModifier;return"alt"===N&&x.altKey||"ctrl"===N&&x.ctrlKey||"shift"===N&&x.shiftKey?w*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:w*this._optionsService.rawOptions.scrollSensitivity},T.prototype.onTouchStart=function(w){this._lastTouchY=w.touches[0].pageY},T.prototype.onTouchMove=function(w){var x=this._lastTouchY-w.touches[0].pageY;return this._lastTouchY=w.touches[0].pageY,0!==x&&(this._viewportElement.scrollTop+=x,this._bubbleScroll(w,x))},D([y(4,O.IBufferService),y(5,O.IOptionsService),y(6,M.ICharSizeService),y(7,M.IRenderService)],T)}(K.Disposable);S.Viewport=k},2950:function(Y,S,U){var L=this&&this.__decorate||function(F,M,O,k){var I,T=arguments.length,w=T<3?M:null===k?k=Object.getOwnPropertyDescriptor(M,O):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(F,M,O,k);else for(var x=F.length-1;x>=0;x--)(I=F[x])&&(w=(T<3?I(w):T>3?I(M,O,w):I(M,O))||w);return T>3&&w&&Object.defineProperty(M,O,w),w},P=this&&this.__param||function(F,M){return function(O,k){M(O,k,F)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CompositionHelper=void 0;var D=U(4725),y=U(2585),K=function(){function F(M,O,k,I,T,w){this._textarea=M,this._compositionView=O,this._bufferService=k,this._optionsService=I,this._coreService=T,this._renderService=w,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(F.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),F.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},F.prototype.compositionupdate=function(M){var O=this;this._compositionView.textContent=M.data,this.updateCompositionElements(),setTimeout(function(){O._compositionPosition.end=O._textarea.value.length},0)},F.prototype.compositionend=function(){this._finalizeComposition(!0)},F.prototype.keydown=function(M){if(this._isComposing||this._isSendingComposition){if(229===M.keyCode||16===M.keyCode||17===M.keyCode||18===M.keyCode)return!1;this._finalizeComposition(!1)}return 229!==M.keyCode||(this._handleAnyTextareaChanges(),!1)},F.prototype._finalizeComposition=function(M){var O=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,M){var k={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var T;O._isSendingComposition&&(O._isSendingComposition=!1,k.start+=O._dataAlreadySent.length,(T=O._isComposing?O._textarea.value.substring(k.start,k.end):O._textarea.value.substring(k.start)).length>0&&O._coreService.triggerDataEvent(T,!0))},0)}else{this._isSendingComposition=!1;var I=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(I,!0)}},F.prototype._handleAnyTextareaChanges=function(){var M=this,O=this._textarea.value;setTimeout(function(){if(!M._isComposing){var k=M._textarea.value.replace(O,"");k.length>0&&(M._dataAlreadySent=k,M._coreService.triggerDataEvent(k,!0))}},0)},F.prototype.updateCompositionElements=function(M){var O=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var k=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),I=this._renderService.dimensions.actualCellHeight,T=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,w=k*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=w+"px",this._compositionView.style.top=T+"px",this._compositionView.style.height=I+"px",this._compositionView.style.lineHeight=I+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var x=this._compositionView.getBoundingClientRect();this._textarea.style.left=w+"px",this._textarea.style.top=T+"px",this._textarea.style.width=Math.max(x.width,1)+"px",this._textarea.style.height=Math.max(x.height,1)+"px",this._textarea.style.lineHeight=x.height+"px"}M||setTimeout(function(){return O.updateCompositionElements(!0)},0)}},L([P(2,y.IBufferService),P(3,y.IOptionsService),P(4,y.ICoreService),P(5,D.IRenderService)],F)}();S.CompositionHelper=K},9806:function(Y,S){function U(L,P){var D=P.getBoundingClientRect();return[L.clientX-D.left,L.clientY-D.top]}Object.defineProperty(S,"__esModule",{value:!0}),S.getRawByteCoords=S.getCoords=S.getCoordsRelativeToElement=void 0,S.getCoordsRelativeToElement=U,S.getCoords=function(L,P,D,y,K,F,M,O){if(K){var k=U(L,P);if(k)return k[0]=Math.ceil((k[0]+(O?F/2:0))/F),k[1]=Math.ceil(k[1]/M),k[0]=Math.min(Math.max(k[0],1),D+(O?1:0)),k[1]=Math.min(Math.max(k[1],1),y),k}},S.getRawByteCoords=function(L){if(L)return{x:L[0]+32,y:L[1]+32}}},9504:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.moveToCellSequence=void 0;var L=U(2584);function P(O,k,I,T){var w=O-D(I,O),x=k-D(I,k);return M(Math.abs(w-x)-function(R,W,$){for(var ce=0,se=R-D($,R),te=W-D($,W),oe=0;oe<Math.abs(se-te);oe++){var ve="A"===y(R,W)?-1:1,Oe=$.buffer.lines.get(se+ve*oe);(null==Oe?void 0:Oe.isWrapped)&&ce++}return ce}(O,k,I),F(y(O,k),T))}function D(O,k){for(var I=0,T=O.buffer.lines.get(k),w=null==T?void 0:T.isWrapped;w&&k>=0&&k<O.rows;)I++,w=null==(T=O.buffer.lines.get(--k))?void 0:T.isWrapped;return I}function y(O,k){return O>k?"A":"B"}function K(O,k,I,T,w,x){for(var N=O,R=k,W="";N!==I||R!==T;)N+=w?1:-1,w&&N>x.cols-1?(W+=x.buffer.translateBufferLineToString(R,!1,O,N),N=0,O=0,R++):!w&&N<0&&(W+=x.buffer.translateBufferLineToString(R,!1,0,O+1),O=N=x.cols-1,R--);return W+x.buffer.translateBufferLineToString(R,!1,O,N)}function F(O,k){var I=k?"O":"[";return L.C0.ESC+I+O}function M(O,k){O=Math.floor(O);for(var I="",T=0;T<O;T++)I+=k;return I}S.moveToCellSequence=function(O,k,I,T){var w,W,$,te,oe,x=I.buffer.x,N=I.buffer.y;if(!I.buffer.hasScrollback)return W=x,(0===P($=N,k,te=I,oe=T).length?"":M(K(W,$,W,$-D(te,$),!1,te).length,F("D",oe)))+P(N,k,I,T)+function(W,$,ce,se,te,oe){var ve;ve=P($,se,te,oe).length>0?se-D(te,se):$;var xe,_e,ke,Fe,ct,Nt,Oe=se,st=(xe=W,_e=$,Nt=P(ke=ce,Fe=se,ct=te,oe).length>0?Fe-D(ct,Fe):_e,xe<ke&&Nt<=Fe||xe>=ke&&Nt<Fe?"C":"D");return M(K(W,ve,ce,Oe,"C"===st,te).length,F(st,oe))}(x,N,O,k,I,T);if(N===k)return w=x>O?"D":"C",M(Math.abs(x-O),F(w,T));w=N>k?"D":"C";var R=Math.abs(N-k);return M(function(W,$){return $.cols-W}(N>k?O:x,I)+(R-1)*I.cols+1+((N>k?x:O)-1),F(w,T))}},4389:function(Y,S,U){var L=this&&this.__assign||function(){return L=Object.assign||function(I){for(var T,w=1,x=arguments.length;w<x;w++)for(var N in T=arguments[w])Object.prototype.hasOwnProperty.call(T,N)&&(I[N]=T[N]);return I},L.apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.Terminal=void 0;var P=U(3236),D=U(9042),y=U(7975),K=U(7090),F=U(5741),M=U(8285),O=["cols","rows"],k=function(){function I(T){var w=this;this._core=new P.Terminal(T),this._addonManager=new F.AddonManager,this._publicOptions=L({},this._core.options);var x=function(ce){return w._core.options[ce]},N=function(ce,se){w._checkReadonlyOptions(ce),w._core.options[ce]=se};for(var R in this._core.options){var W={get:x.bind(this,R),set:N.bind(this,R)};Object.defineProperty(this._publicOptions,R,W)}}return I.prototype._checkReadonlyOptions=function(T){if(O.includes(T))throw new Error('Option "'+T+'" can only be set in the constructor')},I.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(I.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new y.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"unicode",{get:function(){return this._checkProposedApi(),new K.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new M.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"modes",{get:function(){var w=this._core.coreService.decPrivateModes,x="none";switch(this._core.coreMouseService.activeProtocol){case"X10":x="x10";break;case"VT200":x="vt200";break;case"DRAG":x="drag";break;case"ANY":x="any"}return{applicationCursorKeysMode:w.applicationCursorKeys,applicationKeypadMode:w.applicationKeypad,bracketedPasteMode:w.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:x,originMode:w.origin,reverseWraparoundMode:w.reverseWraparound,sendFocusMode:w.sendFocus,wraparoundMode:w.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"options",{get:function(){return this._publicOptions},set:function(w){for(var x in w)this._publicOptions[x]=w[x]},enumerable:!1,configurable:!0}),I.prototype.blur=function(){this._core.blur()},I.prototype.focus=function(){this._core.focus()},I.prototype.resize=function(T,w){this._verifyIntegers(T,w),this._core.resize(T,w)},I.prototype.open=function(T){this._core.open(T)},I.prototype.attachCustomKeyEventHandler=function(T){this._core.attachCustomKeyEventHandler(T)},I.prototype.registerLinkMatcher=function(T,w,x){return this._checkProposedApi(),this._core.registerLinkMatcher(T,w,x)},I.prototype.deregisterLinkMatcher=function(T){this._checkProposedApi(),this._core.deregisterLinkMatcher(T)},I.prototype.registerLinkProvider=function(T){return this._checkProposedApi(),this._core.registerLinkProvider(T)},I.prototype.registerCharacterJoiner=function(T){return this._checkProposedApi(),this._core.registerCharacterJoiner(T)},I.prototype.deregisterCharacterJoiner=function(T){this._checkProposedApi(),this._core.deregisterCharacterJoiner(T)},I.prototype.registerMarker=function(T){return void 0===T&&(T=0),this._checkProposedApi(),this._verifyIntegers(T),this._core.addMarker(T)},I.prototype.registerDecoration=function(T){var w,x,N;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(w=T.x)&&void 0!==w?w:0,null!==(x=T.width)&&void 0!==x?x:0,null!==(N=T.height)&&void 0!==N?N:0),this._core.registerDecoration(T)},I.prototype.addMarker=function(T){return this.registerMarker(T)},I.prototype.hasSelection=function(){return this._core.hasSelection()},I.prototype.select=function(T,w,x){this._verifyIntegers(T,w,x),this._core.select(T,w,x)},I.prototype.getSelection=function(){return this._core.getSelection()},I.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},I.prototype.clearSelection=function(){this._core.clearSelection()},I.prototype.selectAll=function(){this._core.selectAll()},I.prototype.selectLines=function(T,w){this._verifyIntegers(T,w),this._core.selectLines(T,w)},I.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},I.prototype.scrollLines=function(T){this._verifyIntegers(T),this._core.scrollLines(T)},I.prototype.scrollPages=function(T){this._verifyIntegers(T),this._core.scrollPages(T)},I.prototype.scrollToTop=function(){this._core.scrollToTop()},I.prototype.scrollToBottom=function(){this._core.scrollToBottom()},I.prototype.scrollToLine=function(T){this._verifyIntegers(T),this._core.scrollToLine(T)},I.prototype.clear=function(){this._core.clear()},I.prototype.write=function(T,w){this._core.write(T,w)},I.prototype.writeUtf8=function(T,w){this._core.write(T,w)},I.prototype.writeln=function(T,w){this._core.write(T),this._core.write("\r\n",w)},I.prototype.paste=function(T){this._core.paste(T)},I.prototype.getOption=function(T){return this._core.optionsService.getOption(T)},I.prototype.setOption=function(T,w){this._checkReadonlyOptions(T),this._core.optionsService.setOption(T,w)},I.prototype.refresh=function(T,w){this._verifyIntegers(T,w),this._core.refresh(T,w)},I.prototype.reset=function(){this._core.reset()},I.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},I.prototype.loadAddon=function(T){return this._addonManager.loadAddon(this,T)},Object.defineProperty(I,"strings",{get:function(){return D},enumerable:!1,configurable:!0}),I.prototype._verifyIntegers=function(){for(var T=[],w=0;w<arguments.length;w++)T[w]=arguments[w];for(var x=0,N=T;x<N.length;x++){var R=N[x];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},I.prototype._verifyPositiveIntegers=function(){for(var T=[],w=0;w<arguments.length;w++)T[w]=arguments[w];for(var x=0,N=T;x<N.length;x++){var R=N[x];if(R&&(R===1/0||isNaN(R)||R%1!=0||R<0))throw new Error("This API only accepts positive integers")}},I}();S.Terminal=k},1546:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BaseRenderLayer=void 0;var L=U(643),P=U(8803),D=U(1420),y=U(3734),K=U(1752),F=U(4774),M=U(9631),O=U(8978),k=function(){function I(T,w,x,N,R,W,$,ce){this._container=T,this._alpha=N,this._colors=R,this._rendererId=W,this._bufferService=$,this._optionsService=ce,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,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-"+w+"-layer"),this._canvas.style.zIndex=x.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return I.prototype.dispose=function(){var T;(0,M.removeElementFromParent)(this._canvas),null===(T=this._charAtlas)||void 0===T||T.dispose()},I.prototype._initCanvas=function(){this._ctx=(0,K.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},I.prototype.onOptionsChanged=function(){},I.prototype.onBlur=function(){},I.prototype.onFocus=function(){},I.prototype.onCursorMove=function(){},I.prototype.onGridChanged=function(T,w){},I.prototype.onSelectionChanged=function(T,w,x){void 0===x&&(x=!1)},I.prototype.setColors=function(T){this._refreshCharAtlas(T)},I.prototype._setTransparency=function(T){if(T!==this._alpha){var w=this._canvas;this._alpha=T,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,w),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},I.prototype._refreshCharAtlas=function(T){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,D.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,T,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},I.prototype.resize=function(T){this._scaledCellWidth=T.scaledCellWidth,this._scaledCellHeight=T.scaledCellHeight,this._scaledCharWidth=T.scaledCharWidth,this._scaledCharHeight=T.scaledCharHeight,this._scaledCharLeft=T.scaledCharLeft,this._scaledCharTop=T.scaledCharTop,this._canvas.width=T.scaledCanvasWidth,this._canvas.height=T.scaledCanvasHeight,this._canvas.style.width=T.canvasWidth+"px",this._canvas.style.height=T.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},I.prototype.clearTextureAtlas=function(){var T;null===(T=this._charAtlas)||void 0===T||T.clear()},I.prototype._fillCells=function(T,w,x,N){this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,x*this._scaledCellWidth,N*this._scaledCellHeight)},I.prototype._fillMiddleLineAtCells=function(T,w,x){void 0===x&&(x=1);var N=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(T*this._scaledCellWidth,(w+1)*this._scaledCellHeight-N-window.devicePixelRatio,x*this._scaledCellWidth,window.devicePixelRatio)},I.prototype._fillBottomLineAtCells=function(T,w,x){void 0===x&&(x=1),this._ctx.fillRect(T*this._scaledCellWidth,(w+1)*this._scaledCellHeight-window.devicePixelRatio-1,x*this._scaledCellWidth,window.devicePixelRatio)},I.prototype._fillLeftLineAtCell=function(T,w,x){this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,window.devicePixelRatio*x,this._scaledCellHeight)},I.prototype._strokeRectAtCell=function(T,w,x,N){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(T*this._scaledCellWidth+window.devicePixelRatio/2,w*this._scaledCellHeight+window.devicePixelRatio/2,x*this._scaledCellWidth-window.devicePixelRatio,N*this._scaledCellHeight-window.devicePixelRatio)},I.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))},I.prototype._clearCells=function(T,w,x,N){this._alpha?this._ctx.clearRect(T*this._scaledCellWidth,w*this._scaledCellHeight,x*this._scaledCellWidth,N*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,x*this._scaledCellWidth,N*this._scaledCellHeight))},I.prototype._fillCharTrueColor=function(T,w,x){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=P.TEXT_BASELINE,this._clipRow(x);var N=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(N=(0,O.tryDrawCustomChar)(this._ctx,T.getChars(),w*this._scaledCellWidth,x*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),N||this._ctx.fillText(T.getChars(),w*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},I.prototype._drawChars=function(T,w,x){var N,R,W,$=this._getContrastColor(T);$||T.isFgRGB()||T.isBgRGB()?this._drawUncachedChars(T,w,x,$):(T.isInverse()?(R=T.isBgDefault()?P.INVERTED_DEFAULT_COLOR:T.getBgColor(),W=T.isFgDefault()?P.INVERTED_DEFAULT_COLOR:T.getFgColor()):(W=T.isBgDefault()?L.DEFAULT_COLOR:T.getBgColor(),R=T.isFgDefault()?L.DEFAULT_COLOR:T.getFgColor()),R+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&R<8?8:0,this._currentGlyphIdentifier.chars=T.getChars()||L.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=T.getCode()||L.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=W,this._currentGlyphIdentifier.fg=R,this._currentGlyphIdentifier.bold=!!T.isBold(),this._currentGlyphIdentifier.dim=!!T.isDim(),this._currentGlyphIdentifier.italic=!!T.isItalic(),(null===(N=this._charAtlas)||void 0===N?void 0:N.draw(this._ctx,this._currentGlyphIdentifier,w*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(T,w,x))},I.prototype._drawUncachedChars=function(T,w,x,N){if(this._ctx.save(),this._ctx.font=this._getFont(!!T.isBold(),!!T.isItalic()),this._ctx.textBaseline=P.TEXT_BASELINE,T.isInverse())if(N)this._ctx.fillStyle=N.css;else if(T.isBgDefault())this._ctx.fillStyle=F.color.opaque(this._colors.background).css;else if(T.isBgRGB())this._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(T.getBgColor()).join(",")+")";else{var R=T.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&R<8&&(R+=8),this._ctx.fillStyle=this._colors.ansi[R].css}else if(N)this._ctx.fillStyle=N.css;else if(T.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(T.isFgRGB())this._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(T.getFgColor()).join(",")+")";else{var W=T.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&W<8&&(W+=8),this._ctx.fillStyle=this._colors.ansi[W].css}this._clipRow(x),T.isDim()&&(this._ctx.globalAlpha=P.DIM_OPACITY);var $=!1;!1!==this._optionsService.rawOptions.customGlyphs&&($=(0,O.tryDrawCustomChar)(this._ctx,T.getChars(),w*this._scaledCellWidth,x*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),$||this._ctx.fillText(T.getChars(),w*this._scaledCellWidth+this._scaledCharLeft,x*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},I.prototype._clipRow=function(T){this._ctx.beginPath(),this._ctx.rect(0,T*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},I.prototype._getFont=function(T,w){return(w?"italic":"")+" "+(T?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},I.prototype._getContrastColor=function(T){if(1!==this._optionsService.rawOptions.minimumContrastRatio){var w=this._colors.contrastCache.getColor(T.bg,T.fg);if(void 0!==w)return w||void 0;var x=T.getFgColor(),N=T.getFgColorMode(),R=T.getBgColor(),W=T.getBgColorMode(),$=!!T.isInverse(),ce=!!T.isInverse();if($){var se=x;x=R,R=se;var te=N;N=W,W=te}var oe=this._resolveBackgroundRgba(W,R,$),ve=this._resolveForegroundRgba(N,x,$,ce),Oe=F.rgba.ensureContrastRatio(oe,ve,this._optionsService.rawOptions.minimumContrastRatio);if(Oe){var st={css:F.channels.toCss(Oe>>24&255,Oe>>16&255,Oe>>8&255),rgba:Oe};return this._colors.contrastCache.setColor(T.bg,T.fg,st),st}this._colors.contrastCache.setColor(T.bg,T.fg,null)}},I.prototype._resolveBackgroundRgba=function(T,w,x){switch(T){case 16777216:case 33554432:return this._colors.ansi[w].rgba;case 50331648:return w<<8;default:return x?this._colors.foreground.rgba:this._colors.background.rgba}},I.prototype._resolveForegroundRgba=function(T,w,x,N){switch(T){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&N&&w<8&&(w+=8),this._colors.ansi[w].rgba;case 50331648:return w<<8;default:return x?this._colors.background.rgba:this._colors.foreground.rgba}},I}();S.BaseRenderLayer=k},2512:function(Y,S,U){var L,P=this&&this.__extends||(L=function(x,N){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var $ in W)Object.prototype.hasOwnProperty.call(W,$)&&(R[$]=W[$])})(x,N)},function(w,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function N(){this.constructor=w}L(w,x),w.prototype=null===x?Object.create(x):(N.prototype=x.prototype,new N)}),D=this&&this.__decorate||function(w,x,N,R){var W,$=arguments.length,ce=$<3?x:null===R?R=Object.getOwnPropertyDescriptor(x,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,x,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(x,N,ce):W(x,N))||ce);return $>3&&ce&&Object.defineProperty(x,N,ce),ce},y=this&&this.__param||function(w,x){return function(N,R){x(N,R,w)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CursorRenderLayer=void 0;var K=U(1546),F=U(511),M=U(2585),O=U(4725),k=600,I=function(w){function x(N,R,W,$,ce,se,te,oe,ve){var Oe=w.call(this,N,"cursor",R,!0,W,$,se,te)||this;return Oe._onRequestRedraw=ce,Oe._coreService=oe,Oe._coreBrowserService=ve,Oe._cell=new F.CellData,Oe._state={x:0,y:0,isFocused:!1,style:"",width:0},Oe._cursorRenderers={bar:Oe._renderBarCursor.bind(Oe),block:Oe._renderBlockCursor.bind(Oe),underline:Oe._renderUnderlineCursor.bind(Oe)},Oe}return P(x,w),x.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),w.prototype.dispose.call(this)},x.prototype.resize=function(N){w.prototype.resize.call(this,N),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},x.prototype.reset=function(){var N;this._clearCursor(),null===(N=this._cursorBlinkStateManager)||void 0===N||N.restartBlinkAnimation(),this.onOptionsChanged()},x.prototype.onBlur=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onFocus=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onOptionsChanged=function(){var N,R=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new T(this._coreBrowserService.isFocused,function(){R._render(!0)})):(null===(N=this._cursorBlinkStateManager)||void 0===N||N.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},x.prototype.onCursorMove=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.restartBlinkAnimation()},x.prototype.onGridChanged=function(N,R){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},x.prototype._render=function(N){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var R=this._bufferService.buffer.ybase+this._bufferService.buffer.y,W=R-this._bufferService.buffer.ydisp;if(W<0||W>=this._bufferService.rows)this._clearCursor();else{var $=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(R).loadCell($,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ce=this._optionsService.rawOptions.cursorStyle;return ce&&"block"!==ce?this._cursorRenderers[ce]($,W,this._cell):this._renderBlurCursor($,W,this._cell),this._ctx.restore(),this._state.x=$,this._state.y=W,this._state.isFocused=!1,this._state.style=ce,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===$&&this._state.y===W&&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"]($,W,this._cell),this._ctx.restore(),this._state.x=$,this._state.y=W,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},x.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})},x.prototype._renderBarCursor=function(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(N,R,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},x.prototype._renderBlockCursor=function(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(N,R,W.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(W,N,R),this._ctx.restore()},x.prototype._renderUnderlineCursor=function(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(N,R),this._ctx.restore()},x.prototype._renderBlurCursor=function(N,R,W){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(N,R,W.getWidth(),1),this._ctx.restore()},D([y(5,M.IBufferService),y(6,M.IOptionsService),y(7,M.ICoreService),y(8,O.ICoreBrowserService)],x)}(K.BaseRenderLayer);S.CursorRenderLayer=I;var T=function(){function w(x,N){this._renderCallback=N,this.isCursorVisible=!0,x&&this._restartInterval()}return Object.defineProperty(w.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),w.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)},w.prototype.restartBlinkAnimation=function(){var x=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0})))},w.prototype._restartInterval=function(x){var N=this;void 0===x&&(x=k),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(N._animationTimeRestarted){var R=k-(Date.now()-N._animationTimeRestarted);if(N._animationTimeRestarted=void 0,R>0)return void N._restartInterval(R)}N.isCursorVisible=!1,N._animationFrame=window.requestAnimationFrame(function(){N._renderCallback(),N._animationFrame=void 0}),N._blinkInterval=window.setInterval(function(){if(N._animationTimeRestarted){var W=k-(Date.now()-N._animationTimeRestarted);return N._animationTimeRestarted=void 0,void N._restartInterval(W)}N.isCursorVisible=!N.isCursorVisible,N._animationFrame=window.requestAnimationFrame(function(){N._renderCallback(),N._animationFrame=void 0})},k)},x)},w.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)},w.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},w}()},8978:function(Y,S,U){var L,P,D,y,K,F,M,O,k,I,T,w,x,N,R,W,$,ce,se,te,oe,ve,Oe,st,xe,_e,ke,Fe,ct,Mt,Nt,Xt,en,qt,Xe,jt,it,vt,nt,Lt,It,on,_n,An,Gt,Zt,Et,Ut,Ht,ln,yt,mt,cn,$t,j,V,Jn,wn,Bt,dt,de,Te,ue,We,lt,Dt,tn,Jt,nn,dn,On,Dn,zn,Zn,jn,mn,lr,Yn,Kt,tt,Ue,Ee,He,bt,Yt,En,rr,pn,ut,Se,Ae,Qe,_t,Wt,vn,Ln,cr,Rr,$r,Mr,Hi,bo,qi,Ja,Na,qo,_a,Ko,yi,Qa,zi,or,Pr,ci,lo,uo,mi,Bo,ei,Pi,Wi,hr,Js,Xa,Ri,Do,_i,Jo;Object.defineProperty(S,"__esModule",{value:!0}),S.tryDrawCustomChar=S.boxDrawingDefinitions=S.blockElementDefinitions=void 0;var ga=U(1752);S.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 bi={"\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]]};S.boxDrawingDefinitions={"\u2500":(L={},L[1]="M0,.5 L1,.5",L),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(D={},D[1]="M.5,0 L.5,1",D),"\u2503":(y={},y[3]="M.5,0 L.5,1",y),"\u250c":(K={},K[1]="M0.5,1 L.5,.5 L1,.5",K),"\u250f":(F={},F[3]="M0.5,1 L.5,.5 L1,.5",F),"\u2510":(M={},M[1]="M0,.5 L.5,.5 L.5,1",M),"\u2513":(O={},O[3]="M0,.5 L.5,.5 L.5,1",O),"\u2514":(k={},k[1]="M.5,0 L.5,.5 L1,.5",k),"\u2517":(I={},I[3]="M.5,0 L.5,.5 L1,.5",I),"\u2518":(T={},T[1]="M.5,0 L.5,.5 L0,.5",T),"\u251b":(w={},w[3]="M.5,0 L.5,.5 L0,.5",w),"\u251c":(x={},x[1]="M.5,0 L.5,1 M.5,.5 L1,.5",x),"\u2523":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L1,.5",N),"\u2524":(R={},R[1]="M.5,0 L.5,1 M.5,.5 L0,.5",R),"\u252b":(W={},W[3]="M.5,0 L.5,1 M.5,.5 L0,.5",W),"\u252c":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,1",$),"\u2533":(ce={},ce[3]="M0,.5 L1,.5 M.5,.5 L.5,1",ce),"\u2534":(se={},se[1]="M0,.5 L1,.5 M.5,.5 L.5,0",se),"\u253b":(te={},te[3]="M0,.5 L1,.5 M.5,.5 L.5,0",te),"\u253c":(oe={},oe[1]="M0,.5 L1,.5 M.5,0 L.5,1",oe),"\u254b":(ve={},ve[3]="M0,.5 L1,.5 M.5,0 L.5,1",ve),"\u2574":(Oe={},Oe[1]="M.5,.5 L0,.5",Oe),"\u2578":(st={},st[3]="M.5,.5 L0,.5",st),"\u2575":(xe={},xe[1]="M.5,.5 L.5,0",xe),"\u2579":(_e={},_e[3]="M.5,.5 L.5,0",_e),"\u2576":(ke={},ke[1]="M.5,.5 L1,.5",ke),"\u257a":(Fe={},Fe[3]="M.5,.5 L1,.5",Fe),"\u2577":(ct={},ct[1]="M.5,.5 L.5,1",ct),"\u257b":(Mt={},Mt[3]="M.5,.5 L.5,1",Mt),"\u2550":(Nt={},Nt[1]=function(yn,Cn){return"M0,"+(.5-Cn)+" L1,"+(.5-Cn)+" M0,"+(.5+Cn)+" L1,"+(.5+Cn)},Nt),"\u2551":(Xt={},Xt[1]=function(yn,Cn){return"M"+(.5-yn)+",0 L"+(.5-yn)+",1 M"+(.5+yn)+",0 L"+(.5+yn)+",1"},Xt),"\u2552":(en={},en[1]=function(yn,Cn){return"M.5,1 L.5,"+(.5-Cn)+" L1,"+(.5-Cn)+" M.5,"+(.5+Cn)+" L1,"+(.5+Cn)},en),"\u2553":(qt={},qt[1]=function(yn,Cn){return"M"+(.5-yn)+",1 L"+(.5-yn)+",.5 L1,.5 M"+(.5+yn)+",.5 L"+(.5+yn)+",1"},qt),"\u2554":(Xe={},Xe[1]=function(yn,Cn){return"M1,"+(.5-Cn)+" L"+(.5-yn)+","+(.5-Cn)+" L"+(.5-yn)+",1 M1,"+(.5+Cn)+" L"+(.5+yn)+","+(.5+Cn)+" L"+(.5+yn)+",1"},Xe),"\u2555":(jt={},jt[1]=function(yn,Cn){return"M0,"+(.5-Cn)+" L.5,"+(.5-Cn)+" L.5,1 M0,"+(.5+Cn)+" L.5,"+(.5+Cn)},jt),"\u2556":(it={},it[1]=function(yn,Cn){return"M"+(.5+yn)+",1 L"+(.5+yn)+",.5 L0,.5 M"+(.5-yn)+",.5 L"+(.5-yn)+",1"},it),"\u2557":(vt={},vt[1]=function(yn,Cn){return"M0,"+(.5+Cn)+" L"+(.5-yn)+","+(.5+Cn)+" L"+(.5-yn)+",1 M0,"+(.5-Cn)+" L"+(.5+yn)+","+(.5-Cn)+" L"+(.5+yn)+",1"},vt),"\u2558":(nt={},nt[1]=function(yn,Cn){return"M.5,0 L.5,"+(.5+Cn)+" L1,"+(.5+Cn)+" M.5,"+(.5-Cn)+" L1,"+(.5-Cn)},nt),"\u2559":(Lt={},Lt[1]=function(yn,Cn){return"M1,.5 L"+(.5-yn)+",.5 L"+(.5-yn)+",0 M"+(.5+yn)+",.5 L"+(.5+yn)+",0"},Lt),"\u255a":(It={},It[1]=function(yn,Cn){return"M1,"+(.5-Cn)+" L"+(.5+yn)+","+(.5-Cn)+" L"+(.5+yn)+",0 M1,"+(.5+Cn)+" L"+(.5-yn)+","+(.5+Cn)+" L"+(.5-yn)+",0"},It),"\u255b":(on={},on[1]=function(yn,Cn){return"M0,"+(.5+Cn)+" L.5,"+(.5+Cn)+" L.5,0 M0,"+(.5-Cn)+" L.5,"+(.5-Cn)},on),"\u255c":(_n={},_n[1]=function(yn,Cn){return"M0,.5 L"+(.5+yn)+",.5 L"+(.5+yn)+",0 M"+(.5-yn)+",.5 L"+(.5-yn)+",0"},_n),"\u255d":(An={},An[1]=function(yn,Cn){return"M0,"+(.5-Cn)+" L"+(.5-yn)+","+(.5-Cn)+" L"+(.5-yn)+",0 M0,"+(.5+Cn)+" L"+(.5+yn)+","+(.5+Cn)+" L"+(.5+yn)+",0"},An),"\u255e":(Gt={},Gt[1]=function(yn,Cn){return"M.5,0 L.5,1 M.5,"+(.5-Cn)+" L1,"+(.5-Cn)+" M.5,"+(.5+Cn)+" L1,"+(.5+Cn)},Gt),"\u255f":(Zt={},Zt[1]=function(yn,Cn){return"M"+(.5-yn)+",0 L"+(.5-yn)+",1 M"+(.5+yn)+",0 L"+(.5+yn)+",1 M"+(.5+yn)+",.5 L1,.5"},Zt),"\u2560":(Et={},Et[1]=function(yn,Cn){return"M"+(.5-yn)+",0 L"+(.5-yn)+",1 M1,"+(.5+Cn)+" L"+(.5+yn)+","+(.5+Cn)+" L"+(.5+yn)+",1 M1,"+(.5-Cn)+" L"+(.5+yn)+","+(.5-Cn)+" L"+(.5+yn)+",0"},Et),"\u2561":(Ut={},Ut[1]=function(yn,Cn){return"M.5,0 L.5,1 M0,"+(.5-Cn)+" L.5,"+(.5-Cn)+" M0,"+(.5+Cn)+" L.5,"+(.5+Cn)},Ut),"\u2562":(Ht={},Ht[1]=function(yn,Cn){return"M0,.5 L"+(.5-yn)+",.5 M"+(.5-yn)+",0 L"+(.5-yn)+",1 M"+(.5+yn)+",0 L"+(.5+yn)+",1"},Ht),"\u2563":(ln={},ln[1]=function(yn,Cn){return"M"+(.5+yn)+",0 L"+(.5+yn)+",1 M0,"+(.5+Cn)+" L"+(.5-yn)+","+(.5+Cn)+" L"+(.5-yn)+",1 M0,"+(.5-Cn)+" L"+(.5-yn)+","+(.5-Cn)+" L"+(.5-yn)+",0"},ln),"\u2564":(yt={},yt[1]=function(yn,Cn){return"M0,"+(.5-Cn)+" L1,"+(.5-Cn)+" M0,"+(.5+Cn)+" L1,"+(.5+Cn)+" M.5,"+(.5+Cn)+" L.5,1"},yt),"\u2565":(mt={},mt[1]=function(yn,Cn){return"M0,.5 L1,.5 M"+(.5-yn)+",.5 L"+(.5-yn)+",1 M"+(.5+yn)+",.5 L"+(.5+yn)+",1"},mt),"\u2566":(cn={},cn[1]=function(yn,Cn){return"M0,"+(.5-Cn)+" L1,"+(.5-Cn)+" M0,"+(.5+Cn)+" L"+(.5-yn)+","+(.5+Cn)+" L"+(.5-yn)+",1 M1,"+(.5+Cn)+" L"+(.5+yn)+","+(.5+Cn)+" L"+(.5+yn)+",1"},cn),"\u2567":($t={},$t[1]=function(yn,Cn){return"M.5,0 L.5,"+(.5-Cn)+" M0,"+(.5-Cn)+" L1,"+(.5-Cn)+" M0,"+(.5+Cn)+" L1,"+(.5+Cn)},$t),"\u2568":(j={},j[1]=function(yn,Cn){return"M0,.5 L1,.5 M"+(.5-yn)+",.5 L"+(.5-yn)+",0 M"+(.5+yn)+",.5 L"+(.5+yn)+",0"},j),"\u2569":(V={},V[1]=function(yn,Cn){return"M0,"+(.5+Cn)+" L1,"+(.5+Cn)+" M0,"+(.5-Cn)+" L"+(.5-yn)+","+(.5-Cn)+" L"+(.5-yn)+",0 M1,"+(.5-Cn)+" L"+(.5+yn)+","+(.5-Cn)+" L"+(.5+yn)+",0"},V),"\u256a":(Jn={},Jn[1]=function(yn,Cn){return"M.5,0 L.5,1 M0,"+(.5-Cn)+" L1,"+(.5-Cn)+" M0,"+(.5+Cn)+" L1,"+(.5+Cn)},Jn),"\u256b":(wn={},wn[1]=function(yn,Cn){return"M0,.5 L1,.5 M"+(.5-yn)+",0 L"+(.5-yn)+",1 M"+(.5+yn)+",0 L"+(.5+yn)+",1"},wn),"\u256c":(Bt={},Bt[1]=function(yn,Cn){return"M0,"+(.5+Cn)+" L"+(.5-yn)+","+(.5+Cn)+" L"+(.5-yn)+",1 M1,"+(.5+Cn)+" L"+(.5+yn)+","+(.5+Cn)+" L"+(.5+yn)+",1 M0,"+(.5-Cn)+" L"+(.5-yn)+","+(.5-Cn)+" L"+(.5-yn)+",0 M1,"+(.5-Cn)+" L"+(.5+yn)+","+(.5-Cn)+" L"+(.5+yn)+",0"},Bt),"\u2571":(dt={},dt[1]="M1,0 L0,1",dt),"\u2572":(de={},de[1]="M0,0 L1,1",de),"\u2573":(Te={},Te[1]="M1,0 L0,1 M0,0 L1,1",Te),"\u257c":(ue={},ue[1]="M.5,.5 L0,.5",ue[3]="M.5,.5 L1,.5",ue),"\u257d":(We={},We[1]="M.5,.5 L.5,0",We[3]="M.5,.5 L.5,1",We),"\u257e":(lt={},lt[1]="M.5,.5 L1,.5",lt[3]="M.5,.5 L0,.5",lt),"\u257f":(Dt={},Dt[1]="M.5,.5 L.5,1",Dt[3]="M.5,.5 L.5,0",Dt),"\u250d":(tn={},tn[1]="M.5,.5 L.5,1",tn[3]="M.5,.5 L1,.5",tn),"\u250e":(Jt={},Jt[1]="M.5,.5 L1,.5",Jt[3]="M.5,.5 L.5,1",Jt),"\u2511":(nn={},nn[1]="M.5,.5 L.5,1",nn[3]="M.5,.5 L0,.5",nn),"\u2512":(dn={},dn[1]="M.5,.5 L0,.5",dn[3]="M.5,.5 L.5,1",dn),"\u2515":(On={},On[1]="M.5,.5 L.5,0",On[3]="M.5,.5 L1,.5",On),"\u2516":(Dn={},Dn[1]="M.5,.5 L1,.5",Dn[3]="M.5,.5 L.5,0",Dn),"\u2519":(zn={},zn[1]="M.5,.5 L.5,0",zn[3]="M.5,.5 L0,.5",zn),"\u251a":(Zn={},Zn[1]="M.5,.5 L0,.5",Zn[3]="M.5,.5 L.5,0",Zn),"\u251d":(jn={},jn[1]="M.5,0 L.5,1",jn[3]="M.5,.5 L1,.5",jn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(lr={},lr[1]="M.5,0 L.5,.5 L1,.5",lr[3]="M.5,.5 L.5,1",lr),"\u2520":(Yn={},Yn[1]="M.5,.5 L1,.5",Yn[3]="M.5,0 L.5,1",Yn),"\u2521":(Kt={},Kt[1]="M.5,.5 L.5,1",Kt[3]="M.5,0 L.5,.5 L1,.5",Kt),"\u2522":(tt={},tt[1]="M.5,.5 L.5,0",tt[3]="M0.5,1 L.5,.5 L1,.5",tt),"\u2525":(Ue={},Ue[1]="M.5,0 L.5,1",Ue[3]="M.5,.5 L0,.5",Ue),"\u2526":(Ee={},Ee[1]="M0,.5 L.5,.5 L.5,1",Ee[3]="M.5,.5 L.5,0",Ee),"\u2527":(He={},He[1]="M.5,0 L.5,.5 L0,.5",He[3]="M.5,.5 L.5,1",He),"\u2528":(bt={},bt[1]="M.5,.5 L0,.5",bt[3]="M.5,0 L.5,1",bt),"\u2529":(Yt={},Yt[1]="M.5,.5 L.5,1",Yt[3]="M.5,0 L.5,.5 L0,.5",Yt),"\u252a":(En={},En[1]="M.5,.5 L.5,0",En[3]="M0,.5 L.5,.5 L.5,1",En),"\u252d":(rr={},rr[1]="M0.5,1 L.5,.5 L1,.5",rr[3]="M.5,.5 L0,.5",rr),"\u252e":(pn={},pn[1]="M0,.5 L.5,.5 L.5,1",pn[3]="M.5,.5 L1,.5",pn),"\u252f":(ut={},ut[1]="M.5,.5 L.5,1",ut[3]="M0,.5 L1,.5",ut),"\u2530":(Se={},Se[1]="M0,.5 L1,.5",Se[3]="M.5,.5 L.5,1",Se),"\u2531":(Ae={},Ae[1]="M.5,.5 L1,.5",Ae[3]="M0,.5 L.5,.5 L.5,1",Ae),"\u2532":(Qe={},Qe[1]="M.5,.5 L0,.5",Qe[3]="M0.5,1 L.5,.5 L1,.5",Qe),"\u2535":(_t={},_t[1]="M.5,0 L.5,.5 L1,.5",_t[3]="M.5,.5 L0,.5",_t),"\u2536":(Wt={},Wt[1]="M.5,0 L.5,.5 L0,.5",Wt[3]="M.5,.5 L1,.5",Wt),"\u2537":(vn={},vn[1]="M.5,.5 L.5,0",vn[3]="M0,.5 L1,.5",vn),"\u2538":(Ln={},Ln[1]="M0,.5 L1,.5",Ln[3]="M.5,.5 L.5,0",Ln),"\u2539":(cr={},cr[1]="M.5,.5 L1,.5",cr[3]="M.5,0 L.5,.5 L0,.5",cr),"\u253a":(Rr={},Rr[1]="M.5,.5 L0,.5",Rr[3]="M.5,0 L.5,.5 L1,.5",Rr),"\u253d":($r={},$r[1]="M.5,0 L.5,1 M.5,.5 L1,.5",$r[3]="M.5,.5 L0,.5",$r),"\u253e":(Mr={},Mr[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Mr[3]="M.5,.5 L1,.5",Mr),"\u253f":(Hi={},Hi[1]="M.5,0 L.5,1",Hi[3]="M0,.5 L1,.5",Hi),"\u2540":(bo={},bo[1]="M0,.5 L1,.5 M.5,.5 L.5,1",bo[3]="M.5,.5 L.5,0",bo),"\u2541":(qi={},qi[1]="M.5,.5 L.5,0 M0,.5 L1,.5",qi[3]="M.5,.5 L.5,1",qi),"\u2542":(Ja={},Ja[1]="M0,.5 L1,.5",Ja[3]="M.5,0 L.5,1",Ja),"\u2543":(Na={},Na[1]="M0.5,1 L.5,.5 L1,.5",Na[3]="M.5,0 L.5,.5 L0,.5",Na),"\u2544":(qo={},qo[1]="M0,.5 L.5,.5 L.5,1",qo[3]="M.5,0 L.5,.5 L1,.5",qo),"\u2545":(_a={},_a[1]="M.5,0 L.5,.5 L1,.5",_a[3]="M0,.5 L.5,.5 L.5,1",_a),"\u2546":(Ko={},Ko[1]="M.5,0 L.5,.5 L0,.5",Ko[3]="M0.5,1 L.5,.5 L1,.5",Ko),"\u2547":(yi={},yi[1]="M.5,.5 L.5,1",yi[3]="M.5,.5 L.5,0 M0,.5 L1,.5",yi),"\u2548":(Qa={},Qa[1]="M.5,.5 L.5,0",Qa[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Qa),"\u2549":(zi={},zi[1]="M.5,.5 L1,.5",zi[3]="M.5,0 L.5,1 M.5,.5 L0,.5",zi),"\u254a":(or={},or[1]="M.5,.5 L0,.5",or[3]="M.5,0 L.5,1 M.5,.5 L1,.5",or),"\u254c":(Pr={},Pr[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Pr),"\u254d":(ci={},ci[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ci),"\u2504":(lo={},lo[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lo),"\u2505":(uo={},uo[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",uo),"\u2508":(mi={},mi[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",mi),"\u2509":(Bo={},Bo[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",Bo),"\u254e":(ei={},ei[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",ei),"\u254f":(Pi={},Pi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Pi),"\u2506":(Wi={},Wi[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Wi),"\u2507":(hr={},hr[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",hr),"\u250a":(Js={},Js[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Js),"\u250b":(Xa={},Xa[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Xa),"\u256d":(Ri={},Ri[1]="C.5,1,.5,.5,1,.5",Ri),"\u256e":(Do={},Do[1]="C.5,1,.5,.5,0,.5",Do),"\u256f":(_i={},_i[1]="C.5,0,.5,.5,0,.5",_i),"\u2570":(Jo={},Jo[1]="C.5,0,.5,.5,1,.5",Jo)},S.tryDrawCustomChar=function(yn,Cn,oi,Li,Ki,ti){var Fo=S.blockElementDefinitions[Cn];if(Fo)return function(Ci,Co,ks,Uo,ya,Ho){for(var Qi=0;Qi<Co.length;Qi++){var mo=Co[Qi],tr=ya/8,Fa=Ho/8;Ci.fillRect(ks+mo.x*tr,Uo+mo.y*Fa,mo.w*tr,mo.h*Fa)}}(yn,Fo,oi,Li,Ki,ti),!0;var va=bi[Cn];if(va)return function(Ci,Co,ks,Uo,ya,Ho){var Qi,mo=Nr.get(Co);mo||(mo=new Map,Nr.set(Co,mo));var tr=Ci.fillStyle;if("string"!=typeof tr)throw new Error('Unexpected fillStyle type "'+tr+'"');var Fa=mo.get(tr);if(!Fa){var Oo=Co[0].length,io=Co.length,Kr=document.createElement("canvas");Kr.width=Oo,Kr.height=io;var la=(0,ga.throwIfFalsy)(Kr.getContext("2d")),Qo=new ImageData(Oo,io),br=void 0,Is=void 0,cs=void 0,ba=void 0;if(tr.startsWith("#"))br=parseInt(tr.substr(1,2),16),Is=parseInt(tr.substr(3,2),16),cs=parseInt(tr.substr(5,2),16),ba=tr.length>7&&parseInt(tr.substr(7,2),16)||1;else{if(!tr.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+tr+'" when drawing pattern glyph');br=(Qi=tr.substring(5,tr.length-1).split(",").map(function(Ps){return parseFloat(Ps)}))[0],Is=Qi[1],cs=Qi[2],ba=Qi[3]}for(var Xi=0;Xi<io;Xi++)for(var $a=0;$a<Oo;$a++)Qo.data[4*(Xi*Oo+$a)]=br,Qo.data[4*(Xi*Oo+$a)+1]=Is,Qo.data[4*(Xi*Oo+$a)+2]=cs,Qo.data[4*(Xi*Oo+$a)+3]=Co[Xi][$a]*(255*ba);la.putImageData(Qo,0,0),Fa=(0,ga.throwIfFalsy)(Ci.createPattern(Kr,null)),mo.set(tr,Fa)}Ci.fillStyle=Fa,Ci.fillRect(ks,Uo,ya,Ho)}(yn,va,oi,Li,Ki,ti),!0;var Ji=S.boxDrawingDefinitions[Cn];return!!Ji&&(function(Ci,Co,ks,Uo,ya,Ho){Ci.strokeStyle=Ci.fillStyle;for(var Qi=0,mo=Object.entries(Co);Qi<mo.length;Qi++){var tr=mo[Qi],Fa=tr[0],Oo=tr[1];Ci.beginPath(),Ci.lineWidth=window.devicePixelRatio*Number.parseInt(Fa);for(var io=0,Kr=("function"==typeof Oo?Oo(.15,.15/Ho*ya):Oo).split(" ");io<Kr.length;io++){var la=Kr[io],Qo=la[0],br=oa[Qo];if(br){var Is=la.substring(1).split(",");Is[0]&&Is[1]&&br(Ci,Ba(Is,ya,Ho,ks,Uo))}else console.error('Could not find drawing instructions for "'+Qo+'"')}Ci.stroke(),Ci.closePath()}}(yn,Ji,oi,Li,Ki,ti),!0)};var Nr=new Map;function ws(yn,Cn,oi){return void 0===oi&&(oi=0),Math.max(Math.min(yn,Cn),oi)}var oa={C:function(Cn,oi){return Cn.bezierCurveTo(oi[0],oi[1],oi[2],oi[3],oi[4],oi[5])},L:function(Cn,oi){return Cn.lineTo(oi[0],oi[1])},M:function(Cn,oi){return Cn.moveTo(oi[0],oi[1])}};function Ba(yn,Cn,oi,Li,Ki){var ti=yn.map(function(Ji){return parseFloat(Ji)||parseInt(Ji)});if(ti.length<2)throw new Error("Too few arguments for instruction");for(var Fo=0;Fo<ti.length;Fo+=2)ti[Fo]*=Cn,0!==ti[Fo]&&(ti[Fo]=ws(Math.round(ti[Fo]+.5)-.5,Cn,0)),ti[Fo]+=Li;for(var va=1;va<ti.length;va+=2)ti[va]*=oi,0!==ti[va]&&(ti[va]=ws(Math.round(ti[va]+.5)-.5,oi,0)),ti[va]+=Ki;return ti}},3700:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.GridCache=void 0;var U=function(){function L(){this.cache=[]}return L.prototype.resize=function(P,D){for(var y=0;y<P;y++){this.cache.length<=y&&this.cache.push([]);for(var K=this.cache[y].length;K<D;K++)this.cache[y].push(void 0);this.cache[y].length=D}this.cache.length=P},L.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var D=0;D<this.cache[P].length;D++)this.cache[P][D]=void 0},L}();S.GridCache=U},5098:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.LinkRenderLayer=void 0;var K=U(1546),F=U(8803),M=U(2040),O=U(2585),k=function(I){function T(w,x,N,R,W,$,ce,se){var te=I.call(this,w,"link",x,!0,N,R,ce,se)||this;return W.onShowLinkUnderline(function(oe){return te._onShowLinkUnderline(oe)}),W.onHideLinkUnderline(function(oe){return te._onHideLinkUnderline(oe)}),$.onShowLinkUnderline(function(oe){return te._onShowLinkUnderline(oe)}),$.onHideLinkUnderline(function(oe){return te._onHideLinkUnderline(oe)}),te}return P(T,I),T.prototype.resize=function(w){I.prototype.resize.call(this,w),this._state=void 0},T.prototype.reset=function(){this._clearCurrentLink()},T.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var w=this._state.y2-this._state.y1-1;w>0&&this._clearCells(0,this._state.y1+1,this._state.cols,w),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},T.prototype._onShowLinkUnderline=function(w){if(w.fg===F.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:w.fg&&(0,M.is256Color)(w.fg)?this._ctx.fillStyle=this._colors.ansi[w.fg].css:this._ctx.fillStyle=this._colors.foreground.css,w.y1===w.y2)this._fillBottomLineAtCells(w.x1,w.y1,w.x2-w.x1);else{this._fillBottomLineAtCells(w.x1,w.y1,w.cols-w.x1);for(var x=w.y1+1;x<w.y2;x++)this._fillBottomLineAtCells(0,x,w.cols);this._fillBottomLineAtCells(0,w.y2,w.x2)}this._state=w},T.prototype._onHideLinkUnderline=function(w){this._clearCurrentLink()},D([y(6,O.IBufferService),y(7,O.IOptionsService)],T)}(K.BaseRenderLayer);S.LinkRenderLayer=k},3525:function(Y,S,U){var L,P=this&&this.__extends||(L=function($,ce){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,te){se.__proto__=te}||function(se,te){for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&(se[oe]=te[oe])})($,ce)},function(W,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function ce(){this.constructor=W}L(W,$),W.prototype=null===$?Object.create($):(ce.prototype=$.prototype,new ce)}),D=this&&this.__decorate||function(W,$,ce,se){var te,oe=arguments.length,ve=oe<3?$:null===se?se=Object.getOwnPropertyDescriptor($,ce):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ve=Reflect.decorate(W,$,ce,se);else for(var Oe=W.length-1;Oe>=0;Oe--)(te=W[Oe])&&(ve=(oe<3?te(ve):oe>3?te($,ce,ve):te($,ce))||ve);return oe>3&&ve&&Object.defineProperty($,ce,ve),ve},y=this&&this.__param||function(W,$){return function(ce,se){$(ce,se,W)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Renderer=void 0;var K=U(9596),F=U(4149),M=U(2512),O=U(5098),k=U(844),I=U(4725),T=U(2585),w=U(1420),x=U(8460),N=1,R=function(W){function $(ce,se,te,oe,ve,Oe,st,xe){var _e=W.call(this)||this;_e._colors=ce,_e._screenElement=se,_e._bufferService=Oe,_e._charSizeService=st,_e._optionsService=xe,_e._id=N++,_e._onRequestRedraw=new x.EventEmitter;var ke=_e._optionsService.rawOptions.allowTransparency;return _e._renderLayers=[ve.createInstance(K.TextRenderLayer,_e._screenElement,0,_e._colors,ke,_e._id),ve.createInstance(F.SelectionRenderLayer,_e._screenElement,1,_e._colors,_e._id),ve.createInstance(O.LinkRenderLayer,_e._screenElement,2,_e._colors,_e._id,te,oe),ve.createInstance(M.CursorRenderLayer,_e._screenElement,3,_e._colors,_e._id,_e._onRequestRedraw)],_e.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},_e._devicePixelRatio=window.devicePixelRatio,_e._updateDimensions(),_e.onOptionsChanged(),_e}return P($,W),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){for(var ce=0,se=this._renderLayers;ce<se.length;ce++)se[ce].dispose();W.prototype.dispose.call(this),(0,w.removeTerminalFromCache)(this._id)},$.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},$.prototype.setColors=function(ce){this._colors=ce;for(var se=0,te=this._renderLayers;se<te.length;se++){var oe=te[se];oe.setColors(this._colors),oe.reset()}},$.prototype.onResize=function(ce,se){this._updateDimensions();for(var te=0,oe=this._renderLayers;te<oe.length;te++)oe[te].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},$.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},$.prototype.onBlur=function(){this._runOperation(function(ce){return ce.onBlur()})},$.prototype.onFocus=function(){this._runOperation(function(ce){return ce.onFocus()})},$.prototype.onSelectionChanged=function(ce,se,te){void 0===te&&(te=!1),this._runOperation(function(oe){return oe.onSelectionChanged(ce,se,te)})},$.prototype.onCursorMove=function(){this._runOperation(function(ce){return ce.onCursorMove()})},$.prototype.onOptionsChanged=function(){this._runOperation(function(ce){return ce.onOptionsChanged()})},$.prototype.clear=function(){this._runOperation(function(ce){return ce.reset()})},$.prototype._runOperation=function(ce){for(var se=0,te=this._renderLayers;se<te.length;se++)ce(te[se])},$.prototype.renderRows=function(ce,se){for(var te=0,oe=this._renderLayers;te<oe.length;te++)oe[te].onGridChanged(ce,se)},$.prototype.clearTextureAtlas=function(){for(var ce=0,se=this._renderLayers;ce<se.length;ce++)se[ce].clearTextureAtlas()},$.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)},D([y(4,T.IInstantiationService),y(5,T.IBufferService),y(6,I.ICharSizeService),y(7,T.IOptionsService)],$)}(k.Disposable);S.Renderer=R},1752:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.throwIfFalsy=void 0,S.throwIfFalsy=function(U){if(!U)throw new Error("value must not be falsy");return U}},4149:function(Y,S,U){var L,P=this&&this.__extends||(L=function(k,I){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,w){T.__proto__=w}||function(T,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(T[x]=w[x])})(k,I)},function(O,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function I(){this.constructor=O}L(O,k),O.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}),D=this&&this.__decorate||function(O,k,I,T){var w,x=arguments.length,N=x<3?k:null===T?T=Object.getOwnPropertyDescriptor(k,I):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,k,I,T);else for(var R=O.length-1;R>=0;R--)(w=O[R])&&(N=(x<3?w(N):x>3?w(k,I,N):w(k,I))||N);return x>3&&N&&Object.defineProperty(k,I,N),N},y=this&&this.__param||function(O,k){return function(I,T){k(I,T,O)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionRenderLayer=void 0;var K=U(1546),F=U(2585),M=function(O){function k(I,T,w,x,N,R){var W=O.call(this,I,"selection",T,!0,w,x,N,R)||this;return W._clearState(),W}return P(k,O),k.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},k.prototype.resize=function(I){O.prototype.resize.call(this,I),this._clearState()},k.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},k.prototype.onSelectionChanged=function(I,T,w){if(this._didStateChange(I,T,w,this._bufferService.buffer.ydisp))if(this._clearAll(),I&&T){var x=I[1]-this._bufferService.buffer.ydisp,N=T[1]-this._bufferService.buffer.ydisp,R=Math.max(x,0),W=Math.min(N,this._bufferService.rows-1);if(R>=this._bufferService.rows||W<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,w){var $=I[0],ce=T[0]-$,se=W-R+1;this._fillCells($,R,ce,se)}else{$=x===R?I[0]:0;var te=R===N?T[0]:this._bufferService.cols;this._fillCells($,R,te-$,1);var oe=Math.max(W-R-1,0);if(this._fillCells(0,R+1,this._bufferService.cols,oe),R!==W){var ve=N===W?T[0]:this._bufferService.cols;this._fillCells(0,W,ve,1)}}this._state.start=[I[0],I[1]],this._state.end=[T[0],T[1]],this._state.columnSelectMode=w,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},k.prototype._didStateChange=function(I,T,w,x){return!this._areCoordinatesEqual(I,this._state.start)||!this._areCoordinatesEqual(T,this._state.end)||w!==this._state.columnSelectMode||x!==this._state.ydisp},k.prototype._areCoordinatesEqual=function(I,T){return!(!I||!T)&&I[0]===T[0]&&I[1]===T[1]},D([y(4,F.IBufferService),y(5,F.IOptionsService)],k)}(K.BaseRenderLayer);S.SelectionRenderLayer=M},9596:function(Y,S,U){var L,P=this&&this.__extends||(L=function(R,W){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ce){$.__proto__=ce}||function($,ce){for(var se in ce)Object.prototype.hasOwnProperty.call(ce,se)&&($[se]=ce[se])})(R,W)},function(N,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function W(){this.constructor=N}L(N,R),N.prototype=null===R?Object.create(R):(W.prototype=R.prototype,new W)}),D=this&&this.__decorate||function(N,R,W,$){var ce,se=arguments.length,te=se<3?R:null===$?$=Object.getOwnPropertyDescriptor(R,W):$;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)te=Reflect.decorate(N,R,W,$);else for(var oe=N.length-1;oe>=0;oe--)(ce=N[oe])&&(te=(se<3?ce(te):se>3?ce(R,W,te):ce(R,W))||te);return se>3&&te&&Object.defineProperty(R,W,te),te},y=this&&this.__param||function(N,R){return function(W,$){R(W,$,N)}};Object.defineProperty(S,"__esModule",{value:!0}),S.TextRenderLayer=void 0;var K=U(3700),F=U(1546),M=U(3734),O=U(643),k=U(511),I=U(2585),T=U(4725),w=U(4269),x=function(N){function R(W,$,ce,se,te,oe,ve,Oe){var st=N.call(this,W,"text",$,se,ce,te,oe,ve)||this;return st._characterJoinerService=Oe,st._characterWidth=0,st._characterFont="",st._characterOverlapCache={},st._workCell=new k.CellData,st._state=new K.GridCache,st}return P(R,N),R.prototype.resize=function(W){N.prototype.resize.call(this,W);var $=this._getFont(!1,!1);this._characterWidth===W.scaledCharWidth&&this._characterFont===$||(this._characterWidth=W.scaledCharWidth,this._characterFont=$,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},R.prototype.reset=function(){this._state.clear(),this._clearAll()},R.prototype._forEachCell=function(W,$,ce){for(var se=W;se<=$;se++)for(var te=se+this._bufferService.buffer.ydisp,oe=this._bufferService.buffer.lines.get(te),ve=this._characterJoinerService.getJoinedCharacters(te),Oe=0;Oe<this._bufferService.cols;Oe++){oe.loadCell(Oe,this._workCell);var st=this._workCell,xe=!1,_e=Oe;if(0!==st.getWidth()){if(ve.length>0&&Oe===ve[0][0]){xe=!0;var ke=ve.shift();st=new w.JoinedCellData(this._workCell,oe.translateToString(!0,ke[0],ke[1]),ke[1]-ke[0]),_e=ke[1]-1}!xe&&this._isOverlapping(st)&&_e<oe.length-1&&oe.getCodePoint(_e+1)===O.NULL_CELL_CODE&&(st.content&=-12582913,st.content|=2<<22),ce(st,Oe,se),Oe=_e}}},R.prototype._drawBackground=function(W,$){var ce=this,se=this._ctx,te=this._bufferService.cols,oe=0,ve=0,Oe=null;se.save(),this._forEachCell(W,$,function(st,xe,_e){var ke=null;st.isInverse()?ke=st.isFgDefault()?ce._colors.foreground.css:st.isFgRGB()?"rgb("+M.AttributeData.toColorRGB(st.getFgColor()).join(",")+")":ce._colors.ansi[st.getFgColor()].css:st.isBgRGB()?ke="rgb("+M.AttributeData.toColorRGB(st.getBgColor()).join(",")+")":st.isBgPalette()&&(ke=ce._colors.ansi[st.getBgColor()].css),null===Oe&&(oe=xe,ve=_e),_e!==ve?(se.fillStyle=Oe||"",ce._fillCells(oe,ve,te-oe,1),oe=xe,ve=_e):Oe!==ke&&(se.fillStyle=Oe||"",ce._fillCells(oe,ve,xe-oe,1),oe=xe,ve=_e),Oe=ke}),null!==Oe&&(se.fillStyle=Oe,this._fillCells(oe,ve,te-oe,1)),se.restore()},R.prototype._drawForeground=function(W,$){var ce=this;this._forEachCell(W,$,function(se,te,oe){if(!se.isInvisible()&&(ce._drawChars(se,te,oe),se.isUnderline()||se.isStrikethrough())){if(ce._ctx.save(),se.isInverse())if(se.isBgDefault())ce._ctx.fillStyle=ce._colors.background.css;else if(se.isBgRGB())ce._ctx.fillStyle="rgb("+M.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var ve=se.getBgColor();ce._optionsService.rawOptions.drawBoldTextInBrightColors&&se.isBold()&&ve<8&&(ve+=8),ce._ctx.fillStyle=ce._colors.ansi[ve].css}else if(se.isFgDefault())ce._ctx.fillStyle=ce._colors.foreground.css;else if(se.isFgRGB())ce._ctx.fillStyle="rgb("+M.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var Oe=se.getFgColor();ce._optionsService.rawOptions.drawBoldTextInBrightColors&&se.isBold()&&Oe<8&&(Oe+=8),ce._ctx.fillStyle=ce._colors.ansi[Oe].css}se.isStrikethrough()&&ce._fillMiddleLineAtCells(te,oe,se.getWidth()),se.isUnderline()&&ce._fillBottomLineAtCells(te,oe,se.getWidth()),ce._ctx.restore()}})},R.prototype.onGridChanged=function(W,$){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,W,this._bufferService.cols,$-W+1),this._drawBackground(W,$),this._drawForeground(W,$))},R.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},R.prototype._isOverlapping=function(W){if(1!==W.getWidth()||W.getCode()<256)return!1;var $=W.getChars();if(this._characterOverlapCache.hasOwnProperty($))return this._characterOverlapCache[$];this._ctx.save(),this._ctx.font=this._characterFont;var ce=Math.floor(this._ctx.measureText($).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[$]=ce,ce},D([y(5,I.IBufferService),y(6,I.IOptionsService),y(7,T.ICharacterJoinerService)],R)}(F.BaseRenderLayer);S.TextRenderLayer=x},9616:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.BaseCharAtlas=void 0;var U=function(){function L(){this._didWarmUp=!1}return L.prototype.dispose=function(){},L.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},L.prototype._doWarmUp=function(){},L.prototype.clear=function(){},L.prototype.beginFrame=function(){},L}();S.BaseCharAtlas=U},1420:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.removeTerminalFromCache=S.acquireCharAtlas=void 0;var L=U(2040),P=U(1906),D=[];S.acquireCharAtlas=function(y,K,F,M,O){for(var k=(0,L.generateConfig)(M,O,y,F),I=0;I<D.length;I++){var T=(w=D[I]).ownedBy.indexOf(K);if(T>=0){if((0,L.configEquals)(w.config,k))return w.atlas;1===w.ownedBy.length?(w.atlas.dispose(),D.splice(I,1)):w.ownedBy.splice(T,1);break}}for(I=0;I<D.length;I++){var w=D[I];if((0,L.configEquals)(w.config,k))return w.ownedBy.push(K),w.atlas}var x={atlas:new P.DynamicCharAtlas(document,k),config:k,ownedBy:[K]};return D.push(x),x.atlas},S.removeTerminalFromCache=function(y){for(var K=0;K<D.length;K++){var F=D[K].ownedBy.indexOf(y);if(-1!==F){1===D[K].ownedBy.length?(D[K].atlas.dispose(),D.splice(K,1)):D[K].ownedBy.splice(F,1);break}}}},2040:function(Y,S,U){var L=this&&this.__spreadArray||function(D,y,K){if(K||2===arguments.length)for(var F,M=0,O=y.length;M<O;M++)!F&&M in y||(F||(F=Array.prototype.slice.call(y,0,M)),F[M]=y[M]);return D.concat(F||Array.prototype.slice.call(y))};Object.defineProperty(S,"__esModule",{value:!0}),S.is256Color=S.configEquals=S.generateConfig=void 0;var P=U(643);S.generateConfig=function(D,y,K,F){var M={foreground:F.foreground,background:F.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:L([],F.ansi,!0)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:D,scaledCharHeight:y,fontFamily:K.fontFamily,fontSize:K.fontSize,fontWeight:K.fontWeight,fontWeightBold:K.fontWeightBold,allowTransparency:K.allowTransparency,colors:M}},S.configEquals=function(D,y){for(var K=0;K<D.colors.ansi.length;K++)if(D.colors.ansi[K].rgba!==y.colors.ansi[K].rgba)return!1;return D.devicePixelRatio===y.devicePixelRatio&&D.fontFamily===y.fontFamily&&D.fontSize===y.fontSize&&D.fontWeight===y.fontWeight&&D.fontWeightBold===y.fontWeightBold&&D.allowTransparency===y.allowTransparency&&D.scaledCharWidth===y.scaledCharWidth&&D.scaledCharHeight===y.scaledCharHeight&&D.colors.foreground===y.colors.foreground&&D.colors.background===y.colors.background},S.is256Color=function(D){return D<P.DEFAULT_COLOR}},8803:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.CHAR_ATLAS_CELL_SPACING=S.TEXT_BASELINE=S.DIM_OPACITY=S.INVERTED_DEFAULT_COLOR=void 0;var L=U(6114);S.INVERTED_DEFAULT_COLOR=257,S.DIM_OPACITY=.5,S.TEXT_BASELINE=L.isFirefox||L.isLegacyEdge?"bottom":"ideographic",S.CHAR_ATLAS_CELL_SPACING=1},1906:function(Y,S,U){var L,P=this&&this.__extends||(L=function(ce,se){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ve in oe)Object.prototype.hasOwnProperty.call(oe,ve)&&(te[ve]=oe[ve])})(ce,se)},function($,ce){if("function"!=typeof ce&&null!==ce)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");function se(){this.constructor=$}L($,ce),$.prototype=null===ce?Object.create(ce):(se.prototype=ce.prototype,new se)});Object.defineProperty(S,"__esModule",{value:!0}),S.NoneCharAtlas=S.DynamicCharAtlas=S.getGlyphCacheKey=void 0;var D=U(8803),y=U(9616),K=U(5680),F=U(7001),M=U(6114),O=U(1752),k=U(4774),I=1024,T=1024,w={css:"rgba(0, 0, 0, 0)",rgba:0};function x($){return $.code<<21|$.bg<<12|$.fg<<3|($.bold?0:4)+($.dim?0:2)+($.italic?0:1)}S.getGlyphCacheKey=x;var N=function($){function ce(se,te){var oe=$.call(this)||this;oe._config=te,oe._drawToCacheCount=0,oe._glyphsWaitingOnBitmap=[],oe._bitmapCommitTimeout=null,oe._bitmap=null,oe._cacheCanvas=se.createElement("canvas"),oe._cacheCanvas.width=I,oe._cacheCanvas.height=T,oe._cacheCtx=(0,O.throwIfFalsy)(oe._cacheCanvas.getContext("2d",{alpha:!0}));var ve=se.createElement("canvas");ve.width=oe._config.scaledCharWidth,ve.height=oe._config.scaledCharHeight,oe._tmpCtx=(0,O.throwIfFalsy)(ve.getContext("2d",{alpha:oe._config.allowTransparency})),oe._width=Math.floor(I/oe._config.scaledCharWidth),oe._height=Math.floor(T/oe._config.scaledCharHeight);var Oe=oe._width*oe._height;return oe._cacheMap=new F.LRUMap(Oe),oe._cacheMap.prealloc(Oe),oe}return P(ce,$),ce.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},ce.prototype.beginFrame=function(){this._drawToCacheCount=0},ce.prototype.clear=function(){if(this._cacheMap.size>0){var se=this._width*this._height;this._cacheMap=new F.LRUMap(se),this._cacheMap.prealloc(se)}this._cacheCtx.clearRect(0,0,I,T),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},ce.prototype.draw=function(se,te,oe,ve){if(32===te.code)return!0;if(!this._canCache(te))return!1;var Oe=x(te),st=this._cacheMap.get(Oe);if(null!=st)return this._drawFromCache(se,st,oe,ve),!0;if(this._drawToCacheCount<100){var xe;xe=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var _e=this._drawToCache(te,xe);return this._cacheMap.set(Oe,_e),this._drawFromCache(se,_e,oe,ve),!0}return!1},ce.prototype._canCache=function(se){return se.code<256},ce.prototype._toCoordinateX=function(se){return se%this._width*this._config.scaledCharWidth},ce.prototype._toCoordinateY=function(se){return Math.floor(se/this._width)*this._config.scaledCharHeight},ce.prototype._drawFromCache=function(se,te,oe,ve){if(!te.isEmpty){var Oe=this._toCoordinateX(te.index),st=this._toCoordinateY(te.index);se.drawImage(te.inBitmap?this._bitmap:this._cacheCanvas,Oe,st,this._config.scaledCharWidth,this._config.scaledCharHeight,oe,ve,this._config.scaledCharWidth,this._config.scaledCharHeight)}},ce.prototype._getColorFromAnsiIndex=function(se){return se<this._config.colors.ansi.length?this._config.colors.ansi[se]:K.DEFAULT_ANSI_COLORS[se]},ce.prototype._getBackgroundColor=function(se){return this._config.allowTransparency?w:se.bg===D.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:se.bg<256?this._getColorFromAnsiIndex(se.bg):this._config.colors.background},ce.prototype._getForegroundColor=function(se){return se.fg===D.INVERTED_DEFAULT_COLOR?k.color.opaque(this._config.colors.background):se.fg<256?this._getColorFromAnsiIndex(se.fg):this._config.colors.foreground},ce.prototype._drawToCache=function(se,te){this._drawToCacheCount++,this._tmpCtx.save();var oe=this._getBackgroundColor(se);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=oe.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ve=se.bold?this._config.fontWeightBold:this._config.fontWeight,Oe=se.italic?"italic":"";this._tmpCtx.font=Oe+" "+ve+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=D.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(se).css,se.dim&&(this._tmpCtx.globalAlpha=D.DIM_OPACITY),this._tmpCtx.fillText(se.chars,0,this._config.scaledCharHeight);var st=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),xe=!1;if(this._config.allowTransparency||(xe=W(st,oe)),xe&&"_"===se.chars&&!this._config.allowTransparency)for(var _e=1;_e<=5&&(this._tmpCtx.fillText(se.chars,0,this._config.scaledCharHeight-_e),xe=W(st=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),oe));_e++);this._tmpCtx.restore();var ke=this._toCoordinateX(te),Fe=this._toCoordinateY(te);this._cacheCtx.putImageData(st,ke,Fe);var ct={index:te,isEmpty:xe,inBitmap:!1};return this._addGlyphToBitmap(ct),ct},ce.prototype._addGlyphToBitmap=function(se){var te=this;!("createImageBitmap"in window)||M.isFirefox||M.isSafari||(this._glyphsWaitingOnBitmap.push(se),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return te._generateBitmap()},100)))},ce.prototype._generateBitmap=function(){var se=this,te=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(oe){se._bitmap=oe;for(var ve=0;ve<te.length;ve++)te[ve].inBitmap=!0}),this._bitmapCommitTimeout=null},ce}(y.BaseCharAtlas);S.DynamicCharAtlas=N;var R=function($){function ce(se,te){return $.call(this)||this}return P(ce,$),ce.prototype.draw=function(se,te,oe,ve){return!1},ce}(y.BaseCharAtlas);function W($,ce){for(var se=!0,te=ce.rgba>>>24,oe=ce.rgba>>>16&255,ve=ce.rgba>>>8&255,Oe=0;Oe<$.data.length;Oe+=4)$.data[Oe]===te&&$.data[Oe+1]===oe&&$.data[Oe+2]===ve?$.data[Oe+3]=0:se=!1;return se}S.NoneCharAtlas=R},7001:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.LRUMap=void 0;var U=function(){function L(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return L.prototype._unlinkNode=function(P){var D=P.prev,y=P.next;P===this._head&&(this._head=y),P===this._tail&&(this._tail=D),null!==D&&(D.next=y),null!==y&&(y.prev=D)},L.prototype._appendNode=function(P){var D=this._tail;null!==D&&(D.next=P),P.prev=D,P.next=null,this._tail=P,null===this._head&&(this._head=P)},L.prototype.prealloc=function(P){for(var D=this._nodePool,y=0;y<P;y++)D.push({prev:null,next:null,key:null,value:null})},L.prototype.get=function(P){var D=this._map[P];return void 0!==D?(this._unlinkNode(D),this._appendNode(D),D.value):null},L.prototype.peekValue=function(P){var D=this._map[P];return void 0!==D?D.value:null},L.prototype.peek=function(){var P=this._head;return null===P?null:P.value},L.prototype.set=function(P,D){var y=this._map[P];if(void 0!==y)y=this._map[P],this._unlinkNode(y),y.value=D;else if(this.size>=this.capacity)y=this._head,this._unlinkNode(y),delete this._map[y.key],y.key=P,y.value=D,this._map[P]=y;else{var K=this._nodePool;K.length>0?((y=K.pop()).key=P,y.value=D):y={prev:null,next:null,key:P,value:D},this._map[P]=y,this.size++}this._appendNode(y)},L}();S.LRUMap=U},1296:function(Y,S,U){var L,P=this&&this.__extends||(L=function(te,oe){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Oe){ve.__proto__=Oe}||function(ve,Oe){for(var st in Oe)Object.prototype.hasOwnProperty.call(Oe,st)&&(ve[st]=Oe[st])})(te,oe)},function(se,te){if("function"!=typeof te&&null!==te)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");function oe(){this.constructor=se}L(se,te),se.prototype=null===te?Object.create(te):(oe.prototype=te.prototype,new oe)}),D=this&&this.__decorate||function(se,te,oe,ve){var Oe,st=arguments.length,xe=st<3?te:null===ve?ve=Object.getOwnPropertyDescriptor(te,oe):ve;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)xe=Reflect.decorate(se,te,oe,ve);else for(var _e=se.length-1;_e>=0;_e--)(Oe=se[_e])&&(xe=(st<3?Oe(xe):st>3?Oe(te,oe,xe):Oe(te,oe))||xe);return st>3&&xe&&Object.defineProperty(te,oe,xe),xe},y=this&&this.__param||function(se,te){return function(oe,ve){te(oe,ve,se)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DomRenderer=void 0;var K=U(3787),F=U(8803),M=U(844),O=U(4725),k=U(2585),I=U(8460),T=U(4774),w=U(9631),x="xterm-dom-renderer-owner-",N="xterm-fg-",R="xterm-bg-",W="xterm-focus",$=1,ce=function(se){function te(oe,ve,Oe,st,xe,_e,ke,Fe,ct,Mt){var Nt=se.call(this)||this;return Nt._colors=oe,Nt._element=ve,Nt._screenElement=Oe,Nt._viewportElement=st,Nt._linkifier=xe,Nt._linkifier2=_e,Nt._charSizeService=Fe,Nt._optionsService=ct,Nt._bufferService=Mt,Nt._terminalClass=$++,Nt._rowElements=[],Nt._rowContainer=document.createElement("div"),Nt._rowContainer.classList.add("xterm-rows"),Nt._rowContainer.style.lineHeight="normal",Nt._rowContainer.setAttribute("aria-hidden","true"),Nt._refreshRowElements(Nt._bufferService.cols,Nt._bufferService.rows),Nt._selectionContainer=document.createElement("div"),Nt._selectionContainer.classList.add("xterm-selection"),Nt._selectionContainer.setAttribute("aria-hidden","true"),Nt.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},Nt._updateDimensions(),Nt._injectCss(),Nt._rowFactory=ke.createInstance(K.DomRendererRowFactory,document,Nt._colors),Nt._element.classList.add(x+Nt._terminalClass),Nt._screenElement.appendChild(Nt._rowContainer),Nt._screenElement.appendChild(Nt._selectionContainer),Nt._linkifier.onShowLinkUnderline(function(Xt){return Nt._onLinkHover(Xt)}),Nt._linkifier.onHideLinkUnderline(function(Xt){return Nt._onLinkLeave(Xt)}),Nt._linkifier2.onShowLinkUnderline(function(Xt){return Nt._onLinkHover(Xt)}),Nt._linkifier2.onHideLinkUnderline(function(Xt){return Nt._onLinkLeave(Xt)}),Nt}return P(te,se),Object.defineProperty(te.prototype,"onRequestRedraw",{get:function(){return(new I.EventEmitter).event},enumerable:!1,configurable:!0}),te.prototype.dispose=function(){this._element.classList.remove(x+this._terminalClass),(0,w.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),se.prototype.dispose.call(this)},te.prototype._updateDimensions=function(){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;for(var oe=0,ve=this._rowElements;oe<ve.length;oe++){var Oe=ve[oe];Oe.style.width=this.dimensions.canvasWidth+"px",Oe.style.height=this.dimensions.actualCellHeight+"px",Oe.style.lineHeight=this.dimensions.actualCellHeight+"px",Oe.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var st=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=st,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},te.prototype.setColors=function(oe){this._colors=oe,this._injectCss()},te.prototype._injectCss=function(){var oe=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ve=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";ve+=this._terminalSelector+" span:not(."+K.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+K.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+K.ITALIC_CLASS+" { font-style: italic;}",ve+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ve+="@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+"; }}",ve+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_BLINK_CLASS+":not(."+K.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_BLINK_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ve+=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.selectionTransparent.css+";}",this._colors.ansi.forEach(function(Oe,st){ve+=oe._terminalSelector+" ."+N+st+" { color: "+Oe.css+"; }"+oe._terminalSelector+" ."+R+st+" { background-color: "+Oe.css+"; }"}),ve+=this._terminalSelector+" ."+N+F.INVERTED_DEFAULT_COLOR+" { color: "+T.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+R+F.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=ve},te.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},te.prototype._refreshRowElements=function(oe,ve){for(var Oe=this._rowElements.length;Oe<=ve;Oe++){var st=document.createElement("div");this._rowContainer.appendChild(st),this._rowElements.push(st)}for(;this._rowElements.length>ve;)this._rowContainer.removeChild(this._rowElements.pop())},te.prototype.onResize=function(oe,ve){this._refreshRowElements(oe,ve),this._updateDimensions()},te.prototype.onCharSizeChanged=function(){this._updateDimensions()},te.prototype.onBlur=function(){this._rowContainer.classList.remove(W)},te.prototype.onFocus=function(){this._rowContainer.classList.add(W)},te.prototype.onSelectionChanged=function(oe,ve,Oe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(oe&&ve){var st=oe[1]-this._bufferService.buffer.ydisp,xe=ve[1]-this._bufferService.buffer.ydisp,_e=Math.max(st,0),ke=Math.min(xe,this._bufferService.rows-1);if(!(_e>=this._bufferService.rows||ke<0)){var Fe=document.createDocumentFragment();if(Oe)Fe.appendChild(this._createSelectionElement(_e,oe[0],ve[0],ke-_e+1));else{var ct=st===_e?oe[0]:0,Mt=_e===xe?ve[0]:this._bufferService.cols;Fe.appendChild(this._createSelectionElement(_e,ct,Mt));var Nt=ke-_e-1;if(Fe.appendChild(this._createSelectionElement(_e+1,0,this._bufferService.cols,Nt)),_e!==ke){var Xt=xe===ke?ve[0]:this._bufferService.cols;Fe.appendChild(this._createSelectionElement(ke,0,Xt))}}this._selectionContainer.appendChild(Fe)}}},te.prototype._createSelectionElement=function(oe,ve,Oe,st){void 0===st&&(st=1);var xe=document.createElement("div");return xe.style.height=st*this.dimensions.actualCellHeight+"px",xe.style.top=oe*this.dimensions.actualCellHeight+"px",xe.style.left=ve*this.dimensions.actualCellWidth+"px",xe.style.width=this.dimensions.actualCellWidth*(Oe-ve)+"px",xe},te.prototype.onCursorMove=function(){},te.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},te.prototype.clear=function(){for(var oe=0,ve=this._rowElements;oe<ve.length;oe++)ve[oe].innerText=""},te.prototype.renderRows=function(oe,ve){for(var Oe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,st=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),xe=this._optionsService.rawOptions.cursorBlink,_e=oe;_e<=ve;_e++){var ke=this._rowElements[_e];ke.innerText="";var Fe=_e+this._bufferService.buffer.ydisp,ct=this._bufferService.buffer.lines.get(Fe),Mt=this._optionsService.rawOptions.cursorStyle;ke.appendChild(this._rowFactory.createRow(ct,Fe,Fe===Oe,Mt,st,xe,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(te.prototype,"_terminalSelector",{get:function(){return"."+x+this._terminalClass},enumerable:!1,configurable:!0}),te.prototype._onLinkHover=function(oe){this._setCellUnderline(oe.x1,oe.x2,oe.y1,oe.y2,oe.cols,!0)},te.prototype._onLinkLeave=function(oe){this._setCellUnderline(oe.x1,oe.x2,oe.y1,oe.y2,oe.cols,!1)},te.prototype._setCellUnderline=function(oe,ve,Oe,st,xe,_e){for(;oe!==ve||Oe!==st;){var ke=this._rowElements[Oe];if(!ke)return;var Fe=ke.children[oe];Fe&&(Fe.style.textDecoration=_e?"underline":"none"),++oe>=xe&&(oe=0,Oe++)}},D([y(6,k.IInstantiationService),y(7,O.ICharSizeService),y(8,k.IOptionsService),y(9,k.IBufferService)],te)}(M.Disposable);S.DomRenderer=ce},3787:function(Y,S,U){var L=this&&this.__decorate||function(w,x,N,R){var W,$=arguments.length,ce=$<3?x:null===R?R=Object.getOwnPropertyDescriptor(x,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,x,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(x,N,ce):W(x,N))||ce);return $>3&&ce&&Object.defineProperty(x,N,ce),ce},P=this&&this.__param||function(w,x){return function(N,R){x(N,R,w)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DomRendererRowFactory=S.CURSOR_STYLE_UNDERLINE_CLASS=S.CURSOR_STYLE_BAR_CLASS=S.CURSOR_STYLE_BLOCK_CLASS=S.CURSOR_BLINK_CLASS=S.CURSOR_CLASS=S.STRIKETHROUGH_CLASS=S.UNDERLINE_CLASS=S.ITALIC_CLASS=S.DIM_CLASS=S.BOLD_CLASS=void 0;var D=U(8803),y=U(643),K=U(511),F=U(2585),M=U(4774),O=U(4725),k=U(4269);S.BOLD_CLASS="xterm-bold",S.DIM_CLASS="xterm-dim",S.ITALIC_CLASS="xterm-italic",S.UNDERLINE_CLASS="xterm-underline",S.STRIKETHROUGH_CLASS="xterm-strikethrough",S.CURSOR_CLASS="xterm-cursor",S.CURSOR_BLINK_CLASS="xterm-cursor-blink",S.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",S.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",S.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var I=function(){function w(x,N,R,W,$){this._document=x,this._colors=N,this._characterJoinerService=R,this._optionsService=W,this._coreService=$,this._workCell=new K.CellData}return w.prototype.setColors=function(x){this._colors=x},w.prototype.createRow=function(x,N,R,W,$,ce,se,te){for(var oe=this._document.createDocumentFragment(),ve=this._characterJoinerService.getJoinedCharacters(N),Oe=0,st=Math.min(x.length,te)-1;st>=0;st--)if(x.loadCell(st,this._workCell).getCode()!==y.NULL_CELL_CODE||R&&st===$){Oe=st+1;break}for(st=0;st<Oe;st++){x.loadCell(st,this._workCell);var xe=this._workCell.getWidth();if(0!==xe){var _e=!1,ke=st,Fe=this._workCell;if(ve.length>0&&st===ve[0][0]){_e=!0;var ct=ve.shift();Fe=new k.JoinedCellData(this._workCell,x.translateToString(!0,ct[0],ct[1]),ct[1]-ct[0]),ke=ct[1]-1,xe=Fe.getWidth()}var Mt=this._document.createElement("span");if(xe>1&&(Mt.style.width=se*xe+"px"),_e&&(Mt.style.display="inline",$>=st&&$<=ke&&($=st)),!this._coreService.isCursorHidden&&R&&st===$)switch(Mt.classList.add(S.CURSOR_CLASS),ce&&Mt.classList.add(S.CURSOR_BLINK_CLASS),W){case"bar":Mt.classList.add(S.CURSOR_STYLE_BAR_CLASS);break;case"underline":Mt.classList.add(S.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Mt.classList.add(S.CURSOR_STYLE_BLOCK_CLASS)}Fe.isBold()&&Mt.classList.add(S.BOLD_CLASS),Fe.isItalic()&&Mt.classList.add(S.ITALIC_CLASS),Fe.isDim()&&Mt.classList.add(S.DIM_CLASS),Fe.isUnderline()&&Mt.classList.add(S.UNDERLINE_CLASS),Fe.isInvisible()?Mt.textContent=y.WHITESPACE_CELL_CHAR:Mt.textContent=Fe.getChars()||y.WHITESPACE_CELL_CHAR,Fe.isStrikethrough()&&Mt.classList.add(S.STRIKETHROUGH_CLASS);var Nt=Fe.getFgColor(),Xt=Fe.getFgColorMode(),en=Fe.getBgColor(),qt=Fe.getBgColorMode(),Xe=!!Fe.isInverse();if(Xe){var jt=Nt;Nt=en,en=jt;var it=Xt;Xt=qt,qt=it}switch(Xt){case 16777216:case 33554432:Fe.isBold()&&Nt<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Nt+=8),this._applyMinimumContrast(Mt,this._colors.background,this._colors.ansi[Nt])||Mt.classList.add("xterm-fg-"+Nt);break;case 50331648:var vt=M.rgba.toColor(Nt>>16&255,Nt>>8&255,255&Nt);this._applyMinimumContrast(Mt,this._colors.background,vt)||this._addStyle(Mt,"color:#"+T(Nt.toString(16),"0",6));break;default:this._applyMinimumContrast(Mt,this._colors.background,this._colors.foreground)||Xe&&Mt.classList.add("xterm-fg-"+D.INVERTED_DEFAULT_COLOR)}switch(qt){case 16777216:case 33554432:Mt.classList.add("xterm-bg-"+en);break;case 50331648:this._addStyle(Mt,"background-color:#"+T(en.toString(16),"0",6));break;default:Xe&&Mt.classList.add("xterm-bg-"+D.INVERTED_DEFAULT_COLOR)}oe.appendChild(Mt),st=ke}}return oe},w.prototype._applyMinimumContrast=function(x,N,R){if(1===this._optionsService.rawOptions.minimumContrastRatio)return!1;var W=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===W&&(W=M.color.ensureContrastRatio(N,R,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=W?W:null)),!!W&&(this._addStyle(x,"color:"+W.css),!0)},w.prototype._addStyle=function(x,N){x.setAttribute("style",""+(x.getAttribute("style")||"")+N+";")},L([P(2,O.ICharacterJoinerService),P(3,F.IOptionsService),P(4,F.ICoreService)],w)}();function T(w,x,N){for(;w.length<N;)w=x+w;return w}S.DomRendererRowFactory=I},456:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionModel=void 0;var U=function(){function L(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return L.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(L.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(L.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var D=this.selectionStart[0]+this.selectionStartLength;return D>this._bufferService.cols?D%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(D/this._bufferService.cols)-1]:[D%this._bufferService.cols,this.selectionStart[1]+Math.floor(D/this._bufferService.cols)]:[D,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),L.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,D=this.selectionEnd;return!(!P||!D)&&(P[1]>D[1]||P[1]===D[1]&&P[0]>D[0])},L.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)},L}();S.SelectionModel=U},428:function(Y,S,U){var L=this&&this.__decorate||function(M,O,k,I){var T,w=arguments.length,x=w<3?O:null===I?I=Object.getOwnPropertyDescriptor(O,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(M,O,k,I);else for(var N=M.length-1;N>=0;N--)(T=M[N])&&(x=(w<3?T(x):w>3?T(O,k,x):T(O,k))||x);return w>3&&x&&Object.defineProperty(O,k,x),x},P=this&&this.__param||function(M,O){return function(k,I){O(k,I,M)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CharSizeService=void 0;var D=U(2585),y=U(8460),K=function(){function M(O,k,I){this._optionsService=I,this.width=0,this.height=0,this._onCharSizeChange=new y.EventEmitter,this._measureStrategy=new F(O,k,this._optionsService)}return Object.defineProperty(M.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),M.prototype.measure=function(){var O=this._measureStrategy.measure();O.width===this.width&&O.height===this.height||(this.width=O.width,this.height=O.height,this._onCharSizeChange.fire())},L([P(2,D.IOptionsService)],M)}();S.CharSizeService=K;var F=function(){function M(O,k,I){this._document=O,this._parentElement=k,this._optionsService=I,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 M.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var O=this._measureElement.getBoundingClientRect();return 0!==O.width&&0!==O.height&&(this._result.width=O.width,this._result.height=Math.ceil(O.height)),this._result},M}()},4269:function(Y,S,U){var L,P=this&&this.__extends||(L=function(w,x){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,x)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function x(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(x.prototype=w.prototype,new x)}),D=this&&this.__decorate||function(T,w,x,N){var R,W=arguments.length,$=W<3?w:null===N?N=Object.getOwnPropertyDescriptor(w,x):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(T,w,x,N);else for(var ce=T.length-1;ce>=0;ce--)(R=T[ce])&&($=(W<3?R($):W>3?R(w,x,$):R(w,x))||$);return W>3&&$&&Object.defineProperty(w,x,$),$},y=this&&this.__param||function(T,w){return function(x,N){w(x,N,T)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CharacterJoinerService=S.JoinedCellData=void 0;var K=U(3734),F=U(643),M=U(511),O=U(2585),k=function(T){function w(x,N,R){var W=T.call(this)||this;return W.content=0,W.combinedData="",W.fg=x.fg,W.bg=x.bg,W.combinedData=N,W._width=R,W}return P(w,T),w.prototype.isCombined=function(){return 2097152},w.prototype.getWidth=function(){return this._width},w.prototype.getChars=function(){return this.combinedData},w.prototype.getCode=function(){return 2097151},w.prototype.setFromCharData=function(x){throw new Error("not implemented")},w.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},w}(K.AttributeData);S.JoinedCellData=k;var I=function(){function T(w){this._bufferService=w,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new M.CellData}return T.prototype.register=function(w){var x={id:this._nextCharacterJoinerId++,handler:w};return this._characterJoiners.push(x),x.id},T.prototype.deregister=function(w){for(var x=0;x<this._characterJoiners.length;x++)if(this._characterJoiners[x].id===w)return this._characterJoiners.splice(x,1),!0;return!1},T.prototype.getJoinedCharacters=function(w){if(0===this._characterJoiners.length)return[];var x=this._bufferService.buffer.lines.get(w);if(!x||0===x.length)return[];for(var N=[],R=x.translateToString(!0),W=0,$=0,ce=0,se=x.getFg(0),te=x.getBg(0),oe=0;oe<x.getTrimmedLength();oe++)if(x.loadCell(oe,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==se||this._workCell.bg!==te){if(oe-W>1)for(var ve=this._getJoinedRanges(R,ce,$,x,W),Oe=0;Oe<ve.length;Oe++)N.push(ve[Oe]);W=oe,ce=$,se=this._workCell.fg,te=this._workCell.bg}$+=this._workCell.getChars().length||F.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-W>1)for(ve=this._getJoinedRanges(R,ce,$,x,W),Oe=0;Oe<ve.length;Oe++)N.push(ve[Oe]);return N},T.prototype._getJoinedRanges=function(w,x,N,R,W){var $=w.substring(x,N),ce=[];try{ce=this._characterJoiners[0].handler($)}catch(ve){console.error(ve)}for(var se=1;se<this._characterJoiners.length;se++)try{for(var te=this._characterJoiners[se].handler($),oe=0;oe<te.length;oe++)T._mergeRanges(ce,te[oe])}catch(ve){console.error(ve)}return this._stringRangesToCellRanges(ce,R,W),ce},T.prototype._stringRangesToCellRanges=function(w,x,N){var R=0,W=!1,$=0,ce=w[R];if(ce){for(var se=N;se<this._bufferService.cols;se++){var te=x.getWidth(se),oe=x.getString(se).length||F.WHITESPACE_CELL_CHAR.length;if(0!==te){if(!W&&ce[0]<=$&&(ce[0]=se,W=!0),ce[1]<=$){if(ce[1]=se,!(ce=w[++R]))break;ce[0]<=$?(ce[0]=se,W=!0):W=!1}$+=oe}}ce&&(ce[1]=this._bufferService.cols)}},T._mergeRanges=function(w,x){for(var N=!1,R=0;R<w.length;R++){var W=w[R];if(N){if(x[1]<=W[0])return w[R-1][1]=x[1],w;if(x[1]<=W[1])return w[R-1][1]=Math.max(x[1],W[1]),w.splice(R,1),w;w.splice(R,1),R--}else{if(x[1]<=W[0])return w.splice(R,0,x),w;if(x[1]<=W[1])return W[0]=Math.min(x[0],W[0]),w;x[0]<W[1]&&(W[0]=Math.min(x[0],W[0]),N=!0)}}return N?w[w.length-1][1]=x[1]:w.push(x),w},T=D([y(0,O.IBufferService)],T)}();S.CharacterJoinerService=I},5114:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.CoreBrowserService=void 0;var U=function(){function L(P){this._textarea=P}return Object.defineProperty(L.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),L}();S.CoreBrowserService=U},7641:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.Decoration=S.DecorationService=void 0;var K=U(8460),F=U(844),M=U(2585),O=function(I){function T(w){var x=I.call(this)||this;return x._instantiationService=w,x._decorations=[],x}return P(T,I),T.prototype.attachToDom=function(w,x){var N=this;this._renderService=x,this._screenElement=w,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),w.appendChild(this._container),this.register(this._renderService.onRenderedBufferChange(function(){return N.refresh()})),this.register(this._renderService.onDimensionsChange(function(){return N.refresh(!0)}))},T.prototype.registerDecoration=function(w){var x=this;if(!w.marker.isDisposed&&this._container){var N=this._instantiationService.createInstance(k,w,this._container);return this._decorations.push(N),N.onDispose(function(){return x._decorations.splice(x._decorations.indexOf(N),1)}),this._queueRefresh(),N}},T.prototype._queueRefresh=function(){var w=this;void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){w.refresh(),w._animationFrame=void 0}))},T.prototype.refresh=function(w){if(this._renderService)for(var x=0,N=this._decorations;x<N.length;x++)N[x].render(this._renderService,w)},T.prototype.dispose=function(){for(var w=0,x=this._decorations;w<x.length;w++)x[w].dispose();this._screenElement&&this._container&&this._screenElement.contains(this._container)&&this._screenElement.removeChild(this._container)},D([y(0,M.IInstantiationService)],T)}(F.Disposable);S.DecorationService=O;var k=function(I){function T(w,x,N){var R,W=I.call(this)||this;return W._container=x,W._bufferService=N,W.isDisposed=!1,W._onDispose=new K.EventEmitter,W._onRender=new K.EventEmitter,W.x=null!==(R=w.x)&&void 0!==R?R:0,W._marker=w.marker,W._marker.onDispose(function(){return W.dispose()}),W.anchor=w.anchor||"left",W.width=w.width||1,W.height=w.height||1,W}return P(T,I),Object.defineProperty(T.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),T.prototype.render=function(w,x){this._element&&!x||this._createElement(w,x),this._container&&this._element&&!this._container.contains(this._element)&&this._container.append(this._element),this._refreshStyle(w),this._element&&this._onRender.fire(this._element)},T.prototype._createElement=function(w,x){x&&this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this._element=document.createElement("div"),this._element.classList.add("xterm-decoration"),this._element.style.width=this.width*w.dimensions.actualCellWidth+"px",this._element.style.height=this.height*w.dimensions.actualCellHeight+"px",this._element.style.top=(this.marker.line-this._bufferService.buffers.active.ydisp)*w.dimensions.actualCellHeight+"px",this._element.style.lineHeight=w.dimensions.actualCellHeight+"px",this.x&&this.x>this._bufferService.cols&&(this._element.style.display="none"),"right"===this.anchor?this._element.style.right=this.x?this.x*w.dimensions.actualCellWidth+"px":"":this._element.style.left=this.x?this.x*w.dimensions.actualCellWidth+"px":""},T.prototype._refreshStyle=function(w){if(this._element){var x=this.marker.line-this._bufferService.buffers.active.ydisp;x<0||x>this._bufferService.rows?this._element.style.display="none":(this._element.style.top=x*w.dimensions.actualCellHeight+"px",this._element.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block")}},T.prototype.dispose=function(){this.isDisposed||(this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this.isDisposed=!0,this._onDispose.fire())},D([y(2,M.IBufferService)],T)}(F.Disposable);S.Decoration=k},8934:function(Y,S,U){var L=this&&this.__decorate||function(F,M,O,k){var I,T=arguments.length,w=T<3?M:null===k?k=Object.getOwnPropertyDescriptor(M,O):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(F,M,O,k);else for(var x=F.length-1;x>=0;x--)(I=F[x])&&(w=(T<3?I(w):T>3?I(M,O,w):I(M,O))||w);return T>3&&w&&Object.defineProperty(M,O,w),w},P=this&&this.__param||function(F,M){return function(O,k){M(O,k,F)}};Object.defineProperty(S,"__esModule",{value:!0}),S.MouseService=void 0;var D=U(4725),y=U(9806),K=function(){function F(M,O){this._renderService=M,this._charSizeService=O}return F.prototype.getCoords=function(M,O,k,I,T){return(0,y.getCoords)(M,O,k,I,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,T)},F.prototype.getRawByteCoords=function(M,O,k,I){var T=this.getCoords(M,O,k,I);return(0,y.getRawByteCoords)(T)},L([P(0,D.IRenderService),P(1,D.ICharSizeService)],F)}();S.MouseService=K},3230:function(Y,S,U){var L,P=this&&this.__extends||(L=function(N,R){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,$){W.__proto__=$}||function(W,$){for(var ce in $)Object.prototype.hasOwnProperty.call($,ce)&&(W[ce]=$[ce])})(N,R)},function(x,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function R(){this.constructor=x}L(x,N),x.prototype=null===N?Object.create(N):(R.prototype=N.prototype,new R)}),D=this&&this.__decorate||function(x,N,R,W){var $,ce=arguments.length,se=ce<3?N:null===W?W=Object.getOwnPropertyDescriptor(N,R):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)se=Reflect.decorate(x,N,R,W);else for(var te=x.length-1;te>=0;te--)($=x[te])&&(se=(ce<3?$(se):ce>3?$(N,R,se):$(N,R))||se);return ce>3&&se&&Object.defineProperty(N,R,se),se},y=this&&this.__param||function(x,N){return function(R,W){N(R,W,x)}};Object.defineProperty(S,"__esModule",{value:!0}),S.RenderService=void 0;var K=U(6193),F=U(8460),M=U(844),O=U(5596),k=U(3656),I=U(2585),T=U(4725),w=function(x){function N(R,W,$,ce,se,te){var oe=x.call(this)||this;if(oe._renderer=R,oe._rowCount=W,oe._charSizeService=se,oe._isPaused=!1,oe._needsFullRefresh=!1,oe._isNextRenderRedrawOnly=!0,oe._needsSelectionRefresh=!1,oe._canvasWidth=0,oe._canvasHeight=0,oe._selectionState={start:void 0,end:void 0,columnSelectMode:!1},oe._onDimensionsChange=new F.EventEmitter,oe._onRender=new F.EventEmitter,oe._onRefreshRequest=new F.EventEmitter,oe.register({dispose:function(){return oe._renderer.dispose()}}),oe._renderDebouncer=new K.RenderDebouncer(function(Oe,st){return oe._renderRows(Oe,st)}),oe.register(oe._renderDebouncer),oe._screenDprMonitor=new O.ScreenDprMonitor,oe._screenDprMonitor.setListener(function(){return oe.onDevicePixelRatioChange()}),oe.register(oe._screenDprMonitor),oe.register(te.onResize(function(){return oe._fullRefresh()})),oe.register(te.buffers.onBufferActivate(function(){var Oe;return null===(Oe=oe._renderer)||void 0===Oe?void 0:Oe.clear()})),oe.register(ce.onOptionChange(function(){return oe._renderer.onOptionsChanged()})),oe.register(oe._charSizeService.onCharSizeChange(function(){return oe.onCharSizeChanged()})),oe._renderer.onRequestRedraw(function(Oe){return oe.refreshRows(Oe.start,Oe.end,!0)}),oe.register((0,k.addDisposableDomListener)(window,"resize",function(){return oe.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ve=new IntersectionObserver(function(Oe){return oe._onIntersectionChange(Oe[Oe.length-1])},{threshold:0});ve.observe($),oe.register({dispose:function(){return ve.disconnect()}})}return oe}return P(N,x),Object.defineProperty(N.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),N.prototype._onIntersectionChange=function(R){this._isPaused=void 0===R.isIntersecting?0===R.intersectionRatio:!R.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},N.prototype.refreshRows=function(R,W,$){void 0===$&&($=!1),this._isPaused?this._needsFullRefresh=!0:($||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(R,W,this._rowCount))},N.prototype._renderRows=function(R,W){this._renderer.renderRows(R,W),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:R,end:W}),this._isNextRenderRedrawOnly=!0},N.prototype.resize=function(R,W){this._rowCount=W,this._fireOnCanvasResize()},N.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},N.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},N.prototype.dispose=function(){x.prototype.dispose.call(this)},N.prototype.setRenderer=function(R){var W=this;this._renderer.dispose(),this._renderer=R,this._renderer.onRequestRedraw(function($){return W.refreshRows($.start,$.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},N.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},N.prototype.clearTextureAtlas=function(){var R,W;null===(W=null===(R=this._renderer)||void 0===R?void 0:R.clearTextureAtlas)||void 0===W||W.call(R),this._fullRefresh()},N.prototype.setColors=function(R){this._renderer.setColors(R),this._fullRefresh()},N.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},N.prototype.onResize=function(R,W){this._renderer.onResize(R,W),this._fullRefresh()},N.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},N.prototype.onBlur=function(){this._renderer.onBlur()},N.prototype.onFocus=function(){this._renderer.onFocus()},N.prototype.onSelectionChanged=function(R,W,$){this._selectionState.start=R,this._selectionState.end=W,this._selectionState.columnSelectMode=$,this._renderer.onSelectionChanged(R,W,$)},N.prototype.onCursorMove=function(){this._renderer.onCursorMove()},N.prototype.clear=function(){this._renderer.clear()},D([y(3,I.IOptionsService),y(4,T.ICharSizeService),y(5,I.IBufferService)],N)}(M.Disposable);S.RenderService=w},9312:function(Y,S,U){var L,P=this&&this.__extends||(L=function(se,te){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ve){oe.__proto__=ve}||function(oe,ve){for(var Oe in ve)Object.prototype.hasOwnProperty.call(ve,Oe)&&(oe[Oe]=ve[Oe])})(se,te)},function(ce,se){if("function"!=typeof se&&null!==se)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function te(){this.constructor=ce}L(ce,se),ce.prototype=null===se?Object.create(se):(te.prototype=se.prototype,new te)}),D=this&&this.__decorate||function(ce,se,te,oe){var ve,Oe=arguments.length,st=Oe<3?se:null===oe?oe=Object.getOwnPropertyDescriptor(se,te):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)st=Reflect.decorate(ce,se,te,oe);else for(var xe=ce.length-1;xe>=0;xe--)(ve=ce[xe])&&(st=(Oe<3?ve(st):Oe>3?ve(se,te,st):ve(se,te))||st);return Oe>3&&st&&Object.defineProperty(se,te,st),st},y=this&&this.__param||function(ce,se){return function(te,oe){se(te,oe,ce)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SelectionService=void 0;var K=U(6114),F=U(456),M=U(511),O=U(8460),k=U(4725),I=U(2585),T=U(9806),w=U(9504),x=U(844),N=U(4841),R=String.fromCharCode(160),W=new RegExp(R,"g"),$=function(ce){function se(te,oe,ve,Oe,st,xe,_e,ke){var Fe=ce.call(this)||this;return Fe._element=te,Fe._screenElement=oe,Fe._linkifier=ve,Fe._bufferService=Oe,Fe._coreService=st,Fe._mouseService=xe,Fe._optionsService=_e,Fe._renderService=ke,Fe._dragScrollAmount=0,Fe._enabled=!0,Fe._workCell=new M.CellData,Fe._mouseDownTimeStamp=0,Fe._oldHasSelection=!1,Fe._oldSelectionStart=void 0,Fe._oldSelectionEnd=void 0,Fe._onLinuxMouseSelection=Fe.register(new O.EventEmitter),Fe._onRedrawRequest=Fe.register(new O.EventEmitter),Fe._onSelectionChange=Fe.register(new O.EventEmitter),Fe._onRequestScrollLines=Fe.register(new O.EventEmitter),Fe._mouseMoveListener=function(ct){return Fe._onMouseMove(ct)},Fe._mouseUpListener=function(ct){return Fe._onMouseUp(ct)},Fe._coreService.onUserInput(function(){Fe.hasSelection&&Fe.clearSelection()}),Fe._trimListener=Fe._bufferService.buffer.lines.onTrim(function(ct){return Fe._onTrim(ct)}),Fe.register(Fe._bufferService.buffers.onBufferActivate(function(ct){return Fe._onBufferActivate(ct)})),Fe.enable(),Fe._model=new F.SelectionModel(Fe._bufferService),Fe._activeSelectionMode=0,Fe}return P(se,ce),Object.defineProperty(se.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),se.prototype.dispose=function(){this._removeMouseDownListeners()},se.prototype.reset=function(){this.clearSelection()},se.prototype.disable=function(){this.clearSelection(),this._enabled=!1},se.prototype.enable=function(){this._enabled=!0},Object.defineProperty(se.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"hasSelection",{get:function(){var oe=this._model.finalSelectionStart,ve=this._model.finalSelectionEnd;return!(!oe||!ve||oe[0]===ve[0]&&oe[1]===ve[1])},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"selectionText",{get:function(){var oe=this._model.finalSelectionStart,ve=this._model.finalSelectionEnd;if(!oe||!ve)return"";var Oe=this._bufferService.buffer,st=[];if(3===this._activeSelectionMode){if(oe[0]===ve[0])return"";for(var xe=oe[1];xe<=ve[1];xe++){var _e=Oe.translateBufferLineToString(xe,!0,oe[0],ve[0]);st.push(_e)}}else{var ke=oe[1]===ve[1]?ve[0]:void 0;for(st.push(Oe.translateBufferLineToString(oe[1],!0,oe[0],ke)),xe=oe[1]+1;xe<=ve[1]-1;xe++){var Fe=Oe.lines.get(xe);_e=Oe.translateBufferLineToString(xe,!0),(null==Fe?void 0:Fe.isWrapped)?st[st.length-1]+=_e:st.push(_e)}oe[1]!==ve[1]&&(Fe=Oe.lines.get(ve[1]),_e=Oe.translateBufferLineToString(ve[1],!0,0,ve[0]),Fe&&Fe.isWrapped?st[st.length-1]+=_e:st.push(_e))}return st.map(function(ct){return ct.replace(W," ")}).join(K.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),se.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},se.prototype.refresh=function(te){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),K.isLinux&&te&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},se.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},se.prototype._isClickInSelection=function(te){var oe=this._getMouseBufferCoords(te),ve=this._model.finalSelectionStart,Oe=this._model.finalSelectionEnd;return!!(ve&&Oe&&oe)&&this._areCoordsInSelection(oe,ve,Oe)},se.prototype._areCoordsInSelection=function(te,oe,ve){return te[1]>oe[1]&&te[1]<ve[1]||oe[1]===ve[1]&&te[1]===oe[1]&&te[0]>=oe[0]&&te[0]<ve[0]||oe[1]<ve[1]&&te[1]===ve[1]&&te[0]<ve[0]||oe[1]<ve[1]&&te[1]===oe[1]&&te[0]>=oe[0]},se.prototype._selectWordAtCursor=function(te,oe){var ve,Oe,st=null===(Oe=null===(ve=this._linkifier.currentLink)||void 0===ve?void 0:ve.link)||void 0===Oe?void 0:Oe.range;if(st)return this._model.selectionStart=[st.start.x-1,st.start.y-1],this._model.selectionStartLength=(0,N.getRangeLength)(st,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var xe=this._getMouseBufferCoords(te);return!!xe&&(this._selectWordAt(xe,oe),this._model.selectionEnd=void 0,!0)},se.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},se.prototype.selectLines=function(te,oe){this._model.clearSelection(),te=Math.max(te,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,te],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},se.prototype._onTrim=function(te){this._model.onTrim(te)&&this.refresh()},se.prototype._getMouseBufferCoords=function(te){var oe=this._mouseService.getCoords(te,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},se.prototype._getMouseEventScrollAmount=function(te){var oe=(0,T.getCoordsRelativeToElement)(te,this._screenElement)[1],ve=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ve?0:(oe>ve&&(oe-=ve),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},se.prototype.shouldForceSelection=function(te){return K.isMac?te.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:te.shiftKey},se.prototype.onMouseDown=function(te){if(this._mouseDownTimeStamp=te.timeStamp,(2!==te.button||!this.hasSelection)&&0===te.button){if(!this._enabled){if(!this.shouldForceSelection(te))return;te.stopPropagation()}te.preventDefault(),this._dragScrollAmount=0,this._enabled&&te.shiftKey?this._onIncrementalClick(te):1===te.detail?this._onSingleClick(te):2===te.detail?this._onDoubleClick(te):3===te.detail&&this._onTripleClick(te),this._addMouseDownListeners(),this.refresh(!0)}},se.prototype._addMouseDownListeners=function(){var te=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return te._dragScroll()},50)},se.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},se.prototype._onIncrementalClick=function(te){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(te))},se.prototype._onSingleClick=function(te){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(te)?3:0,this._model.selectionStart=this._getMouseBufferCoords(te),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&0===oe.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},se.prototype._onDoubleClick=function(te){this._selectWordAtCursor(te,!0)&&(this._activeSelectionMode=1)},se.prototype._onTripleClick=function(te){var oe=this._getMouseBufferCoords(te);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},se.prototype.shouldColumnSelect=function(te){return te.altKey&&!(K.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},se.prototype._onMouseMove=function(te){if(te.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(te),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(te),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ve=this._bufferService.buffer;if(this._model.selectionEnd[1]<ve.lines.length){var Oe=ve.lines.get(this._model.selectionEnd[1]);Oe&&0===Oe.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},se.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var te=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(te.ydisp+this._bufferService.rows,te.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=te.ydisp),this.refresh()}},se.prototype._onMouseUp=function(te){var oe=te.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&te.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ve=this._mouseService.getCoords(te,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ve&&void 0!==ve[0]&&void 0!==ve[1]){var Oe=(0,w.moveToCellSequence)(ve[0]-1,ve[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(Oe,!0)}}}else this._fireEventIfSelectionChanged()},se.prototype._fireEventIfSelectionChanged=function(){var te=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd,ve=!(!te||!oe||te[0]===oe[0]&&te[1]===oe[1]);ve?te&&oe&&(this._oldSelectionStart&&this._oldSelectionEnd&&te[0]===this._oldSelectionStart[0]&&te[1]===this._oldSelectionStart[1]&&oe[0]===this._oldSelectionEnd[0]&&oe[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(te,oe,ve)):this._oldHasSelection&&this._fireOnSelectionChange(te,oe,ve)},se.prototype._fireOnSelectionChange=function(te,oe,ve){this._oldSelectionStart=te,this._oldSelectionEnd=oe,this._oldHasSelection=ve,this._onSelectionChange.fire()},se.prototype._onBufferActivate=function(te){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=te.activeBuffer.lines.onTrim(function(ve){return oe._onTrim(ve)})},se.prototype._convertViewportColToCharacterIndex=function(te,oe){for(var ve=oe[0],Oe=0;oe[0]>=Oe;Oe++){var st=te.loadCell(Oe,this._workCell).getChars().length;0===this._workCell.getWidth()?ve--:st>1&&oe[0]!==Oe&&(ve+=st-1)}return ve},se.prototype.setSelection=function(te,oe,ve){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[te,oe],this._model.selectionStartLength=ve,this.refresh()},se.prototype.rightClickSelect=function(te){this._isClickInSelection(te)||(this._selectWordAtCursor(te,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},se.prototype._getWordAt=function(te,oe,ve,Oe){if(void 0===ve&&(ve=!0),void 0===Oe&&(Oe=!0),!(te[0]>=this._bufferService.cols)){var st=this._bufferService.buffer,xe=st.lines.get(te[1]);if(xe){var _e=st.translateBufferLineToString(te[1],!1),ke=this._convertViewportColToCharacterIndex(xe,te),Fe=ke,ct=te[0]-ke,Mt=0,Nt=0,Xt=0,en=0;if(" "===_e.charAt(ke)){for(;ke>0&&" "===_e.charAt(ke-1);)ke--;for(;Fe<_e.length&&" "===_e.charAt(Fe+1);)Fe++}else{var qt=te[0],Xe=te[0];0===xe.getWidth(qt)&&(Mt++,qt--),2===xe.getWidth(Xe)&&(Nt++,Xe++);var jt=xe.getString(Xe).length;for(jt>1&&(en+=jt-1,Fe+=jt-1);qt>0&&ke>0&&!this._isCharWordSeparator(xe.loadCell(qt-1,this._workCell));){xe.loadCell(qt-1,this._workCell);var it=this._workCell.getChars().length;0===this._workCell.getWidth()?(Mt++,qt--):it>1&&(Xt+=it-1,ke-=it-1),ke--,qt--}for(;Xe<xe.length&&Fe+1<_e.length&&!this._isCharWordSeparator(xe.loadCell(Xe+1,this._workCell));){xe.loadCell(Xe+1,this._workCell);var vt=this._workCell.getChars().length;2===this._workCell.getWidth()?(Nt++,Xe++):vt>1&&(en+=vt-1,Fe+=vt-1),Fe++,Xe++}}Fe++;var nt=ke+ct-Mt+Xt,Lt=Math.min(this._bufferService.cols,Fe-ke+Mt+Nt-Xt-en);if(oe||""!==_e.slice(ke,Fe).trim()){if(ve&&0===nt&&32!==xe.getCodePoint(0)){var It=st.lines.get(te[1]-1);if(It&&xe.isWrapped&&32!==It.getCodePoint(this._bufferService.cols-1)){var on=this._getWordAt([this._bufferService.cols-1,te[1]-1],!1,!0,!1);if(on){var _n=this._bufferService.cols-on.start;nt-=_n,Lt+=_n}}}if(Oe&&nt+Lt===this._bufferService.cols&&32!==xe.getCodePoint(this._bufferService.cols-1)){var An=st.lines.get(te[1]+1);if((null==An?void 0:An.isWrapped)&&32!==An.getCodePoint(0)){var Gt=this._getWordAt([0,te[1]+1],!1,!1,!0);Gt&&(Lt+=Gt.length)}}return{start:nt,length:Lt}}}}},se.prototype._selectWordAt=function(te,oe){var ve=this._getWordAt(te,oe);if(ve){for(;ve.start<0;)ve.start+=this._bufferService.cols,te[1]--;this._model.selectionStart=[ve.start,te[1]],this._model.selectionStartLength=ve.length}},se.prototype._selectToWordAt=function(te){var oe=this._getWordAt(te,!0);if(oe){for(var ve=te[1];oe.start<0;)oe.start+=this._bufferService.cols,ve--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ve++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ve]}},se.prototype._isCharWordSeparator=function(te){return 0!==te.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(te.getChars())>=0},se.prototype._selectLineAt=function(te){var oe=this._bufferService.buffer.getWrappedRangeForLine(te);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},D([y(3,I.IBufferService),y(4,I.ICoreService),y(5,k.IMouseService),y(6,I.IOptionsService),y(7,k.IRenderService)],se)}(x.Disposable);S.SelectionService=$},4725:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.IDecorationService=S.ICharacterJoinerService=S.ISoundService=S.ISelectionService=S.IRenderService=S.IMouseService=S.ICoreBrowserService=S.ICharSizeService=void 0;var L=U(8343);S.ICharSizeService=(0,L.createDecorator)("CharSizeService"),S.ICoreBrowserService=(0,L.createDecorator)("CoreBrowserService"),S.IMouseService=(0,L.createDecorator)("MouseService"),S.IRenderService=(0,L.createDecorator)("RenderService"),S.ISelectionService=(0,L.createDecorator)("SelectionService"),S.ISoundService=(0,L.createDecorator)("SoundService"),S.ICharacterJoinerService=(0,L.createDecorator)("CharacterJoinerService"),S.IDecorationService=(0,L.createDecorator)("DecorationService")},357:function(Y,S,U){var L=this&&this.__decorate||function(K,F,M,O){var k,I=arguments.length,T=I<3?F:null===O?O=Object.getOwnPropertyDescriptor(F,M):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(K,F,M,O);else for(var w=K.length-1;w>=0;w--)(k=K[w])&&(T=(I<3?k(T):I>3?k(F,M,T):k(F,M))||T);return I>3&&T&&Object.defineProperty(F,M,T),T},P=this&&this.__param||function(K,F){return function(M,O){F(M,O,K)}};Object.defineProperty(S,"__esModule",{value:!0}),S.SoundService=void 0;var D=U(2585),y=function(){function K(F){this._optionsService=F}return Object.defineProperty(K,"audioContext",{get:function(){if(!K._audioContext){var M=window.AudioContext||window.webkitAudioContext;if(!M)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;K._audioContext=new M}return K._audioContext},enumerable:!1,configurable:!0}),K.prototype.playBellSound=function(){var F=K.audioContext;if(F){var M=F.createBufferSource();F.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(O){M.buffer=O,M.connect(F.destination),M.start(0)})}},K.prototype._base64ToArrayBuffer=function(F){for(var M=window.atob(F),O=M.length,k=new Uint8Array(O),I=0;I<O;I++)k[I]=M.charCodeAt(I);return k.buffer},K.prototype._removeMimeType=function(F){return F.split(",")[1]},K=L([P(0,D.IOptionsService)],K)}();S.SoundService=y},6349:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.CircularList=void 0;var L=U(8460),P=function(){function D(y){this._maxLength=y,this.onDeleteEmitter=new L.EventEmitter,this.onInsertEmitter=new L.EventEmitter,this.onTrimEmitter=new L.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(D.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"maxLength",{get:function(){return this._maxLength},set:function(K){if(this._maxLength!==K){for(var F=new Array(K),M=0;M<Math.min(K,this.length);M++)F[M]=this._array[this._getCyclicIndex(M)];this._array=F,this._maxLength=K,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._length},set:function(K){if(K>this._length)for(var F=this._length;F<K;F++)this._array[F]=void 0;this._length=K},enumerable:!1,configurable:!0}),D.prototype.get=function(y){return this._array[this._getCyclicIndex(y)]},D.prototype.set=function(y,K){this._array[this._getCyclicIndex(y)]=K},D.prototype.push=function(y){this._array[this._getCyclicIndex(this._length)]=y,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},D.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(D.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),D.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},D.prototype.splice=function(y,K){for(var F=[],M=2;M<arguments.length;M++)F[M-2]=arguments[M];if(K){for(var O=y;O<this._length-K;O++)this._array[this._getCyclicIndex(O)]=this._array[this._getCyclicIndex(O+K)];this._length-=K,this.onDeleteEmitter.fire({index:y,amount:K})}for(O=this._length-1;O>=y;O--)this._array[this._getCyclicIndex(O+F.length)]=this._array[this._getCyclicIndex(O)];for(O=0;O<F.length;O++)this._array[this._getCyclicIndex(y+O)]=F[O];if(F.length&&this.onInsertEmitter.fire({index:y,amount:F.length}),this._length+F.length>this._maxLength){var k=this._length+F.length-this._maxLength;this._startIndex+=k,this._length=this._maxLength,this.onTrimEmitter.fire(k)}else this._length+=F.length},D.prototype.trimStart=function(y){y>this._length&&(y=this._length),this._startIndex+=y,this._length-=y,this.onTrimEmitter.fire(y)},D.prototype.shiftElements=function(y,K,F){if(!(K<=0)){if(y<0||y>=this._length)throw new Error("start argument out of range");if(y+F<0)throw new Error("Cannot shift elements in list beyond index 0");if(F>0){for(var M=K-1;M>=0;M--)this.set(y+M+F,this.get(y+M));var O=y+K+F-this._length;if(O>0)for(this._length+=O;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(M=0;M<K;M++)this.set(y+M+F,this.get(y+M))}},D.prototype._getCyclicIndex=function(y){return(this._startIndex+y)%this._maxLength},D}();S.CircularList=P},1439:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.clone=void 0,S.clone=function U(L,P){if(void 0===P&&(P=5),"object"!=typeof L)return L;var D=Array.isArray(L)?[]:{};for(var y in L)D[y]=P<=1?L[y]:L[y]&&U(L[y],P-1);return D}},8969:function(Y,S,U){var L,P=this&&this.__extends||(L=function(oe,ve){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Oe,st){Oe.__proto__=st}||function(Oe,st){for(var xe in st)Object.prototype.hasOwnProperty.call(st,xe)&&(Oe[xe]=st[xe])})(oe,ve)},function(te,oe){if("function"!=typeof oe&&null!==oe)throw new TypeError("Class extends value "+String(oe)+" is not a constructor or null");function ve(){this.constructor=te}L(te,oe),te.prototype=null===oe?Object.create(oe):(ve.prototype=oe.prototype,new ve)});Object.defineProperty(S,"__esModule",{value:!0}),S.CoreTerminal=void 0;var D=U(844),y=U(2585),K=U(4348),F=U(7866),M=U(744),O=U(7302),k=U(6975),I=U(8460),T=U(1753),w=U(3730),x=U(1480),N=U(7994),R=U(9282),W=U(5435),$=U(5981),ce=!1,se=function(te){function oe(ve){var Oe=te.call(this)||this;return Oe._onBinary=new I.EventEmitter,Oe._onData=new I.EventEmitter,Oe._onLineFeed=new I.EventEmitter,Oe._onResize=new I.EventEmitter,Oe._onScroll=new I.EventEmitter,Oe._instantiationService=new K.InstantiationService,Oe.optionsService=new O.OptionsService(ve),Oe._instantiationService.setService(y.IOptionsService,Oe.optionsService),Oe._bufferService=Oe.register(Oe._instantiationService.createInstance(M.BufferService)),Oe._instantiationService.setService(y.IBufferService,Oe._bufferService),Oe._logService=Oe._instantiationService.createInstance(F.LogService),Oe._instantiationService.setService(y.ILogService,Oe._logService),Oe.coreService=Oe.register(Oe._instantiationService.createInstance(k.CoreService,function(){return Oe.scrollToBottom()})),Oe._instantiationService.setService(y.ICoreService,Oe.coreService),Oe.coreMouseService=Oe._instantiationService.createInstance(T.CoreMouseService),Oe._instantiationService.setService(y.ICoreMouseService,Oe.coreMouseService),Oe._dirtyRowService=Oe._instantiationService.createInstance(w.DirtyRowService),Oe._instantiationService.setService(y.IDirtyRowService,Oe._dirtyRowService),Oe.unicodeService=Oe._instantiationService.createInstance(x.UnicodeService),Oe._instantiationService.setService(y.IUnicodeService,Oe.unicodeService),Oe._charsetService=Oe._instantiationService.createInstance(N.CharsetService),Oe._instantiationService.setService(y.ICharsetService,Oe._charsetService),Oe._inputHandler=new W.InputHandler(Oe._bufferService,Oe._charsetService,Oe.coreService,Oe._dirtyRowService,Oe._logService,Oe.optionsService,Oe.coreMouseService,Oe.unicodeService),Oe.register((0,I.forwardEvent)(Oe._inputHandler.onLineFeed,Oe._onLineFeed)),Oe.register(Oe._inputHandler),Oe.register((0,I.forwardEvent)(Oe._bufferService.onResize,Oe._onResize)),Oe.register((0,I.forwardEvent)(Oe.coreService.onData,Oe._onData)),Oe.register((0,I.forwardEvent)(Oe.coreService.onBinary,Oe._onBinary)),Oe.register(Oe.optionsService.onOptionChange(function(st){return Oe._updateOptions(st)})),Oe.register(Oe._bufferService.onScroll(function(st){Oe._onScroll.fire({position:Oe._bufferService.buffer.ydisp,source:0}),Oe._dirtyRowService.markRangeDirty(Oe._bufferService.buffer.scrollTop,Oe._bufferService.buffer.scrollBottom)})),Oe.register(Oe._inputHandler.onScroll(function(st){Oe._onScroll.fire({position:Oe._bufferService.buffer.ydisp,source:0}),Oe._dirtyRowService.markRangeDirty(Oe._bufferService.buffer.scrollTop,Oe._bufferService.buffer.scrollBottom)})),Oe._writeBuffer=new $.WriteBuffer(function(st,xe){return Oe._inputHandler.parse(st,xe)}),Oe}return P(oe,te),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){var Oe=this;return this._onScrollApi||(this._onScrollApi=new I.EventEmitter,this.register(this._onScroll.event(function(st){var xe;null===(xe=Oe._onScrollApi)||void 0===xe||xe.fire(st.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"options",{get:function(){return this.optionsService.options},set:function(Oe){for(var st in Oe)this.optionsService.options[st]=Oe[st]},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ve;this._isDisposed||(te.prototype.dispose.call(this),null===(ve=this._windowsMode)||void 0===ve||ve.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ve,Oe){this._writeBuffer.write(ve,Oe)},oe.prototype.writeSync=function(ve,Oe){this._logService.logLevel<=y.LogLevelEnum.WARN&&!ce&&(this._logService.warn("writeSync is unreliable and will be removed soon."),ce=!0),this._writeBuffer.writeSync(ve,Oe)},oe.prototype.resize=function(ve,Oe){isNaN(ve)||isNaN(Oe)||(ve=Math.max(ve,M.MINIMUM_COLS),Oe=Math.max(Oe,M.MINIMUM_ROWS),this._bufferService.resize(ve,Oe))},oe.prototype.scroll=function(ve,Oe){void 0===Oe&&(Oe=!1),this._bufferService.scroll(ve,Oe)},oe.prototype.scrollLines=function(ve,Oe,st){this._bufferService.scrollLines(ve,Oe,st)},oe.prototype.scrollPages=function(ve){this._bufferService.scrollPages(ve)},oe.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},oe.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},oe.prototype.scrollToLine=function(ve){this._bufferService.scrollToLine(ve)},oe.prototype.registerEscHandler=function(ve,Oe){return this._inputHandler.registerEscHandler(ve,Oe)},oe.prototype.registerDcsHandler=function(ve,Oe){return this._inputHandler.registerDcsHandler(ve,Oe)},oe.prototype.registerCsiHandler=function(ve,Oe){return this._inputHandler.registerCsiHandler(ve,Oe)},oe.prototype.registerOscHandler=function(ve,Oe){return this._inputHandler.registerOscHandler(ve,Oe)},oe.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},oe.prototype._updateOptions=function(ve){var Oe;switch(ve){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(Oe=this._windowsMode)||void 0===Oe||Oe.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ve=this;if(!this._windowsMode){var Oe=[];Oe.push(this.onLineFeed(R.updateWindowsModeWrappedState.bind(null,this._bufferService))),Oe.push(this.registerCsiHandler({final:"H"},function(){return(0,R.updateWindowsModeWrappedState)(ve._bufferService),!1})),this._windowsMode={dispose:function(){for(var xe=0,_e=Oe;xe<_e.length;xe++)_e[xe].dispose()}}}},oe}(D.Disposable);S.CoreTerminal=se},8460:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.forwardEvent=S.EventEmitter=void 0;var U=function(){function L(){this._listeners=[],this._disposed=!1}return Object.defineProperty(L.prototype,"event",{get:function(){var D=this;return this._event||(this._event=function(y){return D._listeners.push(y),{dispose:function(){if(!D._disposed)for(var F=0;F<D._listeners.length;F++)if(D._listeners[F]===y)return void D._listeners.splice(F,1)}}}),this._event},enumerable:!1,configurable:!0}),L.prototype.fire=function(P,D){for(var y=[],K=0;K<this._listeners.length;K++)y.push(this._listeners[K]);for(K=0;K<y.length;K++)y[K].call(void 0,P,D)},L.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},L}();S.EventEmitter=U,S.forwardEvent=function(L,P){return L(function(D){return P.fire(D)})}},5435:function(Y,S,U){var L,P=this&&this.__extends||(L=function(xe,_e){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Fe){ke.__proto__=Fe}||function(ke,Fe){for(var ct in Fe)Object.prototype.hasOwnProperty.call(Fe,ct)&&(ke[ct]=Fe[ct])})(xe,_e)},function(st,xe){if("function"!=typeof xe&&null!==xe)throw new TypeError("Class extends value "+String(xe)+" is not a constructor or null");function _e(){this.constructor=st}L(st,xe),st.prototype=null===xe?Object.create(xe):(_e.prototype=xe.prototype,new _e)});Object.defineProperty(S,"__esModule",{value:!0}),S.InputHandler=S.WindowsOptionsReportType=void 0;var D,st,y=U(2584),K=U(7116),F=U(2015),M=U(844),O=U(8273),k=U(482),I=U(8437),T=U(8460),w=U(643),x=U(511),N=U(3734),R=U(2585),W=U(6242),$=U(6351),ce=U(5941),se={"(":0,")":1,"*":2,"+":3,"-":1,".":2},te=131072;function oe(st,xe){if(st>24)return xe.setWinLines||!1;switch(st){case 1:return!!xe.restoreWin;case 2:return!!xe.minimizeWin;case 3:return!!xe.setWinPosition;case 4:return!!xe.setWinSizePixels;case 5:return!!xe.raiseWin;case 6:return!!xe.lowerWin;case 7:return!!xe.refreshWin;case 8:return!!xe.setWinSizeChars;case 9:return!!xe.maximizeWin;case 10:return!!xe.fullscreenWin;case 11:return!!xe.getWinState;case 13:return!!xe.getWinPosition;case 14:return!!xe.getWinSizePixels;case 15:return!!xe.getScreenSizePixels;case 16:return!!xe.getCellSizePixels;case 18:return!!xe.getWinSizeChars;case 19:return!!xe.getScreenSizeChars;case 20:return!!xe.getIconTitle;case 21:return!!xe.getWinTitle;case 22:return!!xe.pushTitle;case 23:return!!xe.popTitle;case 24:return!!xe.setWinLines}return!1}(st=D=S.WindowsOptionsReportType||(S.WindowsOptionsReportType={}))[st.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",st[st.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ve=function(){function st(xe,_e,ke,Fe){this._bufferService=xe,this._coreService=_e,this._logService=ke,this._optionsService=Fe,this._data=new Uint32Array(0)}return st.prototype.hook=function(xe){this._data=new Uint32Array(0)},st.prototype.put=function(xe,_e,ke){this._data=(0,O.concat)(this._data,xe.subarray(_e,ke))},st.prototype.unhook=function(xe){if(!xe)return this._data=new Uint32Array(0),!0;var _e=(0,k.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),_e){case'"q':this._coreService.triggerDataEvent(y.C0.ESC+'P1$r0"q'+y.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(y.C0.ESC+'P1$r61;1"p'+y.C0.ESC+"\\");break;case"r":var ke=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(y.C0.ESC+"P1$r"+ke+y.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(y.C0.ESC+"P1$r0m"+y.C0.ESC+"\\");break;case" q":var Fe={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];Fe-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(y.C0.ESC+"P1$r"+Fe+" q"+y.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",_e),this._coreService.triggerDataEvent(y.C0.ESC+"P0$r"+y.C0.ESC+"\\")}return!0},st}(),Oe=function(st){function xe(_e,ke,Fe,ct,Mt,Nt,Xt,en,qt){void 0===qt&&(qt=new F.EscapeSequenceParser);var Xe=st.call(this)||this;Xe._bufferService=_e,Xe._charsetService=ke,Xe._coreService=Fe,Xe._dirtyRowService=ct,Xe._logService=Mt,Xe._optionsService=Nt,Xe._coreMouseService=Xt,Xe._unicodeService=en,Xe._parser=qt,Xe._parseBuffer=new Uint32Array(4096),Xe._stringDecoder=new k.StringToUtf32,Xe._utf8Decoder=new k.Utf8ToUtf32,Xe._workCell=new x.CellData,Xe._windowTitle="",Xe._iconName="",Xe._windowTitleStack=[],Xe._iconNameStack=[],Xe._curAttrData=I.DEFAULT_ATTR_DATA.clone(),Xe._eraseAttrDataInternal=I.DEFAULT_ATTR_DATA.clone(),Xe._onRequestBell=new T.EventEmitter,Xe._onRequestRefreshRows=new T.EventEmitter,Xe._onRequestReset=new T.EventEmitter,Xe._onRequestSendFocus=new T.EventEmitter,Xe._onRequestSyncScrollBar=new T.EventEmitter,Xe._onRequestWindowsOptionsReport=new T.EventEmitter,Xe._onA11yChar=new T.EventEmitter,Xe._onA11yTab=new T.EventEmitter,Xe._onCursorMove=new T.EventEmitter,Xe._onLineFeed=new T.EventEmitter,Xe._onScroll=new T.EventEmitter,Xe._onTitleChange=new T.EventEmitter,Xe._onColor=new T.EventEmitter,Xe._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Xe._specialColors=[256,257,258],Xe.register(Xe._parser),Xe._activeBuffer=Xe._bufferService.buffer,Xe.register(Xe._bufferService.buffers.onBufferActivate(function(nt){return Xe._activeBuffer=nt.activeBuffer})),Xe._parser.setCsiHandlerFallback(function(nt,Lt){Xe._logService.debug("Unknown CSI code: ",{identifier:Xe._parser.identToString(nt),params:Lt.toArray()})}),Xe._parser.setEscHandlerFallback(function(nt){Xe._logService.debug("Unknown ESC code: ",{identifier:Xe._parser.identToString(nt)})}),Xe._parser.setExecuteHandlerFallback(function(nt){Xe._logService.debug("Unknown EXECUTE code: ",{code:nt})}),Xe._parser.setOscHandlerFallback(function(nt,Lt,It){Xe._logService.debug("Unknown OSC code: ",{identifier:nt,action:Lt,data:It})}),Xe._parser.setDcsHandlerFallback(function(nt,Lt,It){"HOOK"===Lt&&(It=It.toArray()),Xe._logService.debug("Unknown DCS code: ",{identifier:Xe._parser.identToString(nt),action:Lt,payload:It})}),Xe._parser.setPrintHandler(function(nt,Lt,It){return Xe.print(nt,Lt,It)}),Xe._parser.registerCsiHandler({final:"@"},function(nt){return Xe.insertChars(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"@"},function(nt){return Xe.scrollLeft(nt)}),Xe._parser.registerCsiHandler({final:"A"},function(nt){return Xe.cursorUp(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"A"},function(nt){return Xe.scrollRight(nt)}),Xe._parser.registerCsiHandler({final:"B"},function(nt){return Xe.cursorDown(nt)}),Xe._parser.registerCsiHandler({final:"C"},function(nt){return Xe.cursorForward(nt)}),Xe._parser.registerCsiHandler({final:"D"},function(nt){return Xe.cursorBackward(nt)}),Xe._parser.registerCsiHandler({final:"E"},function(nt){return Xe.cursorNextLine(nt)}),Xe._parser.registerCsiHandler({final:"F"},function(nt){return Xe.cursorPrecedingLine(nt)}),Xe._parser.registerCsiHandler({final:"G"},function(nt){return Xe.cursorCharAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"H"},function(nt){return Xe.cursorPosition(nt)}),Xe._parser.registerCsiHandler({final:"I"},function(nt){return Xe.cursorForwardTab(nt)}),Xe._parser.registerCsiHandler({final:"J"},function(nt){return Xe.eraseInDisplay(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"J"},function(nt){return Xe.eraseInDisplay(nt)}),Xe._parser.registerCsiHandler({final:"K"},function(nt){return Xe.eraseInLine(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"K"},function(nt){return Xe.eraseInLine(nt)}),Xe._parser.registerCsiHandler({final:"L"},function(nt){return Xe.insertLines(nt)}),Xe._parser.registerCsiHandler({final:"M"},function(nt){return Xe.deleteLines(nt)}),Xe._parser.registerCsiHandler({final:"P"},function(nt){return Xe.deleteChars(nt)}),Xe._parser.registerCsiHandler({final:"S"},function(nt){return Xe.scrollUp(nt)}),Xe._parser.registerCsiHandler({final:"T"},function(nt){return Xe.scrollDown(nt)}),Xe._parser.registerCsiHandler({final:"X"},function(nt){return Xe.eraseChars(nt)}),Xe._parser.registerCsiHandler({final:"Z"},function(nt){return Xe.cursorBackwardTab(nt)}),Xe._parser.registerCsiHandler({final:"`"},function(nt){return Xe.charPosAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"a"},function(nt){return Xe.hPositionRelative(nt)}),Xe._parser.registerCsiHandler({final:"b"},function(nt){return Xe.repeatPrecedingCharacter(nt)}),Xe._parser.registerCsiHandler({final:"c"},function(nt){return Xe.sendDeviceAttributesPrimary(nt)}),Xe._parser.registerCsiHandler({prefix:">",final:"c"},function(nt){return Xe.sendDeviceAttributesSecondary(nt)}),Xe._parser.registerCsiHandler({final:"d"},function(nt){return Xe.linePosAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"e"},function(nt){return Xe.vPositionRelative(nt)}),Xe._parser.registerCsiHandler({final:"f"},function(nt){return Xe.hVPosition(nt)}),Xe._parser.registerCsiHandler({final:"g"},function(nt){return Xe.tabClear(nt)}),Xe._parser.registerCsiHandler({final:"h"},function(nt){return Xe.setMode(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"h"},function(nt){return Xe.setModePrivate(nt)}),Xe._parser.registerCsiHandler({final:"l"},function(nt){return Xe.resetMode(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"l"},function(nt){return Xe.resetModePrivate(nt)}),Xe._parser.registerCsiHandler({final:"m"},function(nt){return Xe.charAttributes(nt)}),Xe._parser.registerCsiHandler({final:"n"},function(nt){return Xe.deviceStatus(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"n"},function(nt){return Xe.deviceStatusPrivate(nt)}),Xe._parser.registerCsiHandler({intermediates:"!",final:"p"},function(nt){return Xe.softReset(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"q"},function(nt){return Xe.setCursorStyle(nt)}),Xe._parser.registerCsiHandler({final:"r"},function(nt){return Xe.setScrollRegion(nt)}),Xe._parser.registerCsiHandler({final:"s"},function(nt){return Xe.saveCursor(nt)}),Xe._parser.registerCsiHandler({final:"t"},function(nt){return Xe.windowOptions(nt)}),Xe._parser.registerCsiHandler({final:"u"},function(nt){return Xe.restoreCursor(nt)}),Xe._parser.registerCsiHandler({intermediates:"'",final:"}"},function(nt){return Xe.insertColumns(nt)}),Xe._parser.registerCsiHandler({intermediates:"'",final:"~"},function(nt){return Xe.deleteColumns(nt)}),Xe._parser.setExecuteHandler(y.C0.BEL,function(){return Xe.bell()}),Xe._parser.setExecuteHandler(y.C0.LF,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.VT,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.FF,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.CR,function(){return Xe.carriageReturn()}),Xe._parser.setExecuteHandler(y.C0.BS,function(){return Xe.backspace()}),Xe._parser.setExecuteHandler(y.C0.HT,function(){return Xe.tab()}),Xe._parser.setExecuteHandler(y.C0.SO,function(){return Xe.shiftOut()}),Xe._parser.setExecuteHandler(y.C0.SI,function(){return Xe.shiftIn()}),Xe._parser.setExecuteHandler(y.C1.IND,function(){return Xe.index()}),Xe._parser.setExecuteHandler(y.C1.NEL,function(){return Xe.nextLine()}),Xe._parser.setExecuteHandler(y.C1.HTS,function(){return Xe.tabSet()}),Xe._parser.registerOscHandler(0,new W.OscHandler(function(nt){return Xe.setTitle(nt),Xe.setIconName(nt),!0})),Xe._parser.registerOscHandler(1,new W.OscHandler(function(nt){return Xe.setIconName(nt)})),Xe._parser.registerOscHandler(2,new W.OscHandler(function(nt){return Xe.setTitle(nt)})),Xe._parser.registerOscHandler(4,new W.OscHandler(function(nt){return Xe.setOrReportIndexedColor(nt)})),Xe._parser.registerOscHandler(10,new W.OscHandler(function(nt){return Xe.setOrReportFgColor(nt)})),Xe._parser.registerOscHandler(11,new W.OscHandler(function(nt){return Xe.setOrReportBgColor(nt)})),Xe._parser.registerOscHandler(12,new W.OscHandler(function(nt){return Xe.setOrReportCursorColor(nt)})),Xe._parser.registerOscHandler(104,new W.OscHandler(function(nt){return Xe.restoreIndexedColor(nt)})),Xe._parser.registerOscHandler(110,new W.OscHandler(function(nt){return Xe.restoreFgColor(nt)})),Xe._parser.registerOscHandler(111,new W.OscHandler(function(nt){return Xe.restoreBgColor(nt)})),Xe._parser.registerOscHandler(112,new W.OscHandler(function(nt){return Xe.restoreCursorColor(nt)})),Xe._parser.registerEscHandler({final:"7"},function(){return Xe.saveCursor()}),Xe._parser.registerEscHandler({final:"8"},function(){return Xe.restoreCursor()}),Xe._parser.registerEscHandler({final:"D"},function(){return Xe.index()}),Xe._parser.registerEscHandler({final:"E"},function(){return Xe.nextLine()}),Xe._parser.registerEscHandler({final:"H"},function(){return Xe.tabSet()}),Xe._parser.registerEscHandler({final:"M"},function(){return Xe.reverseIndex()}),Xe._parser.registerEscHandler({final:"="},function(){return Xe.keypadApplicationMode()}),Xe._parser.registerEscHandler({final:">"},function(){return Xe.keypadNumericMode()}),Xe._parser.registerEscHandler({final:"c"},function(){return Xe.fullReset()}),Xe._parser.registerEscHandler({final:"n"},function(){return Xe.setgLevel(2)}),Xe._parser.registerEscHandler({final:"o"},function(){return Xe.setgLevel(3)}),Xe._parser.registerEscHandler({final:"|"},function(){return Xe.setgLevel(3)}),Xe._parser.registerEscHandler({final:"}"},function(){return Xe.setgLevel(2)}),Xe._parser.registerEscHandler({final:"~"},function(){return Xe.setgLevel(1)}),Xe._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Xe.selectDefaultCharset()}),Xe._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Xe.selectDefaultCharset()});var jt=function(Lt){it._parser.registerEscHandler({intermediates:"(",final:Lt},function(){return Xe.selectCharset("("+Lt)}),it._parser.registerEscHandler({intermediates:")",final:Lt},function(){return Xe.selectCharset(")"+Lt)}),it._parser.registerEscHandler({intermediates:"*",final:Lt},function(){return Xe.selectCharset("*"+Lt)}),it._parser.registerEscHandler({intermediates:"+",final:Lt},function(){return Xe.selectCharset("+"+Lt)}),it._parser.registerEscHandler({intermediates:"-",final:Lt},function(){return Xe.selectCharset("-"+Lt)}),it._parser.registerEscHandler({intermediates:".",final:Lt},function(){return Xe.selectCharset("."+Lt)}),it._parser.registerEscHandler({intermediates:"/",final:Lt},function(){return Xe.selectCharset("/"+Lt)})},it=this;for(var vt in K.CHARSETS)jt(vt);return Xe._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Xe.screenAlignmentPattern()}),Xe._parser.setErrorHandler(function(nt){return Xe._logService.error("Parsing error: ",nt),nt}),Xe._parser.registerDcsHandler({intermediates:"$",final:"q"},new ve(Xe._bufferService,Xe._coreService,Xe._logService,Xe._optionsService)),Xe}return P(xe,st),Object.defineProperty(xe.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),xe.prototype.dispose=function(){st.prototype.dispose.call(this)},xe.prototype._preserveStack=function(_e,ke,Fe,ct){this._parseStack.paused=!0,this._parseStack.cursorStartX=_e,this._parseStack.cursorStartY=ke,this._parseStack.decodedLength=Fe,this._parseStack.position=ct},xe.prototype._logSlowResolvingAsync=function(_e){this._logService.logLevel<=R.LogLevelEnum.WARN&&Promise.race([_e,new Promise(function(ke,Fe){return setTimeout(function(){return Fe("#SLOW_TIMEOUT")},5e3)})]).catch(function(ke){if("#SLOW_TIMEOUT"!==ke)throw ke;console.warn("async parser handler taking longer than 5000 ms")})},xe.prototype.parse=function(_e,ke){var Fe,ct=this._activeBuffer.x,Mt=this._activeBuffer.y,Nt=0,Xt=this._parseStack.paused;if(Xt){if(Fe=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,ke))return this._logSlowResolvingAsync(Fe),Fe;ct=this._parseStack.cursorStartX,Mt=this._parseStack.cursorStartY,this._parseStack.paused=!1,_e.length>te&&(Nt=this._parseStack.position+te)}if(this._logService.logLevel<=R.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof _e?' "'+_e+'"':' "'+Array.prototype.map.call(_e,function(jt){return String.fromCharCode(jt)}).join("")+'"'),"string"==typeof _e?_e.split("").map(function(jt){return jt.charCodeAt(0)}):_e),this._parseBuffer.length<_e.length&&this._parseBuffer.length<te&&(this._parseBuffer=new Uint32Array(Math.min(_e.length,te))),Xt||this._dirtyRowService.clearRange(),_e.length>te)for(var en=Nt;en<_e.length;en+=te){var qt=en+te<_e.length?en+te:_e.length,Xe="string"==typeof _e?this._stringDecoder.decode(_e.substring(en,qt),this._parseBuffer):this._utf8Decoder.decode(_e.subarray(en,qt),this._parseBuffer);if(Fe=this._parser.parse(this._parseBuffer,Xe))return this._preserveStack(ct,Mt,Xe,en),this._logSlowResolvingAsync(Fe),Fe}else if(!Xt&&(Xe="string"==typeof _e?this._stringDecoder.decode(_e,this._parseBuffer):this._utf8Decoder.decode(_e,this._parseBuffer),Fe=this._parser.parse(this._parseBuffer,Xe)))return this._preserveStack(ct,Mt,Xe,0),this._logSlowResolvingAsync(Fe),Fe;this._activeBuffer.x===ct&&this._activeBuffer.y===Mt||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},xe.prototype.print=function(_e,ke,Fe){var ct,Mt,Nt=this._charsetService.charset,Xt=this._optionsService.rawOptions.screenReaderMode,en=this._bufferService.cols,qt=this._coreService.decPrivateModes.wraparound,Xe=this._coreService.modes.insertMode,jt=this._curAttrData,it=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&Fe-ke>0&&2===it.getWidth(this._activeBuffer.x-1)&&it.setCellFromCodePoint(this._activeBuffer.x-1,0,1,jt.fg,jt.bg,jt.extended);for(var vt=ke;vt<Fe;++vt){if(ct=_e[vt],Mt=this._unicodeService.wcwidth(ct),ct<127&&Nt){var nt=Nt[String.fromCharCode(ct)];nt&&(ct=nt.charCodeAt(0))}if(Xt&&this._onA11yChar.fire((0,k.stringFromCodePoint)(ct)),Mt||!this._activeBuffer.x){if(this._activeBuffer.x+Mt-1>=en)if(qt){for(;this._activeBuffer.x<en;)it.setCellFromCodePoint(this._activeBuffer.x++,0,1,jt.fg,jt.bg,jt.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),it=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=en-1,2===Mt)continue;if(Xe&&(it.insertCells(this._activeBuffer.x,Mt,this._activeBuffer.getNullCell(jt),jt),2===it.getWidth(en-1)&&it.setCellFromCodePoint(en-1,w.NULL_CELL_CODE,w.NULL_CELL_WIDTH,jt.fg,jt.bg,jt.extended)),it.setCellFromCodePoint(this._activeBuffer.x++,ct,Mt,jt.fg,jt.bg,jt.extended),Mt>0)for(;--Mt;)it.setCellFromCodePoint(this._activeBuffer.x++,0,0,jt.fg,jt.bg,jt.extended)}else it.getWidth(this._activeBuffer.x-1)?it.addCodepointToCell(this._activeBuffer.x-1,ct):it.addCodepointToCell(this._activeBuffer.x-2,ct)}Fe-ke>0&&(it.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<en&&Fe-ke>0&&0===it.getWidth(this._activeBuffer.x)&&!it.hasContent(this._activeBuffer.x)&&it.setCellFromCodePoint(this._activeBuffer.x,0,1,jt.fg,jt.bg,jt.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},xe.prototype.registerCsiHandler=function(_e,ke){var Fe=this;return"t"!==_e.final||_e.prefix||_e.intermediates?this._parser.registerCsiHandler(_e,ke):this._parser.registerCsiHandler(_e,function(ct){return!oe(ct.params[0],Fe._optionsService.rawOptions.windowOptions)||ke(ct)})},xe.prototype.registerDcsHandler=function(_e,ke){return this._parser.registerDcsHandler(_e,new $.DcsHandler(ke))},xe.prototype.registerEscHandler=function(_e,ke){return this._parser.registerEscHandler(_e,ke)},xe.prototype.registerOscHandler=function(_e,ke){return this._parser.registerOscHandler(_e,new W.OscHandler(ke))},xe.prototype.bell=function(){return this._onRequestBell.fire(),!0},xe.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},xe.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},xe.prototype.backspace=function(){var _e;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===(_e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===_e?void 0:_e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);ke.hasWidth(this._activeBuffer.x)&&!ke.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},xe.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var _e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-_e),!0},xe.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},xe.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},xe.prototype._restrictCursor=function(_e){void 0===_e&&(_e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(_e,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)},xe.prototype._setCursor=function(_e,ke){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=_e,this._activeBuffer.y=this._activeBuffer.scrollTop+ke):(this._activeBuffer.x=_e,this._activeBuffer.y=ke),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},xe.prototype._moveCursor=function(_e,ke){this._restrictCursor(),this._setCursor(this._activeBuffer.x+_e,this._activeBuffer.y+ke)},xe.prototype.cursorUp=function(_e){var ke=this._activeBuffer.y-this._activeBuffer.scrollTop;return ke>=0?this._moveCursor(0,-Math.min(ke,_e.params[0]||1)):this._moveCursor(0,-(_e.params[0]||1)),!0},xe.prototype.cursorDown=function(_e){var ke=this._activeBuffer.scrollBottom-this._activeBuffer.y;return ke>=0?this._moveCursor(0,Math.min(ke,_e.params[0]||1)):this._moveCursor(0,_e.params[0]||1),!0},xe.prototype.cursorForward=function(_e){return this._moveCursor(_e.params[0]||1,0),!0},xe.prototype.cursorBackward=function(_e){return this._moveCursor(-(_e.params[0]||1),0),!0},xe.prototype.cursorNextLine=function(_e){return this.cursorDown(_e),this._activeBuffer.x=0,!0},xe.prototype.cursorPrecedingLine=function(_e){return this.cursorUp(_e),this._activeBuffer.x=0,!0},xe.prototype.cursorCharAbsolute=function(_e){return this._setCursor((_e.params[0]||1)-1,this._activeBuffer.y),!0},xe.prototype.cursorPosition=function(_e){return this._setCursor(_e.length>=2?(_e.params[1]||1)-1:0,(_e.params[0]||1)-1),!0},xe.prototype.charPosAbsolute=function(_e){return this._setCursor((_e.params[0]||1)-1,this._activeBuffer.y),!0},xe.prototype.hPositionRelative=function(_e){return this._moveCursor(_e.params[0]||1,0),!0},xe.prototype.linePosAbsolute=function(_e){return this._setCursor(this._activeBuffer.x,(_e.params[0]||1)-1),!0},xe.prototype.vPositionRelative=function(_e){return this._moveCursor(0,_e.params[0]||1),!0},xe.prototype.hVPosition=function(_e){return this.cursorPosition(_e),!0},xe.prototype.tabClear=function(_e){var ke=_e.params[0];return 0===ke?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===ke&&(this._activeBuffer.tabs={}),!0},xe.prototype.cursorForwardTab=function(_e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ke=_e.params[0]||1;ke--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},xe.prototype.cursorBackwardTab=function(_e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ke=_e.params[0]||1;ke--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},xe.prototype._eraseInBufferLine=function(_e,ke,Fe,ct){void 0===ct&&(ct=!1);var Mt=this._activeBuffer.lines.get(this._activeBuffer.ybase+_e);Mt.replaceCells(ke,Fe,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct&&(Mt.isWrapped=!1)},xe.prototype._resetBufferLine=function(_e){var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+_e);ke.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+_e),ke.isWrapped=!1},xe.prototype.eraseInDisplay=function(_e){var ke;switch(this._restrictCursor(this._bufferService.cols),_e.params[0]){case 0:for(ke=this._activeBuffer.y,this._dirtyRowService.markDirty(ke),this._eraseInBufferLine(ke++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);ke<this._bufferService.rows;ke++)this._resetBufferLine(ke);this._dirtyRowService.markDirty(ke);break;case 1:for(ke=this._activeBuffer.y,this._dirtyRowService.markDirty(ke),this._eraseInBufferLine(ke,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(ke+1).isWrapped=!1);ke--;)this._resetBufferLine(ke);this._dirtyRowService.markDirty(0);break;case 2:for(ke=this._bufferService.rows,this._dirtyRowService.markDirty(ke-1);ke--;)this._resetBufferLine(ke);this._dirtyRowService.markDirty(0);break;case 3:var Fe=this._activeBuffer.lines.length-this._bufferService.rows;Fe>0&&(this._activeBuffer.lines.trimStart(Fe),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Fe,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Fe,0),this._onScroll.fire(0))}return!0},xe.prototype.eraseInLine=function(_e){switch(this._restrictCursor(this._bufferService.cols),_e.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},xe.prototype.insertLines=function(_e){this._restrictCursor();var ke=_e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var Fe=this._activeBuffer.ybase+this._activeBuffer.y,ct=this._bufferService.rows-1-this._activeBuffer.scrollBottom,Mt=this._bufferService.rows-1+this._activeBuffer.ybase-ct+1;ke--;)this._activeBuffer.lines.splice(Mt-1,1),this._activeBuffer.lines.splice(Fe,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},xe.prototype.deleteLines=function(_e){this._restrictCursor();var ke=_e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var Fe,ct=this._activeBuffer.ybase+this._activeBuffer.y;for(Fe=this._bufferService.rows-1-this._activeBuffer.scrollBottom,Fe=this._bufferService.rows-1+this._activeBuffer.ybase-Fe;ke--;)this._activeBuffer.lines.splice(ct,1),this._activeBuffer.lines.splice(Fe,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},xe.prototype.insertChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.insertCells(this._activeBuffer.x,_e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.deleteChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.deleteCells(this._activeBuffer.x,_e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.scrollUp=function(_e){for(var ke=_e.params[0]||1;ke--;)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},xe.prototype.scrollDown=function(_e){for(var ke=_e.params[0]||1;ke--;)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(I.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.scrollLeft=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Fe=this._activeBuffer.scrollTop;Fe<=this._activeBuffer.scrollBottom;++Fe){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Fe);ct.deleteCells(0,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.scrollRight=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Fe=this._activeBuffer.scrollTop;Fe<=this._activeBuffer.scrollBottom;++Fe){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Fe);ct.insertCells(0,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.insertColumns=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Fe=this._activeBuffer.scrollTop;Fe<=this._activeBuffer.scrollBottom;++Fe){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Fe);ct.insertCells(this._activeBuffer.x,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.deleteColumns=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Fe=this._activeBuffer.scrollTop;Fe<=this._activeBuffer.scrollBottom;++Fe){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Fe);ct.deleteCells(this._activeBuffer.x,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.eraseChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(_e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.repeatPrecedingCharacter=function(_e){if(!this._parser.precedingCodepoint)return!0;for(var ke=_e.params[0]||1,Fe=new Uint32Array(ke),ct=0;ct<ke;++ct)Fe[ct]=this._parser.precedingCodepoint;return this.print(Fe,0,Fe.length),!0},xe.prototype.sendDeviceAttributesPrimary=function(_e){return _e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(y.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(y.C0.ESC+"[?6c")),!0},xe.prototype.sendDeviceAttributesSecondary=function(_e){return _e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(y.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(y.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(y.C0.ESC+"[>83;40003;0c")),!0},xe.prototype._is=function(_e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(_e)},xe.prototype.setMode=function(_e){for(var ke=0;ke<_e.length;ke++)4===_e.params[ke]&&(this._coreService.modes.insertMode=!0);return!0},xe.prototype.setModePrivate=function(_e){for(var ke=0;ke<_e.length;ke++)switch(_e.params[ke]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,K.DEFAULT_CHARSET),this._charsetService.setgCharset(1,K.DEFAULT_CHARSET),this._charsetService.setgCharset(2,K.DEFAULT_CHARSET),this._charsetService.setgCharset(3,K.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},xe.prototype.resetMode=function(_e){for(var ke=0;ke<_e.length;ke++)4===_e.params[ke]&&(this._coreService.modes.insertMode=!1);return!0},xe.prototype.resetModePrivate=function(_e){for(var ke=0;ke<_e.length;ke++)switch(_e.params[ke]){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===_e.params[ke]&&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},xe.prototype._updateAttrColor=function(_e,ke,Fe,ct,Mt){return 2===ke?(_e|=50331648,_e&=-16777216,_e|=N.AttributeData.fromColorRGB([Fe,ct,Mt])):5===ke&&(_e&=-50331904,_e|=33554432|255&Fe),_e},xe.prototype._extractColor=function(_e,ke,Fe){var ct=[0,0,-1,0,0,0],Mt=0,Nt=0;do{if(ct[Nt+Mt]=_e.params[ke+Nt],_e.hasSubParams(ke+Nt)){var Xt=_e.getSubParams(ke+Nt),en=0;do{5===ct[1]&&(Mt=1),ct[Nt+en+1+Mt]=Xt[en]}while(++en<Xt.length&&en+Nt+1+Mt<ct.length);break}if(5===ct[1]&&Nt+Mt>=2||2===ct[1]&&Nt+Mt>=5)break;ct[1]&&(Mt=1)}while(++Nt+ke<_e.length&&Nt+Mt<ct.length);for(en=2;en<ct.length;++en)-1===ct[en]&&(ct[en]=0);switch(ct[0]){case 38:Fe.fg=this._updateAttrColor(Fe.fg,ct[1],ct[3],ct[4],ct[5]);break;case 48:Fe.bg=this._updateAttrColor(Fe.bg,ct[1],ct[3],ct[4],ct[5]);break;case 58:Fe.extended=Fe.extended.clone(),Fe.extended.underlineColor=this._updateAttrColor(Fe.extended.underlineColor,ct[1],ct[3],ct[4],ct[5])}return Nt},xe.prototype._processUnderline=function(_e,ke){ke.extended=ke.extended.clone(),(!~_e||_e>5)&&(_e=1),ke.extended.underlineStyle=_e,ke.fg|=268435456,0===_e&&(ke.fg&=-268435457),ke.updateExtended()},xe.prototype.charAttributes=function(_e){if(1===_e.length&&0===_e.params[0])return this._curAttrData.fg=I.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=I.DEFAULT_ATTR_DATA.bg,!0;for(var ke,Fe=_e.length,ct=this._curAttrData,Mt=0;Mt<Fe;Mt++)(ke=_e.params[Mt])>=30&&ke<=37?(ct.fg&=-50331904,ct.fg|=16777216|ke-30):ke>=40&&ke<=47?(ct.bg&=-50331904,ct.bg|=16777216|ke-40):ke>=90&&ke<=97?(ct.fg&=-50331904,ct.fg|=16777224|ke-90):ke>=100&&ke<=107?(ct.bg&=-50331904,ct.bg|=16777224|ke-100):0===ke?(ct.fg=I.DEFAULT_ATTR_DATA.fg,ct.bg=I.DEFAULT_ATTR_DATA.bg):1===ke?ct.fg|=134217728:3===ke?ct.bg|=67108864:4===ke?(ct.fg|=268435456,this._processUnderline(_e.hasSubParams(Mt)?_e.getSubParams(Mt)[0]:1,ct)):5===ke?ct.fg|=536870912:7===ke?ct.fg|=67108864:8===ke?ct.fg|=1073741824:9===ke?ct.fg|=2147483648:2===ke?ct.bg|=134217728:21===ke?this._processUnderline(2,ct):22===ke?(ct.fg&=-134217729,ct.bg&=-134217729):23===ke?ct.bg&=-67108865:24===ke?ct.fg&=-268435457:25===ke?ct.fg&=-536870913:27===ke?ct.fg&=-67108865:28===ke?ct.fg&=-1073741825:29===ke?ct.fg&=2147483647:39===ke?(ct.fg&=-67108864,ct.fg|=16777215&I.DEFAULT_ATTR_DATA.fg):49===ke?(ct.bg&=-67108864,ct.bg|=16777215&I.DEFAULT_ATTR_DATA.bg):38===ke||48===ke||58===ke?Mt+=this._extractColor(_e,Mt,ct):59===ke?(ct.extended=ct.extended.clone(),ct.extended.underlineColor=-1,ct.updateExtended()):100===ke?(ct.fg&=-67108864,ct.fg|=16777215&I.DEFAULT_ATTR_DATA.fg,ct.bg&=-67108864,ct.bg|=16777215&I.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ke);return!0},xe.prototype.deviceStatus=function(_e){switch(_e.params[0]){case 5:this._coreService.triggerDataEvent(y.C0.ESC+"[0n");break;case 6:var ke=this._activeBuffer.y+1,Fe=this._activeBuffer.x+1;this._coreService.triggerDataEvent(y.C0.ESC+"["+ke+";"+Fe+"R")}return!0},xe.prototype.deviceStatusPrivate=function(_e){if(6===_e.params[0]){var ke=this._activeBuffer.y+1,Fe=this._activeBuffer.x+1;this._coreService.triggerDataEvent(y.C0.ESC+"[?"+ke+";"+Fe+"R")}return!0},xe.prototype.softReset=function(_e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=I.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},xe.prototype.setCursorStyle=function(_e){var ke=_e.params[0]||1;switch(ke){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 Fe=ke%2==1;return this._optionsService.options.cursorBlink=Fe,!0},xe.prototype.setScrollRegion=function(_e){var ke,Fe=_e.params[0]||1;return(_e.length<2||(ke=_e.params[1])>this._bufferService.rows||0===ke)&&(ke=this._bufferService.rows),ke>Fe&&(this._activeBuffer.scrollTop=Fe-1,this._activeBuffer.scrollBottom=ke-1,this._setCursor(0,0)),!0},xe.prototype.windowOptions=function(_e){if(!oe(_e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var ke=_e.length>1?_e.params[1]:0;switch(_e.params[0]){case 14:2!==ke&&this._onRequestWindowsOptionsReport.fire(D.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(D.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(y.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==ke&&2!==ke||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==ke&&1!==ke||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==ke&&2!==ke||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==ke&&1!==ke||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},xe.prototype.saveCursor=function(_e){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},xe.prototype.restoreCursor=function(_e){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},xe.prototype.setTitle=function(_e){return this._windowTitle=_e,this._onTitleChange.fire(_e),!0},xe.prototype.setIconName=function(_e){return this._iconName=_e,!0},xe.prototype.setOrReportIndexedColor=function(_e){for(var ke=[],Fe=_e.split(";");Fe.length>1;){var ct=Fe.shift(),Mt=Fe.shift();if(/^\d+$/.exec(ct)){var Nt=parseInt(ct);if(0<=Nt&&Nt<256)if("?"===Mt)ke.push({type:0,index:Nt});else{var Xt=(0,ce.parseColor)(Mt);Xt&&ke.push({type:1,index:Nt,color:Xt})}}}return ke.length&&this._onColor.fire(ke),!0},xe.prototype._setOrReportSpecialColor=function(_e,ke){for(var Fe=_e.split(";"),ct=0;ct<Fe.length&&!(ke>=this._specialColors.length);++ct,++ke)if("?"===Fe[ct])this._onColor.fire([{type:0,index:this._specialColors[ke]}]);else{var Mt=(0,ce.parseColor)(Fe[ct]);Mt&&this._onColor.fire([{type:1,index:this._specialColors[ke],color:Mt}])}return!0},xe.prototype.setOrReportFgColor=function(_e){return this._setOrReportSpecialColor(_e,0)},xe.prototype.setOrReportBgColor=function(_e){return this._setOrReportSpecialColor(_e,1)},xe.prototype.setOrReportCursorColor=function(_e){return this._setOrReportSpecialColor(_e,2)},xe.prototype.restoreIndexedColor=function(_e){if(!_e)return this._onColor.fire([{type:2}]),!0;for(var ke=[],Fe=_e.split(";"),ct=0;ct<Fe.length;++ct)if(/^\d+$/.exec(Fe[ct])){var Mt=parseInt(Fe[ct]);0<=Mt&&Mt<256&&ke.push({type:2,index:Mt})}return ke.length&&this._onColor.fire(ke),!0},xe.prototype.restoreFgColor=function(_e){return this._onColor.fire([{type:2,index:256}]),!0},xe.prototype.restoreBgColor=function(_e){return this._onColor.fire([{type:2,index:257}]),!0},xe.prototype.restoreCursorColor=function(_e){return this._onColor.fire([{type:2,index:258}]),!0},xe.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},xe.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},xe.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},xe.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,K.DEFAULT_CHARSET),!0},xe.prototype.selectCharset=function(_e){return 2!==_e.length?(this.selectDefaultCharset(),!0):("/"===_e[0]||this._charsetService.setgCharset(se[_e[0]],K.CHARSETS[_e[1]]||K.DEFAULT_CHARSET),!0)},xe.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},xe.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},xe.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var _e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,_e,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},xe.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},xe.prototype.reset=function(){this._curAttrData=I.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=I.DEFAULT_ATTR_DATA.clone()},xe.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},xe.prototype.setgLevel=function(_e){return this._charsetService.setgLevel(_e),!0},xe.prototype.screenAlignmentPattern=function(){var _e=new x.CellData;_e.content=1<<22|"E".charCodeAt(0),_e.fg=this._curAttrData.fg,_e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var ke=0;ke<this._bufferService.rows;++ke){var Fe=this._activeBuffer.ybase+this._activeBuffer.y+ke,ct=this._activeBuffer.lines.get(Fe);ct&&(ct.fill(_e),ct.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},xe}(M.Disposable);S.InputHandler=Oe},844:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.getDisposeArrayDisposable=S.disposeArray=S.Disposable=void 0;var U=function(){function P(){this._disposables=[],this._isDisposed=!1}return P.prototype.dispose=function(){this._isDisposed=!0;for(var D=0,y=this._disposables;D<y.length;D++)y[D].dispose();this._disposables.length=0},P.prototype.register=function(D){return this._disposables.push(D),D},P.prototype.unregister=function(D){var y=this._disposables.indexOf(D);-1!==y&&this._disposables.splice(y,1)},P}();function L(P){for(var D=0,y=P;D<y.length;D++)y[D].dispose();P.length=0}S.Disposable=U,S.disposeArray=L,S.getDisposeArrayDisposable=function(P){return{dispose:function(){return L(P)}}}},6114:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.isLinux=S.isWindows=S.isIphone=S.isIpad=S.isMac=S.isSafari=S.isLegacyEdge=S.isFirefox=void 0;var U="undefined"==typeof navigator,L=U?"node":navigator.userAgent,P=U?"node":navigator.platform;S.isFirefox=L.includes("Firefox"),S.isLegacyEdge=L.includes("Edge"),S.isSafari=/^((?!chrome|android).)*safari/i.test(L),S.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),S.isIpad="iPad"===P,S.isIphone="iPhone"===P,S.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),S.isLinux=P.indexOf("Linux")>=0},8273:function(Y,S){function U(L,P,D,y){if(void 0===D&&(D=0),void 0===y&&(y=L.length),D>=L.length)return L;D=(L.length+D)%L.length,y=y>=L.length?L.length:(L.length+y)%L.length;for(var K=D;K<y;++K)L[K]=P;return L}Object.defineProperty(S,"__esModule",{value:!0}),S.concat=S.fillFallback=S.fill=void 0,S.fill=function(L,P,D,y){return L.fill?L.fill(P,D,y):U(L,P,D,y)},S.fillFallback=U,S.concat=function(L,P){var D=new L.constructor(L.length+P.length);return D.set(L),D.set(P,L.length),D}},9282:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.updateWindowsModeWrappedState=void 0;var L=U(643);S.updateWindowsModeWrappedState=function(P){var D=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),y=null==D?void 0:D.get(P.cols-1),K=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);K&&y&&(K.isWrapped=y[L.CHAR_DATA_CODE_INDEX]!==L.NULL_CELL_CODE&&y[L.CHAR_DATA_CODE_INDEX]!==L.WHITESPACE_CELL_CODE)}},3734:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ExtendedAttrs=S.AttributeData=void 0;var U=function(){function P(){this.fg=0,this.bg=0,this.extended=new L}return P.toColorRGB=function(D){return[D>>>16&255,D>>>8&255,255&D]},P.fromColorRGB=function(D){return(255&D[0])<<16|(255&D[1])<<8|255&D[2]},P.prototype.clone=function(){var D=new P;return D.fg=this.fg,D.bg=this.bg,D.extended=this.extended.clone(),D},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}();S.AttributeData=U;var L=function(){function P(D,y){void 0===D&&(D=0),void 0===y&&(y=-1),this.underlineStyle=D,this.underlineColor=y}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();S.ExtendedAttrs=L},9092:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BufferStringIterator=S.Buffer=S.MAX_BUFFER_SIZE=void 0;var L=U(6349),P=U(8437),D=U(511),y=U(643),K=U(4634),F=U(4863),M=U(7116),O=U(3734);S.MAX_BUFFER_SIZE=4294967295;var k=function(){function T(w,x,N){this._hasScrollback=w,this._optionsService=x,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=P.DEFAULT_ATTR_DATA.clone(),this.savedCharset=M.DEFAULT_CHARSET,this.markers=[],this._nullCell=D.CellData.fromCharData([0,y.NULL_CELL_CHAR,y.NULL_CELL_WIDTH,y.NULL_CELL_CODE]),this._whitespaceCell=D.CellData.fromCharData([0,y.WHITESPACE_CELL_CHAR,y.WHITESPACE_CELL_WIDTH,y.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new L.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return T.prototype.getNullCell=function(w){return w?(this._nullCell.fg=w.fg,this._nullCell.bg=w.bg,this._nullCell.extended=w.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new O.ExtendedAttrs),this._nullCell},T.prototype.getWhitespaceCell=function(w){return w?(this._whitespaceCell.fg=w.fg,this._whitespaceCell.bg=w.bg,this._whitespaceCell.extended=w.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new O.ExtendedAttrs),this._whitespaceCell},T.prototype.getBlankLine=function(w,x){return new P.BufferLine(this._bufferService.cols,this.getNullCell(w),x)},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 x=this.ybase+this.y-this.ydisp;return x>=0&&x<this._rows},enumerable:!1,configurable:!0}),T.prototype._getCorrectBufferLength=function(w){if(!this._hasScrollback)return w;var x=w+this._optionsService.rawOptions.scrollback;return x>S.MAX_BUFFER_SIZE?S.MAX_BUFFER_SIZE:x},T.prototype.fillViewportRows=function(w){if(0===this.lines.length){void 0===w&&(w=P.DEFAULT_ATTR_DATA);for(var x=this._rows;x--;)this.lines.push(this.getBlankLine(w))}},T.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new L.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},T.prototype.resize=function(w,x){var N=this.getNullCell(P.DEFAULT_ATTR_DATA),R=this._getCorrectBufferLength(x);if(R>this.lines.maxLength&&(this.lines.maxLength=R),this.lines.length>0){if(this._cols<w)for(var W=0;W<this.lines.length;W++)this.lines.get(W).resize(w,N);var $=0;if(this._rows<x)for(var ce=this._rows;ce<x;ce++)this.lines.length<x+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new P.BufferLine(w,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new P.BufferLine(w,N)));else for(ce=this._rows;ce>x;ce--)this.lines.length>x+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(R<this.lines.maxLength){var se=this.lines.length-R;se>0&&(this.lines.trimStart(se),this.ybase=Math.max(this.ybase-se,0),this.ydisp=Math.max(this.ydisp-se,0),this.savedY=Math.max(this.savedY-se,0)),this.lines.maxLength=R}this.x=Math.min(this.x,w-1),this.y=Math.min(this.y,x-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,w-1),this.scrollTop=0}if(this.scrollBottom=x-1,this._isReflowEnabled&&(this._reflow(w,x),this._cols>w))for(W=0;W<this.lines.length;W++)this.lines.get(W).resize(w,N);this._cols=w,this._rows=x},Object.defineProperty(T.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),T.prototype._reflow=function(w,x){this._cols!==w&&(w>this._cols?this._reflowLarger(w,x):this._reflowSmaller(w,x))},T.prototype._reflowLarger=function(w,x){var N=(0,K.reflowLargerGetLinesToRemove)(this.lines,this._cols,w,this.ybase+this.y,this.getNullCell(P.DEFAULT_ATTR_DATA));if(N.length>0){var R=(0,K.reflowLargerCreateNewLayout)(this.lines,N);(0,K.reflowLargerApplyNewLayout)(this.lines,R.layout),this._reflowLargerAdjustViewport(w,x,R.countRemoved)}},T.prototype._reflowLargerAdjustViewport=function(w,x,N){for(var R=this.getNullCell(P.DEFAULT_ATTR_DATA),W=N;W-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<x&&this.lines.push(new P.BufferLine(w,R))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},T.prototype._reflowSmaller=function(w,x){for(var N=this.getNullCell(P.DEFAULT_ATTR_DATA),R=[],W=0,$=this.lines.length-1;$>=0;$--){var ce=this.lines.get($);if(!(!ce||!ce.isWrapped&&ce.getTrimmedLength()<=w)){for(var se=[ce];ce.isWrapped&&$>0;)ce=this.lines.get(--$),se.unshift(ce);var te=this.ybase+this.y;if(!(te>=$&&te<$+se.length)){var oe,ve=se[se.length-1].getTrimmedLength(),Oe=(0,K.reflowSmallerGetNewLineLengths)(se,this._cols,w),st=Oe.length-se.length;oe=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+st):Math.max(0,this.lines.length-this.lines.maxLength+st);for(var xe=[],_e=0;_e<st;_e++){var ke=this.getBlankLine(P.DEFAULT_ATTR_DATA,!0);xe.push(ke)}xe.length>0&&(R.push({start:$+se.length+W,newLines:xe}),W+=xe.length),se.push.apply(se,xe);var Fe=Oe.length-1,ct=Oe[Fe];0===ct&&(ct=Oe[--Fe]);for(var Mt=se.length-st-1,Nt=ve;Mt>=0;){var Xt=Math.min(Nt,ct);if(void 0===se[Fe])break;if(se[Fe].copyCellsFrom(se[Mt],Nt-Xt,ct-Xt,Xt,!0),0==(ct-=Xt)&&(ct=Oe[--Fe]),0==(Nt-=Xt)){Mt--;var en=Math.max(Mt,0);Nt=(0,K.getWrappedLineTrimmedLength)(se,en,this._cols)}}for(_e=0;_e<se.length;_e++)Oe[_e]<w&&se[_e].setCell(Oe[_e],N);for(var qt=st-oe;qt-- >0;)0===this.ybase?this.y<x-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+W)-x&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+st,this.ybase+x-1)}}}if(R.length>0){var Xe=[],jt=[];for(_e=0;_e<this.lines.length;_e++)jt.push(this.lines.get(_e));var it=this.lines.length,vt=it-1,nt=0,Lt=R[nt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+W);var It=0;for(_e=Math.min(this.lines.maxLength-1,it+W-1);_e>=0;_e--)if(Lt&&Lt.start>vt+It){for(var on=Lt.newLines.length-1;on>=0;on--)this.lines.set(_e--,Lt.newLines[on]);_e++,Xe.push({index:vt+1,amount:Lt.newLines.length}),It+=Lt.newLines.length,Lt=R[++nt]}else this.lines.set(_e,jt[vt--]);var _n=0;for(_e=Xe.length-1;_e>=0;_e--)Xe[_e].index+=_n,this.lines.onInsertEmitter.fire(Xe[_e]),_n+=Xe[_e].amount;var An=Math.max(0,it+W-this.lines.maxLength);An>0&&this.lines.onTrimEmitter.fire(An)}},T.prototype.stringIndexToBufferIndex=function(w,x,N){for(void 0===N&&(N=!1);x;){var R=this.lines.get(w);if(!R)return[-1,-1];for(var W=N?R.getTrimmedLength():R.length,$=0;$<W;++$)if(R.get($)[y.CHAR_DATA_WIDTH_INDEX]&&(x-=R.get($)[y.CHAR_DATA_CHAR_INDEX].length||1),x<0)return[w,$];w++}return[w,0]},T.prototype.translateBufferLineToString=function(w,x,N,R){void 0===N&&(N=0);var W=this.lines.get(w);return W?W.translateToString(x,N,R):""},T.prototype.getWrappedRangeForLine=function(w){for(var x=w,N=w;x>0&&this.lines.get(x).isWrapped;)x--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:x,last:N}},T.prototype.setupTabStops=function(w){for(null!=w?this.tabs[w]||(w=this.prevStop(w)):(this.tabs={},w=0);w<this._cols;w+=this._optionsService.rawOptions.tabStopWidth)this.tabs[w]=!0},T.prototype.prevStop=function(w){for(null==w&&(w=this.x);!this.tabs[--w]&&w>0;);return w>=this._cols?this._cols-1:w<0?0:w},T.prototype.nextStop=function(w){for(null==w&&(w=this.x);!this.tabs[++w]&&w<this._cols;);return w>=this._cols?this._cols-1:w<0?0:w},T.prototype.clearMarkers=function(w){if(this._isClearing=!0,void 0!==w)for(var x=0;x<this.markers.length;x++)this.markers[x].line===w&&(this.markers[x].dispose(),this.markers.splice(x--,1));else{for(var N=0,R=this.markers;N<R.length;N++)R[N].dispose();this.markers=[]}this._isClearing=!1},T.prototype.addMarker=function(w){var x=this,N=new F.Marker(w);return this.markers.push(N),N.register(this.lines.onTrim(function(R){N.line-=R,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(R){N.line>=R.index&&(N.line+=R.amount)})),N.register(this.lines.onDelete(function(R){N.line>=R.index&&N.line<R.index+R.amount&&N.dispose(),N.line>R.index&&(N.line-=R.amount)})),N.register(N.onDispose(function(){return x._removeMarker(N)})),N},T.prototype._removeMarker=function(w){this._isClearing||this.markers.splice(this.markers.indexOf(w),1)},T.prototype.iterator=function(w,x,N,R,W){return new I(this,w,x,N,R,W)},T}();S.Buffer=k;var I=function(){function T(w,x,N,R,W,$){void 0===N&&(N=0),void 0===R&&(R=w.lines.length),void 0===W&&(W=0),void 0===$&&($=0),this._buffer=w,this._trimRight=x,this._startIndex=N,this._endIndex=R,this._startOverscan=W,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 w=this._buffer.getWrappedRangeForLine(this._current);w.first<this._startIndex-this._startOverscan&&(w.first=this._startIndex-this._startOverscan),w.last>this._endIndex+this._endOverscan&&(w.last=this._endIndex+this._endOverscan),w.first=Math.max(w.first,0),w.last=Math.min(w.last,this._buffer.lines.length);for(var x="",N=w.first;N<=w.last;++N)x+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=w.last+1,{range:w,content:x}},T}();S.BufferStringIterator=I},8437:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BufferLine=S.DEFAULT_ATTR_DATA=void 0;var L=U(482),P=U(643),D=U(511),y=U(3734);S.DEFAULT_ATTR_DATA=Object.freeze(new y.AttributeData);var K=function(){function F(M,O,k){void 0===k&&(k=!1),this.isWrapped=k,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*M);for(var I=O||D.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),T=0;T<M;++T)this.setCell(T,I);this.length=M}return F.prototype.get=function(M){var O=this._data[3*M+0],k=2097151&O;return[this._data[3*M+1],2097152&O?this._combined[M]:k?(0,L.stringFromCodePoint)(k):"",O>>22,2097152&O?this._combined[M].charCodeAt(this._combined[M].length-1):k]},F.prototype.set=function(M,O){this._data[3*M+1]=O[P.CHAR_DATA_ATTR_INDEX],O[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[M]=O[1],this._data[3*M+0]=2097152|M|O[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*M+0]=O[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|O[P.CHAR_DATA_WIDTH_INDEX]<<22},F.prototype.getWidth=function(M){return this._data[3*M+0]>>22},F.prototype.hasWidth=function(M){return 12582912&this._data[3*M+0]},F.prototype.getFg=function(M){return this._data[3*M+1]},F.prototype.getBg=function(M){return this._data[3*M+2]},F.prototype.hasContent=function(M){return 4194303&this._data[3*M+0]},F.prototype.getCodePoint=function(M){var O=this._data[3*M+0];return 2097152&O?this._combined[M].charCodeAt(this._combined[M].length-1):2097151&O},F.prototype.isCombined=function(M){return 2097152&this._data[3*M+0]},F.prototype.getString=function(M){var O=this._data[3*M+0];return 2097152&O?this._combined[M]:2097151&O?(0,L.stringFromCodePoint)(2097151&O):""},F.prototype.loadCell=function(M,O){var k=3*M;return O.content=this._data[k+0],O.fg=this._data[k+1],O.bg=this._data[k+2],2097152&O.content&&(O.combinedData=this._combined[M]),268435456&O.bg&&(O.extended=this._extendedAttrs[M]),O},F.prototype.setCell=function(M,O){2097152&O.content&&(this._combined[M]=O.combinedData),268435456&O.bg&&(this._extendedAttrs[M]=O.extended),this._data[3*M+0]=O.content,this._data[3*M+1]=O.fg,this._data[3*M+2]=O.bg},F.prototype.setCellFromCodePoint=function(M,O,k,I,T,w){268435456&T&&(this._extendedAttrs[M]=w),this._data[3*M+0]=O|k<<22,this._data[3*M+1]=I,this._data[3*M+2]=T},F.prototype.addCodepointToCell=function(M,O){var k=this._data[3*M+0];2097152&k?this._combined[M]+=(0,L.stringFromCodePoint)(O):(2097151&k?(this._combined[M]=(0,L.stringFromCodePoint)(2097151&k)+(0,L.stringFromCodePoint)(O),k&=-2097152,k|=2097152):k=O|1<<22,this._data[3*M+0]=k)},F.prototype.insertCells=function(M,O,k,I){if((M%=this.length)&&2===this.getWidth(M-1)&&this.setCellFromCodePoint(M-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),O<this.length-M){for(var T=new D.CellData,w=this.length-M-O-1;w>=0;--w)this.setCell(M+O+w,this.loadCell(M+w,T));for(w=0;w<O;++w)this.setCell(M+w,k)}else for(w=M;w<this.length;++w)this.setCell(w,k);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs)},F.prototype.deleteCells=function(M,O,k,I){if(M%=this.length,O<this.length-M){for(var T=new D.CellData,w=0;w<this.length-M-O;++w)this.setCell(M+w,this.loadCell(M+O+w,T));for(w=this.length-O;w<this.length;++w)this.setCell(w,k)}else for(w=M;w<this.length;++w)this.setCell(w,k);M&&2===this.getWidth(M-1)&&this.setCellFromCodePoint(M-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),0!==this.getWidth(M)||this.hasContent(M)||this.setCellFromCodePoint(M,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs)},F.prototype.replaceCells=function(M,O,k,I){for(M&&2===this.getWidth(M-1)&&this.setCellFromCodePoint(M-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),O<this.length&&2===this.getWidth(O-1)&&this.setCellFromCodePoint(O,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs);M<O&&M<this.length;)this.setCell(M++,k)},F.prototype.resize=function(M,O){if(M!==this.length){if(M>this.length){var k=new Uint32Array(3*M);this.length&&(3*M<this._data.length?k.set(this._data.subarray(0,3*M)):k.set(this._data)),this._data=k;for(var I=this.length;I<M;++I)this.setCell(I,O)}else if(M){(k=new Uint32Array(3*M)).set(this._data.subarray(0,3*M)),this._data=k;var T=Object.keys(this._combined);for(I=0;I<T.length;I++){var w=parseInt(T[I],10);w>=M&&delete this._combined[w]}}else this._data=new Uint32Array(0),this._combined={};this.length=M}},F.prototype.fill=function(M){this._combined={},this._extendedAttrs={};for(var O=0;O<this.length;++O)this.setCell(O,M)},F.prototype.copyFrom=function(M){for(var O in this.length!==M.length?this._data=new Uint32Array(M._data):this._data.set(M._data),this.length=M.length,this._combined={},M._combined)this._combined[O]=M._combined[O];for(var O in this._extendedAttrs={},M._extendedAttrs)this._extendedAttrs[O]=M._extendedAttrs[O];this.isWrapped=M.isWrapped},F.prototype.clone=function(){var M=new F(0);for(var O in M._data=new Uint32Array(this._data),M.length=this.length,this._combined)M._combined[O]=this._combined[O];for(var O in this._extendedAttrs)M._extendedAttrs[O]=this._extendedAttrs[O];return M.isWrapped=this.isWrapped,M},F.prototype.getTrimmedLength=function(){for(var M=this.length-1;M>=0;--M)if(4194303&this._data[3*M+0])return M+(this._data[3*M+0]>>22);return 0},F.prototype.copyCellsFrom=function(M,O,k,I,T){var w=M._data;if(T)for(var x=I-1;x>=0;x--)for(var N=0;N<3;N++)this._data[3*(k+x)+N]=w[3*(O+x)+N];else for(x=0;x<I;x++)for(N=0;N<3;N++)this._data[3*(k+x)+N]=w[3*(O+x)+N];var R=Object.keys(M._combined);for(N=0;N<R.length;N++){var W=parseInt(R[N],10);W>=O&&(this._combined[W-O+k]=M._combined[W])}},F.prototype.translateToString=function(M,O,k){void 0===M&&(M=!1),void 0===O&&(O=0),void 0===k&&(k=this.length),M&&(k=Math.min(k,this.getTrimmedLength()));for(var I="";O<k;){var T=this._data[3*O+0],w=2097151&T;I+=2097152&T?this._combined[O]:w?(0,L.stringFromCodePoint)(w):P.WHITESPACE_CELL_CHAR,O+=T>>22||1}return I},F}();S.BufferLine=K},4841:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.getRangeLength=void 0,S.getRangeLength=function(U,L){if(U.start.y>U.end.y)throw new Error("Buffer range end ("+U.end.x+", "+U.end.y+") cannot be before start ("+U.start.x+", "+U.start.y+")");return L*(U.end.y-U.start.y)+(U.end.x-U.start.x+1)}},4634:function(Y,S){function U(L,P,D){if(P===L.length-1)return L[P].getTrimmedLength();var y=!L[P].hasContent(D-1)&&1===L[P].getWidth(D-1),K=2===L[P+1].getWidth(0);return y&&K?D-1:D}Object.defineProperty(S,"__esModule",{value:!0}),S.getWrappedLineTrimmedLength=S.reflowSmallerGetNewLineLengths=S.reflowLargerApplyNewLayout=S.reflowLargerCreateNewLayout=S.reflowLargerGetLinesToRemove=void 0,S.reflowLargerGetLinesToRemove=function(L,P,D,y,K){for(var F=[],M=0;M<L.length-1;M++){var O=M,k=L.get(++O);if(k.isWrapped){for(var I=[L.get(M)];O<L.length&&k.isWrapped;)I.push(k),k=L.get(++O);if(y>=M&&y<O)M+=I.length-1;else{for(var T=0,w=U(I,T,P),x=1,N=0;x<I.length;){var R=U(I,x,P),W=R-N,$=D-w,ce=Math.min(W,$);I[T].copyCellsFrom(I[x],N,w,ce,!1),(w+=ce)===D&&(T++,w=0),(N+=ce)===R&&(x++,N=0),0===w&&0!==T&&2===I[T-1].getWidth(D-1)&&(I[T].copyCellsFrom(I[T-1],D-1,w++,1,!1),I[T-1].setCell(D-1,K))}I[T].replaceCells(w,D,K);for(var se=0,te=I.length-1;te>0&&(te>T||0===I[te].getTrimmedLength());te--)se++;se>0&&(F.push(M+I.length-se),F.push(se)),M+=I.length-1}}}return F},S.reflowLargerCreateNewLayout=function(L,P){for(var D=[],y=0,K=P[y],F=0,M=0;M<L.length;M++)if(K===M){var O=P[++y];L.onDeleteEmitter.fire({index:M-F,amount:O}),M+=O-1,F+=O,K=P[++y]}else D.push(M);return{layout:D,countRemoved:F}},S.reflowLargerApplyNewLayout=function(L,P){for(var D=[],y=0;y<P.length;y++)D.push(L.get(P[y]));for(y=0;y<D.length;y++)L.set(y,D[y]);L.length=P.length},S.reflowSmallerGetNewLineLengths=function(L,P,D){for(var y=[],K=L.map(function(w,x){return U(L,x,P)}).reduce(function(w,x){return w+x}),F=0,M=0,O=0;O<K;){if(K-O<D){y.push(K-O);break}F+=D;var k=U(L,M,P);F>k&&(F-=k,M++);var I=2===L[M].getWidth(F-1);I&&F--;var T=I?D-1:D;y.push(T),O+=T}return y},S.getWrappedLineTrimmedLength=U},5295:function(Y,S,U){var L,P=this&&this.__extends||(L=function(M,O){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,I){k.__proto__=I}||function(k,I){for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T])})(M,O)},function(F,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function O(){this.constructor=F}L(F,M),F.prototype=null===M?Object.create(M):(O.prototype=M.prototype,new O)});Object.defineProperty(S,"__esModule",{value:!0}),S.BufferSet=void 0;var D=U(9092),y=U(8460),K=function(F){function M(O,k){var I=F.call(this)||this;return I._optionsService=O,I._bufferService=k,I._onBufferActivate=I.register(new y.EventEmitter),I.reset(),I}return P(M,F),Object.defineProperty(M.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),M.prototype.reset=function(){this._normal=new D.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new D.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(M.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),M.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}))},M.prototype.activateAltBuffer=function(O){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(O),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}))},M.prototype.resize=function(O,k){this._normal.resize(O,k),this._alt.resize(O,k)},M.prototype.setupTabStops=function(O){this._normal.setupTabStops(O),this._alt.setupTabStops(O)},M}(U(844).Disposable);S.BufferSet=K},511:function(Y,S,U){var L,P=this&&this.__extends||(L=function(O,k){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,T){I.__proto__=T}||function(I,T){for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(I[w]=T[w])})(O,k)},function(M,O){if("function"!=typeof O&&null!==O)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function k(){this.constructor=M}L(M,O),M.prototype=null===O?Object.create(O):(k.prototype=O.prototype,new k)});Object.defineProperty(S,"__esModule",{value:!0}),S.CellData=void 0;var D=U(482),y=U(643),K=U(3734),F=function(M){function O(){var k=null!==M&&M.apply(this,arguments)||this;return k.content=0,k.fg=0,k.bg=0,k.extended=new K.ExtendedAttrs,k.combinedData="",k}return P(O,M),O.fromCharData=function(k){var I=new O;return I.setFromCharData(k),I},O.prototype.isCombined=function(){return 2097152&this.content},O.prototype.getWidth=function(){return this.content>>22},O.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,D.stringFromCodePoint)(2097151&this.content):""},O.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},O.prototype.setFromCharData=function(k){this.fg=k[y.CHAR_DATA_ATTR_INDEX],this.bg=0;var I=!1;if(k[y.CHAR_DATA_CHAR_INDEX].length>2)I=!0;else if(2===k[y.CHAR_DATA_CHAR_INDEX].length){var T=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=T&&T<=56319){var w=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=w&&w<=57343?this.content=1024*(T-55296)+w-56320+65536|k[y.CHAR_DATA_WIDTH_INDEX]<<22:I=!0}else I=!0}else this.content=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[y.CHAR_DATA_WIDTH_INDEX]<<22;I&&(this.combinedData=k[y.CHAR_DATA_CHAR_INDEX],this.content=2097152|k[y.CHAR_DATA_WIDTH_INDEX]<<22)},O.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},O}(K.AttributeData);S.CellData=F},643:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.WHITESPACE_CELL_CODE=S.WHITESPACE_CELL_WIDTH=S.WHITESPACE_CELL_CHAR=S.NULL_CELL_CODE=S.NULL_CELL_WIDTH=S.NULL_CELL_CHAR=S.CHAR_DATA_CODE_INDEX=S.CHAR_DATA_WIDTH_INDEX=S.CHAR_DATA_CHAR_INDEX=S.CHAR_DATA_ATTR_INDEX=S.DEFAULT_ATTR=S.DEFAULT_COLOR=void 0,S.DEFAULT_COLOR=256,S.DEFAULT_ATTR=256|S.DEFAULT_COLOR<<9,S.CHAR_DATA_ATTR_INDEX=0,S.CHAR_DATA_CHAR_INDEX=1,S.CHAR_DATA_WIDTH_INDEX=2,S.CHAR_DATA_CODE_INDEX=3,S.NULL_CELL_CHAR="",S.NULL_CELL_WIDTH=1,S.NULL_CELL_CODE=0,S.WHITESPACE_CELL_CHAR=" ",S.WHITESPACE_CELL_WIDTH=1,S.WHITESPACE_CELL_CODE=32},4863:function(Y,S,U){var L,P=this&&this.__extends||(L=function(F,M){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,k){O.__proto__=k}||function(O,k){for(var I in k)Object.prototype.hasOwnProperty.call(k,I)&&(O[I]=k[I])})(F,M)},function(K,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function M(){this.constructor=K}L(K,F),K.prototype=null===F?Object.create(F):(M.prototype=F.prototype,new M)});Object.defineProperty(S,"__esModule",{value:!0}),S.Marker=void 0;var D=U(8460),y=function(K){function F(M){var O=K.call(this)||this;return O.line=M,O._id=F._nextId++,O.isDisposed=!1,O._onDispose=new D.EventEmitter,O}return P(F,K),Object.defineProperty(F.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),K.prototype.dispose.call(this))},F._nextId=1,F}(U(844).Disposable);S.Marker=y},7116:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.DEFAULT_CHARSET=S.CHARSETS=void 0,S.CHARSETS={},S.DEFAULT_CHARSET=S.CHARSETS.B,S.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"},S.CHARSETS.A={"#":"\xa3"},S.CHARSETS.B=void 0,S.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},S.CHARSETS.C=S.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},S.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},S.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},S.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},S.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},S.CHARSETS.E=S.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},S.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},S.CHARSETS.H=S.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},S.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Y,S){var U,L;Object.defineProperty(S,"__esModule",{value:!0}),S.C1=S.C0=void 0,(L=S.C0||(S.C0={})).NUL="\0",L.SOH="\x01",L.STX="\x02",L.ETX="\x03",L.EOT="\x04",L.ENQ="\x05",L.ACK="\x06",L.BEL="\x07",L.BS="\b",L.HT="\t",L.LF="\n",L.VT="\v",L.FF="\f",L.CR="\r",L.SO="\x0e",L.SI="\x0f",L.DLE="\x10",L.DC1="\x11",L.DC2="\x12",L.DC3="\x13",L.DC4="\x14",L.NAK="\x15",L.SYN="\x16",L.ETB="\x17",L.CAN="\x18",L.EM="\x19",L.SUB="\x1a",L.ESC="\x1b",L.FS="\x1c",L.GS="\x1d",L.RS="\x1e",L.US="\x1f",L.SP=" ",L.DEL="\x7f",(U=S.C1||(S.C1={})).PAD="\x80",U.HOP="\x81",U.BPH="\x82",U.NBH="\x83",U.IND="\x84",U.NEL="\x85",U.SSA="\x86",U.ESA="\x87",U.HTS="\x88",U.HTJ="\x89",U.VTS="\x8a",U.PLD="\x8b",U.PLU="\x8c",U.RI="\x8d",U.SS2="\x8e",U.SS3="\x8f",U.DCS="\x90",U.PU1="\x91",U.PU2="\x92",U.STS="\x93",U.CCH="\x94",U.MW="\x95",U.SPA="\x96",U.EPA="\x97",U.SOS="\x98",U.SGCI="\x99",U.SCI="\x9a",U.CSI="\x9b",U.ST="\x9c",U.OSC="\x9d",U.PM="\x9e",U.APC="\x9f"},7399:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.evaluateKeyboardEvent=void 0;var L=U(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:["'",'"']};S.evaluateKeyboardEvent=function(D,y,K,F){var M={type:0,cancel:!1,key:void 0},O=(D.shiftKey?1:0)|(D.altKey?2:0)|(D.ctrlKey?4:0)|(D.metaKey?8:0);switch(D.keyCode){case 0:"UIKeyInputUpArrow"===D.key?M.key=y?L.C0.ESC+"OA":L.C0.ESC+"[A":"UIKeyInputLeftArrow"===D.key?M.key=y?L.C0.ESC+"OD":L.C0.ESC+"[D":"UIKeyInputRightArrow"===D.key?M.key=y?L.C0.ESC+"OC":L.C0.ESC+"[C":"UIKeyInputDownArrow"===D.key&&(M.key=y?L.C0.ESC+"OB":L.C0.ESC+"[B");break;case 8:if(D.shiftKey){M.key=L.C0.BS;break}if(D.altKey){M.key=L.C0.ESC+L.C0.DEL;break}M.key=L.C0.DEL;break;case 9:if(D.shiftKey){M.key=L.C0.ESC+"[Z";break}M.key=L.C0.HT,M.cancel=!0;break;case 13:M.key=D.altKey?L.C0.ESC+L.C0.CR:L.C0.CR,M.cancel=!0;break;case 27:M.key=L.C0.ESC,D.altKey&&(M.key=L.C0.ESC+L.C0.ESC),M.cancel=!0;break;case 37:if(D.metaKey)break;O?(M.key=L.C0.ESC+"[1;"+(O+1)+"D",M.key===L.C0.ESC+"[1;3D"&&(M.key=L.C0.ESC+(K?"b":"[1;5D"))):M.key=y?L.C0.ESC+"OD":L.C0.ESC+"[D";break;case 39:if(D.metaKey)break;O?(M.key=L.C0.ESC+"[1;"+(O+1)+"C",M.key===L.C0.ESC+"[1;3C"&&(M.key=L.C0.ESC+(K?"f":"[1;5C"))):M.key=y?L.C0.ESC+"OC":L.C0.ESC+"[C";break;case 38:if(D.metaKey)break;O?(M.key=L.C0.ESC+"[1;"+(O+1)+"A",K||M.key!==L.C0.ESC+"[1;3A"||(M.key=L.C0.ESC+"[1;5A")):M.key=y?L.C0.ESC+"OA":L.C0.ESC+"[A";break;case 40:if(D.metaKey)break;O?(M.key=L.C0.ESC+"[1;"+(O+1)+"B",K||M.key!==L.C0.ESC+"[1;3B"||(M.key=L.C0.ESC+"[1;5B")):M.key=y?L.C0.ESC+"OB":L.C0.ESC+"[B";break;case 45:D.shiftKey||D.ctrlKey||(M.key=L.C0.ESC+"[2~");break;case 46:M.key=O?L.C0.ESC+"[3;"+(O+1)+"~":L.C0.ESC+"[3~";break;case 36:M.key=O?L.C0.ESC+"[1;"+(O+1)+"H":y?L.C0.ESC+"OH":L.C0.ESC+"[H";break;case 35:M.key=O?L.C0.ESC+"[1;"+(O+1)+"F":y?L.C0.ESC+"OF":L.C0.ESC+"[F";break;case 33:D.shiftKey?M.type=2:M.key=L.C0.ESC+"[5~";break;case 34:D.shiftKey?M.type=3:M.key=L.C0.ESC+"[6~";break;case 112:M.key=O?L.C0.ESC+"[1;"+(O+1)+"P":L.C0.ESC+"OP";break;case 113:M.key=O?L.C0.ESC+"[1;"+(O+1)+"Q":L.C0.ESC+"OQ";break;case 114:M.key=O?L.C0.ESC+"[1;"+(O+1)+"R":L.C0.ESC+"OR";break;case 115:M.key=O?L.C0.ESC+"[1;"+(O+1)+"S":L.C0.ESC+"OS";break;case 116:M.key=O?L.C0.ESC+"[15;"+(O+1)+"~":L.C0.ESC+"[15~";break;case 117:M.key=O?L.C0.ESC+"[17;"+(O+1)+"~":L.C0.ESC+"[17~";break;case 118:M.key=O?L.C0.ESC+"[18;"+(O+1)+"~":L.C0.ESC+"[18~";break;case 119:M.key=O?L.C0.ESC+"[19;"+(O+1)+"~":L.C0.ESC+"[19~";break;case 120:M.key=O?L.C0.ESC+"[20;"+(O+1)+"~":L.C0.ESC+"[20~";break;case 121:M.key=O?L.C0.ESC+"[21;"+(O+1)+"~":L.C0.ESC+"[21~";break;case 122:M.key=O?L.C0.ESC+"[23;"+(O+1)+"~":L.C0.ESC+"[23~";break;case 123:M.key=O?L.C0.ESC+"[24;"+(O+1)+"~":L.C0.ESC+"[24~";break;default:if(!D.ctrlKey||D.shiftKey||D.altKey||D.metaKey)if(K&&!F||!D.altKey||D.metaKey)!K||D.altKey||D.ctrlKey||D.shiftKey||!D.metaKey?D.key&&!D.ctrlKey&&!D.altKey&&!D.metaKey&&D.keyCode>=48&&1===D.key.length?M.key=D.key:D.key&&D.ctrlKey&&"_"===D.key&&(M.key=L.C0.US):65===D.keyCode&&(M.type=1);else{var k=P[D.keyCode],I=null==k?void 0:k[D.shiftKey?1:0];if(I)M.key=L.C0.ESC+I;else if(D.keyCode>=65&&D.keyCode<=90){var T=D.ctrlKey?D.keyCode-64:D.keyCode+32;M.key=L.C0.ESC+String.fromCharCode(T)}}else D.keyCode>=65&&D.keyCode<=90?M.key=String.fromCharCode(D.keyCode-64):32===D.keyCode?M.key=L.C0.NUL:D.keyCode>=51&&D.keyCode<=55?M.key=String.fromCharCode(D.keyCode-51+27):56===D.keyCode?M.key=L.C0.DEL:219===D.keyCode?M.key=L.C0.ESC:220===D.keyCode?M.key=L.C0.FS:221===D.keyCode&&(M.key=L.C0.GS)}return M}},482:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.Utf8ToUtf32=S.StringToUtf32=S.utf32ToString=S.stringFromCodePoint=void 0,S.stringFromCodePoint=function(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},S.utf32ToString=function(P,D,y){void 0===D&&(D=0),void 0===y&&(y=P.length);for(var K="",F=D;F<y;++F){var M=P[F];M>65535?(M-=65536,K+=String.fromCharCode(55296+(M>>10))+String.fromCharCode(M%1024+56320)):K+=String.fromCharCode(M)}return K};var U=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(D,y){var K=D.length;if(!K)return 0;var F=0,M=0;this._interim&&(56320<=(I=D.charCodeAt(M++))&&I<=57343?y[F++]=1024*(this._interim-55296)+I-56320+65536:(y[F++]=this._interim,y[F++]=I),this._interim=0);for(var O=M;O<K;++O){var k=D.charCodeAt(O);if(55296<=k&&k<=56319){if(++O>=K)return this._interim=k,F;var I;56320<=(I=D.charCodeAt(O))&&I<=57343?y[F++]=1024*(k-55296)+I-56320+65536:(y[F++]=k,y[F++]=I)}else 65279!==k&&(y[F++]=k)}return F},P}();S.StringToUtf32=U;var L=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(D,y){var K=D.length;if(!K)return 0;var F,M,O,k,I=0,T=0,w=0;if(this.interim[0]){var x=!1,N=this.interim[0];N&=192==(224&N)?31:224==(240&N)?15:7;for(var R=0,W=void 0;(W=63&this.interim[++R])&&R<4;)N<<=6,N|=W;for(var $=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,ce=$-R;w<ce;){if(w>=K)return 0;if(128!=(192&(W=D[w++]))){w--,x=!0;break}this.interim[R++]=W,N<<=6,N|=63&W}x||(2===$?N<128?w--:y[I++]=N:3===$?N<2048||N>=55296&&N<=57343||65279===N||(y[I++]=N):N<65536||N>1114111||(y[I++]=N)),this.interim.fill(0)}for(var se=K-4,te=w;te<K;){for(;!(!(te<se)||128&(F=D[te])||128&(M=D[te+1])||128&(O=D[te+2])||128&(k=D[te+3]));)y[I++]=F,y[I++]=M,y[I++]=O,y[I++]=k,te+=4;if((F=D[te++])<128)y[I++]=F;else if(192==(224&F)){if(te>=K)return this.interim[0]=F,I;if(128!=(192&(M=D[te++]))){te--;continue}if((T=(31&F)<<6|63&M)<128){te--;continue}y[I++]=T}else if(224==(240&F)){if(te>=K)return this.interim[0]=F,I;if(128!=(192&(M=D[te++]))){te--;continue}if(te>=K)return this.interim[0]=F,this.interim[1]=M,I;if(128!=(192&(O=D[te++]))){te--;continue}if((T=(15&F)<<12|(63&M)<<6|63&O)<2048||T>=55296&&T<=57343||65279===T)continue;y[I++]=T}else if(240==(248&F)){if(te>=K)return this.interim[0]=F,I;if(128!=(192&(M=D[te++]))){te--;continue}if(te>=K)return this.interim[0]=F,this.interim[1]=M,I;if(128!=(192&(O=D[te++]))){te--;continue}if(te>=K)return this.interim[0]=F,this.interim[1]=M,this.interim[2]=O,I;if(128!=(192&(k=D[te++]))){te--;continue}if((T=(7&F)<<18|(63&M)<<12|(63&O)<<6|63&k)<65536||T>1114111)continue;y[I++]=T}}return I},P}();S.Utf8ToUtf32=L},225:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeV6=void 0;var L,P=U(8273),D=[[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]],y=[[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]],K=function(){function F(){if(this.version="6",!L){L=new Uint8Array(65536),(0,P.fill)(L,1),L[0]=0,(0,P.fill)(L,0,1,32),(0,P.fill)(L,0,127,160),(0,P.fill)(L,2,4352,4448),L[9001]=2,L[9002]=2,(0,P.fill)(L,2,11904,42192),L[12351]=1,(0,P.fill)(L,2,44032,55204),(0,P.fill)(L,2,63744,64256),(0,P.fill)(L,2,65040,65050),(0,P.fill)(L,2,65072,65136),(0,P.fill)(L,2,65280,65377),(0,P.fill)(L,2,65504,65511);for(var M=0;M<D.length;++M)(0,P.fill)(L,0,D[M][0],D[M][1]+1)}}return F.prototype.wcwidth=function(M){return M<32?0:M<127?1:M<65536?L[M]:function(O,k){var I,T=0,w=k.length-1;if(O<k[0][0]||O>k[w][1])return!1;for(;w>=T;)if(O>k[I=T+w>>1][1])T=I+1;else{if(!(O<k[I][0]))return!0;w=I-1}return!1}(M,y)?0:M>=131072&&M<=196605||M>=196608&&M<=262141?2:1},F}();S.UnicodeV6=K},5981:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.WriteBuffer=void 0;var U="undefined"==typeof queueMicrotask?function(P){Promise.resolve().then(P)}:queueMicrotask,L=function(){function P(D){this._action=D,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return P.prototype.writeSync=function(D,y){if(void 0!==y&&this._syncCalls>y)this._syncCalls=0;else if(this._pendingData+=D.length,this._writeBuffer.push(D),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var K;for(this._isSyncWriting=!0;K=this._writeBuffer.shift();){this._action(K);var F=this._callbacks.shift();F&&F()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},P.prototype.write=function(D,y){var K=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 K._innerWrite()})),this._pendingData+=D.length,this._writeBuffer.push(D),this._callbacks.push(y)},P.prototype._innerWrite=function(D,y){var K=this;void 0===D&&(D=0),void 0===y&&(y=!0);for(var F=D||Date.now();this._writeBuffer.length>this._bufferOffset;){var M=this._writeBuffer[this._bufferOffset],O=this._action(M,y);if(O)return void O.catch(function(I){return U(function(){throw I}),Promise.resolve(!1)}).then(function(I){return Date.now()-F>=12?setTimeout(function(){return K._innerWrite(0,I)}):K._innerWrite(F,I)});var k=this._callbacks[this._bufferOffset];if(k&&k(),this._bufferOffset++,this._pendingData-=M.length,Date.now()-F>=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 K._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},P}();S.WriteBuffer=L},5941:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.toRgbString=S.parseColor=void 0;var U=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\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})$/,L=/^[\da-f]+$/;function P(D,y){var K=D.toString(16),F=K.length<2?"0"+K:K;switch(y){case 4:return K[0];case 8:return F;case 12:return(F+F).slice(0,3);default:return F+F}}S.parseColor=function(D){if(D){var y=D.toLowerCase();if(0===y.indexOf("rgb:")){y=y.slice(4);var K=U.exec(y);if(K){var F=K[1]?15:K[4]?255:K[7]?4095:65535;return[Math.round(parseInt(K[1]||K[4]||K[7]||K[10],16)/F*255),Math.round(parseInt(K[2]||K[5]||K[8]||K[11],16)/F*255),Math.round(parseInt(K[3]||K[6]||K[9]||K[12],16)/F*255)]}}else if(0===y.indexOf("#")&&(y=y.slice(1),L.exec(y)&&[3,6,9,12].includes(y.length))){for(var M=y.length/3,O=[0,0,0],k=0;k<3;++k){var I=parseInt(y.slice(M*k,M*k+M),16);O[k]=1===M?I<<4:2===M?I:3===M?I>>4:I>>8}return O}}},S.toRgbString=function(D,y){void 0===y&&(y=16);var K=D[0],F=D[1],M=D[2];return"rgb:"+P(K,y)+"/"+P(F,y)+"/"+P(M,y)}},5770:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.PAYLOAD_LIMIT=void 0,S.PAYLOAD_LIMIT=1e7},6351:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.DcsHandler=S.DcsParser=void 0;var L=U(482),P=U(8742),D=U(5770),y=[],K=function(){function O(){this._handlers=Object.create(null),this._active=y,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return O.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=y},O.prototype.registerHandler=function(k,I){void 0===this._handlers[k]&&(this._handlers[k]=[]);var T=this._handlers[k];return T.push(I),{dispose:function(){var x=T.indexOf(I);-1!==x&&T.splice(x,1)}}},O.prototype.clearHandler=function(k){this._handlers[k]&&delete this._handlers[k]},O.prototype.setHandlerFallback=function(k){this._handlerFb=k},O.prototype.reset=function(){if(this._active.length)for(var k=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;k>=0;--k)this._active[k].unhook(!1);this._stack.paused=!1,this._active=y,this._ident=0},O.prototype.hook=function(k,I){if(this.reset(),this._ident=k,this._active=this._handlers[k]||y,this._active.length)for(var T=this._active.length-1;T>=0;T--)this._active[T].hook(I);else this._handlerFb(this._ident,"HOOK",I)},O.prototype.put=function(k,I,T){if(this._active.length)for(var w=this._active.length-1;w>=0;w--)this._active[w].put(k,I,T);else this._handlerFb(this._ident,"PUT",(0,L.utf32ToString)(k,I,T))},O.prototype.unhook=function(k,I){if(void 0===I&&(I=!0),this._active.length){var T=!1,w=this._active.length-1,x=!1;if(this._stack.paused&&(w=this._stack.loopPosition-1,T=I,x=this._stack.fallThrough,this._stack.paused=!1),!x&&!1===T){for(;w>=0&&!0!==(T=this._active[w].unhook(k));w--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=w,this._stack.fallThrough=!1,T;w--}for(;w>=0;w--)if((T=this._active[w].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=w,this._stack.fallThrough=!0,T}else this._handlerFb(this._ident,"UNHOOK",k);this._active=y,this._ident=0},O}();S.DcsParser=K;var F=new P.Params;F.addParam(0);var M=function(){function O(k){this._handler=k,this._data="",this._params=F,this._hitLimit=!1}return O.prototype.hook=function(k){this._params=k.length>1||k.params[0]?k.clone():F,this._data="",this._hitLimit=!1},O.prototype.put=function(k,I,T){this._hitLimit||(this._data+=(0,L.utf32ToString)(k,I,T),this._data.length>D.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},O.prototype.unhook=function(k){var I=this,T=!1;if(this._hitLimit)T=!1;else if(k&&(T=this._handler(this._data,this._params))instanceof Promise)return T.then(function(w){return I._params=F,I._data="",I._hitLimit=!1,w});return this._params=F,this._data="",this._hitLimit=!1,T},O}();S.DcsHandler=M},2015:function(Y,S,U){var L,P=this&&this.__extends||(L=function(w,x){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,x)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function x(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(x.prototype=w.prototype,new x)});Object.defineProperty(S,"__esModule",{value:!0}),S.EscapeSequenceParser=S.VT500_TRANSITION_TABLE=S.TransitionTable=void 0;var D=U(844),y=U(8273),K=U(8742),F=U(6242),M=U(6351),O=function(){function T(w){this.table=new Uint8Array(w)}return T.prototype.setDefault=function(w,x){(0,y.fill)(this.table,w<<4|x)},T.prototype.add=function(w,x,N,R){this.table[x<<8|w]=N<<4|R},T.prototype.addMany=function(w,x,N,R){for(var W=0;W<w.length;W++)this.table[x<<8|w[W]]=N<<4|R},T}();S.TransitionTable=O;var k=160;S.VT500_TRANSITION_TABLE=function(){var T=new O(4095),w=Array.apply(null,Array(256)).map(function(ce,se){return se}),x=function(se,te){return w.slice(se,te)},N=x(32,127),R=x(0,24);R.push(25),R.push.apply(R,x(28,32));var W,$=x(0,14);for(W in T.setDefault(1,0),T.addMany(N,0,2,0),$)T.addMany([24,26,153,154],W,3,0),T.addMany(x(128,144),W,3,0),T.addMany(x(144,152),W,3,0),T.add(156,W,0,0),T.add(27,W,11,1),T.add(157,W,4,8),T.addMany([152,158,159],W,0,7),T.add(155,W,11,3),T.add(144,W,11,9);return T.addMany(R,0,3,0),T.addMany(R,1,3,1),T.add(127,1,0,1),T.addMany(R,8,0,8),T.addMany(R,3,3,3),T.add(127,3,0,3),T.addMany(R,4,3,4),T.add(127,4,0,4),T.addMany(R,6,3,6),T.addMany(R,5,3,5),T.add(127,5,0,5),T.addMany(R,2,3,2),T.add(127,2,0,2),T.add(93,1,4,8),T.addMany(N,8,5,8),T.add(127,8,5,8),T.addMany([156,27,24,26,7],8,6,0),T.addMany(x(28,32),8,0,8),T.addMany([88,94,95],1,0,7),T.addMany(N,7,0,7),T.addMany(R,7,0,7),T.add(156,7,0,0),T.add(127,7,0,7),T.add(91,1,11,3),T.addMany(x(64,127),3,7,0),T.addMany(x(48,60),3,8,4),T.addMany([60,61,62,63],3,9,4),T.addMany(x(48,60),4,8,4),T.addMany(x(64,127),4,7,0),T.addMany([60,61,62,63],4,0,6),T.addMany(x(32,64),6,0,6),T.add(127,6,0,6),T.addMany(x(64,127),6,0,0),T.addMany(x(32,48),3,9,5),T.addMany(x(32,48),5,9,5),T.addMany(x(48,64),5,0,6),T.addMany(x(64,127),5,7,0),T.addMany(x(32,48),4,9,5),T.addMany(x(32,48),1,9,2),T.addMany(x(32,48),2,9,2),T.addMany(x(48,127),2,10,0),T.addMany(x(48,80),1,10,0),T.addMany(x(81,88),1,10,0),T.addMany([89,90,92],1,10,0),T.addMany(x(96,127),1,10,0),T.add(80,1,11,9),T.addMany(R,9,0,9),T.add(127,9,0,9),T.addMany(x(28,32),9,0,9),T.addMany(x(32,48),9,9,12),T.addMany(x(48,60),9,8,10),T.addMany([60,61,62,63],9,9,10),T.addMany(R,11,0,11),T.addMany(x(32,128),11,0,11),T.addMany(x(28,32),11,0,11),T.addMany(R,10,0,10),T.add(127,10,0,10),T.addMany(x(28,32),10,0,10),T.addMany(x(48,60),10,8,10),T.addMany([60,61,62,63],10,0,11),T.addMany(x(32,48),10,9,12),T.addMany(R,12,0,12),T.add(127,12,0,12),T.addMany(x(28,32),12,0,12),T.addMany(x(32,48),12,9,12),T.addMany(x(48,64),12,0,11),T.addMany(x(64,127),12,12,13),T.addMany(x(64,127),10,12,13),T.addMany(x(64,127),9,12,13),T.addMany(R,13,13,13),T.addMany(N,13,13,13),T.add(127,13,0,13),T.addMany([27,156,24,26],13,14,0),T.add(k,0,2,0),T.add(k,8,5,8),T.add(k,6,0,6),T.add(k,11,0,11),T.add(k,13,13,13),T}();var I=function(T){function w(x){void 0===x&&(x=S.VT500_TRANSITION_TABLE);var N=T.call(this)||this;return N._transitions=x,N._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},N.initialState=0,N.currentState=N.initialState,N._params=new K.Params,N._params.addParam(0),N._collect=0,N.precedingCodepoint=0,N._printHandlerFb=function(R,W,$){},N._executeHandlerFb=function(R){},N._csiHandlerFb=function(R,W){},N._escHandlerFb=function(R){},N._errorHandlerFb=function(R){return R},N._printHandler=N._printHandlerFb,N._executeHandlers=Object.create(null),N._csiHandlers=Object.create(null),N._escHandlers=Object.create(null),N._oscParser=new F.OscParser,N._dcsParser=new M.DcsParser,N._errorHandler=N._errorHandlerFb,N.registerEscHandler({final:"\\"},function(){return!0}),N}return P(w,T),w.prototype._identifier=function(x,N){void 0===N&&(N=[64,126]);var R=0;if(x.prefix){if(x.prefix.length>1)throw new Error("only one byte as prefix supported");if((R=x.prefix.charCodeAt(0))&&60>R||R>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(x.intermediates){if(x.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var W=0;W<x.intermediates.length;++W){var $=x.intermediates.charCodeAt(W);if(32>$||$>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");R<<=8,R|=$}}if(1!==x.final.length)throw new Error("final must be a single byte");var ce=x.final.charCodeAt(0);if(N[0]>ce||ce>N[1])throw new Error("final must be in range "+N[0]+" .. "+N[1]);return(R<<=8)|ce},w.prototype.identToString=function(x){for(var N=[];x;)N.push(String.fromCharCode(255&x)),x>>=8;return N.reverse().join("")},w.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},w.prototype.setPrintHandler=function(x){this._printHandler=x},w.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},w.prototype.registerEscHandler=function(x,N){var R=this._identifier(x,[48,126]);void 0===this._escHandlers[R]&&(this._escHandlers[R]=[]);var W=this._escHandlers[R];return W.push(N),{dispose:function(){var ce=W.indexOf(N);-1!==ce&&W.splice(ce,1)}}},w.prototype.clearEscHandler=function(x){this._escHandlers[this._identifier(x,[48,126])]&&delete this._escHandlers[this._identifier(x,[48,126])]},w.prototype.setEscHandlerFallback=function(x){this._escHandlerFb=x},w.prototype.setExecuteHandler=function(x,N){this._executeHandlers[x.charCodeAt(0)]=N},w.prototype.clearExecuteHandler=function(x){this._executeHandlers[x.charCodeAt(0)]&&delete this._executeHandlers[x.charCodeAt(0)]},w.prototype.setExecuteHandlerFallback=function(x){this._executeHandlerFb=x},w.prototype.registerCsiHandler=function(x,N){var R=this._identifier(x);void 0===this._csiHandlers[R]&&(this._csiHandlers[R]=[]);var W=this._csiHandlers[R];return W.push(N),{dispose:function(){var ce=W.indexOf(N);-1!==ce&&W.splice(ce,1)}}},w.prototype.clearCsiHandler=function(x){this._csiHandlers[this._identifier(x)]&&delete this._csiHandlers[this._identifier(x)]},w.prototype.setCsiHandlerFallback=function(x){this._csiHandlerFb=x},w.prototype.registerDcsHandler=function(x,N){return this._dcsParser.registerHandler(this._identifier(x),N)},w.prototype.clearDcsHandler=function(x){this._dcsParser.clearHandler(this._identifier(x))},w.prototype.setDcsHandlerFallback=function(x){this._dcsParser.setHandlerFallback(x)},w.prototype.registerOscHandler=function(x,N){return this._oscParser.registerHandler(x,N)},w.prototype.clearOscHandler=function(x){this._oscParser.clearHandler(x)},w.prototype.setOscHandlerFallback=function(x){this._oscParser.setHandlerFallback(x)},w.prototype.setErrorHandler=function(x){this._errorHandler=x},w.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},w.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=[])},w.prototype._preserveStack=function(x,N,R,W,$){this._parseStack.state=x,this._parseStack.handlers=N,this._parseStack.handlerPos=R,this._parseStack.transition=W,this._parseStack.chunkPos=$},w.prototype.parse=function(x,N,R){var W,$=0,ce=0,se=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,se=this._parseStack.chunkPos+1;else{if(void 0===R||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var te=this._parseStack.handlers,oe=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===R&&oe>-1)for(;oe>=0&&!0!==(W=te[oe](this._params));oe--)if(W instanceof Promise)return this._parseStack.handlerPos=oe,W;this._parseStack.handlers=[];break;case 4:if(!1===R&&oe>-1)for(;oe>=0&&!0!==(W=te[oe]());oe--)if(W instanceof Promise)return this._parseStack.handlerPos=oe,W;this._parseStack.handlers=[];break;case 6:if($=x[this._parseStack.chunkPos],W=this._dcsParser.unhook(24!==$&&26!==$,R))return W;27===$&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if($=x[this._parseStack.chunkPos],W=this._oscParser.end(24!==$&&26!==$,R))return W;27===$&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,se=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ve=se;ve<N;++ve){switch($=x[ve],(ce=this._transitions.table[this.currentState<<8|($<160?$:k)])>>4){case 2:for(var Oe=ve+1;;++Oe){if(Oe>=N||($=x[Oe])<32||$>126&&$<k){this._printHandler(x,ve,Oe),ve=Oe-1;break}if(++Oe>=N||($=x[Oe])<32||$>126&&$<k){this._printHandler(x,ve,Oe),ve=Oe-1;break}if(++Oe>=N||($=x[Oe])<32||$>126&&$<k){this._printHandler(x,ve,Oe),ve=Oe-1;break}if(++Oe>=N||($=x[Oe])<32||$>126&&$<k){this._printHandler(x,ve,Oe),ve=Oe-1;break}}break;case 3:this._executeHandlers[$]?this._executeHandlers[$]():this._executeHandlerFb($),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ve,code:$,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var st=(te=this._csiHandlers[this._collect<<8|$])?te.length-1:-1;st>=0&&!0!==(W=te[st](this._params));st--)if(W instanceof Promise)return this._preserveStack(3,te,st,ce,ve),W;st<0&&this._csiHandlerFb(this._collect<<8|$,this._params),this.precedingCodepoint=0;break;case 8:do{switch($){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit($-48)}}while(++ve<N&&($=x[ve])>47&&$<60);ve--;break;case 9:this._collect<<=8,this._collect|=$;break;case 10:for(var xe=this._escHandlers[this._collect<<8|$],_e=xe?xe.length-1:-1;_e>=0&&!0!==(W=xe[_e]());_e--)if(W instanceof Promise)return this._preserveStack(4,xe,_e,ce,ve),W;_e<0&&this._escHandlerFb(this._collect<<8|$),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|$,this._params);break;case 13:for(var ke=ve+1;;++ke)if(ke>=N||24===($=x[ke])||26===$||27===$||$>127&&$<k){this._dcsParser.put(x,ve,ke),ve=ke-1;break}break;case 14:if(W=this._dcsParser.unhook(24!==$&&26!==$))return this._preserveStack(6,[],0,ce,ve),W;27===$&&(ce|=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 Fe=ve+1;;Fe++)if(Fe>=N||($=x[Fe])<32||$>127&&$<k){this._oscParser.put(x,ve,Fe),ve=Fe-1;break}break;case 6:if(W=this._oscParser.end(24!==$&&26!==$))return this._preserveStack(5,[],0,ce,ve),W;27===$&&(ce|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&ce}},w}(D.Disposable);S.EscapeSequenceParser=I},6242:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.OscHandler=S.OscParser=void 0;var L=U(5770),P=U(482),D=[],y=function(){function F(){this._state=0,this._active=D,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return F.prototype.registerHandler=function(M,O){void 0===this._handlers[M]&&(this._handlers[M]=[]);var k=this._handlers[M];return k.push(O),{dispose:function(){var T=k.indexOf(O);-1!==T&&k.splice(T,1)}}},F.prototype.clearHandler=function(M){this._handlers[M]&&delete this._handlers[M]},F.prototype.setHandlerFallback=function(M){this._handlerFb=M},F.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},F.prototype.reset=function(){if(2===this._state)for(var M=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;M>=0;--M)this._active[M].end(!1);this._stack.paused=!1,this._active=D,this._id=-1,this._state=0},F.prototype._start=function(){if(this._active=this._handlers[this._id]||D,this._active.length)for(var M=this._active.length-1;M>=0;M--)this._active[M].start();else this._handlerFb(this._id,"START")},F.prototype._put=function(M,O,k){if(this._active.length)for(var I=this._active.length-1;I>=0;I--)this._active[I].put(M,O,k);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(M,O,k))},F.prototype.start=function(){this.reset(),this._state=1},F.prototype.put=function(M,O,k){if(3!==this._state){if(1===this._state)for(;O<k;){var I=M[O++];if(59===I){this._state=2,this._start();break}if(I<48||57<I)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+I-48}2===this._state&&k-O>0&&this._put(M,O,k)}},F.prototype.end=function(M,O){if(void 0===O&&(O=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var k=!1,I=this._active.length-1,T=!1;if(this._stack.paused&&(I=this._stack.loopPosition-1,k=O,T=this._stack.fallThrough,this._stack.paused=!1),!T&&!1===k){for(;I>=0&&!0!==(k=this._active[I].end(M));I--)if(k instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=I,this._stack.fallThrough=!1,k;I--}for(;I>=0;I--)if((k=this._active[I].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=I,this._stack.fallThrough=!0,k}else this._handlerFb(this._id,"END",M);this._active=D,this._id=-1,this._state=0}},F}();S.OscParser=y;var K=function(){function F(M){this._handler=M,this._data="",this._hitLimit=!1}return F.prototype.start=function(){this._data="",this._hitLimit=!1},F.prototype.put=function(M,O,k){this._hitLimit||(this._data+=(0,P.utf32ToString)(M,O,k),this._data.length>L.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},F.prototype.end=function(M){var O=this,k=!1;if(this._hitLimit)k=!1;else if(M&&(k=this._handler(this._data))instanceof Promise)return k.then(function(I){return O._data="",O._hitLimit=!1,I});return this._data="",this._hitLimit=!1,k},F}();S.OscHandler=K},8742:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.Params=void 0;var U=2147483647,L=function(){function P(D,y){if(void 0===D&&(D=32),void 0===y&&(y=32),this.maxLength=D,this.maxSubParamsLength=y,y>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(D),this.length=0,this._subParams=new Int32Array(y),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(D),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(D){var y=new P;if(!D.length)return y;for(var K=Array.isArray(D[0])?1:0;K<D.length;++K){var F=D[K];if(Array.isArray(F))for(var M=0;M<F.length;++M)y.addSubParam(F[M]);else y.addParam(F)}return y},P.prototype.clone=function(){var D=new P(this.maxLength,this.maxSubParamsLength);return D.params.set(this.params),D.length=this.length,D._subParams.set(this._subParams),D._subParamsLength=this._subParamsLength,D._subParamsIdx.set(this._subParamsIdx),D._rejectDigits=this._rejectDigits,D._rejectSubDigits=this._rejectSubDigits,D._digitIsSub=this._digitIsSub,D},P.prototype.toArray=function(){for(var D=[],y=0;y<this.length;++y){D.push(this.params[y]);var K=this._subParamsIdx[y]>>8,F=255&this._subParamsIdx[y];F-K>0&&D.push(Array.prototype.slice.call(this._subParams,K,F))}return D},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(D){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=D>U?U:D}},P.prototype.addSubParam=function(D){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=D>U?U:D,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(D){return(255&this._subParamsIdx[D])-(this._subParamsIdx[D]>>8)>0},P.prototype.getSubParams=function(D){var y=this._subParamsIdx[D]>>8,K=255&this._subParamsIdx[D];return K-y>0?this._subParams.subarray(y,K):null},P.prototype.getSubParamsAll=function(){for(var D={},y=0;y<this.length;++y){var K=this._subParamsIdx[y]>>8,F=255&this._subParamsIdx[y];F-K>0&&(D[y]=this._subParams.slice(K,F))}return D},P.prototype.addDigit=function(D){var y;if(!(this._rejectDigits||!(y=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var K=this._digitIsSub?this._subParams:this.params,F=K[y-1];K[y-1]=~F?Math.min(10*F+D,U):D}},P}();S.Params=L},5741:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.AddonManager=void 0;var U=function(){function L(){this._addons=[]}return L.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},L.prototype.loadAddon=function(P,D){var y=this,K={instance:D,dispose:D.dispose,isDisposed:!1};this._addons.push(K),D.dispose=function(){return y._wrappedAddonDispose(K)},D.activate(P)},L.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var D=-1,y=0;y<this._addons.length;y++)if(this._addons[y]===P){D=y;break}if(-1===D)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(D,1)}},L}();S.AddonManager=U},8771:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BufferApiView=void 0;var L=U(3785),P=U(511),D=function(){function y(K,F){this._buffer=K,this.type=F}return y.prototype.init=function(K){return this._buffer=K,this},Object.defineProperty(y.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),y.prototype.getLine=function(K){var F=this._buffer.lines.get(K);if(F)return new L.BufferLineApiView(F)},y.prototype.getNullCell=function(){return new P.CellData},y}();S.BufferApiView=D},3785:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BufferLineApiView=void 0;var L=U(511),P=function(){function D(y){this._line=y}return Object.defineProperty(D.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),D.prototype.getCell=function(y,K){if(!(y<0||y>=this._line.length))return K?(this._line.loadCell(y,K),K):this._line.loadCell(y,new L.CellData)},D.prototype.translateToString=function(y,K,F){return this._line.translateToString(y,K,F)},D}();S.BufferLineApiView=P},8285:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.BufferNamespaceApi=void 0;var L=U(8771),P=U(8460),D=function(){function y(K){var F=this;this._core=K,this._onBufferChange=new P.EventEmitter,this._normal=new L.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new L.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return F._onBufferChange.fire(F.active)})}return Object.defineProperty(y.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.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(y.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),y}();S.BufferNamespaceApi=D},7975:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.ParserApi=void 0;var U=function(){function L(P){this._core=P}return L.prototype.registerCsiHandler=function(P,D){return this._core.registerCsiHandler(P,function(y){return D(y.toArray())})},L.prototype.addCsiHandler=function(P,D){return this.registerCsiHandler(P,D)},L.prototype.registerDcsHandler=function(P,D){return this._core.registerDcsHandler(P,function(y,K){return D(y,K.toArray())})},L.prototype.addDcsHandler=function(P,D){return this.registerDcsHandler(P,D)},L.prototype.registerEscHandler=function(P,D){return this._core.registerEscHandler(P,D)},L.prototype.addEscHandler=function(P,D){return this.registerEscHandler(P,D)},L.prototype.registerOscHandler=function(P,D){return this._core.registerOscHandler(P,D)},L.prototype.addOscHandler=function(P,D){return this.registerOscHandler(P,D)},L}();S.ParserApi=U},7090:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeApi=void 0;var U=function(){function L(P){this._core=P}return L.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(L.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(D){this._core.unicodeService.activeVersion=D},enumerable:!1,configurable:!0}),L}();S.UnicodeApi=U},744:function(Y,S,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(x[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.BufferService=S.MINIMUM_ROWS=S.MINIMUM_COLS=void 0;var K=U(2585),F=U(5295),M=U(8460),O=U(844);S.MINIMUM_COLS=2,S.MINIMUM_ROWS=1;var k=function(I){function T(w){var x=I.call(this)||this;return x._optionsService=w,x.isUserScrolling=!1,x._onResize=new M.EventEmitter,x._onScroll=new M.EventEmitter,x.cols=Math.max(w.rawOptions.cols||0,S.MINIMUM_COLS),x.rows=Math.max(w.rawOptions.rows||0,S.MINIMUM_ROWS),x.buffers=new F.BufferSet(w,x),x}return P(T,I),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){I.prototype.dispose.call(this),this.buffers.dispose()},T.prototype.resize=function(w,x){this.cols=w,this.rows=x,this.buffers.resize(w,x),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:w,rows:x})},T.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},T.prototype.scroll=function(w,x){void 0===x&&(x=!1);var N,R=this.buffer;(N=this._cachedBlankLine)&&N.length===this.cols&&N.getFg(0)===w.fg&&N.getBg(0)===w.bg||(N=R.getBlankLine(w,x),this._cachedBlankLine=N),N.isWrapped=x;var W=R.ybase+R.scrollTop,$=R.ybase+R.scrollBottom;if(0===R.scrollTop){var ce=R.lines.isFull;$===R.lines.length-1?ce?R.lines.recycle().copyFrom(N):R.lines.push(N.clone()):R.lines.splice($+1,0,N.clone()),ce?this.isUserScrolling&&(R.ydisp=Math.max(R.ydisp-1,0)):(R.ybase++,this.isUserScrolling||R.ydisp++)}else{var se=$-W+1;R.lines.shiftElements(W+1,se-1,-1),R.lines.set($,N.clone())}this.isUserScrolling||(R.ydisp=R.ybase),this._onScroll.fire(R.ydisp)},T.prototype.scrollLines=function(w,x,N){var R=this.buffer;if(w<0){if(0===R.ydisp)return;this.isUserScrolling=!0}else w+R.ydisp>=R.ybase&&(this.isUserScrolling=!1);var W=R.ydisp;R.ydisp=Math.max(Math.min(R.ydisp+w,R.ybase),0),W!==R.ydisp&&(x||this._onScroll.fire(R.ydisp))},T.prototype.scrollPages=function(w){this.scrollLines(w*(this.rows-1))},T.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},T.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},T.prototype.scrollToLine=function(w){var x=w-this.buffer.ydisp;0!==x&&this.scrollLines(x)},D([y(0,K.IOptionsService)],T)}(O.Disposable);S.BufferService=k},7994:function(Y,S){Object.defineProperty(S,"__esModule",{value:!0}),S.CharsetService=void 0;var U=function(){function L(){this.glevel=0,this._charsets=[]}return L.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},L.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},L.prototype.setgCharset=function(P,D){this._charsets[P]=D,this.glevel===P&&(this.charset=D)},L}();S.CharsetService=U},1753:function(Y,S,U){var L=this&&this.__decorate||function(I,T,w,x){var N,R=arguments.length,W=R<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,w):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,x);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},P=this&&this.__param||function(I,T){return function(w,x){T(w,x,I)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreMouseService=void 0;var D=U(2585),y=U(8460),K={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(T){return 4!==T.button&&1===T.action&&(T.ctrl=!1,T.alt=!1,T.shift=!1,!0)}},VT200:{events:19,restrict:function(T){return 32!==T.action}},DRAG:{events:23,restrict:function(T){return 32!==T.action||3!==T.button}},ANY:{events:31,restrict:function(T){return!0}}};function F(I,T){var w=(I.ctrl?16:0)|(I.shift?4:0)|(I.alt?8:0);return 4===I.button?(w|=64,w|=I.action):(w|=3&I.button,4&I.button&&(w|=64),8&I.button&&(w|=128),32===I.action?w|=32:0!==I.action||T||(w|=3)),w}var M=String.fromCharCode,O={DEFAULT:function(T){var w=[F(T,!1)+32,T.col+32,T.row+32];return w[0]>255||w[1]>255||w[2]>255?"":"\x1b[M"+M(w[0])+M(w[1])+M(w[2])},SGR:function(T){var w=0===T.action&&4!==T.button?"m":"M";return"\x1b[<"+F(T,!0)+";"+T.col+";"+T.row+w}},k=function(){function I(T,w){this._bufferService=T,this._coreService=w,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new y.EventEmitter,this._lastEvent=null;for(var x=0,N=Object.keys(K);x<N.length;x++){var R=N[x];this.addProtocol(R,K[R])}for(var W=0,$=Object.keys(O);W<$.length;W++){var ce=$[W];this.addEncoding(ce,O[ce])}this.reset()}return I.prototype.addProtocol=function(T,w){this._protocols[T]=w},I.prototype.addEncoding=function(T,w){this._encodings[T]=w},Object.defineProperty(I.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(w){if(!this._protocols[w])throw new Error('unknown protocol "'+w+'"');this._activeProtocol=w,this._onProtocolChange.fire(this._protocols[w].events)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(w){if(!this._encodings[w])throw new Error('unknown encoding "'+w+'"');this._activeEncoding=w},enumerable:!1,configurable:!0}),I.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(I.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),I.prototype.triggerMouseEvent=function(T){if(T.col<0||T.col>=this._bufferService.cols||T.row<0||T.row>=this._bufferService.rows||4===T.button&&32===T.action||3===T.button&&32!==T.action||4!==T.button&&(2===T.action||3===T.action)||(T.col++,T.row++,32===T.action&&this._lastEvent&&this._compareEvents(this._lastEvent,T))||!this._protocols[this._activeProtocol].restrict(T))return!1;var w=this._encodings[this._activeEncoding](T);return w&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(w):this._coreService.triggerDataEvent(w,!0)),this._lastEvent=T,!0},I.prototype.explainEvents=function(T){return{down:!!(1&T),up:!!(2&T),drag:!!(4&T),move:!!(8&T),wheel:!!(16&T)}},I.prototype._compareEvents=function(T,w){return T.col===w.col&&T.row===w.row&&T.button===w.button&&T.action===w.action&&T.ctrl===w.ctrl&&T.alt===w.alt&&T.shift===w.shift},L([P(0,D.IBufferService),P(1,D.ICoreService)],I)}();S.CoreMouseService=k},6975:function(Y,S,U){var L,P=this&&this.__extends||(L=function(x,N){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var $ in W)Object.prototype.hasOwnProperty.call(W,$)&&(R[$]=W[$])})(x,N)},function(w,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function N(){this.constructor=w}L(w,x),w.prototype=null===x?Object.create(x):(N.prototype=x.prototype,new N)}),D=this&&this.__decorate||function(w,x,N,R){var W,$=arguments.length,ce=$<3?x:null===R?R=Object.getOwnPropertyDescriptor(x,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,x,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(x,N,ce):W(x,N))||ce);return $>3&&ce&&Object.defineProperty(x,N,ce),ce},y=this&&this.__param||function(w,x){return function(N,R){x(N,R,w)}};Object.defineProperty(S,"__esModule",{value:!0}),S.CoreService=void 0;var K=U(2585),F=U(8460),M=U(1439),O=U(844),k=Object.freeze({insertMode:!1}),I=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),T=function(w){function x(N,R,W,$){var ce=w.call(this)||this;return ce._bufferService=R,ce._logService=W,ce._optionsService=$,ce.isCursorInitialized=!1,ce.isCursorHidden=!1,ce._onData=ce.register(new F.EventEmitter),ce._onUserInput=ce.register(new F.EventEmitter),ce._onBinary=ce.register(new F.EventEmitter),ce._scrollToBottom=N,ce.register({dispose:function(){return ce._scrollToBottom=void 0}}),ce.modes=(0,M.clone)(k),ce.decPrivateModes=(0,M.clone)(I),ce}return P(x,w),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),x.prototype.reset=function(){this.modes=(0,M.clone)(k),this.decPrivateModes=(0,M.clone)(I)},x.prototype.triggerDataEvent=function(N,R){if(void 0===R&&(R=!1),!this._optionsService.rawOptions.disableStdin){var W=this._bufferService.buffer;W.ybase!==W.ydisp&&this._scrollToBottom(),R&&this._onUserInput.fire(),this._logService.debug('sending data "'+N+'"',function(){return N.split("").map(function($){return $.charCodeAt(0)})}),this._onData.fire(N)}},x.prototype.triggerBinaryEvent=function(N){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+N+'"',function(){return N.split("").map(function(R){return R.charCodeAt(0)})}),this._onBinary.fire(N))},D([y(1,K.IBufferService),y(2,K.ILogService),y(3,K.IOptionsService)],x)}(O.Disposable);S.CoreService=T},3730:function(Y,S,U){var L=this&&this.__decorate||function(K,F,M,O){var k,I=arguments.length,T=I<3?F:null===O?O=Object.getOwnPropertyDescriptor(F,M):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(K,F,M,O);else for(var w=K.length-1;w>=0;w--)(k=K[w])&&(T=(I<3?k(T):I>3?k(F,M,T):k(F,M))||T);return I>3&&T&&Object.defineProperty(F,M,T),T},P=this&&this.__param||function(K,F){return function(M,O){F(M,O,K)}};Object.defineProperty(S,"__esModule",{value:!0}),S.DirtyRowService=void 0;var D=U(2585),y=function(){function K(F){this._bufferService=F,this.clearRange()}return Object.defineProperty(K.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),K.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},K.prototype.markDirty=function(F){F<this._start?this._start=F:F>this._end&&(this._end=F)},K.prototype.markRangeDirty=function(F,M){if(F>M){var O=F;F=M,M=O}F<this._start&&(this._start=F),M>this._end&&(this._end=M)},K.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},L([P(0,D.IBufferService)],K)}();S.DirtyRowService=y},4348:function(Y,S,U){var L=this&&this.__spreadArray||function(F,M,O){if(O||2===arguments.length)for(var k,I=0,T=M.length;I<T;I++)!k&&I in M||(k||(k=Array.prototype.slice.call(M,0,I)),k[I]=M[I]);return F.concat(k||Array.prototype.slice.call(M))};Object.defineProperty(S,"__esModule",{value:!0}),S.InstantiationService=S.ServiceCollection=void 0;var P=U(2585),D=U(8343),y=function(){function F(){for(var M=[],O=0;O<arguments.length;O++)M[O]=arguments[O];this._entries=new Map;for(var k=0,I=M;k<I.length;k++){var T=I[k],w=T[0],x=T[1];this.set(w,x)}}return F.prototype.set=function(M,O){var k=this._entries.get(M);return this._entries.set(M,O),k},F.prototype.forEach=function(M){this._entries.forEach(function(O,k){return M(k,O)})},F.prototype.has=function(M){return this._entries.has(M)},F.prototype.get=function(M){return this._entries.get(M)},F}();S.ServiceCollection=y;var K=function(){function F(){this._services=new y,this._services.set(P.IInstantiationService,this)}return F.prototype.setService=function(M,O){this._services.set(M,O)},F.prototype.getService=function(M){return this._services.get(M)},F.prototype.createInstance=function(M){for(var O=[],k=1;k<arguments.length;k++)O[k-1]=arguments[k];for(var I=(0,D.getServiceDependencies)(M).sort(function($,ce){return $.index-ce.index}),T=[],w=0,x=I;w<x.length;w++){var N=x[w],R=this._services.get(N.id);if(!R)throw new Error("[createInstance] "+M.name+" depends on UNKNOWN service "+N.id+".");T.push(R)}var W=I.length>0?I[0].index:O.length;if(O.length!==W)throw new Error("[createInstance] First service dependency of "+M.name+" at position "+(W+1)+" conflicts with "+O.length+" static arguments");return new(M.bind.apply(M,L([void 0],L(L([],O,!0),T,!0),!1)))},F}();S.InstantiationService=K},7866:function(Y,S,U){var L=this&&this.__decorate||function(M,O,k,I){var T,w=arguments.length,x=w<3?O:null===I?I=Object.getOwnPropertyDescriptor(O,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(M,O,k,I);else for(var N=M.length-1;N>=0;N--)(T=M[N])&&(x=(w<3?T(x):w>3?T(O,k,x):T(O,k))||x);return w>3&&x&&Object.defineProperty(O,k,x),x},P=this&&this.__param||function(M,O){return function(k,I){O(k,I,M)}},D=this&&this.__spreadArray||function(M,O,k){if(k||2===arguments.length)for(var I,T=0,w=O.length;T<w;T++)!I&&T in O||(I||(I=Array.prototype.slice.call(O,0,T)),I[T]=O[T]);return M.concat(I||Array.prototype.slice.call(O))};Object.defineProperty(S,"__esModule",{value:!0}),S.LogService=void 0;var y=U(2585),K={debug:y.LogLevelEnum.DEBUG,info:y.LogLevelEnum.INFO,warn:y.LogLevelEnum.WARN,error:y.LogLevelEnum.ERROR,off:y.LogLevelEnum.OFF},F=function(){function M(O){var k=this;this._optionsService=O,this.logLevel=y.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(I){"logLevel"===I&&k._updateLogLevel()})}return M.prototype._updateLogLevel=function(){this.logLevel=K[this._optionsService.rawOptions.logLevel]},M.prototype._evalLazyOptionalParams=function(O){for(var k=0;k<O.length;k++)"function"==typeof O[k]&&(O[k]=O[k]())},M.prototype._log=function(O,k,I){this._evalLazyOptionalParams(I),O.call.apply(O,D([console,"xterm.js: "+k],I,!1))},M.prototype.debug=function(O){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.DEBUG&&this._log(console.log,O,k)},M.prototype.info=function(O){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.INFO&&this._log(console.info,O,k)},M.prototype.warn=function(O){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.WARN&&this._log(console.warn,O,k)},M.prototype.error=function(O){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.ERROR&&this._log(console.error,O,k)},L([P(0,y.IOptionsService)],M)}();S.LogService=F},7302:function(Y,S,U){var L=this&&this.__assign||function(){return L=Object.assign||function(F){for(var M,O=1,k=arguments.length;O<k;O++)for(var I in M=arguments[O])Object.prototype.hasOwnProperty.call(M,I)&&(F[I]=M[I]);return F},L.apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.OptionsService=S.DEFAULT_OPTIONS=S.DEFAULT_BELL_SOUND=void 0;var P=U(8460),D=U(6114);S.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",S.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:S.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:D.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var y=["normal","bold","100","200","300","400","500","600","700","800","900"],K=function(){function F(M){this._onOptionChange=new P.EventEmitter;var O=L({},S.DEFAULT_OPTIONS);for(var k in M)if(k in O)try{var I=M[k];O[k]=this._sanitizeAndValidateOption(k,I)}catch(T){console.error(T)}this.rawOptions=O,this.options=L({},O),this._setupOptions()}return Object.defineProperty(F.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),F.prototype._setupOptions=function(){var M=this,O=function(x){if(!(x in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+x+'"');return M.rawOptions[x]},k=function(x,N){if(!(x in S.DEFAULT_OPTIONS))throw new Error('No option with key "'+x+'"');N=M._sanitizeAndValidateOption(x,N),M.rawOptions[x]!==N&&(M.rawOptions[x]=N,M._onOptionChange.fire(x))};for(var I in this.rawOptions){var T={get:O.bind(this,I),set:k.bind(this,I)};Object.defineProperty(this.options,I,T)}},F.prototype.setOption=function(M,O){this.options[M]=O},F.prototype._sanitizeAndValidateOption=function(M,O){switch(M){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":O||(O=S.DEFAULT_OPTIONS[M]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof O&&1<=O&&O<=1e3)break;O=y.includes(O)?O:S.DEFAULT_OPTIONS[M];break;case"cursorWidth":O=Math.floor(O);case"lineHeight":case"tabStopWidth":if(O<1)throw new Error(M+" cannot be less than 1, value: "+O);break;case"minimumContrastRatio":O=Math.max(1,Math.min(21,Math.round(10*O)/10));break;case"scrollback":if((O=Math.min(O,4294967295))<0)throw new Error(M+" cannot be less than 0, value: "+O);break;case"fastScrollSensitivity":case"scrollSensitivity":if(O<=0)throw new Error(M+" cannot be less than or equal to 0, value: "+O);case"rows":case"cols":if(!O&&0!==O)throw new Error(M+" must be numeric, value: "+O)}return O},F.prototype.getOption=function(M){return this.options[M]},F}();S.OptionsService=K},8343:function(Y,S){function U(L,P,D){P.di$target===P?P.di$dependencies.push({id:L,index:D}):(P.di$dependencies=[{id:L,index:D}],P.di$target=P)}Object.defineProperty(S,"__esModule",{value:!0}),S.createDecorator=S.getServiceDependencies=S.serviceRegistry=void 0,S.serviceRegistry=new Map,S.getServiceDependencies=function(L){return L.di$dependencies||[]},S.createDecorator=function(L){if(S.serviceRegistry.has(L))return S.serviceRegistry.get(L);var P=function D(y,K,F){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(D,y,F)};return P.toString=function(){return L},S.serviceRegistry.set(L,P),P}},2585:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.IUnicodeService=S.IOptionsService=S.ILogService=S.LogLevelEnum=S.IInstantiationService=S.IDirtyRowService=S.ICharsetService=S.ICoreService=S.ICoreMouseService=S.IBufferService=void 0;var L,P=U(8343);S.IBufferService=(0,P.createDecorator)("BufferService"),S.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),S.ICoreService=(0,P.createDecorator)("CoreService"),S.ICharsetService=(0,P.createDecorator)("CharsetService"),S.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),S.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(L=S.LogLevelEnum||(S.LogLevelEnum={}))[L.DEBUG=0]="DEBUG",L[L.INFO=1]="INFO",L[L.WARN=2]="WARN",L[L.ERROR=3]="ERROR",L[L.OFF=4]="OFF",S.ILogService=(0,P.createDecorator)("LogService"),S.IOptionsService=(0,P.createDecorator)("OptionsService"),S.IUnicodeService=(0,P.createDecorator)("UnicodeService")},1480:function(Y,S,U){Object.defineProperty(S,"__esModule",{value:!0}),S.UnicodeService=void 0;var L=U(8460),P=U(225),D=function(){function y(){this._providers=Object.create(null),this._active="",this._onChange=new L.EventEmitter;var K=new P.UnicodeV6;this.register(K),this._active=K.version,this._activeProvider=K}return Object.defineProperty(y.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"activeVersion",{get:function(){return this._active},set:function(F){if(!this._providers[F])throw new Error('unknown Unicode version "'+F+'"');this._active=F,this._activeProvider=this._providers[F],this._onChange.fire(F)},enumerable:!1,configurable:!0}),y.prototype.register=function(K){this._providers[K.version]=K},y.prototype.wcwidth=function(K){return this._activeProvider.wcwidth(K)},y.prototype.getStringCellWidth=function(K){for(var F=0,M=K.length,O=0;O<M;++O){var k=K.charCodeAt(O);if(55296<=k&&k<=56319){if(++O>=M)return F+this.wcwidth(k);var I=K.charCodeAt(O);56320<=I&&I<=57343?k=1024*(k-55296)+I-56320+65536:F+=this.wcwidth(I)}F+=this.wcwidth(k)}return F},y}();S.UnicodeService=D}},m={};return function z(Y){var S=m[Y];if(void 0!==S)return S.exports;var U=m[Y]={exports:{}};return J[Y].call(U.exports,U,U.exports,z),U.exports}(4389)}()},1777:function(qe,J,m){"use strict";m.d(J,{F4:function(){return O},IO:function(){return x},LC:function(){return U},SB:function(){return M},X$:function(){return P},ZE:function(){return $},ZN:function(){return W},_j:function(){return S},eR:function(){return k},jt:function(){return D},k1:function(){return ce},l3:function(){return L},oB:function(){return F},pV:function(){return T},ru:function(){return y},vP:function(){return K}});var z=m(3144),Y=m(5671),S=(0,z.Z)(function se(){(0,Y.Z)(this,se)}),U=(0,z.Z)(function se(){(0,Y.Z)(this,se)}),L="*";function P(se,te){return{type:7,name:se,definitions:te,options:{}}}function D(se){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:te,timings:se}}function y(se){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:se,options:te}}function K(se){var te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:se,options:te}}function F(se){return{type:6,styles:se,offset:null}}function M(se,te,oe){return{type:0,name:se,styles:te,options:oe}}function O(se){return{type:5,steps:se}}function k(se,te){var oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:se,animation:te,options:oe}}function T(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:se}}function x(se,te){var oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:se,animation:te,options:oe}}function R(se){Promise.resolve(null).then(se)}var W=function(){function se(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,Y.Z)(this,se),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=te+oe}return(0,z.Z)(se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(oe){return oe()}),this._onDoneFns=[])}},{key:"onStart",value:function(oe){this._onStartFns.push(oe)}},{key:"onDone",value:function(oe){this._onDoneFns.push(oe)}},{key:"onDestroy",value:function(oe){this._onDestroyFns.push(oe)}},{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 oe=this;R(function(){return oe._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(oe){return oe()}),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(oe){return oe()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(oe){this._position=this.totalTime?oe*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(oe){var ve="start"==oe?this._onStartFns:this._onDoneFns;ve.forEach(function(Oe){return Oe()}),ve.length=0}}]),se}(),$=function(){function se(te){var oe=this;(0,Y.Z)(this,se),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=te;var ve=0,Oe=0,st=0,xe=this.players.length;0==xe?R(function(){return oe._onFinish()}):this.players.forEach(function(_e){_e.onDone(function(){++ve==xe&&oe._onFinish()}),_e.onDestroy(function(){++Oe==xe&&oe._onDestroy()}),_e.onStart(function(){++st==xe&&oe._onStart()})}),this.totalTime=this.players.reduce(function(_e,ke){return Math.max(_e,ke.totalTime)},0)}return(0,z.Z)(se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(oe){return oe()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(oe){return oe.init()})}},{key:"onStart",value:function(oe){this._onStartFns.push(oe)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(oe){return oe()}),this._onStartFns=[])}},{key:"onDone",value:function(oe){this._onDoneFns.push(oe)}},{key:"onDestroy",value:function(oe){this._onDestroyFns.push(oe)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(oe){return oe.play()})}},{key:"pause",value:function(){this.players.forEach(function(oe){return oe.pause()})}},{key:"restart",value:function(){this.players.forEach(function(oe){return oe.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(oe){return oe.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(oe){return oe.destroy()}),this._onDestroyFns.forEach(function(oe){return oe()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(oe){return oe.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(oe){var ve=oe*this.totalTime;this.players.forEach(function(Oe){var st=Oe.totalTime?Math.min(1,ve/Oe.totalTime):1;Oe.setPosition(st)})}},{key:"getPosition",value:function(){var oe=this.players.reduce(function(ve,Oe){return null===ve||Oe.totalTime>ve.totalTime?Oe:ve},null);return null!=oe?oe.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(oe){oe.beforeDestroy&&oe.beforeDestroy()})}},{key:"triggerCallback",value:function(oe){var ve="start"==oe?this._onStartFns:this._onDoneFns;ve.forEach(function(Oe){return Oe()}),ve.length=0}}]),se}(),ce="!"},5664:function(qe,J,m){"use strict";m.d(J,{$s:function(){return Nt},Em:function(){return jt},Kd:function(){return nn},X6:function(){return Bt},ic:function(){return vt},kH:function(){return Zn},qV:function(){return mt},qm:function(){return Yn},rt:function(){return Kt},s1:function(){return Xe},tE:function(){return zn},yG:function(){return dt}});var z=m(7685),Y=m(7326),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(9808),F=m(5e3),M=m(925),O=m(8929),k=m(4096),I=m(591),T=m(1086),w=m(1159),x=m(2994),N=m(13),R=m(9664),W=m(4850),$=m(2986),ce=m(1307),se=m(5778),te=m(7625),oe=m(3191),ve=m(7144);function _e(tt,Ue){return(tt.getAttribute(Ue)||"").match(/\S+/g)||[]}var Fe="cdk-describedby-message",ct="cdk-describedby-host",Mt=0,Nt=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._platform=Ee,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(Mt++),this._document=Ue}return(0,y.Z)(tt,[{key:"describe",value:function(Ee,He,bt){if(this._canBeDescribed(Ee,He)){var Yt=Xt(He,bt);"string"!=typeof He?(en(He),this._messageRegistry.set(Yt,{messageElement:He,referenceCount:0})):this._messageRegistry.has(Yt)||this._createMessageElement(He,bt),this._isElementDescribedByMessage(Ee,Yt)||this._addMessageReference(Ee,Yt)}}},{key:"removeDescription",value:function(Ee,He,bt){var Yt;if(He&&this._isElementNode(Ee)){var En=Xt(He,bt);if(this._isElementDescribedByMessage(Ee,En)&&this._removeMessageReference(Ee,En),"string"==typeof He){var rr=this._messageRegistry.get(En);rr&&0===rr.referenceCount&&this._deleteMessageElement(En)}0===(null===(Yt=this._messagesContainer)||void 0===Yt?void 0:Yt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Ee,He=this._document.querySelectorAll("[".concat(ct,'="').concat(this._id,'"]')),bt=0;bt<He.length;bt++)this._removeCdkDescribedByReferenceIds(He[bt]),He[bt].removeAttribute(ct);null===(Ee=this._messagesContainer)||void 0===Ee||Ee.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Ee,He){var bt=this._document.createElement("div");en(bt),bt.textContent=Ee,He&&bt.setAttribute("role",He),this._createMessagesContainer(),this._messagesContainer.appendChild(bt),this._messageRegistry.set(Xt(Ee,He),{messageElement:bt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Ee){var He,bt;null===(bt=null===(He=this._messageRegistry.get(Ee))||void 0===He?void 0:He.messageElement)||void 0===bt||bt.remove(),this._messageRegistry.delete(Ee)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Ee="cdk-describedby-message-container",He=this._document.querySelectorAll(".".concat(Ee,'[platform="server"]')),bt=0;bt<He.length;bt++)He[bt].remove();var Yt=this._document.createElement("div");Yt.style.visibility="hidden",Yt.classList.add(Ee),Yt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Yt.setAttribute("platform","server"),this._document.body.appendChild(Yt),this._messagesContainer=Yt}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Ee){var He=_e(Ee,"aria-describedby").filter(function(bt){return 0!=bt.indexOf(Fe)});Ee.setAttribute("aria-describedby",He.join(" "))}},{key:"_addMessageReference",value:function(Ee,He){var bt=this._messageRegistry.get(He);(function st(tt,Ue,Ee){var He=_e(tt,Ue);He.some(function(bt){return bt.trim()==Ee.trim()})||(He.push(Ee.trim()),tt.setAttribute(Ue,He.join(" ")))})(Ee,"aria-describedby",bt.messageElement.id),Ee.setAttribute(ct,this._id),bt.referenceCount++}},{key:"_removeMessageReference",value:function(Ee,He){var bt=this._messageRegistry.get(He);bt.referenceCount--,function xe(tt,Ue,Ee){var bt=_e(tt,Ue).filter(function(Yt){return Yt!=Ee.trim()});bt.length?tt.setAttribute(Ue,bt.join(" ")):tt.removeAttribute(Ue)}(Ee,"aria-describedby",bt.messageElement.id),Ee.removeAttribute(ct)}},{key:"_isElementDescribedByMessage",value:function(Ee,He){var bt=_e(Ee,"aria-describedby"),Yt=this._messageRegistry.get(He),En=Yt&&Yt.messageElement.id;return!!En&&-1!=bt.indexOf(En)}},{key:"_canBeDescribed",value:function(Ee,He){if(!this._isElementNode(Ee))return!1;if(He&&"object"==typeof He)return!0;var bt=null==He?"":"".concat(He).trim(),Yt=Ee.getAttribute("aria-label");return!!bt&&(!Yt||Yt.trim()!==bt)}},{key:"_isElementNode",value:function(Ee){return Ee.nodeType===this._document.ELEMENT_NODE}}]),tt}();function Xt(tt,Ue){return"string"==typeof tt?"".concat(Ue||"","/").concat(tt):tt}function en(tt){tt.id||(tt.id="".concat(Fe,"-").concat(Mt++))}Nt.\u0275fac=function(Ue){return new(Ue||Nt)(F.LFG(K.K0),F.LFG(M.t4))},Nt.\u0275prov=F.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"});var qt=function(){function tt(Ue){var Ee=this;(0,D.Z)(this,tt),this._items=Ue,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new O.xQ,this._typeaheadSubscription=k.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(He){return He.disabled},this._pressedLetters=[],this.tabOut=new O.xQ,this.change=new O.xQ,Ue instanceof F.n_E&&Ue.changes.subscribe(function(He){if(Ee._activeItem){var Yt=He.toArray().indexOf(Ee._activeItem);Yt>-1&&Yt!==Ee._activeItemIndex&&(Ee._activeItemIndex=Yt)}})}return(0,y.Z)(tt,[{key:"skipPredicate",value:function(Ee){return this._skipPredicateFn=Ee,this}},{key:"withWrap",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ee,this}},{key:"withVerticalOrientation",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ee,this}},{key:"withHorizontalOrientation",value:function(Ee){return this._horizontal=Ee,this}},{key:"withAllowedModifierKeys",value:function(Ee){return this._allowedModifierKeys=Ee,this}},{key:"withTypeAhead",value:function(){var Ee=this,He=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,x.b)(function(bt){return Ee._pressedLetters.push(bt)}),(0,N.b)(He),(0,R.h)(function(){return Ee._pressedLetters.length>0}),(0,W.U)(function(){return Ee._pressedLetters.join("")})).subscribe(function(bt){for(var Yt=Ee._getItemsArray(),En=1;En<Yt.length+1;En++){var rr=(Ee._activeItemIndex+En)%Yt.length,pn=Yt[rr];if(!Ee._skipPredicateFn(pn)&&0===pn.getLabel().toUpperCase().trim().indexOf(bt)){Ee.setActiveItem(rr);break}}Ee._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ee,this}},{key:"setActiveItem",value:function(Ee){var He=this._activeItem;this.updateActiveItem(Ee),this._activeItem!==He&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ee){var He=this,bt=Ee.keyCode,En=["altKey","ctrlKey","metaKey","shiftKey"].every(function(rr){return!Ee[rr]||He._allowedModifierKeys.indexOf(rr)>-1});switch(bt){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&En){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&En){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&En){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&En){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&En){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&En){this.setLastItemActive();break}return;default:return void((En||(0,w.Vb)(Ee,"shiftKey"))&&(Ee.key&&1===Ee.key.length?this._letterKeyStream.next(Ee.key.toLocaleUpperCase()):(bt>=w.A&&bt<=w.Z||bt>=w.xE&&bt<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(bt))))}this._pressedLetters=[],Ee.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(Ee){var He=this._getItemsArray(),bt="number"==typeof Ee?Ee:He.indexOf(Ee),Yt=He[bt];this._activeItem=null==Yt?null:Yt,this._activeItemIndex=bt}},{key:"_setActiveItemByDelta",value:function(Ee){this._wrap?this._setActiveInWrapMode(Ee):this._setActiveInDefaultMode(Ee)}},{key:"_setActiveInWrapMode",value:function(Ee){for(var He=this._getItemsArray(),bt=1;bt<=He.length;bt++){var Yt=(this._activeItemIndex+Ee*bt+He.length)%He.length,En=He[Yt];if(!this._skipPredicateFn(En))return void this.setActiveItem(Yt)}}},{key:"_setActiveInDefaultMode",value:function(Ee){this._setActiveItemByIndex(this._activeItemIndex+Ee,Ee)}},{key:"_setActiveItemByIndex",value:function(Ee,He){var bt=this._getItemsArray();if(bt[Ee]){for(;this._skipPredicateFn(bt[Ee]);)if(!bt[Ee+=He])return;this.setActiveItem(Ee)}}},{key:"_getItemsArray",value:function(){return this._items instanceof F.n_E?this._items.toArray():this._items}}]),tt}(),Xe=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(){return(0,D.Z)(this,Ee),Ue.apply(this,arguments)}return(0,y.Z)(Ee,[{key:"setActiveItem",value:function(bt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,S.Z)((0,U.Z)(Ee.prototype),"setActiveItem",this).call(this,bt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ee}(qt),jt=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(){var He;return(0,D.Z)(this,Ee),(He=Ue.apply(this,arguments))._origin="program",He}return(0,y.Z)(Ee,[{key:"setFocusOrigin",value:function(bt){return this._origin=bt,this}},{key:"setActiveItem",value:function(bt){(0,S.Z)((0,U.Z)(Ee.prototype),"setActiveItem",this).call(this,bt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ee}(qt),vt=function(){function tt(Ue){(0,D.Z)(this,tt),this._platform=Ue}return(0,y.Z)(tt,[{key:"isDisabled",value:function(Ee){return Ee.hasAttribute("disabled")}},{key:"isVisible",value:function(Ee){return function Lt(tt){return!!(tt.offsetWidth||tt.offsetHeight||"function"==typeof tt.getClientRects&&tt.getClientRects().length)}(Ee)&&"visible"===getComputedStyle(Ee).visibility}},{key:"isTabbable",value:function(Ee){if(!this._platform.isBrowser)return!1;var He=function nt(tt){try{return tt.frameElement}catch(Ue){return null}}(function ln(tt){return tt.ownerDocument&&tt.ownerDocument.defaultView||window}(Ee));if(He&&(-1===Et(He)||!this.isVisible(He)))return!1;var bt=Ee.nodeName.toLowerCase(),Yt=Et(Ee);return Ee.hasAttribute("contenteditable")?-1!==Yt:!("iframe"===bt||"object"===bt||this._platform.WEBKIT&&this._platform.IOS&&!function Ut(tt){var Ue=tt.nodeName.toLowerCase(),Ee="input"===Ue&&tt.type;return"text"===Ee||"password"===Ee||"select"===Ue||"textarea"===Ue}(Ee))&&("audio"===bt?!!Ee.hasAttribute("controls")&&-1!==Yt:"video"===bt?-1!==Yt&&(null!==Yt||(this._platform.FIREFOX||Ee.hasAttribute("controls"))):Ee.tabIndex>=0)}},{key:"isFocusable",value:function(Ee,He){return function Ht(tt){return!function on(tt){return function An(tt){return"input"==tt.nodeName.toLowerCase()}(tt)&&"hidden"==tt.type}(tt)&&(function It(tt){var Ue=tt.nodeName.toLowerCase();return"input"===Ue||"select"===Ue||"button"===Ue||"textarea"===Ue}(tt)||function _n(tt){return function Gt(tt){return"a"==tt.nodeName.toLowerCase()}(tt)&&tt.hasAttribute("href")}(tt)||tt.hasAttribute("contenteditable")||Zt(tt))}(Ee)&&!this.isDisabled(Ee)&&((null==He?void 0:He.ignoreVisibility)||this.isVisible(Ee))}}]),tt}();function Zt(tt){if(!tt.hasAttribute("tabindex")||void 0===tt.tabIndex)return!1;var Ue=tt.getAttribute("tabindex");return!(!Ue||isNaN(parseInt(Ue,10)))}function Et(tt){if(!Zt(tt))return null;var Ue=parseInt(tt.getAttribute("tabindex")||"",10);return isNaN(Ue)?-1:Ue}vt.\u0275fac=function(Ue){return new(Ue||vt)(F.LFG(M.t4))},vt.\u0275prov=F.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"});var yt=function(){function tt(Ue,Ee,He,bt){var Yt=this,En=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,D.Z)(this,tt),this._element=Ue,this._checker=Ee,this._ngZone=He,this._document=bt,this._hasAttached=!1,this.startAnchorListener=function(){return Yt.focusLastTabbableElement()},this.endAnchorListener=function(){return Yt.focusFirstTabbableElement()},this._enabled=!0,En||this.attachAnchors()}return(0,y.Z)(tt,[{key:"enabled",get:function(){return this._enabled},set:function(Ee){this._enabled=Ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}},{key:"destroy",value:function(){var Ee=this._startAnchor,He=this._endAnchor;Ee&&(Ee.removeEventListener("focus",this.startAnchorListener),Ee.remove()),He&&(He.removeEventListener("focus",this.endAnchorListener),He.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Ee=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ee._startAnchor||(Ee._startAnchor=Ee._createAnchor(),Ee._startAnchor.addEventListener("focus",Ee.startAnchorListener)),Ee._endAnchor||(Ee._endAnchor=Ee._createAnchor(),Ee._endAnchor.addEventListener("focus",Ee.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(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusInitialElement(Ee))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusFirstTabbableElement(Ee))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusLastTabbableElement(Ee))})})}},{key:"_getRegionBoundary",value:function(Ee){var He=this._element.querySelectorAll("[cdk-focus-region-".concat(Ee,"], ")+"[cdkFocusRegion".concat(Ee,"], ")+"[cdk-focus-".concat(Ee,"]"));return"start"==Ee?He.length?He[0]:this._getFirstTabbableElement(this._element):He.length?He[He.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Ee){var He=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(He){if(!this._checker.isFocusable(He)){var bt=this._getFirstTabbableElement(He);return null==bt||bt.focus(Ee),!!bt}return He.focus(Ee),!0}return this.focusFirstTabbableElement(Ee)}},{key:"focusFirstTabbableElement",value:function(Ee){var He=this._getRegionBoundary("start");return He&&He.focus(Ee),!!He}},{key:"focusLastTabbableElement",value:function(Ee){var He=this._getRegionBoundary("end");return He&&He.focus(Ee),!!He}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;for(var He=Ee.children,bt=0;bt<He.length;bt++){var Yt=He[bt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(He[bt]):null;if(Yt)return Yt}return null}},{key:"_getLastTabbableElement",value:function(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;for(var He=Ee.children,bt=He.length-1;bt>=0;bt--){var Yt=He[bt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(He[bt]):null;if(Yt)return Yt}return null}},{key:"_createAnchor",value:function(){var Ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ee),Ee.classList.add("cdk-visually-hidden"),Ee.classList.add("cdk-focus-trap-anchor"),Ee.setAttribute("aria-hidden","true"),Ee}},{key:"_toggleAnchorTabIndex",value:function(Ee,He){Ee?He.setAttribute("tabindex","0"):He.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}},{key:"_executeOnStable",value:function(Ee){this._ngZone.isStable?Ee():this._ngZone.onStable.pipe((0,$.q)(1)).subscribe(Ee)}}]),tt}(),mt=function(){function tt(Ue,Ee,He){(0,D.Z)(this,tt),this._checker=Ue,this._ngZone=Ee,this._document=He}return(0,y.Z)(tt,[{key:"create",value:function(Ee){var He=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new yt(Ee,this._checker,this._ngZone,this._document,He)}}]),tt}();mt.\u0275fac=function(Ue){return new(Ue||mt)(F.LFG(vt),F.LFG(F.R0b),F.LFG(K.K0))},mt.\u0275prov=F.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"});var cn=function(){function tt(Ue,Ee,He){(0,D.Z)(this,tt),this._elementRef=Ue,this._focusTrapFactory=Ee,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,y.Z)(tt,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Ee){this.focusTrap.enabled=(0,oe.Ig)(Ee)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Ee){this._autoCapture=(0,oe.Ig)(Ee)}},{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(Ee){var He=Ee.autoCapture;He&&!He.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,M.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),tt}();cn.\u0275fac=function(Ue){return new(Ue||cn)(F.Y36(F.SBq),F.Y36(mt),F.Y36(K.K0))},cn.\u0275dir=F.lG2({type:cn,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[F.TTD]});var $t=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(He,bt,Yt,En,rr,pn,ut){var Se;return(0,D.Z)(this,Ee),(Se=Ue.call(this,He,bt,Yt,En,ut.defer))._focusTrapManager=rr,Se._inertStrategy=pn,Se._focusTrapManager.register((0,Y.Z)(Se)),Se}return(0,y.Z)(Ee,[{key:"enabled",get:function(){return this._enabled},set:function(bt){this._enabled=bt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,S.Z)((0,U.Z)(Ee.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)}}]),Ee}(yt),j=new F.OlP("FOCUS_TRAP_INERT_STRATEGY"),V=function(){function tt(){(0,D.Z)(this,tt),this._listener=null}return(0,y.Z)(tt,[{key:"preventFocus",value:function(Ee){var He=this;this._listener&&Ee._document.removeEventListener("focus",this._listener,!0),this._listener=function(bt){return He._trapFocus(Ee,bt)},Ee._ngZone.runOutsideAngular(function(){Ee._document.addEventListener("focus",He._listener,!0)})}},{key:"allowFocus",value:function(Ee){!this._listener||(Ee._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Ee,He){var bt,Yt=He.target,En=Ee._element;Yt&&!En.contains(Yt)&&!(null===(bt=Yt.closest)||void 0===bt?void 0:bt.call(Yt,"div.cdk-overlay-pane"))&&setTimeout(function(){Ee.enabled&&!En.contains(Ee._document.activeElement)&&Ee.focusFirstTabbableElement()})}}]),tt}(),Jn=function(){function tt(){(0,D.Z)(this,tt),this._focusTrapStack=[]}return(0,y.Z)(tt,[{key:"register",value:function(Ee){this._focusTrapStack=this._focusTrapStack.filter(function(bt){return bt!==Ee});var He=this._focusTrapStack;He.length&&He[He.length-1]._disable(),He.push(Ee),Ee._enable()}},{key:"deregister",value:function(Ee){Ee._disable();var He=this._focusTrapStack,bt=He.indexOf(Ee);-1!==bt&&(He.splice(bt,1),He.length&&He[He.length-1]._enable())}}]),tt}();Jn.\u0275fac=function(Ue){return new(Ue||Jn)},Jn.\u0275prov=F.Yz7({token:Jn,factory:Jn.\u0275fac,providedIn:"root"});var wn=function(){function tt(Ue,Ee,He,bt,Yt){(0,D.Z)(this,tt),this._checker=Ue,this._ngZone=Ee,this._focusTrapManager=He,this._document=bt,this._inertStrategy=Yt||new V}return(0,y.Z)(tt,[{key:"create",value:function(Ee){var bt,He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return bt="boolean"==typeof He?{defer:He}:He,new $t(Ee,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,bt)}}]),tt}();function Bt(tt){return 0===tt.buttons||0===tt.offsetX&&0===tt.offsetY}function dt(tt){var Ue=tt.touches&&tt.touches[0]||tt.changedTouches&&tt.changedTouches[0];return!(!Ue||-1!==Ue.identifier||null!=Ue.radiusX&&1!==Ue.radiusX||null!=Ue.radiusY&&1!==Ue.radiusY)}wn.\u0275fac=function(Ue){return new(Ue||wn)(F.LFG(vt),F.LFG(F.R0b),F.LFG(Jn),F.LFG(K.K0),F.LFG(j,8))},wn.\u0275prov=F.Yz7({token:wn,factory:wn.\u0275fac,providedIn:"root"});var de=new F.OlP("cdk-input-modality-detector-options"),Te={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},We=(0,M.i$)({passive:!0,capture:!0}),lt=function(){function tt(Ue,Ee,He,bt){var Yt=this;(0,D.Z)(this,tt),this._platform=Ue,this._mostRecentTarget=null,this._modality=new I.X(null),this._lastTouchMs=0,this._onKeydown=function(En){var rr,pn;(null===(pn=null===(rr=Yt._options)||void 0===rr?void 0:rr.ignoreKeys)||void 0===pn?void 0:pn.some(function(ut){return ut===En.keyCode}))||(Yt._modality.next("keyboard"),Yt._mostRecentTarget=(0,M.sA)(En))},this._onMousedown=function(En){Date.now()-Yt._lastTouchMs<650||(Yt._modality.next(Bt(En)?"keyboard":"mouse"),Yt._mostRecentTarget=(0,M.sA)(En))},this._onTouchstart=function(En){dt(En)?Yt._modality.next("keyboard"):(Yt._lastTouchMs=Date.now(),Yt._modality.next("touch"),Yt._mostRecentTarget=(0,M.sA)(En))},this._options=Object.assign(Object.assign({},Te),bt),this.modalityDetected=this._modality.pipe((0,ce.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,se.x)()),Ue.isBrowser&&Ee.runOutsideAngular(function(){He.addEventListener("keydown",Yt._onKeydown,We),He.addEventListener("mousedown",Yt._onMousedown,We),He.addEventListener("touchstart",Yt._onTouchstart,We)})}return(0,y.Z)(tt,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,We),document.removeEventListener("mousedown",this._onMousedown,We),document.removeEventListener("touchstart",this._onTouchstart,We))}}]),tt}();lt.\u0275fac=function(Ue){return new(Ue||lt)(F.LFG(M.t4),F.LFG(F.R0b),F.LFG(K.K0),F.LFG(de,8))},lt.\u0275prov=F.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"});var Dt=new F.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tn(){return null}});var Jt=new F.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),nn=function(){function tt(Ue,Ee,He,bt){(0,D.Z)(this,tt),this._ngZone=Ee,this._defaultOptions=bt,this._document=He,this._liveElement=Ue||this._createLiveElement()}return(0,y.Z)(tt,[{key:"announce",value:function(Ee){for(var Yt,En,He=this,bt=this._defaultOptions,rr=arguments.length,pn=new Array(rr>1?rr-1:0),ut=1;ut<rr;ut++)pn[ut-1]=arguments[ut];return 1===pn.length&&"number"==typeof pn[0]?En=pn[0]:(Yt=pn[0],En=pn[1]),this.clear(),clearTimeout(this._previousTimeout),Yt||(Yt=bt&&bt.politeness?bt.politeness:"polite"),null==En&&bt&&(En=bt.duration),this._liveElement.setAttribute("aria-live",Yt),this._ngZone.runOutsideAngular(function(){return He._currentPromise||(He._currentPromise=new Promise(function(Se){return He._currentResolve=Se})),clearTimeout(He._previousTimeout),He._previousTimeout=setTimeout(function(){He._liveElement.textContent=Ee,"number"==typeof En&&(He._previousTimeout=setTimeout(function(){return He.clear()},En)),He._currentResolve(),He._currentPromise=He._currentResolve=void 0},100),He._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Ee,He;clearTimeout(this._previousTimeout),null===(Ee=this._liveElement)||void 0===Ee||Ee.remove(),this._liveElement=null,null===(He=this._currentResolve)||void 0===He||He.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Ee="cdk-live-announcer-element",He=this._document.getElementsByClassName(Ee),bt=this._document.createElement("div"),Yt=0;Yt<He.length;Yt++)He[Yt].remove();return bt.classList.add(Ee),bt.classList.add("cdk-visually-hidden"),bt.setAttribute("aria-atomic","true"),bt.setAttribute("aria-live","polite"),this._document.body.appendChild(bt),bt}}]),tt}();nn.\u0275fac=function(Ue){return new(Ue||nn)(F.LFG(Dt,8),F.LFG(F.R0b),F.LFG(K.K0),F.LFG(Jt,8))},nn.\u0275prov=F.Yz7({token:nn,factory:nn.\u0275fac,providedIn:"root"});var dn=function(){function tt(Ue,Ee,He,bt){(0,D.Z)(this,tt),this._elementRef=Ue,this._liveAnnouncer=Ee,this._contentObserver=He,this._ngZone=bt,this._politeness="polite"}return(0,y.Z)(tt,[{key:"politeness",get:function(){return this._politeness},set:function(Ee){var He=this;this._politeness="off"===Ee||"assertive"===Ee?Ee:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return He._contentObserver.observe(He._elementRef).subscribe(function(){var bt=He._elementRef.nativeElement.textContent;bt!==He._previousAnnouncedText&&(He._liveAnnouncer.announce(bt,He._politeness),He._previousAnnouncedText=bt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),tt}();dn.\u0275fac=function(Ue){return new(Ue||dn)(F.Y36(F.SBq),F.Y36(nn),F.Y36(ve.yq),F.Y36(F.R0b))},dn.\u0275dir=F.lG2({type:dn,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]});var On=new F.OlP("cdk-focus-monitor-default-options"),Dn=(0,M.i$)({passive:!0,capture:!0}),zn=function(){function tt(Ue,Ee,He,bt,Yt){var En=this;(0,D.Z)(this,tt),this._ngZone=Ue,this._platform=Ee,this._inputModalityDetector=He,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){En._windowFocused=!0,En._windowFocusTimeoutId=window.setTimeout(function(){return En._windowFocused=!1})},this._stopInputModalityDetector=new O.xQ,this._rootNodeFocusAndBlurListener=function(rr){for(var pn=(0,M.sA)(rr),ut="focus"===rr.type?En._onFocus:En._onBlur,Se=pn;Se;Se=Se.parentElement)ut.call(En,rr,Se)},this._document=bt,this._detectionMode=(null==Yt?void 0:Yt.detectionMode)||0}return(0,y.Z)(tt,[{key:"monitor",value:function(Ee){var He=arguments.length>1&&void 0!==arguments[1]&&arguments[1],bt=(0,oe.fI)(Ee);if(!this._platform.isBrowser||1!==bt.nodeType)return(0,T.of)(null);var Yt=(0,M.kV)(bt)||this._getDocument(),En=this._elementInfo.get(bt);if(En)return He&&(En.checkChildren=!0),En.subject;var rr={checkChildren:He,subject:new O.xQ,rootNode:Yt};return this._elementInfo.set(bt,rr),this._registerGlobalListeners(rr),rr.subject}},{key:"stopMonitoring",value:function(Ee){var He=(0,oe.fI)(Ee),bt=this._elementInfo.get(He);bt&&(bt.subject.complete(),this._setClasses(He),this._elementInfo.delete(He),this._removeGlobalListeners(bt))}},{key:"focusVia",value:function(Ee,He,bt){var Yt=this,En=(0,oe.fI)(Ee);En===this._getDocument().activeElement?this._getClosestElementsInfo(En).forEach(function(pn){var ut=(0,z.Z)(pn,2),Se=ut[0],Ae=ut[1];return Yt._originChanged(Se,He,Ae)}):(this._setOrigin(He),"function"==typeof En.focus&&En.focus(bt))}},{key:"ngOnDestroy",value:function(){var Ee=this;this._elementInfo.forEach(function(He,bt){return Ee.stopMonitoring(bt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Ee){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ee)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Ee){return 1===this._detectionMode||!!(null==Ee?void 0:Ee.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Ee,He){Ee.classList.toggle("cdk-focused",!!He),Ee.classList.toggle("cdk-touch-focused","touch"===He),Ee.classList.toggle("cdk-keyboard-focused","keyboard"===He),Ee.classList.toggle("cdk-mouse-focused","mouse"===He),Ee.classList.toggle("cdk-program-focused","program"===He)}},{key:"_setOrigin",value:function(Ee){var He=this,bt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(He._origin=Ee,He._originFromTouchInteraction="touch"===Ee&&bt,0===He._detectionMode){clearTimeout(He._originTimeoutId);var Yt=He._originFromTouchInteraction?650:1;He._originTimeoutId=setTimeout(function(){return He._origin=null},Yt)}})}},{key:"_onFocus",value:function(Ee,He){var bt=this._elementInfo.get(He),Yt=(0,M.sA)(Ee);!bt||!bt.checkChildren&&He!==Yt||this._originChanged(He,this._getFocusOrigin(Yt),bt)}},{key:"_onBlur",value:function(Ee,He){var bt=this._elementInfo.get(He);!bt||bt.checkChildren&&Ee.relatedTarget instanceof Node&&He.contains(Ee.relatedTarget)||(this._setClasses(He),this._emitOrigin(bt.subject,null))}},{key:"_emitOrigin",value:function(Ee,He){this._ngZone.run(function(){return Ee.next(He)})}},{key:"_registerGlobalListeners",value:function(Ee){var He=this;if(this._platform.isBrowser){var bt=Ee.rootNode,Yt=this._rootNodeFocusListenerCount.get(bt)||0;Yt||this._ngZone.runOutsideAngular(function(){bt.addEventListener("focus",He._rootNodeFocusAndBlurListener,Dn),bt.addEventListener("blur",He._rootNodeFocusAndBlurListener,Dn)}),this._rootNodeFocusListenerCount.set(bt,Yt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){He._getWindow().addEventListener("focus",He._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,te.R)(this._stopInputModalityDetector)).subscribe(function(En){He._setOrigin(En,!0)}))}}},{key:"_removeGlobalListeners",value:function(Ee){var He=Ee.rootNode;if(this._rootNodeFocusListenerCount.has(He)){var bt=this._rootNodeFocusListenerCount.get(He);bt>1?this._rootNodeFocusListenerCount.set(He,bt-1):(He.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),He.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dn),this._rootNodeFocusListenerCount.delete(He))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Ee,He,bt){this._setClasses(Ee,He),this._emitOrigin(bt.subject,He),this._lastFocusOrigin=He}},{key:"_getClosestElementsInfo",value:function(Ee){var He=[];return this._elementInfo.forEach(function(bt,Yt){(Yt===Ee||bt.checkChildren&&Yt.contains(Ee))&&He.push([Yt,bt])}),He}}]),tt}();zn.\u0275fac=function(Ue){return new(Ue||zn)(F.LFG(F.R0b),F.LFG(M.t4),F.LFG(lt),F.LFG(K.K0,8),F.LFG(On,8))},zn.\u0275prov=F.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"});var Zn=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._elementRef=Ue,this._focusMonitor=Ee,this.cdkFocusChange=new F.vpe}return(0,y.Z)(tt,[{key:"ngAfterViewInit",value:function(){var Ee=this,He=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(He,1===He.nodeType&&He.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(bt){return Ee.cdkFocusChange.emit(bt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),tt}();Zn.\u0275fac=function(Ue){return new(Ue||Zn)(F.Y36(F.SBq),F.Y36(zn))},Zn.\u0275dir=F.lG2({type:Zn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});var jn="cdk-high-contrast-black-on-white",mn="cdk-high-contrast-white-on-black",lr="cdk-high-contrast-active",Yn=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._platform=Ue,this._document=Ee}return(0,y.Z)(tt,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Ee=this._document.createElement("div");Ee.style.backgroundColor="rgb(1,2,3)",Ee.style.position="absolute",this._document.body.appendChild(Ee);var He=this._document.defaultView||window,bt=He&&He.getComputedStyle?He.getComputedStyle(Ee):null,Yt=(bt&&bt.backgroundColor||"").replace(/ /g,"");switch(Ee.remove(),Yt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Ee=this._document.body.classList;Ee.remove(lr),Ee.remove(jn),Ee.remove(mn),this._hasCheckedHighContrastMode=!0;var He=this.getHighContrastMode();1===He?(Ee.add(lr),Ee.add(jn)):2===He&&(Ee.add(lr),Ee.add(mn))}}}]),tt}();Yn.\u0275fac=function(Ue){return new(Ue||Yn)(F.LFG(M.t4),F.LFG(K.K0))},Yn.\u0275prov=F.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"});var Kt=(0,y.Z)(function tt(Ue){(0,D.Z)(this,tt),Ue._applyBodyHighContrastModeCssClasses()});Kt.\u0275fac=function(Ue){return new(Ue||Kt)(F.LFG(Yn))},Kt.\u0275mod=F.oAB({type:Kt}),Kt.\u0275inj=F.cJS({imports:[[ve.Q8]]})},226:function(qe,J,m){"use strict";m.d(J,{Is:function(){return K},vT:function(){return M}});var z=m(5671),Y=m(3144),S=m(5e3),U=m(9808),L=new S.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,S.f3M)(U.K0)}});var D=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function y(O){var k=(null==O?void 0:O.toLowerCase())||"";return"auto"===k&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?D.test(navigator.language)?"rtl":"ltr":"rtl"===k?"rtl":"ltr"}var K=function(){function O(k){if((0,z.Z)(this,O),this.value="ltr",this.change=new S.vpe,k){var I=k.body?k.body.dir:null,T=k.documentElement?k.documentElement.dir:null;this.value=y(I||T||"ltr")}}return(0,Y.Z)(O,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),O}();K.\u0275fac=function(k){return new(k||K)(S.LFG(L,8))},K.\u0275prov=S.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"});var F=function(){function O(){(0,z.Z)(this,O),this._dir="ltr",this._isInitialized=!1,this.change=new S.vpe}return(0,Y.Z)(O,[{key:"dir",get:function(){return this._dir},set:function(I){var T=this._dir;this._dir=y(I),this._rawDir=I,T!==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()}}]),O}();F.\u0275fac=function(k){return new(k||F)},F.\u0275dir=S.lG2({type:F,selectors:[["","dir",""]],hostVars:1,hostBindings:function(k,I){2&k&&S.uIk("dir",I._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[S._Bn([{provide:K,useExisting:F}])]});var M=(0,Y.Z)(function O(){(0,z.Z)(this,O)});M.\u0275fac=function(k){return new(k||M)},M.\u0275mod=S.oAB({type:M}),M.\u0275inj=S.cJS({})},3191:function(qe,J,m){"use strict";m.d(J,{Eq:function(){return P},HM:function(){return D},Ig:function(){return S},du:function(){return K},fI:function(){return y},su:function(){return U},t6:function(){return L}});var z=m(7762),Y=m(5e3);function S(F){return null!=F&&"false"!=="".concat(F)}function U(F){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return L(F)?Number(F):M}function L(F){return!isNaN(parseFloat(F))&&!isNaN(Number(F))}function P(F){return Array.isArray(F)?F:[F]}function D(F){return null==F?"":"string"==typeof F?F:"".concat(F,"px")}function y(F){return F instanceof Y.SBq?F.nativeElement:F}function K(F){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,O=[];if(null!=F){var T,k=Array.isArray(F)?F:"".concat(F).split(M),I=(0,z.Z)(k);try{for(I.s();!(T=I.n()).done;){var w=T.value,x="".concat(w).trim();x&&O.push(x)}}catch(N){I.e(N)}finally{I.f()}}return O}},449:function(qe,J,m){"use strict";m.d(J,{A8:function(){return x},Ov:function(){return T},P3:function(){return O},Z9:function(){return M},eX:function(){return I},k:function(){return N},o2:function(){return F},yy:function(){return k}});var z=m(7762),Y=m(136),S=m(9388),U=m(3144),L=m(5671),P=m(4715),D=m(1086),y=m(8929),K=m(5e3),F=(0,U.Z)(function R(){(0,L.Z)(this,R)});function M(R){return R&&"function"==typeof R.connect}var O=function(R){(0,Y.Z)($,R);var W=(0,S.Z)($);function $(ce){var se;return(0,L.Z)(this,$),(se=W.call(this))._data=ce,se}return(0,U.Z)($,[{key:"connect",value:function(){return(0,P.b)(this._data)?this._data:(0,D.of)(this._data)}},{key:"disconnect",value:function(){}}]),$}(F),k=function(){function R(){(0,L.Z)(this,R)}return(0,U.Z)(R,[{key:"applyChanges",value:function($,ce,se,te,oe){$.forEachOperation(function(ve,Oe,st){var xe,_e;if(null==ve.previousIndex){var ke=se(ve,Oe,st);xe=ce.createEmbeddedView(ke.templateRef,ke.context,ke.index),_e=1}else null==st?(ce.remove(Oe),_e=3):(xe=ce.get(Oe),ce.move(xe,st),_e=2);oe&&oe({context:null==xe?void 0:xe.context,operation:_e,record:ve})})}},{key:"detach",value:function(){}}]),R}(),I=function(){function R(){(0,L.Z)(this,R),this.viewCacheSize=20,this._viewCache=[]}return(0,U.Z)(R,[{key:"applyChanges",value:function($,ce,se,te,oe){var ve=this;$.forEachOperation(function(Oe,st,xe){var _e,ke;if(null==Oe.previousIndex){ke=(_e=ve._insertView(function(){return se(Oe,st,xe)},xe,ce,te(Oe)))?1:0}else null==xe?(ve._detachAndCacheView(st,ce),ke=3):(_e=ve._moveView(st,xe,ce,te(Oe)),ke=2);oe&&oe({context:null==_e?void 0:_e.context,operation:ke,record:Oe})})}},{key:"detach",value:function(){var ce,$=(0,z.Z)(this._viewCache);try{for($.s();!(ce=$.n()).done;){ce.value.destroy()}}catch(te){$.e(te)}finally{$.f()}this._viewCache=[]}},{key:"_insertView",value:function($,ce,se,te){var oe=this._insertViewFromCache(ce,se);if(!oe){var ve=$();return se.createEmbeddedView(ve.templateRef,ve.context,ve.index)}oe.context.$implicit=te}},{key:"_detachAndCacheView",value:function($,ce){var se=ce.detach($);this._maybeCacheView(se,ce)}},{key:"_moveView",value:function($,ce,se,te){var oe=se.get($);return se.move(oe,ce),oe.context.$implicit=te,oe}},{key:"_maybeCacheView",value:function($,ce){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push($);else{var se=ce.indexOf($);-1===se?$.destroy():ce.remove(se)}}},{key:"_insertViewFromCache",value:function($,ce){var se=this._viewCache.pop();return se&&ce.insert(se,$),se||null}}]),R}(),T=function(){function R(){var W=this,$=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ce=arguments.length>1?arguments[1]:void 0,se=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,L.Z)(this,R),this._multiple=$,this._emitChanges=se,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new y.xQ,ce&&ce.length&&($?ce.forEach(function(te){return W._markSelected(te)}):this._markSelected(ce[0]),this._selectedToEmit.length=0)}return(0,U.Z)(R,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var $=this,ce=arguments.length,se=new Array(ce),te=0;te<ce;te++)se[te]=arguments[te];this._verifyValueAssignment(se),se.forEach(function(oe){return $._markSelected(oe)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var $=this,ce=arguments.length,se=new Array(ce),te=0;te<ce;te++)se[te]=arguments[te];this._verifyValueAssignment(se),se.forEach(function(oe){return $._unmarkSelected(oe)}),this._emitChangeEvent()}},{key:"toggle",value:function($){this.isSelected($)?this.deselect($):this.select($)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function($){return this._selection.has($)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function($){this._multiple&&this.selected&&this._selected.sort($)}},{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($){this.isSelected($)||(this._multiple||this._unmarkAll(),this._selection.add($),this._emitChanges&&this._selectedToEmit.push($))}},{key:"_unmarkSelected",value:function($){this.isSelected($)&&(this._selection.delete($),this._emitChanges&&this._deselectedToEmit.push($))}},{key:"_unmarkAll",value:function(){var $=this;this.isEmpty()||this._selection.forEach(function(ce){return $._unmarkSelected(ce)})}},{key:"_verifyValueAssignment",value:function($){$.length>1&&this._multiple}}]),R}();var x=function(){function R(){(0,L.Z)(this,R),this._listeners=[]}return(0,U.Z)(R,[{key:"notify",value:function($,ce){var te,se=(0,z.Z)(this._listeners);try{for(se.s();!(te=se.n()).done;){(0,te.value)($,ce)}}catch(ve){se.e(ve)}finally{se.f()}}},{key:"listen",value:function($){var ce=this;return this._listeners.push($),function(){ce._listeners=ce._listeners.filter(function(se){return $!==se})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),R}();x.\u0275fac=function(W){return new(W||x)},x.\u0275prov=K.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"});var N=new K.OlP("_ViewRepeater")},1159:function(qe,J,m){"use strict";m.d(J,{A:function(){return Xe},JH:function(){return W},JU:function(){return P},K5:function(){return L},LH:function(){return N},L_:function(){return O},MW:function(){return de},Mf:function(){return S},SV:function(){return R},Sd:function(){return w},Vb:function(){return uo},Z:function(){return dt},ZH:function(){return Y},aO:function(){return Mt},b2:function(){return lo},hY:function(){return M},jx:function(){return D},oh:function(){return x},uR:function(){return T},xE:function(){return oe},yY:function(){return te},zL:function(){return y}});var Y=8,S=9,L=13,P=16,D=17,y=18,M=27,O=32,T=35,w=36,x=37,N=38,R=39,W=40,te=46,oe=48,Mt=57,Xe=65,dt=90,de=91,lo=224;function uo(mi){for(var Bo=arguments.length,ei=new Array(Bo>1?Bo-1:0),Pi=1;Pi<Bo;Pi++)ei[Pi-1]=arguments[Pi];return ei.length?ei.some(function(Wi){return mi[Wi]}):mi.altKey||mi.shiftKey||mi.ctrlKey||mi.metaKey}},7144:function(qe,J,m){"use strict";m.d(J,{Q8:function(){return M},wD:function(){return F},yq:function(){return K}});var z=m(5671),Y=m(3144),S=m(3191),U=m(5e3),L=m(7451),P=m(8929),D=m(13),y=function(){function O(){(0,z.Z)(this,O)}return(0,Y.Z)(O,[{key:"create",value:function(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}]),O}();y.\u0275fac=function(k){return new(k||y)},y.\u0275prov=U.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"});var K=function(){function O(k){(0,z.Z)(this,O),this._mutationObserverFactory=k,this._observedElements=new Map}return(0,Y.Z)(O,[{key:"ngOnDestroy",value:function(){var I=this;this._observedElements.forEach(function(T,w){return I._cleanupObserver(w)})}},{key:"observe",value:function(I){var T=this,w=(0,S.fI)(I);return new L.y(function(x){var R=T._observeElement(w).subscribe(x);return function(){R.unsubscribe(),T._unobserveElement(w)}})}},{key:"_observeElement",value:function(I){if(this._observedElements.has(I))this._observedElements.get(I).count++;else{var T=new P.xQ,w=this._mutationObserverFactory.create(function(x){return T.next(x)});w&&w.observe(I,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(I,{observer:w,stream:T,count:1})}return this._observedElements.get(I).stream}},{key:"_unobserveElement",value:function(I){this._observedElements.has(I)&&(this._observedElements.get(I).count--,this._observedElements.get(I).count||this._cleanupObserver(I))}},{key:"_cleanupObserver",value:function(I){if(this._observedElements.has(I)){var T=this._observedElements.get(I),w=T.observer,x=T.stream;w&&w.disconnect(),x.complete(),this._observedElements.delete(I)}}}]),O}();K.\u0275fac=function(k){return new(k||K)(U.LFG(y))},K.\u0275prov=U.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"});var F=function(){function O(k,I,T){(0,z.Z)(this,O),this._contentObserver=k,this._elementRef=I,this._ngZone=T,this.event=new U.vpe,this._disabled=!1,this._currentSubscription=null}return(0,Y.Z)(O,[{key:"disabled",get:function(){return this._disabled},set:function(I){this._disabled=(0,S.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(I){this._debounce=(0,S.su)(I),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var I=this;this._unsubscribe();var T=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){I._currentSubscription=(I.debounce?T.pipe((0,D.b)(I.debounce)):T).subscribe(I.event)})}},{key:"_unsubscribe",value:function(){var I;null===(I=this._currentSubscription)||void 0===I||I.unsubscribe()}}]),O}();F.\u0275fac=function(k){return new(k||F)(U.Y36(K),U.Y36(U.SBq),U.Y36(U.R0b))},F.\u0275dir=U.lG2({type:F,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var M=(0,Y.Z)(function O(){(0,z.Z)(this,O)});M.\u0275fac=function(k){return new(k||M)},M.\u0275mod=U.oAB({type:M}),M.\u0275inj=U.cJS({providers:[y]})},1314:function(qe,J,m){"use strict";m.d(J,{U8:function(){return Jn},X_:function(){return ct},Xj:function(){return jt},aV:function(){return ln},pI:function(){return $t},xu:function(){return cn}});var z=m(3237),Y=m(1120),S=m(136),U=m(9388),L=m(7685),P=m(7762),D=m(4902),y=m(5671),K=m(3144),F=m(9071),M=m(9808),O=m(5e3),k=m(3191),I=m(925),T=m(226),w=m(7429),x=m(8929),N=m(4096),R=m(6787),W=m(2986),$=m(7625),ce=m(4290),se=m(1159),te=(0,I.Mq)(),oe=function(){function Bt(dt,de){(0,y.Z)(this,Bt),this._viewportRuler=dt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=de}return(0,K.Z)(Bt,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var de=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=de.style.left||"",this._previousHTMLStyles.top=de.style.top||"",de.style.left=(0,k.HM)(-this._previousScrollPosition.left),de.style.top=(0,k.HM)(-this._previousScrollPosition.top),de.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var de=this._document.documentElement,Te=this._document.body,ue=de.style,We=Te.style,lt=ue.scrollBehavior||"",Dt=We.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,de.classList.remove("cdk-global-scrollblock"),te&&(ue.scrollBehavior=We.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),te&&(ue.scrollBehavior=lt,We.scrollBehavior=Dt)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var Te=this._document.body,ue=this._viewportRuler.getViewportSize();return Te.scrollHeight>ue.height||Te.scrollWidth>ue.width}}]),Bt}();var Oe=function(){function Bt(dt,de,Te,ue){var We=this;(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._ngZone=de,this._viewportRuler=Te,this._config=ue,this._scrollSubscription=null,this._detach=function(){We.disable(),We._overlayRef.hasAttached()&&We._ngZone.run(function(){return We._overlayRef.detach()})}}return(0,K.Z)(Bt,[{key:"attach",value:function(de){this._overlayRef,this._overlayRef=de}},{key:"enable",value:function(){var de=this;if(!this._scrollSubscription){var Te=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Te.subscribe(function(){var ue=de._viewportRuler.getViewportScrollPosition().top;Math.abs(ue-de._initialScrollPosition)>de._config.threshold?de._detach():de._overlayRef.updatePosition()})):this._scrollSubscription=Te.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Bt}(),st=function(){function Bt(){(0,y.Z)(this,Bt)}return(0,K.Z)(Bt,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Bt}();function xe(Bt,dt){return dt.some(function(de){var Te=Bt.bottom<de.top,ue=Bt.top>de.bottom,We=Bt.right<de.left,lt=Bt.left>de.right;return Te||ue||We||lt})}function _e(Bt,dt){return dt.some(function(de){var Te=Bt.top<de.top,ue=Bt.bottom>de.bottom,We=Bt.left<de.left,lt=Bt.right>de.right;return Te||ue||We||lt})}var ke=function(){function Bt(dt,de,Te,ue){(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._viewportRuler=de,this._ngZone=Te,this._config=ue,this._scrollSubscription=null}return(0,K.Z)(Bt,[{key:"attach",value:function(de){this._overlayRef,this._overlayRef=de}},{key:"enable",value:function(){var de=this;if(!this._scrollSubscription){var Te=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(Te).subscribe(function(){if(de._overlayRef.updatePosition(),de._config&&de._config.autoClose){var ue=de._overlayRef.overlayElement.getBoundingClientRect(),We=de._viewportRuler.getViewportSize(),lt=We.width,Dt=We.height;xe(ue,[{width:lt,height:Dt,bottom:Dt,right:lt,top:0,left:0}])&&(de.disable(),de._ngZone.run(function(){return de._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Bt}(),Fe=(0,K.Z)(function Bt(dt,de,Te,ue){var We=this;(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._viewportRuler=de,this._ngZone=Te,this.noop=function(){return new st},this.close=function(lt){return new Oe(We._scrollDispatcher,We._ngZone,We._viewportRuler,lt)},this.block=function(){return new oe(We._viewportRuler,We._document)},this.reposition=function(lt){return new ke(We._scrollDispatcher,We._viewportRuler,We._ngZone,lt)},this._document=ue});Fe.\u0275fac=function(dt){return new(dt||Fe)(O.LFG(F.mF),O.LFG(F.rL),O.LFG(O.R0b),O.LFG(M.K0))},Fe.\u0275prov=O.Yz7({token:Fe,factory:Fe.\u0275fac,providedIn:"root"});var ct=(0,K.Z)(function Bt(dt){if((0,y.Z)(this,Bt),this.scrollStrategy=new st,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,dt)for(var Te=0,ue=Object.keys(dt);Te<ue.length;Te++){var We=ue[Te];void 0!==dt[We]&&(this[We]=dt[We])}}),Xt=(0,K.Z)(function Bt(dt,de){(0,y.Z)(this,Bt),this.connectionPair=dt,this.scrollableViewProperties=de});var Xe=function(){function Bt(dt,de,Te,ue,We,lt,Dt,tn,Jt){var nn=this;(0,y.Z)(this,Bt),this._portalOutlet=dt,this._host=de,this._pane=Te,this._config=ue,this._ngZone=We,this._keyboardDispatcher=lt,this._document=Dt,this._location=tn,this._outsideClickDispatcher=Jt,this._backdropElement=null,this._backdropClick=new x.xQ,this._attachments=new x.xQ,this._detachments=new x.xQ,this._locationChanges=N.w.EMPTY,this._backdropClickHandler=function(dn){return nn._backdropClick.next(dn)},this._backdropTransitionendHandler=function(dn){nn._disposeBackdrop(dn.target)},this._keydownEvents=new x.xQ,this._outsidePointerEvents=new x.xQ,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}return(0,K.Z)(Bt,[{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(de){var Te=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var ue=this._portalOutlet.attach(de);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(function(){Te.hasAttached()&&Te.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 Te.dispose()})),this._outsideClickDispatcher.add(this),ue}},{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 de=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),de}}},{key:"dispose",value:function(){var de,Te=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===(de=this._host)||void 0===de||de.remove(),this._previousHostParent=this._pane=this._host=null,Te&&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(de){de!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=de,this.hasAttached()&&(de.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(de){this._config=Object.assign(Object.assign({},this._config),de),this._updateElementSize()}},{key:"setDirection",value:function(de){this._config=Object.assign(Object.assign({},this._config),{direction:de}),this._updateElementDirection()}},{key:"addPanelClass",value:function(de){this._pane&&this._toggleClasses(this._pane,de,!0)}},{key:"removePanelClass",value:function(de){this._pane&&this._toggleClasses(this._pane,de,!1)}},{key:"getDirection",value:function(){var de=this._config.direction;return de?"string"==typeof de?de:de.value:"ltr"}},{key:"updateScrollStrategy",value:function(de){de!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=de,this.hasAttached()&&(de.attach(this),de.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var de=this._pane.style;de.width=(0,k.HM)(this._config.width),de.height=(0,k.HM)(this._config.height),de.minWidth=(0,k.HM)(this._config.minWidth),de.minHeight=(0,k.HM)(this._config.minHeight),de.maxWidth=(0,k.HM)(this._config.maxWidth),de.maxHeight=(0,k.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(de){this._pane.style.pointerEvents=de?"":"none"}},{key:"_attachBackdrop",value:function(){var de=this,Te="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){de._backdropElement&&de._backdropElement.classList.add(Te)})}):this._backdropElement.classList.add(Te)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var de=this,Te=this._backdropElement;!Te||(Te.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){Te.addEventListener("transitionend",de._backdropTransitionendHandler)}),Te.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){de._disposeBackdrop(Te)},500)}))}},{key:"_toggleClasses",value:function(de,Te,ue){var lt,Dt,We=(0,k.Eq)(Te||[]).filter(function(tn){return!!tn});We.length&&(ue?(lt=de.classList).add.apply(lt,(0,D.Z)(We)):(Dt=de.classList).remove.apply(Dt,(0,D.Z)(We)))}},{key:"_detachContentWhenStable",value:function(){var de=this;this._ngZone.runOutsideAngular(function(){var Te=de._ngZone.onStable.pipe((0,$.R)((0,R.T)(de._attachments,de._detachments))).subscribe(function(){(!de._pane||!de._host||0===de._pane.children.length)&&(de._pane&&de._config.panelClass&&de._toggleClasses(de._pane,de._config.panelClass,!1),de._host&&de._host.parentElement&&(de._previousHostParent=de._host.parentElement,de._host.remove()),Te.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var de=this._scrollStrategy;de&&(de.disable(),de.detach&&de.detach())}},{key:"_disposeBackdrop",value:function(de){de&&(de.removeEventListener("click",this._backdropClickHandler),de.removeEventListener("transitionend",this._backdropTransitionendHandler),de.remove(),this._backdropElement===de&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Bt}(),jt=function(){function Bt(dt,de){(0,y.Z)(this,Bt),this._platform=de,this._document=dt}return(0,K.Z)(Bt,[{key:"ngOnDestroy",value:function(){var de;null===(de=this._containerElement)||void 0===de||de.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var de="cdk-overlay-container";if(this._platform.isBrowser||(0,I.Oy)())for(var Te=this._document.querySelectorAll(".".concat(de,'[platform="server"], ')+".".concat(de,'[platform="test"]')),ue=0;ue<Te.length;ue++)Te[ue].remove();var We=this._document.createElement("div");We.classList.add(de),(0,I.Oy)()?We.setAttribute("platform","test"):this._platform.isBrowser||We.setAttribute("platform","server"),this._document.body.appendChild(We),this._containerElement=We}}]),Bt}();jt.\u0275fac=function(dt){return new(dt||jt)(O.LFG(M.K0),O.LFG(I.t4))},jt.\u0275prov=O.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var it="cdk-overlay-connected-position-bounding-box",vt=/([A-Za-z%]+)$/,nt=function(){function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._viewportRuler=de,this._document=Te,this._platform=ue,this._overlayContainer=We,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 x.xQ,this._resizeSubscription=N.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(dt)}return(0,K.Z)(Bt,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(de){var Te=this;this._overlayRef&&this._overlayRef,this._validatePositions(),de.hostElement.classList.add(it),this._overlayRef=de,this._boundingBox=de.hostElement,this._pane=de.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){Te._isInitialRender=!0,Te.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 Dt,Jt,de=this._originRect,Te=this._overlayRect,ue=this._viewportRect,We=this._containerRect,lt=[],tn=(0,P.Z)(this._preferredPositions);try{for(tn.s();!(Jt=tn.n()).done;){var nn=Jt.value,dn=this._getOriginPoint(de,We,nn),On=this._getOverlayPoint(dn,Te,nn),Dn=this._getOverlayFit(On,Te,ue,nn);if(Dn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(nn,dn);this._canFitWithFlexibleDimensions(Dn,On,ue)?lt.push({position:nn,origin:dn,overlayRect:Te,boundingBoxRect:this._calculateBoundingBoxRect(dn,nn)}):(!Dt||Dt.overlayFit.visibleArea<Dn.visibleArea)&&(Dt={overlayFit:Dn,overlayPoint:On,originPoint:dn,position:nn,overlayRect:Te})}}catch(Kt){tn.e(Kt)}finally{tn.f()}if(lt.length){var mn,zn=null,Zn=-1,jn=(0,P.Z)(lt);try{for(jn.s();!(mn=jn.n()).done;){var lr=mn.value,Yn=lr.boundingBoxRect.width*lr.boundingBoxRect.height*(lr.position.weight||1);Yn>Zn&&(Zn=Yn,zn=lr)}}catch(Kt){jn.e(Kt)}finally{jn.f()}return this._isPushed=!1,void this._applyPosition(zn.position,zn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Dt.position,Dt.originPoint);this._applyPosition(Dt.position,Dt.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Lt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(it),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var de=this._lastPosition;if(de){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var Te=this._getOriginPoint(this._originRect,this._containerRect,de);this._applyPosition(de,Te)}else this.apply()}}},{key:"withScrollableContainers",value:function(de){return this._scrollables=de,this}},{key:"withPositions",value:function(de){return this._preferredPositions=de,-1===de.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(de){return this._viewportMargin=de,this}},{key:"withFlexibleDimensions",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=de,this}},{key:"withGrowAfterOpen",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=de,this}},{key:"withPush",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=de,this}},{key:"withLockedPosition",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=de,this}},{key:"setOrigin",value:function(de){return this._origin=de,this}},{key:"withDefaultOffsetX",value:function(de){return this._offsetX=de,this}},{key:"withDefaultOffsetY",value:function(de){return this._offsetY=de,this}},{key:"withTransformOriginOn",value:function(de){return this._transformOriginSelector=de,this}},{key:"_getOriginPoint",value:function(de,Te,ue){var We,tn;if("center"==ue.originX)We=de.left+de.width/2;else{var lt=this._isRtl()?de.right:de.left,Dt=this._isRtl()?de.left:de.right;We="start"==ue.originX?lt:Dt}return Te.left<0&&(We-=Te.left),tn="center"==ue.originY?de.top+de.height/2:"top"==ue.originY?de.top:de.bottom,Te.top<0&&(tn-=Te.top),{x:We,y:tn}}},{key:"_getOverlayPoint",value:function(de,Te,ue){var We,lt;return We="center"==ue.overlayX?-Te.width/2:"start"===ue.overlayX?this._isRtl()?-Te.width:0:this._isRtl()?0:-Te.width,lt="center"==ue.overlayY?-Te.height/2:"top"==ue.overlayY?0:-Te.height,{x:de.x+We,y:de.y+lt}}},{key:"_getOverlayFit",value:function(de,Te,ue,We){var lt=on(Te),Dt=de.x,tn=de.y,Jt=this._getOffset(We,"x"),nn=this._getOffset(We,"y");Jt&&(Dt+=Jt),nn&&(tn+=nn);var dn=0-Dt,On=Dt+lt.width-ue.width,Dn=0-tn,zn=tn+lt.height-ue.height,Zn=this._subtractOverflows(lt.width,dn,On),jn=this._subtractOverflows(lt.height,Dn,zn),mn=Zn*jn;return{visibleArea:mn,isCompletelyWithinViewport:lt.width*lt.height===mn,fitsInViewportVertically:jn===lt.height,fitsInViewportHorizontally:Zn==lt.width}}},{key:"_canFitWithFlexibleDimensions",value:function(de,Te,ue){if(this._hasFlexibleDimensions){var We=ue.bottom-Te.y,lt=ue.right-Te.x,Dt=It(this._overlayRef.getConfig().minHeight),tn=It(this._overlayRef.getConfig().minWidth),Jt=de.fitsInViewportVertically||null!=Dt&&Dt<=We,nn=de.fitsInViewportHorizontally||null!=tn&&tn<=lt;return Jt&&nn}return!1}},{key:"_pushOverlayOnScreen",value:function(de,Te,ue){if(this._previousPushAmount&&this._positionLocked)return{x:de.x+this._previousPushAmount.x,y:de.y+this._previousPushAmount.y};var We=on(Te),lt=this._viewportRect,Dt=Math.max(de.x+We.width-lt.width,0),tn=Math.max(de.y+We.height-lt.height,0),Jt=Math.max(lt.top-ue.top-de.y,0),nn=Math.max(lt.left-ue.left-de.x,0),dn=0,On=0;return dn=We.width<=lt.width?nn||-Dt:de.x<this._viewportMargin?lt.left-ue.left-de.x:0,On=We.height<=lt.height?Jt||-tn:de.y<this._viewportMargin?lt.top-ue.top-de.y:0,this._previousPushAmount={x:dn,y:On},{x:de.x+dn,y:de.y+On}}},{key:"_applyPosition",value:function(de,Te){if(this._setTransformOrigin(de),this._setOverlayElementStyles(Te,de),this._setBoundingBoxStyles(Te,de),de.panelClass&&this._addPanelClasses(de.panelClass),this._lastPosition=de,this._positionChanges.observers.length){var ue=this._getScrollVisibility(),We=new Xt(de,ue);this._positionChanges.next(We)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(de){if(this._transformOriginSelector){var ue,Te=this._boundingBox.querySelectorAll(this._transformOriginSelector),We=de.overlayY;ue="center"===de.overlayX?"center":this._isRtl()?"start"===de.overlayX?"right":"left":"start"===de.overlayX?"left":"right";for(var lt=0;lt<Te.length;lt++)Te[lt].style.transformOrigin="".concat(ue," ").concat(We)}}},{key:"_calculateBoundingBoxRect",value:function(de,Te){var lt,Dt,tn,ue=this._viewportRect,We=this._isRtl();if("top"===Te.overlayY)Dt=de.y,lt=ue.height-Dt+this._viewportMargin;else if("bottom"===Te.overlayY)tn=ue.height-de.y+2*this._viewportMargin,lt=ue.height-tn+this._viewportMargin;else{var Jt=Math.min(ue.bottom-de.y+ue.top,de.y),nn=this._lastBoundingBoxSize.height;lt=2*Jt,Dt=de.y-Jt,lt>nn&&!this._isInitialRender&&!this._growAfterOpen&&(Dt=de.y-nn/2)}var Dn,zn,Zn,dn="start"===Te.overlayX&&!We||"end"===Te.overlayX&&We;if("end"===Te.overlayX&&!We||"start"===Te.overlayX&&We)Zn=ue.width-de.x+this._viewportMargin,Dn=de.x-this._viewportMargin;else if(dn)zn=de.x,Dn=ue.right-de.x;else{var jn=Math.min(ue.right-de.x+ue.left,de.x),mn=this._lastBoundingBoxSize.width;Dn=2*jn,zn=de.x-jn,Dn>mn&&!this._isInitialRender&&!this._growAfterOpen&&(zn=de.x-mn/2)}return{top:Dt,left:zn,bottom:tn,right:Zn,width:Dn,height:lt}}},{key:"_setBoundingBoxStyles",value:function(de,Te){var ue=this._calculateBoundingBoxRect(de,Te);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));var We={};if(this._hasExactPosition())We.top=We.left="0",We.bottom=We.right=We.maxHeight=We.maxWidth="",We.width=We.height="100%";else{var lt=this._overlayRef.getConfig().maxHeight,Dt=this._overlayRef.getConfig().maxWidth;We.height=(0,k.HM)(ue.height),We.top=(0,k.HM)(ue.top),We.bottom=(0,k.HM)(ue.bottom),We.width=(0,k.HM)(ue.width),We.left=(0,k.HM)(ue.left),We.right=(0,k.HM)(ue.right),"center"===Te.overlayX?We.alignItems="center":We.alignItems="end"===Te.overlayX?"flex-end":"flex-start","center"===Te.overlayY?We.justifyContent="center":We.justifyContent="bottom"===Te.overlayY?"flex-end":"flex-start",lt&&(We.maxHeight=(0,k.HM)(lt)),Dt&&(We.maxWidth=(0,k.HM)(Dt))}this._lastBoundingBoxSize=ue,Lt(this._boundingBox.style,We)}},{key:"_resetBoundingBoxStyles",value:function(){Lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(de,Te){var ue={},We=this._hasExactPosition(),lt=this._hasFlexibleDimensions,Dt=this._overlayRef.getConfig();if(We){var tn=this._viewportRuler.getViewportScrollPosition();Lt(ue,this._getExactOverlayY(Te,de,tn)),Lt(ue,this._getExactOverlayX(Te,de,tn))}else ue.position="static";var Jt="",nn=this._getOffset(Te,"x"),dn=this._getOffset(Te,"y");nn&&(Jt+="translateX(".concat(nn,"px) ")),dn&&(Jt+="translateY(".concat(dn,"px)")),ue.transform=Jt.trim(),Dt.maxHeight&&(We?ue.maxHeight=(0,k.HM)(Dt.maxHeight):lt&&(ue.maxHeight="")),Dt.maxWidth&&(We?ue.maxWidth=(0,k.HM)(Dt.maxWidth):lt&&(ue.maxWidth="")),Lt(this._pane.style,ue)}},{key:"_getExactOverlayY",value:function(de,Te,ue){var We={top:"",bottom:""},lt=this._getOverlayPoint(Te,this._overlayRect,de);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,ue)),"bottom"===de.overlayY){var Dt=this._document.documentElement.clientHeight;We.bottom="".concat(Dt-(lt.y+this._overlayRect.height),"px")}else We.top=(0,k.HM)(lt.y);return We}},{key:"_getExactOverlayX",value:function(de,Te,ue){var We={left:"",right:""},lt=this._getOverlayPoint(Te,this._overlayRect,de);if(this._isPushed&&(lt=this._pushOverlayOnScreen(lt,this._overlayRect,ue)),"right"===(this._isRtl()?"end"===de.overlayX?"left":"right":"end"===de.overlayX?"right":"left")){var tn=this._document.documentElement.clientWidth;We.right="".concat(tn-(lt.x+this._overlayRect.width),"px")}else We.left=(0,k.HM)(lt.x);return We}},{key:"_getScrollVisibility",value:function(){var de=this._getOriginRect(),Te=this._pane.getBoundingClientRect(),ue=this._scrollables.map(function(We){return We.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:_e(de,ue),isOriginOutsideView:xe(de,ue),isOverlayClipped:_e(Te,ue),isOverlayOutsideView:xe(Te,ue)}}},{key:"_subtractOverflows",value:function(de){for(var Te=arguments.length,ue=new Array(Te>1?Te-1:0),We=1;We<Te;We++)ue[We-1]=arguments[We];return ue.reduce(function(lt,Dt){return lt-Math.max(Dt,0)},de)}},{key:"_getNarrowedViewportRect",value:function(){var de=this._document.documentElement.clientWidth,Te=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+de-this._viewportMargin,bottom:ue.top+Te-this._viewportMargin,width:de-2*this._viewportMargin,height:Te-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(de,Te){return"x"===Te?null==de.offsetX?this._offsetX:de.offsetX:null==de.offsetY?this._offsetY:de.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(de){var Te=this;this._pane&&(0,k.Eq)(de).forEach(function(ue){""!==ue&&-1===Te._appliedPanelClasses.indexOf(ue)&&(Te._appliedPanelClasses.push(ue),Te._pane.classList.add(ue))})}},{key:"_clearPanelClasses",value:function(){var de=this;this._pane&&(this._appliedPanelClasses.forEach(function(Te){de._pane.classList.remove(Te)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var de=this._origin;if(de instanceof O.SBq)return de.nativeElement.getBoundingClientRect();if(de instanceof Element)return de.getBoundingClientRect();var Te=de.width||0,ue=de.height||0;return{top:de.y,bottom:de.y+ue,left:de.x,right:de.x+Te,height:ue,width:Te}}}]),Bt}();function Lt(Bt,dt){for(var de in dt)dt.hasOwnProperty(de)&&(Bt[de]=dt[de]);return Bt}function It(Bt){if("number"!=typeof Bt&&null!=Bt){var dt=Bt.split(vt),de=(0,L.Z)(dt,2),Te=de[0],ue=de[1];return ue&&"px"!==ue?null:parseFloat(Te)}return Bt||null}function on(Bt){return{top:Math.floor(Bt.top),right:Math.floor(Bt.right),bottom:Math.floor(Bt.bottom),left:Math.floor(Bt.left),width:Math.floor(Bt.width),height:Math.floor(Bt.height)}}var _n="cdk-global-overlay-wrapper",An=function(){function Bt(){(0,y.Z)(this,Bt),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,K.Z)(Bt,[{key:"attach",value:function(de){var Te=de.getConfig();this._overlayRef=de,this._width&&!Te.width&&de.updateSize({width:this._width}),this._height&&!Te.height&&de.updateSize({height:this._height}),de.hostElement.classList.add(_n),this._isDisposed=!1}},{key:"top",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=de,this._alignItems="flex-start",this}},{key:"left",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=de,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=de,this._alignItems="flex-end",this}},{key:"right",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=de,this._justifyContent="flex-end",this}},{key:"width",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:de}):this._width=de,this}},{key:"height",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:de}):this._height=de,this}},{key:"centerHorizontally",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(de),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(de),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var de=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),We=ue.width,lt=ue.height,Dt=ue.maxWidth,tn=ue.maxHeight,Jt=!("100%"!==We&&"100vw"!==We||Dt&&"100%"!==Dt&&"100vw"!==Dt),nn=!("100%"!==lt&&"100vh"!==lt||tn&&"100%"!==tn&&"100vh"!==tn);de.position=this._cssPosition,de.marginLeft=Jt?"0":this._leftOffset,de.marginTop=nn?"0":this._topOffset,de.marginBottom=this._bottomOffset,de.marginRight=this._rightOffset,Jt?Te.justifyContent="flex-start":"center"===this._justifyContent?Te.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?Te.justifyContent="flex-end":"flex-end"===this._justifyContent&&(Te.justifyContent="flex-start"):Te.justifyContent=this._justifyContent,Te.alignItems=nn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var de=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement,ue=Te.style;Te.classList.remove(_n),ue.justifyContent=ue.alignItems=de.marginTop=de.marginBottom=de.marginLeft=de.marginRight=de.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Bt}(),Gt=function(){function Bt(dt,de,Te,ue){(0,y.Z)(this,Bt),this._viewportRuler=dt,this._document=de,this._platform=Te,this._overlayContainer=ue}return(0,K.Z)(Bt,[{key:"global",value:function(){return new An}},{key:"flexibleConnectedTo",value:function(de){return new nt(de,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Bt}();Gt.\u0275fac=function(dt){return new(dt||Gt)(O.LFG(F.rL),O.LFG(M.K0),O.LFG(I.t4),O.LFG(jt))},Gt.\u0275prov=O.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"});var Zt=function(){function Bt(dt){(0,y.Z)(this,Bt),this._attachedOverlays=[],this._document=dt}return(0,K.Z)(Bt,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(de){this.remove(de),this._attachedOverlays.push(de)}},{key:"remove",value:function(de){var Te=this._attachedOverlays.indexOf(de);Te>-1&&this._attachedOverlays.splice(Te,1),0===this._attachedOverlays.length&&this.detach()}}]),Bt}();Zt.\u0275fac=function(dt){return new(dt||Zt)(O.LFG(M.K0))},Zt.\u0275prov=O.Yz7({token:Zt,factory:Zt.\u0275fac,providedIn:"root"});var Et=function(Bt){(0,S.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue){var We;return(0,y.Z)(this,de),(We=dt.call(this,Te))._ngZone=ue,We._keydownListener=function(lt){for(var Dt=We._attachedOverlays,tn=Dt.length-1;tn>-1;tn--)if(Dt[tn]._keydownEvents.observers.length>0){if("break"===function(){var nn=Dt[tn]._keydownEvents;return We._ngZone?We._ngZone.run(function(){return nn.next(lt)}):nn.next(lt),"break"}())break}},We}return(0,K.Z)(de,[{key:"add",value:function(ue){var We=this;(0,z.Z)((0,Y.Z)(de.prototype),"add",this).call(this,ue),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return We._document.body.addEventListener("keydown",We._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)}}]),de}(Zt);Et.\u0275fac=function(dt){return new(dt||Et)(O.LFG(M.K0),O.LFG(O.R0b,8))},Et.\u0275prov=O.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"});var Ut=function(Bt){(0,S.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue,We){var lt;return(0,y.Z)(this,de),(lt=dt.call(this,Te))._platform=ue,lt._ngZone=We,lt._cursorStyleIsSet=!1,lt._pointerDownListener=function(Dt){lt._pointerDownEventTarget=(0,I.sA)(Dt)},lt._clickListener=function(Dt){var tn=(0,I.sA)(Dt),Jt="click"===Dt.type&&lt._pointerDownEventTarget?lt._pointerDownEventTarget:tn;lt._pointerDownEventTarget=null;for(var nn=lt._attachedOverlays.slice(),dn=function(Zn){var jn=nn[Zn];if(jn._outsidePointerEvents.observers.length<1||!jn.hasAttached())return"continue";if(jn.overlayElement.contains(tn)||jn.overlayElement.contains(Jt))return"break";var mn=jn._outsidePointerEvents;lt._ngZone?lt._ngZone.run(function(){return mn.next(Dt)}):mn.next(Dt)},On=nn.length-1;On>-1;On--){var Dn=dn(On);if("continue"!==Dn&&"break"===Dn)break}},lt}return(0,K.Z)(de,[{key:"add",value:function(ue){var We=this;if((0,z.Z)((0,Y.Z)(de.prototype),"add",this).call(this,ue),!this._isAttached){var lt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return We._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 ue=this._document.body;ue.removeEventListener("pointerdown",this._pointerDownListener,!0),ue.removeEventListener("click",this._clickListener,!0),ue.removeEventListener("auxclick",this._clickListener,!0),ue.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ue.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(ue){ue.addEventListener("pointerdown",this._pointerDownListener,!0),ue.addEventListener("click",this._clickListener,!0),ue.addEventListener("auxclick",this._clickListener,!0),ue.addEventListener("contextmenu",this._clickListener,!0)}}]),de}(Zt);Ut.\u0275fac=function(dt){return new(dt||Ut)(O.LFG(M.K0),O.LFG(I.t4),O.LFG(O.R0b,8))},Ut.\u0275prov=O.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var Ht=0,ln=function(){function Bt(dt,de,Te,ue,We,lt,Dt,tn,Jt,nn,dn){(0,y.Z)(this,Bt),this.scrollStrategies=dt,this._overlayContainer=de,this._componentFactoryResolver=Te,this._positionBuilder=ue,this._keyboardDispatcher=We,this._injector=lt,this._ngZone=Dt,this._document=tn,this._directionality=Jt,this._location=nn,this._outsideClickDispatcher=dn}return(0,K.Z)(Bt,[{key:"create",value:function(de){var Te=this._createHostElement(),ue=this._createPaneElement(Te),We=this._createPortalOutlet(ue),lt=new ct(de);return lt.direction=lt.direction||this._directionality.value,new Xe(We,Te,ue,lt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(de){var Te=this._document.createElement("div");return Te.id="cdk-overlay-".concat(Ht++),Te.classList.add("cdk-overlay-pane"),de.appendChild(Te),Te}},{key:"_createHostElement",value:function(){var de=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(de),de}},{key:"_createPortalOutlet",value:function(de){return this._appRef||(this._appRef=this._injector.get(O.z2F)),new w.u0(de,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Bt}();ln.\u0275fac=function(dt){return new(dt||ln)(O.LFG(Fe),O.LFG(jt),O.LFG(O._Vd),O.LFG(Gt),O.LFG(Et),O.LFG(O.zs3),O.LFG(O.R0b),O.LFG(M.K0),O.LFG(T.Is),O.LFG(M.Ye),O.LFG(Ut))},ln.\u0275prov=O.Yz7({token:ln,factory:ln.\u0275fac});var yt=[{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"}],mt=new O.OlP("cdk-connected-overlay-scroll-strategy"),cn=(0,K.Z)(function Bt(dt){(0,y.Z)(this,Bt),this.elementRef=dt});cn.\u0275fac=function(dt){return new(dt||cn)(O.Y36(O.SBq))},cn.\u0275dir=O.lG2({type:cn,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var $t=function(){function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._overlay=dt,this._dir=We,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=N.w.EMPTY,this._attachSubscription=N.w.EMPTY,this._detachSubscription=N.w.EMPTY,this._positionSubscription=N.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new O.vpe,this.positionChange=new O.vpe,this.attach=new O.vpe,this.detach=new O.vpe,this.overlayKeydown=new O.vpe,this.overlayOutsideClick=new O.vpe,this._templatePortal=new w.UE(de,Te),this._scrollStrategyFactory=ue,this.scrollStrategy=this._scrollStrategyFactory()}return(0,K.Z)(Bt,[{key:"offsetX",get:function(){return this._offsetX},set:function(de){this._offsetX=de,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(de){this._offsetY=de,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(de){this._hasBackdrop=(0,k.Ig)(de)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(de){this._lockPosition=(0,k.Ig)(de)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(de){this._flexibleDimensions=(0,k.Ig)(de)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(de){this._growAfterOpen=(0,k.Ig)(de)}},{key:"push",get:function(){return this._push},set:function(de){this._push=(0,k.Ig)(de)}},{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(de){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),de.origin&&this.open&&this._position.apply()),de.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var de=this;(!this.positions||!this.positions.length)&&(this.positions=yt);var Te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Te.attachments().subscribe(function(){return de.attach.emit()}),this._detachSubscription=Te.detachments().subscribe(function(){return de.detach.emit()}),Te.keydownEvents().subscribe(function(ue){de.overlayKeydown.next(ue),ue.keyCode===se.hY&&!de.disableClose&&!(0,se.Vb)(ue)&&(ue.preventDefault(),de._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(ue){de.overlayOutsideClick.next(ue)})}},{key:"_buildConfig",value:function(){var de=this._position=this.positionStrategy||this._createPositionStrategy(),Te=new ct({direction:this._dir,positionStrategy:de,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Te.width=this.width),(this.height||0===this.height)&&(Te.height=this.height),(this.minWidth||0===this.minWidth)&&(Te.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Te.minHeight=this.minHeight),this.backdropClass&&(Te.backdropClass=this.backdropClass),this.panelClass&&(Te.panelClass=this.panelClass),Te}},{key:"_updatePositionStrategy",value:function(de){var Te=this,ue=this.positions.map(function(We){return{originX:We.originX,originY:We.originY,overlayX:We.overlayX,overlayY:We.overlayY,offsetX:We.offsetX||Te.offsetX,offsetY:We.offsetY||Te.offsetY,panelClass:We.panelClass||void 0}});return de.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ue).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var de=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(de),de}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof cn?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var de=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(Te){de.backdropClick.emit(Te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,ce.o)(function(){return de.positionChange.observers.length>0})).subscribe(function(Te){de.positionChange.emit(Te),0===de.positionChange.observers.length&&de._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Bt}();$t.\u0275fac=function(dt){return new(dt||$t)(O.Y36(ln),O.Y36(O.Rgc),O.Y36(O.s_b),O.Y36(mt),O.Y36(T.Is,8))},$t.\u0275dir=O.lG2({type:$t,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:[O.TTD]});var V={provide:mt,deps:[ln],useFactory:function j(Bt){return function(){return Bt.scrollStrategies.reposition()}}},Jn=(0,K.Z)(function Bt(){(0,y.Z)(this,Bt)});Jn.\u0275fac=function(dt){return new(dt||Jn)},Jn.\u0275mod=O.oAB({type:Jn}),Jn.\u0275inj=O.cJS({providers:[ln,V],imports:[[T.vT,w.eL,F.Cl],F.Cl]});var wn=function(Bt){(0,S.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue){return(0,y.Z)(this,de),dt.call(this,Te,ue)}return(0,K.Z)(de,[{key:"ngOnDestroy",value:function(){(0,z.Z)((0,Y.Z)(de.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return ue._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(ue){var We=this._getEventName();We&&(this._fullScreenListener&&this._document.removeEventListener(We,this._fullScreenListener),this._document.addEventListener(We,ue),this._fullScreenListener=ue)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var ue=this._document;ue.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":ue.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":ue.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":ue.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var ue=this._document;return ue.fullscreenElement||ue.webkitFullscreenElement||ue.mozFullScreenElement||ue.msFullscreenElement||null}}]),de}(jt);wn.\u0275fac=function(dt){return new(dt||wn)(O.LFG(M.K0),O.LFG(I.t4))},wn.\u0275prov=O.Yz7({token:wn,factory:wn.\u0275fac,providedIn:"root"})},925:function(qe,J,m){"use strict";m.d(J,{Mq:function(){return w},Oy:function(){return se},_i:function(){return x},ht:function(){return $},i$:function(){return k},kV:function(){return W},qK:function(){return F},sA:function(){return ce},t4:function(){return P}});var L,z=m(3144),Y=m(5671),S=m(5e3),U=m(9808);try{L="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(te){L=!1}var P=(0,z.Z)(function te(oe){(0,Y.Z)(this,te),this._platformId=oe,this.isBrowser=this._platformId?(0,U.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&&!L)&&"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(oe){return new(oe||P)(S.LFG(S.Lbi))},P.\u0275prov=S.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var D=(0,z.Z)(function te(){(0,Y.Z)(this,te)});D.\u0275fac=function(oe){return new(oe||D)},D.\u0275mod=S.oAB({type:D}),D.\u0275inj=S.cJS({});var y,M,I,T,N,K=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function F(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(K);var te=document.createElement("input");return y=new Set(K.filter(function(oe){return te.setAttribute("type",oe),te.type===oe}))}function k(te){return function O(){if(null==M&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return M=!0}}))}finally{M=M||!1}return M}()?te:!!te.capture}function w(){if(null==T){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return T=!1;if("scrollBehavior"in document.documentElement.style)T=!0;else{var te=Element.prototype.scrollTo;T=!!te&&!/\{\s*\[native code\]\s*\}/.test(te.toString())}}return T}function x(){if("object"!=typeof document||!document)return 0;if(null==I){var te=document.createElement("div"),oe=te.style;te.dir="rtl",oe.width="1px",oe.overflow="auto",oe.visibility="hidden",oe.pointerEvents="none",oe.position="absolute";var ve=document.createElement("div"),Oe=ve.style;Oe.width="2px",Oe.height="1px",te.appendChild(ve),document.body.appendChild(te),I=0,0===te.scrollLeft&&(te.scrollLeft=1,I=0===te.scrollLeft?1:2),te.remove()}return I}function W(te){if(function R(){if(null==N){var te="undefined"!=typeof document?document.head:null;N=!(!te||!te.createShadowRoot&&!te.attachShadow)}return N}()){var oe=te.getRootNode?te.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&oe instanceof ShadowRoot)return oe}return null}function $(){for(var te="undefined"!=typeof document&&document?document.activeElement:null;te&&te.shadowRoot;){var oe=te.shadowRoot.activeElement;if(oe===te)break;te=oe}return te}function ce(te){return te.composedPath?te.composedPath()[0]:te.target}function se(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(qe,J,m){"use strict";m.d(J,{C5:function(){return x},Pl:function(){return ve},UE:function(){return N},eL:function(){return st},en:function(){return W},ig:function(){return te},u0:function(){return ce}});var z=m(7326),Y=m(3237),S=m(1120),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(5e3),K=m(9808);var w=function(){function _e(){(0,P.Z)(this,_e)}return(0,D.Z)(_e,[{key:"attach",value:function(Fe){return this._attachedHost=Fe,Fe.attach(this)}},{key:"detach",value:function(){var Fe=this._attachedHost;null!=Fe&&(this._attachedHost=null,Fe.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(Fe){this._attachedHost=Fe}}]),_e}(),x=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct,Mt,Nt,Xt){var en;return(0,P.Z)(this,Fe),(en=ke.call(this)).component=ct,en.viewContainerRef=Mt,en.injector=Nt,en.componentFactoryResolver=Xt,en}return(0,D.Z)(Fe)}(w),N=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct,Mt,Nt){var Xt;return(0,P.Z)(this,Fe),(Xt=ke.call(this)).templateRef=ct,Xt.viewContainerRef=Mt,Xt.context=Nt,Xt}return(0,D.Z)(Fe,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(Mt){var Nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=Nt,(0,Y.Z)((0,S.Z)(Fe.prototype),"attach",this).call(this,Mt)}},{key:"detach",value:function(){return this.context=void 0,(0,Y.Z)((0,S.Z)(Fe.prototype),"detach",this).call(this)}}]),Fe}(w),R=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct){var Mt;return(0,P.Z)(this,Fe),(Mt=ke.call(this)).element=ct instanceof y.SBq?ct.nativeElement:ct,Mt}return(0,D.Z)(Fe)}(w),W=function(){function _e(){(0,P.Z)(this,_e),this._isDisposed=!1,this.attachDomPortal=null}return(0,D.Z)(_e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(Fe){return Fe instanceof x?(this._attachedPortal=Fe,this.attachComponentPortal(Fe)):Fe instanceof N?(this._attachedPortal=Fe,this.attachTemplatePortal(Fe)):this.attachDomPortal&&Fe instanceof R?(this._attachedPortal=Fe,this.attachDomPortal(Fe)):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(Fe){this._disposeFn=Fe}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),_e}(),ce=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct,Mt,Nt,Xt,en){var qt,Xe;return(0,P.Z)(this,Fe),(Xe=ke.call(this)).outletElement=ct,Xe._componentFactoryResolver=Mt,Xe._appRef=Nt,Xe._defaultInjector=Xt,Xe.attachDomPortal=function(jt){Xe._document;var it=jt.element;it.parentNode;var vt=Xe._document.createComment("dom-portal");it.parentNode.insertBefore(vt,it),Xe.outletElement.appendChild(it),Xe._attachedPortal=jt,(0,Y.Z)((qt=(0,z.Z)(Xe),(0,S.Z)(Fe.prototype)),"setDisposeFn",qt).call(qt,function(){vt.parentNode&&vt.parentNode.replaceChild(it,vt)})},Xe._document=en,Xe}return(0,D.Z)(Fe,[{key:"attachComponentPortal",value:function(Mt){var qt,Nt=this,en=(Mt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Mt.component);return Mt.viewContainerRef?(qt=Mt.viewContainerRef.createComponent(en,Mt.viewContainerRef.length,Mt.injector||Mt.viewContainerRef.injector),this.setDisposeFn(function(){return qt.destroy()})):(qt=en.create(Mt.injector||this._defaultInjector||y.zs3.NULL),this._appRef.attachView(qt.hostView),this.setDisposeFn(function(){Nt._appRef.viewCount>0&&Nt._appRef.detachView(qt.hostView),qt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(qt)),this._attachedPortal=Mt,qt}},{key:"attachTemplatePortal",value:function(Mt){var Nt=this,Xt=Mt.viewContainerRef,en=Xt.createEmbeddedView(Mt.templateRef,Mt.context);return en.rootNodes.forEach(function(qt){return Nt.outletElement.appendChild(qt)}),en.detectChanges(),this.setDisposeFn(function(){var qt=Xt.indexOf(en);-1!==qt&&Xt.remove(qt)}),this._attachedPortal=Mt,en}},{key:"dispose",value:function(){(0,Y.Z)((0,S.Z)(Fe.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(Mt){return Mt.hostView.rootNodes[0]}}]),Fe}(W),te=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct,Mt){return(0,P.Z)(this,Fe),ke.call(this,ct,Mt)}return(0,D.Z)(Fe)}(N);te.\u0275fac=function(ke){return new(ke||te)(y.Y36(y.Rgc),y.Y36(y.s_b))},te.\u0275dir=y.lG2({type:te,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[y.qOj]});var oe=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(){return(0,P.Z)(this,Fe),ke.apply(this,arguments)}return(0,D.Z)(Fe)}(te);oe.\u0275fac=function(){var _e;return function(Fe){return(_e||(_e=y.n5z(oe)))(Fe||oe)}}(),oe.\u0275dir=y.lG2({type:oe,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[y._Bn([{provide:te,useExisting:oe}]),y.qOj]});var ve=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(ct,Mt,Nt){var Xt,en;return(0,P.Z)(this,Fe),(en=ke.call(this))._componentFactoryResolver=ct,en._viewContainerRef=Mt,en._isInitialized=!1,en.attached=new y.vpe,en.attachDomPortal=function(qt){en._document;var Xe=qt.element;Xe.parentNode;var jt=en._document.createComment("dom-portal");qt.setAttachedHost((0,z.Z)(en)),Xe.parentNode.insertBefore(jt,Xe),en._getRootNode().appendChild(Xe),en._attachedPortal=qt,(0,Y.Z)((Xt=(0,z.Z)(en),(0,S.Z)(Fe.prototype)),"setDisposeFn",Xt).call(Xt,function(){jt.parentNode&&jt.parentNode.replaceChild(Xe,jt)})},en._document=Nt,en}return(0,D.Z)(Fe,[{key:"portal",get:function(){return this._attachedPortal},set:function(Mt){this.hasAttached()&&!Mt&&!this._isInitialized||(this.hasAttached()&&(0,Y.Z)((0,S.Z)(Fe.prototype),"detach",this).call(this),Mt&&(0,Y.Z)((0,S.Z)(Fe.prototype),"attach",this).call(this,Mt),this._attachedPortal=Mt||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,Y.Z)((0,S.Z)(Fe.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(Mt){Mt.setAttachedHost(this);var Nt=null!=Mt.viewContainerRef?Mt.viewContainerRef:this._viewContainerRef,en=(Mt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Mt.component),qt=Nt.createComponent(en,Nt.length,Mt.injector||Nt.injector);return Nt!==this._viewContainerRef&&this._getRootNode().appendChild(qt.hostView.rootNodes[0]),(0,Y.Z)((0,S.Z)(Fe.prototype),"setDisposeFn",this).call(this,function(){return qt.destroy()}),this._attachedPortal=Mt,this._attachedRef=qt,this.attached.emit(qt),qt}},{key:"attachTemplatePortal",value:function(Mt){var Nt=this;Mt.setAttachedHost(this);var Xt=this._viewContainerRef.createEmbeddedView(Mt.templateRef,Mt.context);return(0,Y.Z)((0,S.Z)(Fe.prototype),"setDisposeFn",this).call(this,function(){return Nt._viewContainerRef.clear()}),this._attachedPortal=Mt,this._attachedRef=Xt,this.attached.emit(Xt),Xt}},{key:"_getRootNode",value:function(){var Mt=this._viewContainerRef.element.nativeElement;return Mt.nodeType===Mt.ELEMENT_NODE?Mt:Mt.parentNode}}]),Fe}(W);ve.\u0275fac=function(ke){return new(ke||ve)(y.Y36(y._Vd),y.Y36(y.s_b),y.Y36(K.K0))},ve.\u0275dir=y.lG2({type:ve,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[y.qOj]});var Oe=function(_e){(0,U.Z)(Fe,_e);var ke=(0,L.Z)(Fe);function Fe(){return(0,P.Z)(this,Fe),ke.apply(this,arguments)}return(0,D.Z)(Fe)}(ve);Oe.\u0275fac=function(){var _e;return function(Fe){return(_e||(_e=y.n5z(Oe)))(Fe||Oe)}}(),Oe.\u0275dir=y.lG2({type:Oe,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[y._Bn([{provide:ve,useExisting:Oe}]),y.qOj]});var st=(0,D.Z)(function _e(){(0,P.Z)(this,_e)});st.\u0275fac=function(ke){return new(ke||st)},st.\u0275mod=y.oAB({type:st}),st.\u0275inj=y.cJS({})},9071:function(qe,J,m){"use strict";m.d(J,{Cl:function(){return An},PQ:function(){return Xe},ZD:function(){return _n},mF:function(){return qt},rL:function(){return it}});var z=m(7685),Y=m(7762),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(3191),F=m(5e3),M=m(8929),O=m(1086),k=m(7451),I=m(3753),T=m(352),w=m(9931),x=m(4096),N=m(4715),R=m(5778),W=m(7568),$=m(9664),ce=m(7625),se=m(1059),te=m(519),oe=m(7545),ve=m(5154),Oe=m(9808),st=m(925),xe=m(226),_e=m(449),ke=["contentWrapper"],ct=new F.OlP("VIRTUAL_SCROLL_STRATEGY"),Mt=function(){function Gt(Zt,Et,Ut){(0,D.Z)(this,Gt),this._scrolledIndexChange=new M.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,R.x)()),this._viewport=null,this._itemSize=Zt,this._minBufferPx=Et,this._maxBufferPx=Ut}return(0,y.Z)(Gt,[{key:"attach",value:function(Et){this._viewport=Et,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(Et,Ut,Ht){this._itemSize=Et,this._minBufferPx=Ut,this._maxBufferPx=Ht,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(Et,Ut){this._viewport&&this._viewport.scrollToOffset(Et*this._itemSize,Ut)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var Et=this._viewport.getRenderedRange(),Ut={start:Et.start,end:Et.end},Ht=this._viewport.getViewportSize(),ln=this._viewport.getDataLength(),yt=this._viewport.measureScrollOffset(),mt=this._itemSize>0?yt/this._itemSize:0;if(Ut.end>ln){var cn=Math.ceil(Ht/this._itemSize),$t=Math.max(0,Math.min(mt,ln-cn));mt!=$t&&(mt=$t,yt=$t*this._itemSize,Ut.start=Math.floor(mt)),Ut.end=Math.max(0,Math.min(ln,Ut.start+cn))}var j=yt-Ut.start*this._itemSize;if(j<this._minBufferPx&&0!=Ut.start){var V=Math.ceil((this._maxBufferPx-j)/this._itemSize);Ut.start=Math.max(0,Ut.start-V),Ut.end=Math.min(ln,Math.ceil(mt+(Ht+this._minBufferPx)/this._itemSize))}else{var Jn=Ut.end*this._itemSize-(yt+Ht);if(Jn<this._minBufferPx&&Ut.end!=ln){var wn=Math.ceil((this._maxBufferPx-Jn)/this._itemSize);wn>0&&(Ut.end=Math.min(ln,Ut.end+wn),Ut.start=Math.max(0,Math.floor(mt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Ut),this._viewport.setRenderedContentOffset(this._itemSize*Ut.start),this._scrolledIndexChange.next(Math.floor(mt))}}}]),Gt}();var Xt=function(){function Gt(){(0,D.Z)(this,Gt),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,y.Z)(Gt,[{key:"itemSize",get:function(){return this._itemSize},set:function(Et){this._itemSize=(0,K.su)(Et)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(Et){this._minBufferPx=(0,K.su)(Et)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(Et){this._maxBufferPx=(0,K.su)(Et)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),Gt}();Xt.\u0275fac=function(Zt){return new(Zt||Xt)},Xt.\u0275dir=F.lG2({type:Xt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[F._Bn([{provide:ct,useFactory:function Nt(Gt){return Gt._scrollStrategy},deps:[(0,F.Gpc)(function(){return Xt})]}]),F.TTD]});var qt=function(){function Gt(Zt,Et,Ut){(0,D.Z)(this,Gt),this._ngZone=Zt,this._platform=Et,this._scrolled=new M.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ut}return(0,y.Z)(Gt,[{key:"register",value:function(Et){var Ut=this;this.scrollContainers.has(Et)||this.scrollContainers.set(Et,Et.elementScrolled().subscribe(function(){return Ut._scrolled.next(Et)}))}},{key:"deregister",value:function(Et){var Ut=this.scrollContainers.get(Et);Ut&&(Ut.unsubscribe(),this.scrollContainers.delete(Et))}},{key:"scrolled",value:function(){var Et=this,Ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new k.y(function(Ht){Et._globalSubscription||Et._addGlobalListener();var ln=Ut>0?Et._scrolled.pipe((0,W.e)(Ut)).subscribe(Ht):Et._scrolled.subscribe(Ht);return Et._scrolledCount++,function(){ln.unsubscribe(),Et._scrolledCount--,Et._scrolledCount||Et._removeGlobalListener()}}):(0,O.of)()}},{key:"ngOnDestroy",value:function(){var Et=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(Ut,Ht){return Et.deregister(Ht)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(Et,Ut){var Ht=this.getAncestorScrollContainers(Et);return this.scrolled(Ut).pipe((0,$.h)(function(ln){return!ln||Ht.indexOf(ln)>-1}))}},{key:"getAncestorScrollContainers",value:function(Et){var Ut=this,Ht=[];return this.scrollContainers.forEach(function(ln,yt){Ut._scrollableContainsElement(yt,Et)&&Ht.push(yt)}),Ht}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(Et,Ut){var Ht=(0,K.fI)(Ut),ln=Et.getElementRef().nativeElement;do{if(Ht==ln)return!0}while(Ht=Ht.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var Et=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var Ut=Et._getWindow();return(0,I.R)(Ut.document,"scroll").subscribe(function(){return Et._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Gt}();qt.\u0275fac=function(Zt){return new(Zt||qt)(F.LFG(F.R0b),F.LFG(st.t4),F.LFG(Oe.K0,8))},qt.\u0275prov=F.Yz7({token:qt,factory:qt.\u0275fac,providedIn:"root"});var Xe=function(){function Gt(Zt,Et,Ut,Ht){var ln=this;(0,D.Z)(this,Gt),this.elementRef=Zt,this.scrollDispatcher=Et,this.ngZone=Ut,this.dir=Ht,this._destroyed=new M.xQ,this._elementScrolled=new k.y(function(yt){return ln.ngZone.runOutsideAngular(function(){return(0,I.R)(ln.elementRef.nativeElement,"scroll").pipe((0,ce.R)(ln._destroyed)).subscribe(yt)})})}return(0,y.Z)(Gt,[{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(Et){var Ut=this.elementRef.nativeElement,Ht=this.dir&&"rtl"==this.dir.value;null==Et.left&&(Et.left=Ht?Et.end:Et.start),null==Et.right&&(Et.right=Ht?Et.start:Et.end),null!=Et.bottom&&(Et.top=Ut.scrollHeight-Ut.clientHeight-Et.bottom),Ht&&0!=(0,st._i)()?(null!=Et.left&&(Et.right=Ut.scrollWidth-Ut.clientWidth-Et.left),2==(0,st._i)()?Et.left=Et.right:1==(0,st._i)()&&(Et.left=Et.right?-Et.right:Et.right)):null!=Et.right&&(Et.left=Ut.scrollWidth-Ut.clientWidth-Et.right),this._applyScrollToOptions(Et)}},{key:"_applyScrollToOptions",value:function(Et){var Ut=this.elementRef.nativeElement;(0,st.Mq)()?Ut.scrollTo(Et):(null!=Et.top&&(Ut.scrollTop=Et.top),null!=Et.left&&(Ut.scrollLeft=Et.left))}},{key:"measureScrollOffset",value:function(Et){var Ut="left",ln=this.elementRef.nativeElement;if("top"==Et)return ln.scrollTop;if("bottom"==Et)return ln.scrollHeight-ln.clientHeight-ln.scrollTop;var yt=this.dir&&"rtl"==this.dir.value;return"start"==Et?Et=yt?"right":Ut:"end"==Et&&(Et=yt?Ut:"right"),yt&&2==(0,st._i)()?Et==Ut?ln.scrollWidth-ln.clientWidth-ln.scrollLeft:ln.scrollLeft:yt&&1==(0,st._i)()?Et==Ut?ln.scrollLeft+ln.scrollWidth-ln.clientWidth:-ln.scrollLeft:Et==Ut?ln.scrollLeft:ln.scrollWidth-ln.clientWidth-ln.scrollLeft}}]),Gt}();Xe.\u0275fac=function(Zt){return new(Zt||Xe)(F.Y36(F.SBq),F.Y36(qt),F.Y36(F.R0b),F.Y36(xe.Is,8))},Xe.\u0275dir=F.lG2({type:Xe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var it=function(){function Gt(Zt,Et,Ut){var Ht=this;(0,D.Z)(this,Gt),this._platform=Zt,this._change=new M.xQ,this._changeListener=function(ln){Ht._change.next(ln)},this._document=Ut,Et.runOutsideAngular(function(){if(Zt.isBrowser){var ln=Ht._getWindow();ln.addEventListener("resize",Ht._changeListener),ln.addEventListener("orientationchange",Ht._changeListener)}Ht.change().subscribe(function(){return Ht._viewportSize=null})})}return(0,y.Z)(Gt,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var Et=this._getWindow();Et.removeEventListener("resize",this._changeListener),Et.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var Et={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Et}},{key:"getViewportRect",value:function(){var Et=this.getViewportScrollPosition(),Ut=this.getViewportSize(),Ht=Ut.width,ln=Ut.height;return{top:Et.top,left:Et.left,bottom:Et.top+ln,right:Et.left+Ht,height:ln,width:Ht}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var Et=this._document,Ut=this._getWindow(),Ht=Et.documentElement,ln=Ht.getBoundingClientRect();return{top:-ln.top||Et.body.scrollTop||Ut.scrollY||Ht.scrollTop||0,left:-ln.left||Et.body.scrollLeft||Ut.scrollX||Ht.scrollLeft||0}}},{key:"change",value:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return Et>0?this._change.pipe((0,W.e)(Et)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var Et=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Et.innerWidth,height:Et.innerHeight}:{width:0,height:0}}}]),Gt}();it.\u0275fac=function(Zt){return new(Zt||it)(F.LFG(st.t4),F.LFG(F.R0b),F.LFG(Oe.K0,8))},it.\u0275prov=F.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"});var nt="undefined"!=typeof requestAnimationFrame?T.Z:w.E,Lt=function(Gt){(0,L.Z)(Et,Gt);var Zt=(0,P.Z)(Et);function Et(Ut,Ht,ln,yt,mt,cn,$t){var j;return(0,D.Z)(this,Et),(j=Zt.call(this,Ut,cn,ln,mt)).elementRef=Ut,j._changeDetectorRef=Ht,j._scrollStrategy=yt,j._detachedSubject=new M.xQ,j._renderedRangeSubject=new M.xQ,j._orientation="vertical",j._appendOnly=!1,j.scrolledIndexChange=new k.y(function(V){return j._scrollStrategy.scrolledIndexChange.subscribe(function(Jn){return Promise.resolve().then(function(){return j.ngZone.run(function(){return V.next(Jn)})})})}),j.renderedRangeStream=j._renderedRangeSubject,j._totalContentSize=0,j._totalContentWidth="",j._totalContentHeight="",j._renderedRange={start:0,end:0},j._dataLength=0,j._viewportSize=0,j._renderedContentOffset=0,j._renderedContentOffsetNeedsRewrite=!1,j._isChangeDetectionPending=!1,j._runAfterChangeDetection=[],j._viewportChanges=x.w.EMPTY,j._viewportChanges=$t.change().subscribe(function(){j.checkViewportSize()}),j}return(0,y.Z)(Et,[{key:"orientation",get:function(){return this._orientation},set:function(Ht){this._orientation!==Ht&&(this._orientation=Ht,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Ht){this._appendOnly=(0,K.Ig)(Ht)}},{key:"ngOnInit",value:function(){var Ht=this;(0,S.Z)((0,U.Z)(Et.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Ht._measureViewportSize(),Ht._scrollStrategy.attach(Ht),Ht.elementScrolled().pipe((0,se.O)(null),(0,W.e)(0,nt)).subscribe(function(){return Ht._scrollStrategy.onContentScrolled()}),Ht._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,S.Z)((0,U.Z)(Et.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Ht){var ln=this;this._forOf,this.ngZone.runOutsideAngular(function(){ln._forOf=Ht,ln._forOf.dataStream.pipe((0,ce.R)(ln._detachedSubject)).subscribe(function(yt){var mt=yt.length;mt!==ln._dataLength&&(ln._dataLength=mt,ln._scrollStrategy.onDataLengthChanged()),ln._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:"setTotalContentSize",value:function(Ht){this._totalContentSize!==Ht&&(this._totalContentSize=Ht,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Ht){var ln=this;(function vt(Gt,Zt){return Gt.start==Zt.start&&Gt.end==Zt.end})(this._renderedRange,Ht)||(this.appendOnly&&(Ht={start:0,end:Math.max(this._renderedRange.end,Ht.end)}),this._renderedRangeSubject.next(this._renderedRange=Ht),this._markChangeDetectionNeeded(function(){return ln._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Ht){var ln=this,yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",mt=this.dir&&"rtl"==this.dir.value,cn="horizontal"==this.orientation,$t=cn?"X":"Y",j=cn&&mt?-1:1,V="translate".concat($t,"(").concat(Number(j*Ht),"px)");Ht=this.appendOnly&&"to-start"===yt?0:Ht,this._renderedContentOffset=Ht,"to-end"===yt&&(V+=" translate".concat($t,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=V&&(this._renderedContentTransform=V,this._markChangeDetectionNeeded(function(){ln._renderedContentOffsetNeedsRewrite?(ln._renderedContentOffset-=ln.measureRenderedContentSize(),ln._renderedContentOffsetNeedsRewrite=!1,ln.setRenderedContentOffset(ln._renderedContentOffset)):ln._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Ht){var ln=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",yt={behavior:ln};"horizontal"===this.orientation?yt.start=Ht:yt.top=Ht,this.scrollTo(yt)}},{key:"scrollToIndex",value:function(Ht){var ln=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Ht,ln)}},{key:"measureScrollOffset",value:function(Ht){return Ht?(0,S.Z)((0,U.Z)(Et.prototype),"measureScrollOffset",this).call(this,Ht):(0,S.Z)((0,U.Z)(Et.prototype),"measureScrollOffset",this).call(this,"horizontal"===this.orientation?"start":"top")}},{key:"measureRenderedContentSize",value:function(){var Ht=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Ht.offsetWidth:Ht.offsetHeight}},{key:"measureRangeSize",value:function(Ht){return this._forOf?this._forOf.measureRangeSize(Ht,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var Ht=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?Ht.clientWidth:Ht.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(Ht){var ln=this;Ht&&this._runAfterChangeDetection.push(Ht),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){ln._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Ht=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Ht._changeDetectorRef.markForCheck()});var ln=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var mt,yt=(0,Y.Z)(ln);try{for(yt.s();!(mt=yt.n()).done;){(0,mt.value)()}}catch($t){yt.e($t)}finally{yt.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),Et}(Xe);function It(Gt,Zt,Et){var Ut=Et;if(!Ut.getBoundingClientRect)return 0;var Ht=Ut.getBoundingClientRect();return"horizontal"===Gt?"start"===Zt?Ht.left:Ht.right:"start"===Zt?Ht.top:Ht.bottom}Lt.\u0275fac=function(Zt){return new(Zt||Lt)(F.Y36(F.SBq),F.Y36(F.sBO),F.Y36(F.R0b),F.Y36(ct,8),F.Y36(xe.Is,8),F.Y36(qt),F.Y36(it))},Lt.\u0275cmp=F.Xpm({type:Lt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Zt,Et){var Ut;(1&Zt&&F.Gf(ke,7),2&Zt)&&(F.iGM(Ut=F.CRH())&&(Et._contentWrapper=Ut.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Zt,Et){2&Zt&&F.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Et.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Et.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[F._Bn([{provide:Xe,useExisting:Lt}]),F.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Zt,Et){1&Zt&&(F.F$t(),F.TgZ(0,"div",0,1),F.Hsn(2),F.qZA(),F._UZ(3,"div",2)),2&Zt&&(F.xp6(3),F.Udp("width",Et._totalContentWidth)("height",Et._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0});var on=function(){function Gt(Zt,Et,Ut,Ht,ln,yt){var mt=this;(0,D.Z)(this,Gt),this._viewContainerRef=Zt,this._template=Et,this._differs=Ut,this._viewRepeater=Ht,this._viewport=ln,this.viewChange=new M.xQ,this._dataSourceChanges=new M.xQ,this.dataStream=this._dataSourceChanges.pipe((0,se.O)(null),(0,te.G)(),(0,oe.w)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];return mt._changeDataSource(j,V)}),(0,ve.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new M.xQ,this.dataStream.subscribe(function(cn){mt._data=cn,mt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ce.R)(this._destroyed)).subscribe(function(cn){mt._renderedRange=cn,mt.viewChange.observers.length&&yt.run(function(){return mt.viewChange.next(mt._renderedRange)}),mt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,y.Z)(Gt,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(Et){this._cdkVirtualForOf=Et,(0,_e.Z9)(Et)?this._dataSourceChanges.next(Et):this._dataSourceChanges.next(new _e.P3((0,N.b)(Et)?Et:Array.from(Et||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(Et){var Ut=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=Et?function(Ht,ln){return Et(Ht+(Ut._renderedRange?Ut._renderedRange.start:0),ln)}:void 0}},{key:"cdkVirtualForTemplate",set:function(Et){Et&&(this._needsUpdate=!0,this._template=Et)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(Et){this._viewRepeater.viewCacheSize=(0,K.su)(Et)}},{key:"measureRangeSize",value:function(Et,Ut){if(Et.start>=Et.end)return 0;Et.start<this._renderedRange.start||(Et.end,this._renderedRange.end);for(var yt,mt,Ht=Et.start-this._renderedRange.start,ln=Et.end-Et.start,cn=0;cn<ln;cn++){var $t=this._viewContainerRef.get(cn+Ht);if($t&&$t.rootNodes.length){yt=mt=$t.rootNodes[0];break}}for(var j=ln-1;j>-1;j--){var V=this._viewContainerRef.get(j+Ht);if(V&&V.rootNodes.length){mt=V.rootNodes[V.rootNodes.length-1];break}}return yt&&mt?It(Ut,"end",mt)-It(Ut,"start",yt):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var Et=this._differ.diff(this._renderedItems);Et?this._applyChanges(Et):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 Et=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(Ut,Ht){return Et.cdkVirtualForTrackBy?Et.cdkVirtualForTrackBy(Ut,Ht):Ht})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(Et,Ut){return Et&&Et.disconnect(this),this._needsUpdate=!0,Ut?Ut.connect(this):(0,O.of)()}},{key:"_updateContext",value:function(){for(var Et=this._data.length,Ut=this._viewContainerRef.length;Ut--;){var Ht=this._viewContainerRef.get(Ut);Ht.context.index=this._renderedRange.start+Ut,Ht.context.count=Et,this._updateComputedContextProperties(Ht.context),Ht.detectChanges()}}},{key:"_applyChanges",value:function(Et){var Ut=this;this._viewRepeater.applyChanges(Et,this._viewContainerRef,function(mt,cn,$t){return Ut._getEmbeddedViewArgs(mt,$t)},function(mt){return mt.item}),Et.forEachIdentityChange(function(mt){Ut._viewContainerRef.get(mt.currentIndex).context.$implicit=mt.item});for(var Ht=this._data.length,ln=this._viewContainerRef.length;ln--;){var yt=this._viewContainerRef.get(ln);yt.context.index=this._renderedRange.start+ln,yt.context.count=Ht,this._updateComputedContextProperties(yt.context)}}},{key:"_updateComputedContextProperties",value:function(Et){Et.first=0===Et.index,Et.last=Et.index===Et.count-1,Et.even=Et.index%2==0,Et.odd=!Et.even}},{key:"_getEmbeddedViewArgs",value:function(Et,Ut){return{templateRef:this._template,context:{$implicit:Et.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ut}}}]),Gt}();on.\u0275fac=function(Zt){return new(Zt||on)(F.Y36(F.s_b),F.Y36(F.Rgc),F.Y36(F.ZZ4),F.Y36(_e.k),F.Y36(Lt,4),F.Y36(F.R0b))},on.\u0275dir=F.lG2({type:on,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[F._Bn([{provide:_e.k,useClass:_e.eX}])]});var _n=(0,y.Z)(function Gt(){(0,D.Z)(this,Gt)});_n.\u0275fac=function(Zt){return new(Zt||_n)},_n.\u0275mod=F.oAB({type:_n}),_n.\u0275inj=F.cJS({});var An=(0,y.Z)(function Gt(){(0,D.Z)(this,Gt)});An.\u0275fac=function(Zt){return new(Zt||An)},An.\u0275mod=F.oAB({type:An}),An.\u0275inj=F.cJS({imports:[[xe.vT,_n],xe.vT,_n]})},9808:function(qe,J,m){"use strict";m.d(J,{Do:function(){return Oe},ED:function(){return Jo},EM:function(){return ts},HT:function(){return M},JF:function(){return Su},K0:function(){return k},Mx:function(){return lo},NF:function(){return es},O5:function(){return hr},Ov:function(){return ti},PC:function(){return ws},RF:function(){return Do},S$:function(){return se},V_:function(){return w},Ye:function(){return st},b0:function(){return ve},bD:function(){return ba},ez:function(){return cs},lw:function(){return I},mk:function(){return uo},mr:function(){return oe},n9:function(){return _i},q:function(){return K},sg:function(){return ei},tP:function(){return oa},w_:function(){return O}});var z=m(7762),Y=m(7685),S=m(136),U=m(9388),L=m(3144),P=m(5671),D=m(5e3),y=null;function K(){return y}function M(ye){y||(y=ye)}var O=(0,L.Z)(function ye(){(0,P.Z)(this,ye)}),k=new D.OlP("DocumentToken"),I=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"historyGo",value:function(Ge){throw new Error("Not implemented")}}]),ye}();I.\u0275fac=function(Re){return new(Re||I)},I.\u0275prov=D.Yz7({token:I,factory:function(){return function T(){return(0,D.LFG)(x)}()},providedIn:"platform"});var w=new D.OlP("Location Initialized"),x=function(ye){(0,S.Z)(Ge,ye);var Re=(0,U.Z)(Ge);function Ge(gt){var xt;return(0,P.Z)(this,Ge),(xt=Re.call(this))._doc=gt,xt._init(),xt}return(0,L.Z)(Ge,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return K().getBaseHref(this._doc)}},{key:"onPopState",value:function(xt){var un=K().getGlobalEventTarget(this._doc,"window");return un.addEventListener("popstate",xt,!1),function(){return un.removeEventListener("popstate",xt)}}},{key:"onHashChange",value:function(xt){var un=K().getGlobalEventTarget(this._doc,"window");return un.addEventListener("hashchange",xt,!1),function(){return un.removeEventListener("hashchange",xt)}}},{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(xt){this.location.pathname=xt}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(xt,un,Mn){N()?this._history.pushState(xt,un,Mn):this.location.hash=Mn}},{key:"replaceState",value:function(xt,un,Mn){N()?this._history.replaceState(xt,un,Mn):this.location.hash=Mn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var xt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(xt)}},{key:"getState",value:function(){return this._history.state}}]),Ge}(I);function N(){return!!window.history.pushState}function W(ye,Re){if(0==ye.length)return Re;if(0==Re.length)return ye;var Ge=0;return ye.endsWith("/")&&Ge++,Re.startsWith("/")&&Ge++,2==Ge?ye+Re.substring(1):1==Ge?ye+Re:ye+"/"+Re}function $(ye){var Re=ye.match(/#|\?|$/),Ge=Re&&Re.index||ye.length,gt=Ge-("/"===ye[Ge-1]?1:0);return ye.slice(0,gt)+ye.slice(Ge)}function ce(ye){return ye&&"?"!==ye[0]?"?"+ye:ye}x.\u0275fac=function(Re){return new(Re||x)(D.LFG(k))},x.\u0275prov=D.Yz7({token:x,factory:function(){return function R(){return new x((0,D.LFG)(k))}()},providedIn:"platform"});var se=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"historyGo",value:function(Ge){throw new Error("Not implemented")}}]),ye}();se.\u0275fac=function(Re){return new(Re||se)},se.\u0275prov=D.Yz7({token:se,factory:function(){return function te(ye){var Re=(0,D.LFG)(k).location;return new ve((0,D.LFG)(I),Re&&Re.origin||"")}()},providedIn:"root"});var oe=new D.OlP("appBaseHref"),ve=function(ye){(0,S.Z)(Ge,ye);var Re=(0,U.Z)(Ge);function Ge(gt,xt){var un;if((0,P.Z)(this,Ge),(un=Re.call(this))._platformLocation=gt,un._removeListenerFns=[],null==xt&&(xt=un._platformLocation.getBaseHrefFromDOM()),null==xt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return un._baseHref=xt,un}return(0,L.Z)(Ge,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(xt){this._removeListenerFns.push(this._platformLocation.onPopState(xt),this._platformLocation.onHashChange(xt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(xt){return W(this._baseHref,xt)}},{key:"path",value:function(){var xt=arguments.length>0&&void 0!==arguments[0]&&arguments[0],un=this._platformLocation.pathname+ce(this._platformLocation.search),Mn=this._platformLocation.hash;return Mn&&xt?"".concat(un).concat(Mn):un}},{key:"pushState",value:function(xt,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));this._platformLocation.pushState(xt,un,Or)}},{key:"replaceState",value:function(xt,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));this._platformLocation.replaceState(xt,un,Or)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var un,Mn,xt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(un=this._platformLocation).historyGo)||void 0===Mn||Mn.call(un,xt)}}]),Ge}(se);ve.\u0275fac=function(Re){return new(Re||ve)(D.LFG(I),D.LFG(oe,8))},ve.\u0275prov=D.Yz7({token:ve,factory:ve.\u0275fac});var Oe=function(ye){(0,S.Z)(Ge,ye);var Re=(0,U.Z)(Ge);function Ge(gt,xt){var un;return(0,P.Z)(this,Ge),(un=Re.call(this))._platformLocation=gt,un._baseHref="",un._removeListenerFns=[],null!=xt&&(un._baseHref=xt),un}return(0,L.Z)(Ge,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(xt){this._removeListenerFns.push(this._platformLocation.onPopState(xt),this._platformLocation.onHashChange(xt))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var un=this._platformLocation.hash;return null==un&&(un="#"),un.length>0?un.substring(1):un}},{key:"prepareExternalUrl",value:function(xt){var un=W(this._baseHref,xt);return un.length>0?"#"+un:un}},{key:"pushState",value:function(xt,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));0==Or.length&&(Or=this._platformLocation.pathname),this._platformLocation.pushState(xt,un,Or)}},{key:"replaceState",value:function(xt,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));0==Or.length&&(Or=this._platformLocation.pathname),this._platformLocation.replaceState(xt,un,Or)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var un,Mn,xt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(un=this._platformLocation).historyGo)||void 0===Mn||Mn.call(un,xt)}}]),Ge}(se);Oe.\u0275fac=function(Re){return new(Re||Oe)(D.LFG(I),D.LFG(oe,8))},Oe.\u0275prov=D.Yz7({token:Oe,factory:Oe.\u0275fac});var st=function(){function ye(Re,Ge){var gt=this;(0,P.Z)(this,ye),this._subject=new D.vpe,this._urlChangeListeners=[],this._platformStrategy=Re;var xt=this._platformStrategy.getBaseHref();this._platformLocation=Ge,this._baseHref=$(ke(xt)),this._platformStrategy.onPopState(function(un){gt._subject.emit({url:gt.path(!0),pop:!0,state:un.state,type:un.type})})}return(0,L.Z)(ye,[{key:"path",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(Ge))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(Ge+ce(gt))}},{key:"normalize",value:function(Ge){return ye.stripTrailingSlash(function _e(ye,Re){return ye&&Re.startsWith(ye)?Re.substring(ye.length):Re}(this._baseHref,ke(Ge)))}},{key:"prepareExternalUrl",value:function(Ge){return Ge&&"/"!==Ge[0]&&(Ge="/"+Ge),this._platformStrategy.prepareExternalUrl(Ge)}},{key:"go",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",xt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(xt,"",Ge,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ge+ce(gt)),xt)}},{key:"replaceState",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",xt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(xt,"",Ge,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ge+ce(gt)),xt)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var gt,xt,Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(xt=(gt=this._platformStrategy).historyGo)||void 0===xt||xt.call(gt,Ge)}},{key:"onUrlChange",value:function(Ge){var gt=this;this._urlChangeListeners.push(Ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(xt){gt._notifyUrlChangeListeners(xt.url,xt.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",gt=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(xt){return xt(Ge,gt)})}},{key:"subscribe",value:function(Ge,gt,xt){return this._subject.subscribe({next:Ge,error:gt,complete:xt})}}]),ye}();function ke(ye){return ye.replace(/\/index.html$/,"")}st.normalizeQueryParams=ce,st.joinWithSlash=W,st.stripTrailingSlash=$,st.\u0275fac=function(Re){return new(Re||st)(D.LFG(se),D.LFG(I))},st.\u0275prov=D.Yz7({token:st,factory:function(){return function xe(){return new st((0,D.LFG)(se),(0,D.LFG)(I))}()},providedIn:"root"});var ct,ye,Mt,Nt,Xt,en,qt,Xe,Fe={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,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],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"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["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 _n(ye,Re){return Jn((0,D.cg1)(ye)[D.wAp.DateFormat],Re)}function An(ye,Re){return Jn((0,D.cg1)(ye)[D.wAp.TimeFormat],Re)}function Gt(ye,Re){return Jn((0,D.cg1)(ye)[D.wAp.DateTimeFormat],Re)}function Zt(ye,Re){var Ge=(0,D.cg1)(ye),gt=Ge[D.wAp.NumberSymbols][Re];if(void 0===gt){if(Re===qt.CurrencyDecimal)return Ge[D.wAp.NumberSymbols][qt.Decimal];if(Re===qt.CurrencyGroup)return Ge[D.wAp.NumberSymbols][qt.Group]}return gt}function Et(ye,Re){return(0,D.cg1)(ye)[D.wAp.NumberFormats][Re]}function yt(ye){return(0,D.cg1)(ye)[D.wAp.Currencies]}(ye=ct||(ct={}))[ye.Decimal=0]="Decimal",ye[ye.Percent=1]="Percent",ye[ye.Currency=2]="Currency",ye[ye.Scientific=3]="Scientific",function(ye){ye[ye.Zero=0]="Zero",ye[ye.One=1]="One",ye[ye.Two=2]="Two",ye[ye.Few=3]="Few",ye[ye.Many=4]="Many",ye[ye.Other=5]="Other"}(Mt||(Mt={})),function(ye){ye[ye.Format=0]="Format",ye[ye.Standalone=1]="Standalone"}(Nt||(Nt={})),function(ye){ye[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short"}(Xt||(Xt={})),function(ye){ye[ye.Short=0]="Short",ye[ye.Medium=1]="Medium",ye[ye.Long=2]="Long",ye[ye.Full=3]="Full"}(en||(en={})),function(ye){ye[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup"}(qt||(qt={})),function(ye){ye[ye.Sunday=0]="Sunday",ye[ye.Monday=1]="Monday",ye[ye.Tuesday=2]="Tuesday",ye[ye.Wednesday=3]="Wednesday",ye[ye.Thursday=4]="Thursday",ye[ye.Friday=5]="Friday",ye[ye.Saturday=6]="Saturday"}(Xe||(Xe={}));var mt=D.kL8;function cn(ye){if(!ye[D.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ye[D.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Jn(ye,Re){for(var Ge=Re;Ge>-1;Ge--)if(void 0!==ye[Ge])return ye[Ge];throw new Error("Locale data API: locale data undefined")}function wn(ye){var Re=ye.split(":"),Ge=(0,Y.Z)(Re,2);return{hours:+Ge[0],minutes:+Ge[1]}}function Bt(ye,Re){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",gt=yt(Ge)[ye]||Fe[ye]||[],xt=gt[1];return"narrow"===Re&&"string"==typeof xt?xt:gt[0]||ye}var lt,Dt,tn,Te=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ue={},We=/((?:[^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 Jt(ye,Re,Ge,gt){var xt=function Se(ye){if(Qe(ye))return ye;if("number"==typeof ye&&!isNaN(ye))return new Date(ye);if("string"==typeof ye){if(ye=ye.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ye)){var Re=ye.split("-").map(function(ai){return+ai}),Ge=(0,Y.Z)(Re,3),gt=Ge[0],xt=Ge[1],un=void 0===xt?1:xt,Mn=Ge[2];return nn(gt,un-1,void 0===Mn?1:Mn)}var jr,Or=parseFloat(ye);if(!isNaN(ye-Or))return new Date(Or);if(jr=ye.match(Te))return function Ae(ye){var Re=new Date(0),Ge=0,gt=0,xt=ye[8]?Re.setUTCFullYear:Re.setFullYear,un=ye[8]?Re.setUTCHours:Re.setHours;ye[9]&&(Ge=Number(ye[9]+ye[10]),gt=Number(ye[9]+ye[11])),xt.call(Re,Number(ye[1]),Number(ye[2])-1,Number(ye[3]));var Mn=Number(ye[4]||0)-Ge,Pn=Number(ye[5]||0)-gt,Or=Number(ye[6]||0),jr=Math.floor(1e3*parseFloat("0."+(ye[7]||0)));return un.call(Re,Mn,Pn,Or,jr),Re}(jr)}var ar=new Date(ye);if(!Qe(ar))throw new Error('Unable to convert "'.concat(ye,'" into a date'));return ar}(ye);Re=dn(Ge,Re)||Re;for(var Pn,Mn=[];Re;){if(!(Pn=We.exec(Re))){Mn.push(Re);break}var Or=(Mn=Mn.concat(Pn.slice(1))).pop();if(!Or)break;Re=Or}var jr=xt.getTimezoneOffset();gt&&(jr=rr(gt,jr),xt=function ut(ye,Re,Ge){var gt=Ge?-1:1,xt=ye.getTimezoneOffset(),un=rr(Re,xt);return function pn(ye,Re){return(ye=new Date(ye.getTime())).setMinutes(ye.getMinutes()+Re),ye}(ye,gt*(un-xt))}(xt,gt,!0));var ar="";return Mn.forEach(function(ai){var $i=function En(ye){if(Yt[ye])return Yt[ye];var Re;switch(ye){case"G":case"GG":case"GGG":Re=mn(tn.Eras,Xt.Abbreviated);break;case"GGGG":Re=mn(tn.Eras,Xt.Wide);break;case"GGGGG":Re=mn(tn.Eras,Xt.Narrow);break;case"y":Re=Zn(Dt.FullYear,1,0,!1,!0);break;case"yy":Re=Zn(Dt.FullYear,2,0,!0,!0);break;case"yyy":Re=Zn(Dt.FullYear,3,0,!1,!0);break;case"yyyy":Re=Zn(Dt.FullYear,4,0,!1,!0);break;case"Y":Re=bt(1);break;case"YY":Re=bt(2,!0);break;case"YYY":Re=bt(3);break;case"YYYY":Re=bt(4);break;case"M":case"L":Re=Zn(Dt.Month,1,1);break;case"MM":case"LL":Re=Zn(Dt.Month,2,1);break;case"MMM":Re=mn(tn.Months,Xt.Abbreviated);break;case"MMMM":Re=mn(tn.Months,Xt.Wide);break;case"MMMMM":Re=mn(tn.Months,Xt.Narrow);break;case"LLL":Re=mn(tn.Months,Xt.Abbreviated,Nt.Standalone);break;case"LLLL":Re=mn(tn.Months,Xt.Wide,Nt.Standalone);break;case"LLLLL":Re=mn(tn.Months,Xt.Narrow,Nt.Standalone);break;case"w":Re=He(1);break;case"ww":Re=He(2);break;case"W":Re=He(1,!0);break;case"d":Re=Zn(Dt.Date,1);break;case"dd":Re=Zn(Dt.Date,2);break;case"c":case"cc":Re=Zn(Dt.Day,1);break;case"ccc":Re=mn(tn.Days,Xt.Abbreviated,Nt.Standalone);break;case"cccc":Re=mn(tn.Days,Xt.Wide,Nt.Standalone);break;case"ccccc":Re=mn(tn.Days,Xt.Narrow,Nt.Standalone);break;case"cccccc":Re=mn(tn.Days,Xt.Short,Nt.Standalone);break;case"E":case"EE":case"EEE":Re=mn(tn.Days,Xt.Abbreviated);break;case"EEEE":Re=mn(tn.Days,Xt.Wide);break;case"EEEEE":Re=mn(tn.Days,Xt.Narrow);break;case"EEEEEE":Re=mn(tn.Days,Xt.Short);break;case"a":case"aa":case"aaa":Re=mn(tn.DayPeriods,Xt.Abbreviated);break;case"aaaa":Re=mn(tn.DayPeriods,Xt.Wide);break;case"aaaaa":Re=mn(tn.DayPeriods,Xt.Narrow);break;case"b":case"bb":case"bbb":Re=mn(tn.DayPeriods,Xt.Abbreviated,Nt.Standalone,!0);break;case"bbbb":Re=mn(tn.DayPeriods,Xt.Wide,Nt.Standalone,!0);break;case"bbbbb":Re=mn(tn.DayPeriods,Xt.Narrow,Nt.Standalone,!0);break;case"B":case"BB":case"BBB":Re=mn(tn.DayPeriods,Xt.Abbreviated,Nt.Format,!0);break;case"BBBB":Re=mn(tn.DayPeriods,Xt.Wide,Nt.Format,!0);break;case"BBBBB":Re=mn(tn.DayPeriods,Xt.Narrow,Nt.Format,!0);break;case"h":Re=Zn(Dt.Hours,1,-12);break;case"hh":Re=Zn(Dt.Hours,2,-12);break;case"H":Re=Zn(Dt.Hours,1);break;case"HH":Re=Zn(Dt.Hours,2);break;case"m":Re=Zn(Dt.Minutes,1);break;case"mm":Re=Zn(Dt.Minutes,2);break;case"s":Re=Zn(Dt.Seconds,1);break;case"ss":Re=Zn(Dt.Seconds,2);break;case"S":Re=Zn(Dt.FractionalSeconds,1);break;case"SS":Re=Zn(Dt.FractionalSeconds,2);break;case"SSS":Re=Zn(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Re=Yn(lt.Short);break;case"ZZZZZ":Re=Yn(lt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Re=Yn(lt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Re=Yn(lt.Long);break;default:return null}return Yt[ye]=Re,Re}(ai);ar+=$i?$i(xt,Ge,jr):"''"===ai?"'":ai.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ar}function nn(ye,Re,Ge){var gt=new Date(0);return gt.setFullYear(ye,Re,Ge),gt.setHours(0,0,0),gt}function dn(ye,Re){var Ge=function jt(ye){return(0,D.cg1)(ye)[D.wAp.LocaleId]}(ye);if(ue[Ge]=ue[Ge]||{},ue[Ge][Re])return ue[Ge][Re];var gt="";switch(Re){case"shortDate":gt=_n(ye,en.Short);break;case"mediumDate":gt=_n(ye,en.Medium);break;case"longDate":gt=_n(ye,en.Long);break;case"fullDate":gt=_n(ye,en.Full);break;case"shortTime":gt=An(ye,en.Short);break;case"mediumTime":gt=An(ye,en.Medium);break;case"longTime":gt=An(ye,en.Long);break;case"fullTime":gt=An(ye,en.Full);break;case"short":var xt=dn(ye,"shortTime"),un=dn(ye,"shortDate");gt=On(Gt(ye,en.Short),[xt,un]);break;case"medium":var Mn=dn(ye,"mediumTime"),Pn=dn(ye,"mediumDate");gt=On(Gt(ye,en.Medium),[Mn,Pn]);break;case"long":var Or=dn(ye,"longTime"),jr=dn(ye,"longDate");gt=On(Gt(ye,en.Long),[Or,jr]);break;case"full":var ar=dn(ye,"fullTime"),ai=dn(ye,"fullDate");gt=On(Gt(ye,en.Full),[ar,ai])}return gt&&(ue[Ge][Re]=gt),gt}function On(ye,Re){return Re&&(ye=ye.replace(/\{([^}]+)}/g,function(Ge,gt){return null!=Re&&gt in Re?Re[gt]:Ge})),ye}function Dn(ye,Re){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",gt=arguments.length>3?arguments[3]:void 0,xt=arguments.length>4?arguments[4]:void 0,un="";(ye<0||xt&&ye<=0)&&(xt?ye=1-ye:(ye=-ye,un=Ge));for(var Mn=String(ye);Mn.length<Re;)Mn="0"+Mn;return gt&&(Mn=Mn.substr(Mn.length-Re)),un+Mn}function zn(ye,Re){return Dn(ye,3).substr(0,Re)}function Zn(ye,Re){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,gt=arguments.length>3&&void 0!==arguments[3]&&arguments[3],xt=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(un,Mn){var Pn=jn(ye,un);if((Ge>0||Pn>-Ge)&&(Pn+=Ge),ye===Dt.Hours)0===Pn&&-12===Ge&&(Pn=12);else if(ye===Dt.FractionalSeconds)return zn(Pn,Re);var Or=Zt(Mn,qt.MinusSign);return Dn(Pn,Re,Or,gt,xt)}}function jn(ye,Re){switch(ye){case Dt.FullYear:return Re.getFullYear();case Dt.Month:return Re.getMonth();case Dt.Date:return Re.getDate();case Dt.Hours:return Re.getHours();case Dt.Minutes:return Re.getMinutes();case Dt.Seconds:return Re.getSeconds();case Dt.FractionalSeconds:return Re.getMilliseconds();case Dt.Day:return Re.getDay();default:throw new Error('Unknown DateType value "'.concat(ye,'".'))}}function mn(ye,Re){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt.Format,gt=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(xt,un){return lr(xt,un,ye,Re,Ge,gt)}}function lr(ye,Re,Ge,gt,xt,un){switch(Ge){case tn.Months:return function nt(ye,Re,Ge){var gt=(0,D.cg1)(ye),un=Jn([gt[D.wAp.MonthsFormat],gt[D.wAp.MonthsStandalone]],Re);return Jn(un,Ge)}(Re,xt,gt)[ye.getMonth()];case tn.Days:return function vt(ye,Re,Ge){var gt=(0,D.cg1)(ye),un=Jn([gt[D.wAp.DaysFormat],gt[D.wAp.DaysStandalone]],Re);return Jn(un,Ge)}(Re,xt,gt)[ye.getDay()];case tn.DayPeriods:var Mn=ye.getHours(),Pn=ye.getMinutes();if(un){var Or=function $t(ye){var Re=(0,D.cg1)(ye);return cn(Re),(Re[D.wAp.ExtraData][2]||[]).map(function(gt){return"string"==typeof gt?wn(gt):[wn(gt[0]),wn(gt[1])]})}(Re),jr=function j(ye,Re,Ge){var gt=(0,D.cg1)(ye);cn(gt);var un=Jn([gt[D.wAp.ExtraData][0],gt[D.wAp.ExtraData][1]],Re)||[];return Jn(un,Ge)||[]}(Re,xt,gt),ar=Or.findIndex(function($i){if(Array.isArray($i)){var So=(0,Y.Z)($i,2),Di=So[0],$o=So[1],Ye=Mn>=Di.hours&&Pn>=Di.minutes,Le=Mn<$o.hours||Mn===$o.hours&&Pn<$o.minutes;if(Di.hours<$o.hours){if(Ye&&Le)return!0}else if(Ye||Le)return!0}else if($i.hours===Mn&&$i.minutes===Pn)return!0;return!1});if(-1!==ar)return jr[ar]}return function it(ye,Re,Ge){var gt=(0,D.cg1)(ye),un=Jn([gt[D.wAp.DayPeriodsFormat],gt[D.wAp.DayPeriodsStandalone]],Re);return Jn(un,Ge)}(Re,xt,gt)[Mn<12?0:1];case tn.Eras:return function Lt(ye,Re){return Jn((0,D.cg1)(ye)[D.wAp.Eras],Re)}(Re,gt)[ye.getFullYear()<=0?0:1];default:var ai=Ge;throw new Error("unexpected translation type ".concat(ai))}}function Yn(ye){return function(Re,Ge,gt){var xt=-1*gt,un=Zt(Ge,qt.MinusSign),Mn=xt>0?Math.floor(xt/60):Math.ceil(xt/60);switch(ye){case lt.Short:return(xt>=0?"+":"")+Dn(Mn,2,un)+Dn(Math.abs(xt%60),2,un);case lt.ShortGMT:return"GMT"+(xt>=0?"+":"")+Dn(Mn,1,un);case lt.Long:return"GMT"+(xt>=0?"+":"")+Dn(Mn,2,un)+":"+Dn(Math.abs(xt%60),2,un);case lt.Extended:return 0===gt?"Z":(xt>=0?"+":"")+Dn(Mn,2,un)+":"+Dn(Math.abs(xt%60),2,un);default:throw new Error('Unknown zone width "'.concat(ye,'"'))}}}!function(ye){ye[ye.Short=0]="Short",ye[ye.ShortGMT=1]="ShortGMT",ye[ye.Long=2]="Long",ye[ye.Extended=3]="Extended"}(lt||(lt={})),function(ye){ye[ye.FullYear=0]="FullYear",ye[ye.Month=1]="Month",ye[ye.Date=2]="Date",ye[ye.Hours=3]="Hours",ye[ye.Minutes=4]="Minutes",ye[ye.Seconds=5]="Seconds",ye[ye.FractionalSeconds=6]="FractionalSeconds",ye[ye.Day=7]="Day"}(Dt||(Dt={})),function(ye){ye[ye.DayPeriods=0]="DayPeriods",ye[ye.Days=1]="Days",ye[ye.Months=2]="Months",ye[ye.Eras=3]="Eras"}(tn||(tn={}));function Ue(ye){var Re=nn(ye,0,1).getDay();return nn(ye,0,1+(Re<=4?4:11)-Re)}function Ee(ye){return nn(ye.getFullYear(),ye.getMonth(),ye.getDate()+(4-ye.getDay()))}function He(ye){var Re=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(Ge,gt){var xt;if(Re){var un=new Date(Ge.getFullYear(),Ge.getMonth(),1).getDay()-1,Mn=Ge.getDate();xt=1+Math.floor((Mn+un)/7)}else{var Pn=Ee(Ge),Or=Ue(Pn.getFullYear()),jr=Pn.getTime()-Or.getTime();xt=1+Math.round(jr/6048e5)}return Dn(xt,ye,Zt(gt,qt.MinusSign))}}function bt(ye){var Re=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(Ge,gt){return Dn(Ee(Ge).getFullYear(),ye,Zt(gt,qt.MinusSign),Re)}}var Yt={};function rr(ye,Re){ye=ye.replace(/:/g,"");var Ge=Date.parse("Jan 01, 1970 00:00:00 "+ye)/6e4;return isNaN(Ge)?Re:Ge}function Qe(ye){return ye instanceof Date&&!isNaN(ye.valueOf())}var _t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ln="0";function bo(ye,Re,Ge,gt,xt,un){var Mn=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Pn="",Or=!1;if(isFinite(ye)){var jr=Ko(ye);Mn&&(jr=_a(jr));var ar=Re.minInt,ai=Re.minFrac,$i=Re.maxFrac;if(un){var So=un.match(_t);if(null===So)throw new Error("".concat(un," is not a valid digit info"));var Di=So[1],$o=So[3],Ye=So[5];null!=Di&&(ar=Qa(Di)),null!=$o&&(ai=Qa($o)),null!=Ye?$i=Qa(Ye):null!=$o&&ai>$i&&($i=ai)}yi(jr,ai,$i);var Le=jr.digits,Ce=jr.integerLen,Je=jr.exponent,Ke=[];for(Or=Le.every(function(an){return!an});Ce<ar;Ce++)Le.unshift(0);for(;Ce<0;Ce++)Le.unshift(0);Ce>0?Ke=Le.splice(Ce,Le.length):(Ke=Le,Le=[0]);var Rt=[];for(Le.length>=Re.lgSize&&Rt.unshift(Le.splice(-Re.lgSize,Le.length).join(""));Le.length>Re.gSize;)Rt.unshift(Le.splice(-Re.gSize,Le.length).join(""));Le.length&&Rt.unshift(Le.join("")),Pn=Rt.join(Zt(Ge,gt)),Ke.length&&(Pn+=Zt(Ge,xt)+Ke.join("")),Je&&(Pn+=Zt(Ge,qt.Exponential)+"+"+Je)}else Pn=Zt(Ge,qt.Infinity);return Pn=ye<0&&!Or?Re.negPre+Pn+Re.negSuf:Re.posPre+Pn+Re.posSuf}function qi(ye,Re,Ge,gt,xt){var Mn=qo(Et(Re,ct.Currency),Zt(Re,qt.MinusSign));return Mn.minFrac=function de(ye){var Re,Ge=Fe[ye];return Ge&&(Re=Ge[2]),"number"==typeof Re?Re:2}(gt),Mn.maxFrac=Mn.minFrac,bo(ye,Mn,Re,qt.CurrencyGroup,qt.CurrencyDecimal,xt).replace("\xa4",Ge).replace("\xa4","").trim()}function qo(ye){var Re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",Ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},gt=ye.split(";"),xt=gt[0],un=gt[1],Mn=-1!==xt.indexOf(".")?xt.split("."):[xt.substring(0,xt.lastIndexOf(Ln)+1),xt.substring(xt.lastIndexOf(Ln)+1)],Pn=Mn[0],Or=Mn[1]||"";Ge.posPre=Pn.substr(0,Pn.indexOf("#"));for(var jr=0;jr<Or.length;jr++){var ar=Or.charAt(jr);ar===Ln?Ge.minFrac=Ge.maxFrac=jr+1:"#"===ar?Ge.maxFrac=jr+1:Ge.posSuf+=ar}var ai=Pn.split(",");if(Ge.gSize=ai[1]?ai[1].length:0,Ge.lgSize=ai[2]||ai[1]?(ai[2]||ai[1]).length:0,un){var $i=xt.length-Ge.posPre.length-Ge.posSuf.length,So=un.indexOf("#");Ge.negPre=un.substr(0,So).replace(/'/g,""),Ge.negSuf=un.substr(So+$i).replace(/'/g,"")}else Ge.negPre=Re+Ge.posPre,Ge.negSuf=Ge.posSuf;return Ge}function _a(ye){if(0===ye.digits[0])return ye;var Re=ye.digits.length-ye.integerLen;return ye.exponent?ye.exponent+=2:(0===Re?ye.digits.push(0,0):1===Re&&ye.digits.push(0),ye.integerLen+=2),ye}function Ko(ye){var gt,xt,un,Mn,Pn,Re=Math.abs(ye)+"",Ge=0;for((xt=Re.indexOf("."))>-1&&(Re=Re.replace(".","")),(un=Re.search(/e/i))>0?(xt<0&&(xt=un),xt+=+Re.slice(un+1),Re=Re.substring(0,un)):xt<0&&(xt=Re.length),un=0;Re.charAt(un)===Ln;un++);if(un===(Pn=Re.length))gt=[0],xt=1;else{for(Pn--;Re.charAt(Pn)===Ln;)Pn--;for(xt-=un,gt=[],Mn=0;un<=Pn;un++,Mn++)gt[Mn]=Number(Re.charAt(un))}return xt>22&&(gt=gt.splice(0,21),Ge=xt-1,xt=1),{digits:gt,exponent:Ge,integerLen:xt}}function yi(ye,Re,Ge){if(Re>Ge)throw new Error("The minimum number of digits after fraction (".concat(Re,") is higher than the maximum (").concat(Ge,")."));var gt=ye.digits,xt=gt.length-ye.integerLen,un=Math.min(Math.max(Re,xt),Ge),Mn=un+ye.integerLen,Pn=gt[Mn];if(Mn>0){gt.splice(Math.max(ye.integerLen,Mn));for(var Or=Mn;Or<gt.length;Or++)gt[Or]=0}else{xt=Math.max(0,xt),ye.integerLen=1,gt.length=Math.max(1,Mn=un+1),gt[0]=0;for(var jr=1;jr<Mn;jr++)gt[jr]=0}if(Pn>=5)if(Mn-1<0){for(var ar=0;ar>Mn;ar--)gt.unshift(0),ye.integerLen++;gt.unshift(1),ye.integerLen++}else gt[Mn-1]++;for(;xt<Math.max(0,un);xt++)gt.push(0);var ai=0!==un,$i=Re+ye.integerLen,So=gt.reduceRight(function(Di,$o,Ye,Le){return $o+=Di,Le[Ye]=$o<10?$o:$o-10,ai&&(0===Le[Ye]&&Ye>=$i?Le.pop():ai=!1),$o>=10?1:0},0);So&&(gt.unshift(So),ye.integerLen++)}function Qa(ye){var Re=parseInt(ye);if(isNaN(Re))throw new Error("Invalid integer literal when parsing "+ye);return Re}var zi=(0,L.Z)(function ye(){(0,P.Z)(this,ye)});function or(ye,Re,Ge,gt){var xt="=".concat(ye);if(Re.indexOf(xt)>-1||(xt=Ge.getPluralCategory(ye,gt),Re.indexOf(xt)>-1))return xt;if(Re.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ye,'"'))}zi.\u0275fac=function(Re){return new(Re||zi)},zi.\u0275prov=D.Yz7({token:zi,factory:function(Re){var gt,Ge=null;return Re?Ge=new Re:(gt=D.LFG(D.soG),Ge=new Pr(gt)),Ge},providedIn:"root"});var Pr=function(ye){(0,S.Z)(Ge,ye);var Re=(0,U.Z)(Ge);function Ge(gt){var xt;return(0,P.Z)(this,Ge),(xt=Re.call(this)).locale=gt,xt}return(0,L.Z)(Ge,[{key:"getPluralCategory",value:function(xt,un){switch(mt(un||this.locale)(xt)){case Mt.Zero:return"zero";case Mt.One:return"one";case Mt.Two:return"two";case Mt.Few:return"few";case Mt.Many:return"many";default:return"other"}}}]),Ge}(zi);function lo(ye,Re){Re=encodeURIComponent(Re);var gt,Ge=(0,z.Z)(ye.split(";"));try{for(Ge.s();!(gt=Ge.n()).done;){var xt=gt.value,un=xt.indexOf("="),Mn=-1==un?[xt,""]:[xt.slice(0,un),xt.slice(un+1)],Pn=(0,Y.Z)(Mn,2),Or=Pn[0],jr=Pn[1];if(Or.trim()===Re)return decodeURIComponent(jr)}}catch(ar){Ge.e(ar)}finally{Ge.f()}return null}Pr.\u0275fac=function(Re){return new(Re||Pr)(D.LFG(D.soG))},Pr.\u0275prov=D.Yz7({token:Pr,factory:Pr.\u0275fac});var uo=function(){function ye(Re,Ge,gt,xt){(0,P.Z)(this,ye),this._iterableDiffers=Re,this._keyValueDiffers=Ge,this._ngEl=gt,this._renderer=xt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,L.Z)(ye,[{key:"klass",set:function(Ge){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ge?Ge.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(Ge){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ge?Ge.split(/\s+/):Ge,this._rawClass&&((0,D.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 Ge=this._iterableDiffer.diff(this._rawClass);Ge&&this._applyIterableChanges(Ge)}else if(this._keyValueDiffer){var gt=this._keyValueDiffer.diff(this._rawClass);gt&&this._applyKeyValueChanges(gt)}}},{key:"_applyKeyValueChanges",value:function(Ge){var gt=this;Ge.forEachAddedItem(function(xt){return gt._toggleClass(xt.key,xt.currentValue)}),Ge.forEachChangedItem(function(xt){return gt._toggleClass(xt.key,xt.currentValue)}),Ge.forEachRemovedItem(function(xt){xt.previousValue&&gt._toggleClass(xt.key,!1)})}},{key:"_applyIterableChanges",value:function(Ge){var gt=this;Ge.forEachAddedItem(function(xt){if("string"!=typeof xt.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,D.AaK)(xt.item)));gt._toggleClass(xt.item,!0)}),Ge.forEachRemovedItem(function(xt){return gt._toggleClass(xt.item,!1)})}},{key:"_applyClasses",value:function(Ge){var gt=this;Ge&&(Array.isArray(Ge)||Ge instanceof Set?Ge.forEach(function(xt){return gt._toggleClass(xt,!0)}):Object.keys(Ge).forEach(function(xt){return gt._toggleClass(xt,!!Ge[xt])}))}},{key:"_removeClasses",value:function(Ge){var gt=this;Ge&&(Array.isArray(Ge)||Ge instanceof Set?Ge.forEach(function(xt){return gt._toggleClass(xt,!1)}):Object.keys(Ge).forEach(function(xt){return gt._toggleClass(xt,!1)}))}},{key:"_toggleClass",value:function(Ge,gt){var xt=this;(Ge=Ge.trim())&&Ge.split(/\s+/g).forEach(function(un){gt?xt._renderer.addClass(xt._ngEl.nativeElement,un):xt._renderer.removeClass(xt._ngEl.nativeElement,un)})}}]),ye}();uo.\u0275fac=function(Re){return new(Re||uo)(D.Y36(D.ZZ4),D.Y36(D.aQg),D.Y36(D.SBq),D.Y36(D.Qsj))},uo.\u0275dir=D.lG2({type:uo,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});var mi=function(){function ye(Re){(0,P.Z)(this,ye),this._viewContainerRef=Re,this._componentRef=null,this._moduleRef=null}return(0,L.Z)(ye,[{key:"ngOnChanges",value:function(Ge){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var gt=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(Ge.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var xt=gt.get(D.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(xt.injector)}else this._moduleRef=null;var Mn=(this._moduleRef?this._moduleRef.componentFactoryResolver:gt.get(D._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(Mn,this._viewContainerRef.length,gt,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ye}();mi.\u0275fac=function(Re){return new(Re||mi)(D.Y36(D.s_b))},mi.\u0275dir=D.lG2({type:mi,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[D.TTD]});var Bo=function(){function ye(Re,Ge,gt,xt){(0,P.Z)(this,ye),this.$implicit=Re,this.ngForOf=Ge,this.index=gt,this.count=xt}return(0,L.Z)(ye,[{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}}]),ye}(),ei=function(){function ye(Re,Ge,gt){(0,P.Z)(this,ye),this._viewContainer=Re,this._template=Ge,this._differs=gt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,L.Z)(ye,[{key:"ngForOf",set:function(Ge){this._ngForOf=Ge,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(Ge){this._trackByFn=Ge}},{key:"ngForTemplate",set:function(Ge){Ge&&(this._template=Ge)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var Ge=this._ngForOf;!this._differ&&Ge&&(this._differ=this._differs.find(Ge).create(this.ngForTrackBy))}if(this._differ){var gt=this._differ.diff(this._ngForOf);gt&&this._applyChanges(gt)}}},{key:"_applyChanges",value:function(Ge){var gt=this,xt=this._viewContainer;Ge.forEachOperation(function(jr,ar,ai){if(null==jr.previousIndex)xt.createEmbeddedView(gt._template,new Bo(jr.item,gt._ngForOf,-1,-1),null===ai?void 0:ai);else if(null==ai)xt.remove(null===ar?void 0:ar);else if(null!==ar){var $i=xt.get(ar);xt.move($i,ai),Pi($i,jr)}});for(var un=0,Mn=xt.length;un<Mn;un++){var Or=xt.get(un).context;Or.index=un,Or.count=Mn,Or.ngForOf=this._ngForOf}Ge.forEachIdentityChange(function(jr){Pi(xt.get(jr.currentIndex),jr)})}}],[{key:"ngTemplateContextGuard",value:function(Ge,gt){return!0}}]),ye}();function Pi(ye,Re){ye.context.$implicit=Re.item}ei.\u0275fac=function(Re){return new(Re||ei)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(D.ZZ4))},ei.\u0275dir=D.lG2({type:ei,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var hr=function(){function ye(Re,Ge){(0,P.Z)(this,ye),this._viewContainer=Re,this._context=new Js,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}return(0,L.Z)(ye,[{key:"ngIf",set:function(Ge){this._context.$implicit=this._context.ngIf=Ge,this._updateView()}},{key:"ngIfThen",set:function(Ge){Xa("ngIfThen",Ge),this._thenTemplateRef=Ge,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(Ge){Xa("ngIfElse",Ge),this._elseTemplateRef=Ge,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(Ge,gt){return!0}}]),ye}();hr.\u0275fac=function(Re){return new(Re||hr)(D.Y36(D.s_b),D.Y36(D.Rgc))},hr.\u0275dir=D.lG2({type:hr,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Js=(0,L.Z)(function ye(){(0,P.Z)(this,ye),this.$implicit=null,this.ngIf=null});function Xa(ye,Re){if(!!(Re&&!Re.createEmbeddedView))throw new Error("".concat(ye," must be a TemplateRef, but received '").concat((0,D.AaK)(Re),"'."))}var Ri=function(){function ye(Re,Ge){(0,P.Z)(this,ye),this._viewContainerRef=Re,this._templateRef=Ge,this._created=!1}return(0,L.Z)(ye,[{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(Ge){Ge&&!this._created?this.create():!Ge&&this._created&&this.destroy()}}]),ye}(),Do=function(){function ye(){(0,P.Z)(this,ye),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,L.Z)(ye,[{key:"ngSwitch",set:function(Ge){this._ngSwitch=Ge,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(Ge){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ge)}},{key:"_matchCase",value:function(Ge){var gt=Ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),gt}},{key:"_updateDefaultCases",value:function(Ge){if(this._defaultViews&&Ge!==this._defaultUsed){this._defaultUsed=Ge;for(var gt=0;gt<this._defaultViews.length;gt++){this._defaultViews[gt].enforceState(Ge)}}}}]),ye}();Do.\u0275fac=function(Re){return new(Re||Do)},Do.\u0275dir=D.lG2({type:Do,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var _i=function(){function ye(Re,Ge,gt){(0,P.Z)(this,ye),this.ngSwitch=gt,gt._addCase(),this._view=new Ri(Re,Ge)}return(0,L.Z)(ye,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ye}();_i.\u0275fac=function(Re){return new(Re||_i)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(Do,9))},_i.\u0275dir=D.lG2({type:_i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});var Jo=(0,L.Z)(function ye(Re,Ge,gt){(0,P.Z)(this,ye),gt._addDefault(new Ri(Re,Ge))});Jo.\u0275fac=function(Re){return new(Re||Jo)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(Do,9))},Jo.\u0275dir=D.lG2({type:Jo,selectors:[["","ngSwitchDefault",""]]});var bi=function(){function ye(Re){(0,P.Z)(this,ye),this._localization=Re,this._caseViews={}}return(0,L.Z)(ye,[{key:"ngPlural",set:function(Ge){this._switchValue=Ge,this._updateView()}},{key:"addCase",value:function(Ge,gt){this._caseViews[Ge]=gt}},{key:"_updateView",value:function(){this._clearViews();var Ge=Object.keys(this._caseViews),gt=or(this._switchValue,Ge,this._localization);this._activateView(this._caseViews[gt])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(Ge){Ge&&(this._activeView=Ge,this._activeView.create())}}]),ye}();bi.\u0275fac=function(Re){return new(Re||bi)(D.Y36(zi))},bi.\u0275dir=D.lG2({type:bi,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}});var Nr=(0,L.Z)(function ye(Re,Ge,gt,xt){(0,P.Z)(this,ye),this.value=Re;var un=!isNaN(Number(Re));xt.addCase(un?"=".concat(Re):Re,new Ri(gt,Ge))});Nr.\u0275fac=function(Re){return new(Re||Nr)(D.$8M("ngPluralCase"),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(bi,1))},Nr.\u0275dir=D.lG2({type:Nr,selectors:[["","ngPluralCase",""]]});var ws=function(){function ye(Re,Ge,gt){(0,P.Z)(this,ye),this._ngEl=Re,this._differs=Ge,this._renderer=gt,this._ngStyle=null,this._differ=null}return(0,L.Z)(ye,[{key:"ngStyle",set:function(Ge){this._ngStyle=Ge,!this._differ&&Ge&&(this._differ=this._differs.find(Ge).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var Ge=this._differ.diff(this._ngStyle);Ge&&this._applyChanges(Ge)}}},{key:"_setStyle",value:function(Ge,gt){var xt=Ge.split("."),un=(0,Y.Z)(xt,2),Mn=un[0],Pn=un[1];null!=(gt=null!=gt&&Pn?"".concat(gt).concat(Pn):gt)?this._renderer.setStyle(this._ngEl.nativeElement,Mn,gt):this._renderer.removeStyle(this._ngEl.nativeElement,Mn)}},{key:"_applyChanges",value:function(Ge){var gt=this;Ge.forEachRemovedItem(function(xt){return gt._setStyle(xt.key,null)}),Ge.forEachAddedItem(function(xt){return gt._setStyle(xt.key,xt.currentValue)}),Ge.forEachChangedItem(function(xt){return gt._setStyle(xt.key,xt.currentValue)})}}]),ye}();ws.\u0275fac=function(Re){return new(Re||ws)(D.Y36(D.SBq),D.Y36(D.aQg),D.Y36(D.Qsj))},ws.\u0275dir=D.lG2({type:ws,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var oa=function(){function ye(Re){(0,P.Z)(this,ye),this._viewContainerRef=Re,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,L.Z)(ye,[{key:"ngOnChanges",value:function(Ge){if(Ge.ngTemplateOutlet){var gt=this._viewContainerRef;this._viewRef&&gt.remove(gt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?gt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ye}();oa.\u0275fac=function(Re){return new(Re||oa)(D.Y36(D.s_b))},oa.\u0275dir=D.lG2({type:oa,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[D.TTD]});function yn(ye,Re){return new D.vHH(2100,"")}var Cn=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"createSubscription",value:function(Ge,gt){return Ge.subscribe({next:gt,error:function(un){throw un}})}},{key:"dispose",value:function(Ge){Ge.unsubscribe()}},{key:"onDestroy",value:function(Ge){Ge.unsubscribe()}}]),ye}(),oi=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"createSubscription",value:function(Ge,gt){return Ge.then(gt,function(xt){throw xt})}},{key:"dispose",value:function(Ge){}},{key:"onDestroy",value:function(Ge){}}]),ye}(),Li=new oi,Ki=new Cn,ti=function(){function ye(Re){(0,P.Z)(this,ye),this._ref=Re,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,L.Z)(ye,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(Ge){return this._obj?Ge!==this._obj?(this._dispose(),this.transform(Ge)):this._latestValue:(Ge&&this._subscribe(Ge),this._latestValue)}},{key:"_subscribe",value:function(Ge){var gt=this;this._obj=Ge,this._strategy=this._selectStrategy(Ge),this._subscription=this._strategy.createSubscription(Ge,function(xt){return gt._updateLatestValue(Ge,xt)})}},{key:"_selectStrategy",value:function(Ge){if((0,D.QGY)(Ge))return Li;if((0,D.F4k)(Ge))return Ki;throw yn()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(Ge,gt){Ge===this._obj&&(this._latestValue=gt,this._ref.markForCheck())}}]),ye}();ti.\u0275fac=function(Re){return new(Re||ti)(D.Y36(D.sBO,16))},ti.\u0275pipe=D.Yjl({name:"async",type:ti,pure:!1});var Fo=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw yn();return Ge.toLowerCase()}}]),ye}();Fo.\u0275fac=function(Re){return new(Re||Fo)},Fo.\u0275pipe=D.Yjl({name:"lowercase",type:Fo,pure:!0});var va=/(?:[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,Ji=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw yn();return Ge.replace(va,function(gt){return gt[0].toUpperCase()+gt.substr(1).toLowerCase()})}}]),ye}();Ji.\u0275fac=function(Re){return new(Re||Ji)},Ji.\u0275pipe=D.Yjl({name:"titlecase",type:Ji,pure:!0});var Ci=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw yn();return Ge.toUpperCase()}}]),ye}();Ci.\u0275fac=function(Re){return new(Re||Ci)},Ci.\u0275pipe=D.Yjl({name:"uppercase",type:Ci,pure:!0});var Co=new D.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),ks=function(){function ye(Re,Ge){(0,P.Z)(this,ye),this.locale=Re,this.defaultTimezone=Ge}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){var Mn,gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",xt=arguments.length>2?arguments[2]:void 0,un=arguments.length>3?arguments[3]:void 0;if(null==Ge||""===Ge||Ge!=Ge)return null;try{return Jt(Ge,gt,un||this.locale,null!==(Mn=null!=xt?xt:this.defaultTimezone)&&void 0!==Mn?Mn:void 0)}catch(Pn){throw yn(0,Pn.message)}}}]),ye}();ks.\u0275fac=function(Re){return new(Re||ks)(D.Y36(D.soG,16),D.Y36(Co,24))},ks.\u0275pipe=D.Yjl({name:"date",type:ks,pure:!0});var Uo=/#/g,ya=function(){function ye(Re){(0,P.Z)(this,ye),this._localization=Re}return(0,L.Z)(ye,[{key:"transform",value:function(Ge,gt,xt){if(null==Ge)return"";if("object"!=typeof gt||null===gt)throw yn();return gt[or(Ge,Object.keys(gt),this._localization,xt)].replace(Uo,Ge.toString())}}]),ye}();ya.\u0275fac=function(Re){return new(Re||ya)(D.Y36(zi,16))},ya.\u0275pipe=D.Yjl({name:"i18nPlural",type:ya,pure:!0});var Ho=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge,gt){if(null==Ge)return"";if("object"!=typeof gt||"string"!=typeof Ge)throw yn();return gt.hasOwnProperty(Ge)?gt[Ge]:gt.hasOwnProperty("other")?gt.other:""}}]),ye}();Ho.\u0275fac=function(Re){return new(Re||Ho)},Ho.\u0275pipe=D.Yjl({name:"i18nSelect",type:Ho,pure:!0});var Qi=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){return JSON.stringify(Ge,null,2)}}]),ye}();function mo(ye,Re){return{key:ye,value:Re}}Qi.\u0275fac=function(Re){return new(Re||Qi)},Qi.\u0275pipe=D.Yjl({name:"json",type:Qi,pure:!1});var tr=function(){function ye(Re){(0,P.Z)(this,ye),this.differs=Re,this.keyValues=[],this.compareFn=Fa}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){var gt=this,xt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fa;if(!Ge||!(Ge instanceof Map)&&"object"!=typeof Ge)return null;this.differ||(this.differ=this.differs.find(Ge).create());var un=this.differ.diff(Ge),Mn=xt!==this.compareFn;return un&&(this.keyValues=[],un.forEachItem(function(Pn){gt.keyValues.push(mo(Pn.key,Pn.currentValue))})),(un||Mn)&&(this.keyValues.sort(xt),this.compareFn=xt),this.keyValues}}]),ye}();function Fa(ye,Re){var Ge=ye.key,gt=Re.key;if(Ge===gt)return 0;if(void 0===Ge)return 1;if(void 0===gt)return-1;if(null===Ge)return 1;if(null===gt)return-1;if("string"==typeof Ge&&"string"==typeof gt)return Ge<gt?-1:1;if("number"==typeof Ge&&"number"==typeof gt)return Ge-gt;if("boolean"==typeof Ge&&"boolean"==typeof gt)return Ge<gt?-1:1;var xt=String(Ge),un=String(gt);return xt==un?0:xt<un?-1:1}tr.\u0275fac=function(Re){return new(Re||tr)(D.Y36(D.aQg,16))},tr.\u0275pipe=D.Yjl({name:"keyvalue",type:tr,pure:!1});var Oo=function(){function ye(Re){(0,P.Z)(this,ye),this._locale=Re}return(0,L.Z)(ye,[{key:"transform",value:function(Ge,gt,xt){if(!la(Ge))return null;xt=xt||this._locale;try{return function Na(ye,Re,Ge){return bo(ye,qo(Et(Re,ct.Decimal),Zt(Re,qt.MinusSign)),Re,qt.Group,qt.Decimal,Ge)}(Qo(Ge),xt,gt)}catch(Mn){throw yn(0,Mn.message)}}}]),ye}();Oo.\u0275fac=function(Re){return new(Re||Oo)(D.Y36(D.soG,16))},Oo.\u0275pipe=D.Yjl({name:"number",type:Oo,pure:!0});var io=function(){function ye(Re){(0,P.Z)(this,ye),this._locale=Re}return(0,L.Z)(ye,[{key:"transform",value:function(Ge,gt,xt){if(!la(Ge))return null;xt=xt||this._locale;try{return function Ja(ye,Re,Ge){return bo(ye,qo(Et(Re,ct.Percent),Zt(Re,qt.MinusSign)),Re,qt.Group,qt.Decimal,Ge,!0).replace(new RegExp("%","g"),Zt(Re,qt.PercentSign))}(Qo(Ge),xt,gt)}catch(Mn){throw yn(0,Mn.message)}}}]),ye}();io.\u0275fac=function(Re){return new(Re||io)(D.Y36(D.soG,16))},io.\u0275pipe=D.Yjl({name:"percent",type:io,pure:!0});var Kr=function(){function ye(Re){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,P.Z)(this,ye),this._locale=Re,this._defaultCurrencyCode=Ge}return(0,L.Z)(ye,[{key:"transform",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,xt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",un=arguments.length>3?arguments[3]:void 0,Mn=arguments.length>4?arguments[4]:void 0;if(!la(Ge))return null;Mn=Mn||this._locale,"boolean"==typeof xt&&(xt=xt?"symbol":"code");var Pn=gt||this._defaultCurrencyCode;"code"!==xt&&(Pn="symbol"===xt||"symbol-narrow"===xt?Bt(Pn,"symbol"===xt?"wide":"narrow",Mn):xt);try{var Or=Qo(Ge);return qi(Or,Mn,Pn,gt,un)}catch(jr){throw yn(0,jr.message)}}}]),ye}();function la(ye){return!(null==ye||""===ye||ye!=ye)}function Qo(ye){if("string"==typeof ye&&!isNaN(Number(ye)-parseFloat(ye)))return Number(ye);if("number"!=typeof ye)throw new Error("".concat(ye," is not a number"));return ye}Kr.\u0275fac=function(Re){return new(Re||Kr)(D.Y36(D.soG,16),D.Y36(D.EJc,16))},Kr.\u0275pipe=D.Yjl({name:"currency",type:Kr,pure:!0});var br=function(){function ye(){(0,P.Z)(this,ye)}return(0,L.Z)(ye,[{key:"transform",value:function(Ge,gt,xt){if(null==Ge)return null;if(!this.supports(Ge))throw yn();return Ge.slice(gt,xt)}},{key:"supports",value:function(Ge){return"string"==typeof Ge||Array.isArray(Ge)}}]),ye}();br.\u0275fac=function(Re){return new(Re||br)},br.\u0275pipe=D.Yjl({name:"slice",type:br,pure:!1});var cs=(0,L.Z)(function ye(){(0,P.Z)(this,ye)});cs.\u0275fac=function(Re){return new(Re||cs)},cs.\u0275mod=D.oAB({type:cs}),cs.\u0275inj=D.cJS({});var ba="browser";function es(ye){return ye===ba}new D.GfV("13.3.11");var ts=(0,L.Z)(function ye(){(0,P.Z)(this,ye)});ts.\u0275prov=(0,D.Yz7)({token:ts,providedIn:"root",factory:function(){return new Rs((0,D.LFG)(k),window)}});var Rs=function(){function ye(Re,Ge){(0,P.Z)(this,ye),this.document=Re,this.window=Ge,this.offset=function(){return[0,0]}}return(0,L.Z)(ye,[{key:"setOffset",value:function(Ge){Array.isArray(Ge)?this.offset=function(){return Ge}:this.offset=Ge}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(Ge){this.supportsScrolling()&&this.window.scrollTo(Ge[0],Ge[1])}},{key:"scrollToAnchor",value:function(Ge){if(this.supportsScrolling()){var gt=function wo(ye,Re){var Ge=ye.getElementById(Re)||ye.getElementsByName(Re)[0];if(Ge)return Ge;if("function"==typeof ye.createTreeWalker&&ye.body&&(ye.body.createShadowRoot||ye.body.attachShadow))for(var gt=ye.createTreeWalker(ye.body,NodeFilter.SHOW_ELEMENT),xt=gt.currentNode;xt;){var un=xt.shadowRoot;if(un){var Mn=un.getElementById(Re)||un.querySelector('[name="'.concat(Re,'"]'));if(Mn)return Mn}xt=gt.nextNode()}return null}(this.document,Ge);gt&&(this.scrollToElement(gt),gt.focus())}}},{key:"setHistoryScrollRestoration",value:function(Ge){if(this.supportScrollRestoration()){var gt=this.window.history;gt&&gt.scrollRestoration&&(gt.scrollRestoration=Ge)}}},{key:"scrollToElement",value:function(Ge){var gt=Ge.getBoundingClientRect(),xt=gt.left+this.window.pageXOffset,un=gt.top+this.window.pageYOffset,Mn=this.offset();this.window.scrollTo(xt-Mn[0],un-Mn[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var Ge=iu(this.window.history)||iu(Object.getPrototypeOf(this.window.history));return!(!Ge||!Ge.writable&&!Ge.set)}catch(gt){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Ge){return!1}}}]),ye}();function iu(ye){return Object.getOwnPropertyDescriptor(ye,"scrollRestoration")}var Su=(0,L.Z)(function ye(){(0,P.Z)(this,ye)})},520:function(qe,J,m){"use strict";m.d(J,{JF:function(){return wn},LE:function(){return se},TP:function(){return jt},UA:function(){return Xt},WM:function(){return w},eN:function(){return qt}});var z=m(136),Y=m(9388),S=m(7685),U=m(4902),L=m(3144),P=m(5671),D=m(9808),y=m(5e3),K=m(1086),F=m(7451),M=m(1406),O=m(9664),k=m(4850),I=(0,L.Z)(function de(){(0,P.Z)(this,de)}),T=(0,L.Z)(function de(){(0,P.Z)(this,de)}),w=function(){function de(Te){var ue=this;(0,P.Z)(this,de),this.normalizedNames=new Map,this.lazyUpdate=null,Te?this.lazyInit="string"==typeof Te?function(){ue.headers=new Map,Te.split("\n").forEach(function(We){var lt=We.indexOf(":");if(lt>0){var Dt=We.slice(0,lt),tn=Dt.toLowerCase(),Jt=We.slice(lt+1).trim();ue.maybeSetNormalizedName(Dt,tn),ue.headers.has(tn)?ue.headers.get(tn).push(Jt):ue.headers.set(tn,[Jt])}})}:function(){ue.headers=new Map,Object.keys(Te).forEach(function(We){var lt=Te[We],Dt=We.toLowerCase();"string"==typeof lt&&(lt=[lt]),lt.length>0&&(ue.headers.set(Dt,lt),ue.maybeSetNormalizedName(We,Dt))})}:this.headers=new Map}return(0,L.Z)(de,[{key:"has",value:function(ue){return this.init(),this.headers.has(ue.toLowerCase())}},{key:"get",value:function(ue){this.init();var We=this.headers.get(ue.toLowerCase());return We&&We.length>0?We[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(ue){return this.init(),this.headers.get(ue.toLowerCase())||null}},{key:"append",value:function(ue,We){return this.clone({name:ue,value:We,op:"a"})}},{key:"set",value:function(ue,We){return this.clone({name:ue,value:We,op:"s"})}},{key:"delete",value:function(ue,We){return this.clone({name:ue,value:We,op:"d"})}},{key:"maybeSetNormalizedName",value:function(ue,We){this.normalizedNames.has(We)||this.normalizedNames.set(We,ue)}},{key:"init",value:function(){var ue=this;this.lazyInit&&(this.lazyInit instanceof de?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(We){return ue.applyUpdate(We)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(ue){var We=this;ue.init(),Array.from(ue.headers.keys()).forEach(function(lt){We.headers.set(lt,ue.headers.get(lt)),We.normalizedNames.set(lt,ue.normalizedNames.get(lt))})}},{key:"clone",value:function(ue){var We=new de;return We.lazyInit=this.lazyInit&&this.lazyInit instanceof de?this.lazyInit:this,We.lazyUpdate=(this.lazyUpdate||[]).concat([ue]),We}},{key:"applyUpdate",value:function(ue){var We=ue.name.toLowerCase();switch(ue.op){case"a":case"s":var lt=ue.value;if("string"==typeof lt&&(lt=[lt]),0===lt.length)return;this.maybeSetNormalizedName(ue.name,We);var Dt=("a"===ue.op?this.headers.get(We):void 0)||[];Dt.push.apply(Dt,(0,U.Z)(lt)),this.headers.set(We,Dt);break;case"d":var tn=ue.value;if(tn){var Jt=this.headers.get(We);if(!Jt)return;0===(Jt=Jt.filter(function(nn){return-1===tn.indexOf(nn)})).length?(this.headers.delete(We),this.normalizedNames.delete(We)):this.headers.set(We,Jt)}else this.headers.delete(We),this.normalizedNames.delete(We)}}},{key:"forEach",value:function(ue){var We=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(lt){return ue(We.normalizedNames.get(lt),We.headers.get(lt))})}}]),de}(),x=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,[{key:"encodeKey",value:function(ue){return $(ue)}},{key:"encodeValue",value:function(ue){return $(ue)}},{key:"decodeKey",value:function(ue){return decodeURIComponent(ue)}},{key:"decodeValue",value:function(ue){return decodeURIComponent(ue)}}]),de}();function N(de,Te){var ue=new Map;de.length>0&&de.replace(/^\?/,"").split("&").forEach(function(lt){var Dt=lt.indexOf("="),tn=-1==Dt?[Te.decodeKey(lt),""]:[Te.decodeKey(lt.slice(0,Dt)),Te.decodeValue(lt.slice(Dt+1))],Jt=(0,S.Z)(tn,2),nn=Jt[0],dn=Jt[1],On=ue.get(nn)||[];On.push(dn),ue.set(nn,On)});return ue}var R=/%(\d[a-f0-9])/gi,W={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $(de){return encodeURIComponent(de).replace(R,function(Te,ue){var We;return null!==(We=W[ue])&&void 0!==We?We:Te})}function ce(de){return"".concat(de)}var se=function(){function de(){var Te=this,ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,P.Z)(this,de),this.updates=null,this.cloneFrom=null,this.encoder=ue.encoder||new x,ue.fromString){if(ue.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=N(ue.fromString,this.encoder)}else ue.fromObject?(this.map=new Map,Object.keys(ue.fromObject).forEach(function(We){var lt=ue.fromObject[We];Te.map.set(We,Array.isArray(lt)?lt:[lt])})):this.map=null}return(0,L.Z)(de,[{key:"has",value:function(ue){return this.init(),this.map.has(ue)}},{key:"get",value:function(ue){this.init();var We=this.map.get(ue);return We?We[0]:null}},{key:"getAll",value:function(ue){return this.init(),this.map.get(ue)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(ue,We){return this.clone({param:ue,value:We,op:"a"})}},{key:"appendAll",value:function(ue){var We=[];return Object.keys(ue).forEach(function(lt){var Dt=ue[lt];Array.isArray(Dt)?Dt.forEach(function(tn){We.push({param:lt,value:tn,op:"a"})}):We.push({param:lt,value:Dt,op:"a"})}),this.clone(We)}},{key:"set",value:function(ue,We){return this.clone({param:ue,value:We,op:"s"})}},{key:"delete",value:function(ue,We){return this.clone({param:ue,value:We,op:"d"})}},{key:"toString",value:function(){var ue=this;return this.init(),this.keys().map(function(We){var lt=ue.encoder.encodeKey(We);return ue.map.get(We).map(function(Dt){return lt+"="+ue.encoder.encodeValue(Dt)}).join("&")}).filter(function(We){return""!==We}).join("&")}},{key:"clone",value:function(ue){var We=new de({encoder:this.encoder});return We.cloneFrom=this.cloneFrom||this,We.updates=(this.updates||[]).concat(ue),We}},{key:"init",value:function(){var ue=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(We){return ue.map.set(We,ue.cloneFrom.map.get(We))}),this.updates.forEach(function(We){switch(We.op){case"a":case"s":var lt=("a"===We.op?ue.map.get(We.param):void 0)||[];lt.push(ce(We.value)),ue.map.set(We.param,lt);break;case"d":if(void 0===We.value){ue.map.delete(We.param);break}var Dt=ue.map.get(We.param)||[],tn=Dt.indexOf(ce(We.value));-1!==tn&&Dt.splice(tn,1),Dt.length>0?ue.map.set(We.param,Dt):ue.map.delete(We.param)}}),this.cloneFrom=this.updates=null)}}]),de}(),oe=function(){function de(){(0,P.Z)(this,de),this.map=new Map}return(0,L.Z)(de,[{key:"set",value:function(ue,We){return this.map.set(ue,We),this}},{key:"get",value:function(ue){return this.map.has(ue)||this.map.set(ue,ue.defaultValue()),this.map.get(ue)}},{key:"delete",value:function(ue){return this.map.delete(ue),this}},{key:"has",value:function(ue){return this.map.has(ue)}},{key:"keys",value:function(){return this.map.keys()}}]),de}();function Oe(de){return"undefined"!=typeof ArrayBuffer&&de instanceof ArrayBuffer}function st(de){return"undefined"!=typeof Blob&&de instanceof Blob}function xe(de){return"undefined"!=typeof FormData&&de instanceof FormData}var Fe,de,ke=function(){function de(Te,ue,We,lt){var Dt;if((0,P.Z)(this,de),this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Te.toUpperCase(),function ve(de){switch(de){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||lt?(this.body=void 0!==We?We:null,Dt=lt):Dt=We,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new w),this.context||(this.context=new oe),this.params){var tn=this.params.toString();if(0===tn.length)this.urlWithParams=ue;else{var Jt=ue.indexOf("?"),nn=-1===Jt?"?":Jt<ue.length-1?"&":"";this.urlWithParams=ue+nn+tn}}else this.params=new se,this.urlWithParams=ue}return(0,L.Z)(de,[{key:"serializeBody",value:function(){return null===this.body?null:Oe(this.body)||st(this.body)||xe(this.body)||function _e(de){return"undefined"!=typeof URLSearchParams&&de instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof se?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||xe(this.body)?null:st(this.body)?this.body.type||null:Oe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof se?"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 We,ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},lt=ue.method||this.method,Dt=ue.url||this.url,tn=ue.responseType||this.responseType,Jt=void 0!==ue.body?ue.body:this.body,nn=void 0!==ue.withCredentials?ue.withCredentials:this.withCredentials,dn=void 0!==ue.reportProgress?ue.reportProgress:this.reportProgress,On=ue.headers||this.headers,Dn=ue.params||this.params,zn=null!==(We=ue.context)&&void 0!==We?We:this.context;return void 0!==ue.setHeaders&&(On=Object.keys(ue.setHeaders).reduce(function(Zn,jn){return Zn.set(jn,ue.setHeaders[jn])},On)),ue.setParams&&(Dn=Object.keys(ue.setParams).reduce(function(Zn,jn){return Zn.set(jn,ue.setParams[jn])},Dn)),new de(lt,Dt,Jt,{params:Dn,headers:On,context:zn,reportProgress:dn,responseType:tn,withCredentials:nn})}}]),de}();(de=Fe||(Fe={}))[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User";var ct=(0,L.Z)(function de(Te){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,P.Z)(this,de),this.headers=Te.headers||new w,this.status=void 0!==Te.status?Te.status:ue,this.statusText=Te.statusText||We,this.url=Te.url||null,this.ok=this.status>=200&&this.status<300}),Mt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(){var We,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,ue),(We=Te.call(this,lt)).type=Fe.ResponseHeader,We}return(0,L.Z)(ue,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({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})}}]),ue}(ct),Nt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(){var We,lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,ue),(We=Te.call(this,lt)).type=Fe.Response,We.body=void 0!==lt.body?lt.body:null,We}return(0,L.Z)(ue,[{key:"clone",value:function(){var lt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({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})}}]),ue}(ct),Xt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(We){var lt;return(0,P.Z)(this,ue),(lt=Te.call(this,We,0,"Unknown Error")).name="HttpErrorResponse",lt.ok=!1,lt.status>=200&&lt.status<300?lt.message="Http failure during parsing for ".concat(We.url||"(unknown url)"):lt.message="Http failure response for ".concat(We.url||"(unknown url)",": ").concat(We.status," ").concat(We.statusText),lt.error=We.error||null,lt}return(0,L.Z)(ue)}(ct);function en(de,Te){return{body:Te,headers:de.headers,context:de.context,observe:de.observe,params:de.params,reportProgress:de.reportProgress,responseType:de.responseType,withCredentials:de.withCredentials}}var qt=function(){function de(Te){(0,P.Z)(this,de),this.handler=Te}return(0,L.Z)(de,[{key:"request",value:function(ue,We){var tn,lt=this,Dt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ue instanceof ke)tn=ue;else{var Jt=void 0;Jt=Dt.headers instanceof w?Dt.headers:new w(Dt.headers);var nn=void 0;Dt.params&&(nn=Dt.params instanceof se?Dt.params:new se({fromObject:Dt.params})),tn=new ke(ue,We,void 0!==Dt.body?Dt.body:null,{headers:Jt,context:Dt.context,params:nn,reportProgress:Dt.reportProgress,responseType:Dt.responseType||"json",withCredentials:Dt.withCredentials})}var dn=(0,K.of)(tn).pipe((0,M.b)(function(Dn){return lt.handler.handle(Dn)}));if(ue instanceof ke||"events"===Dt.observe)return dn;var On=dn.pipe((0,O.h)(function(Dn){return Dn instanceof Nt}));switch(Dt.observe||"body"){case"body":switch(tn.responseType){case"arraybuffer":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&!(Dn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Dn.body}));case"blob":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&!(Dn.body instanceof Blob))throw new Error("Response is not a Blob.");return Dn.body}));case"text":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&"string"!=typeof Dn.body)throw new Error("Response is not a string.");return Dn.body}));default:return On.pipe((0,k.U)(function(Dn){return Dn.body}))}case"response":return On;default:throw new Error("Unreachable: unhandled observe type ".concat(Dt.observe,"}"))}}},{key:"delete",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",ue,We)}},{key:"get",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",ue,We)}},{key:"head",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",ue,We)}},{key:"jsonp",value:function(ue,We){return this.request("JSONP",ue,{params:(new se).append(We,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",ue,We)}},{key:"patch",value:function(ue,We){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",ue,en(lt,We))}},{key:"post",value:function(ue,We){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",ue,en(lt,We))}},{key:"put",value:function(ue,We){var lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",ue,en(lt,We))}}]),de}();qt.\u0275fac=function(Te){return new(Te||qt)(y.LFG(I))},qt.\u0275prov=y.Yz7({token:qt,factory:qt.\u0275fac});var Xe=function(){function de(Te,ue){(0,P.Z)(this,de),this.next=Te,this.interceptor=ue}return(0,L.Z)(de,[{key:"handle",value:function(ue){return this.interceptor.intercept(ue,this.next)}}]),de}(),jt=new y.OlP("HTTP_INTERCEPTORS"),it=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){return We.handle(ue)}}]),de}();it.\u0275fac=function(Te){return new(Te||it)},it.\u0275prov=y.Yz7({token:it,factory:it.\u0275fac});var nt,vt=0,_n=(0,L.Z)(function de(){(0,P.Z)(this,de)}),An=function(){function de(Te,ue){(0,P.Z)(this,de),this.callbackMap=Te,this.document=ue,this.resolvedPromise=Promise.resolve()}return(0,L.Z)(de,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(vt++)}},{key:"handle",value:function(ue){var We=this;if("JSONP"!==ue.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ue.responseType)throw new Error("JSONP requests must use Json response type.");return new F.y(function(lt){var Dt=We.nextCallback(),tn=ue.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(Dt,"$1")),Jt=We.document.createElement("script");Jt.src=tn;var nn=null,dn=!1;We.callbackMap[Dt]=function(Zn){delete We.callbackMap[Dt],nn=Zn,dn=!0};var On=function(){Jt.parentNode&&Jt.parentNode.removeChild(Jt),delete We.callbackMap[Dt]};return Jt.addEventListener("load",function(jn){We.resolvedPromise.then(function(){On(),dn?(lt.next(new Nt({body:nn,status:200,statusText:"OK",url:tn})),lt.complete()):lt.error(new Xt({url:tn,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Jt.addEventListener("error",function(jn){On(),lt.error(new Xt({error:jn,status:0,statusText:"JSONP Error",url:tn}))}),We.document.body.appendChild(Jt),lt.next({type:Fe.Sent}),function(){dn||We.removeListeners(Jt),On()}})}},{key:"removeListeners",value:function(ue){nt||(nt=this.document.implementation.createHTMLDocument()),nt.adoptNode(ue)}}]),de}();An.\u0275fac=function(Te){return new(Te||An)(y.LFG(_n),y.LFG(D.K0))},An.\u0275prov=y.Yz7({token:An,factory:An.\u0275fac});var Gt=function(){function de(Te){(0,P.Z)(this,de),this.jsonp=Te}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){return"JSONP"===ue.method?this.jsonp.handle(ue):We.handle(ue)}}]),de}();Gt.\u0275fac=function(Te){return new(Te||Gt)(y.LFG(An))},Gt.\u0275prov=y.Yz7({token:Gt,factory:Gt.\u0275fac});var Zt=/^\)\]\}',?\n/;var Ut=function(){function de(Te){(0,P.Z)(this,de),this.xhrFactory=Te}return(0,L.Z)(de,[{key:"handle",value:function(ue){var We=this;if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(function(lt){var Dt=We.xhrFactory.build();if(Dt.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Dt.withCredentials=!0),ue.headers.forEach(function(lr,Yn){return Dt.setRequestHeader(lr,Yn.join(","))}),ue.headers.has("Accept")||Dt.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){var tn=ue.detectContentTypeHeader();null!==tn&&Dt.setRequestHeader("Content-Type",tn)}if(ue.responseType){var Jt=ue.responseType.toLowerCase();Dt.responseType="json"!==Jt?Jt:"text"}var nn=ue.serializeBody(),dn=null,On=function(){if(null!==dn)return dn;var Yn=Dt.statusText||"OK",Kt=new w(Dt.getAllResponseHeaders()),tt=function Et(de){return"responseURL"in de&&de.responseURL?de.responseURL:/^X-Request-URL:/m.test(de.getAllResponseHeaders())?de.getResponseHeader("X-Request-URL"):null}(Dt)||ue.url;return dn=new Mt({headers:Kt,status:Dt.status,statusText:Yn,url:tt})},Dn=function(){var Yn=On(),Kt=Yn.headers,tt=Yn.status,Ue=Yn.statusText,Ee=Yn.url,He=null;204!==tt&&(He=void 0===Dt.response?Dt.responseText:Dt.response),0===tt&&(tt=He?200:0);var bt=tt>=200&&tt<300;if("json"===ue.responseType&&"string"==typeof He){var Yt=He;He=He.replace(Zt,"");try{He=""!==He?JSON.parse(He):null}catch(En){He=Yt,bt&&(bt=!1,He={error:En,text:He})}}bt?(lt.next(new Nt({body:He,headers:Kt,status:tt,statusText:Ue,url:Ee||void 0})),lt.complete()):lt.error(new Xt({error:He,headers:Kt,status:tt,statusText:Ue,url:Ee||void 0}))},zn=function(Yn){var tt=On().url,Ue=new Xt({error:Yn,status:Dt.status||0,statusText:Dt.statusText||"Unknown Error",url:tt||void 0});lt.error(Ue)},Zn=!1,jn=function(Yn){Zn||(lt.next(On()),Zn=!0);var Kt={type:Fe.DownloadProgress,loaded:Yn.loaded};Yn.lengthComputable&&(Kt.total=Yn.total),"text"===ue.responseType&&!!Dt.responseText&&(Kt.partialText=Dt.responseText),lt.next(Kt)},mn=function(Yn){var Kt={type:Fe.UploadProgress,loaded:Yn.loaded};Yn.lengthComputable&&(Kt.total=Yn.total),lt.next(Kt)};return Dt.addEventListener("load",Dn),Dt.addEventListener("error",zn),Dt.addEventListener("timeout",zn),Dt.addEventListener("abort",zn),ue.reportProgress&&(Dt.addEventListener("progress",jn),null!==nn&&Dt.upload&&Dt.upload.addEventListener("progress",mn)),Dt.send(nn),lt.next({type:Fe.Sent}),function(){Dt.removeEventListener("error",zn),Dt.removeEventListener("abort",zn),Dt.removeEventListener("load",Dn),Dt.removeEventListener("timeout",zn),ue.reportProgress&&(Dt.removeEventListener("progress",jn),null!==nn&&Dt.upload&&Dt.upload.removeEventListener("progress",mn)),Dt.readyState!==Dt.DONE&&Dt.abort()}})}}]),de}();Ut.\u0275fac=function(Te){return new(Te||Ut)(y.LFG(D.JF))},Ut.\u0275prov=y.Yz7({token:Ut,factory:Ut.\u0275fac});var Ht=new y.OlP("XSRF_COOKIE_NAME"),ln=new y.OlP("XSRF_HEADER_NAME"),yt=(0,L.Z)(function de(){(0,P.Z)(this,de)}),mt=function(){function de(Te,ue,We){(0,P.Z)(this,de),this.doc=Te,this.platform=ue,this.cookieName=We,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,L.Z)(de,[{key:"getToken",value:function(){if("server"===this.platform)return null;var ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,D.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}]),de}();mt.\u0275fac=function(Te){return new(Te||mt)(y.LFG(D.K0),y.LFG(y.Lbi),y.LFG(Ht))},mt.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac});var cn=function(){function de(Te,ue){(0,P.Z)(this,de),this.tokenService=Te,this.headerName=ue}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){var lt=ue.url.toLowerCase();if("GET"===ue.method||"HEAD"===ue.method||lt.startsWith("http://")||lt.startsWith("https://"))return We.handle(ue);var Dt=this.tokenService.getToken();return null!==Dt&&!ue.headers.has(this.headerName)&&(ue=ue.clone({headers:ue.headers.set(this.headerName,Dt)})),We.handle(ue)}}]),de}();cn.\u0275fac=function(Te){return new(Te||cn)(y.LFG(yt),y.LFG(ln))},cn.\u0275prov=y.Yz7({token:cn,factory:cn.\u0275fac});var $t=function(){function de(Te,ue){(0,P.Z)(this,de),this.backend=Te,this.injector=ue,this.chain=null}return(0,L.Z)(de,[{key:"handle",value:function(ue){if(null===this.chain){var We=this.injector.get(jt,[]);this.chain=We.reduceRight(function(lt,Dt){return new Xe(lt,Dt)},this.backend)}return this.chain.handle(ue)}}]),de}();$t.\u0275fac=function(Te){return new(Te||$t)(y.LFG(T),y.LFG(y.zs3))},$t.\u0275prov=y.Yz7({token:$t,factory:$t.\u0275fac});var Jn=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,null,[{key:"disable",value:function(){return{ngModule:de,providers:[{provide:cn,useClass:it}]}}},{key:"withOptions",value:function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:de,providers:[ue.cookieName?{provide:Ht,useValue:ue.cookieName}:[],ue.headerName?{provide:ln,useValue:ue.headerName}:[]]}}}]),de}();Jn.\u0275fac=function(Te){return new(Te||Jn)},Jn.\u0275mod=y.oAB({type:Jn}),Jn.\u0275inj=y.cJS({providers:[cn,{provide:jt,useExisting:cn,multi:!0},{provide:yt,useClass:mt},{provide:Ht,useValue:"XSRF-TOKEN"},{provide:ln,useValue:"X-XSRF-TOKEN"}]});var wn=(0,L.Z)(function de(){(0,P.Z)(this,de)});wn.\u0275fac=function(Te){return new(Te||wn)},wn.\u0275mod=y.oAB({type:wn}),wn.\u0275inj=y.cJS({providers:[qt,{provide:I,useClass:$t},Ut,{provide:T,useExisting:Ut}],imports:[[Jn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]});var Bt=(0,L.Z)(function de(){(0,P.Z)(this,de)});Bt.\u0275fac=function(Te){return new(Te||Bt)},Bt.\u0275mod=y.oAB({type:Bt}),Bt.\u0275inj=y.cJS({providers:[An,{provide:_n,useFactory:function V(){return"object"==typeof window?window:{}}},{provide:jt,useClass:Gt,multi:!0}]});D.JF},5e3:function(qe,J,m){"use strict";m.d(J,{$8M:function(){return sT},$Z:function(){return Y3},AA_:function(){return mT},AFp:function(){return Ff},ALo:function(){return ch},AaK:function(){return ce},AcB:function(){return Kz},Akn:function(){return kc},AsE:function(){return uM},B6R:function(){return Ae},BQk:function(){return T1},CHM:function(){return pi},CRH:function(){return W6},CZH:function(){return Ad},Ckj:function(){return uP},CqO:function(){return VF},DdM:function(){return L6},DyG:function(){return xb},E6H:function(){return s8},EJc:function(){return q1},EiD:function(){return Fb},EpF:function(){return WF},F$t:function(){return GF},F4k:function(){return K3},FYo:function(){return Sd},FiY:function(){return Zm},G48:function(){return D8},GSi:function(){return OF},Gf:function(){return Nf},GfV:function(){return Sc},GkF:function(){return q3},Gpc:function(){return oe},Gre:function(){return dM},HOy:function(){return Qp},Hsn:function(){return $3},IIB:function(){return l8},Ikx:function(){return Oi},JOm:function(){return Sv},JVY:function(){return fB},Jf7:function(){return Kb},L6J:function(){return d8},L6k:function(){return Nb},LAX:function(){return vT},LFG:function(){return rs},LSH:function(){return TT},LVF:function(){return aR},Lbi:function(){return dR},MAs:function(){return N3},MGl:function(){return iM},NdJ:function(){return J3},O4$:function(){return df},OlP:function(){return wa},Oqu:function(){return o6},PXZ:function(){return T8},PiD:function(){return Pb},Q2q:function(){return C1},Q6J:function(){return JE},QGY:function(){return eM},Qsj:function(){return xd},R0b:function(){return Uf},RDi:function(){return xt},Rgc:function(){return Lf},SBq:function(){return Af},Sil:function(){return B_},Suo:function(){return U1},TTD:function(){return Ps},TgZ:function(){return w1},Tol:function(){return s4},Udp:function(){return n6},VKq:function(){return PM},VLi:function(){return w8},W1O:function(){return jM},WFA:function(){return Q3},WLB:function(){return z4},XFs:function(){return ue},Xek:function(){return oR},Xpm:function(){return Se},Y36:function(){return Uv},YKP:function(){return $v},YNc:function(){return RE},Yjl:function(){return $r},Yz7:function(){return yt},ZZ4:function(){return gi},_Bn:function(){return DM},_UZ:function(){return XE},_Vd:function(){return R1},_c5:function(){return Ch},_uU:function(){return f4},a5r:function(){return P8},aQ5:function(){return Jz},aQg:function(){return jf},ahi:function(){return ZI},c2e:function(){return N_},cJS:function(){return cn},cg1:function(){return Yr},d8E:function(){return qn},dDg:function(){return Ac},deG:function(){return qz},dqk:function(){return Yn},eBb:function(){return Cv},eFA:function(){return vh},ekj:function(){return oM},evT:function(){return Jb},f3M:function(){return ps},g9A:function(){return cR},h0i:function(){return Ta},hGG:function(){return Wu},hYB:function(){return e6},hij:function(){return lM},i9L:function(){return $N},iGM:function(){return UM},ifc:function(){return zn},ip1:function(){return sR},kL8:function(){return mr},kYT:function(){return Ln},kcU:function(){return Em},lG2:function(){return Rr},lcZ:function(){return Z6},lnq:function(){return a6},mCW:function(){return Hm},n4l:function(){return dn},n5z:function(){return QN},n_E:function(){return B6},oAB:function(){return vn},oJD:function(){return lP},oxw:function(){return YF},pB0:function(){return wv},pfw:function(){return c8},q3G:function(){return uu},qLn:function(){return Vm},qOj:function(){return DE},qZA:function(){return k1},qzn:function(){return Um},r_U:function(){return u8},s9C:function(){return rM},sBO:function(){return aS},sIi:function(){return a_},s_b:function(){return dh},soG:function(){return QM},tBr:function(){return yv},tb:function(){return fR},tp0:function(){return Nm},uIk:function(){return u_},vHH:function(){return xe},vR:function(){return Qz},vpe:function(){return Dc},wA2:function(){return G1},wAp:function(){return xo},xi3:function(){return ZM},xp6:function(){return BP},yhl:function(){return QI},ynx:function(){return $E},z2F:function(){return Od},z3N:function(){return gl},zSh:function(){return TE},zWS:function(){return AE},zlt:function(){return rn},zs3:function(){return Bs}});var z=m(3237),Y=m(1120),S=m(7326),U=m(7685),D=(m(4942),m(4506),m(7762)),y=m(4902),K=m(5647),F=m(3144),M=m(5671),O=m(136),k=m(9388),I=m(5724),T=m(4096),w=m(8929),x=m(7451),N=m(6787),R=m(8117);function W(c){for(var d in c)if(c[d]===W)return d;throw Error("Could not find renamed property on target object.")}function $(c,d){for(var p in d)d.hasOwnProperty(p)&&!c.hasOwnProperty(p)&&(c[p]=d[p])}function ce(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(ce).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var d=c.toString();if(null==d)return""+d;var p=d.indexOf("\n");return-1===p?d:d.substring(0,p)}function se(c,d){return null==c||""===c?null===d?"":d:null==d||""===d?c:c+" "+d}var te=W({__forward_ref__:W});function oe(c){return c.__forward_ref__=oe,c.toString=function(){return ce(this())},c}function ve(c){return Oe(c)?c():c}function Oe(c){return"function"==typeof c&&c.hasOwnProperty(te)&&c.__forward_ref__===oe}var xe=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b){var Z;return(0,M.Z)(this,p),(Z=d.call(this,_e(g,b))).code=g,Z}return(0,F.Z)(p)}((0,I.Z)(Error));function _e(c,d){var p="NG0".concat(Math.abs(c));return"".concat(p).concat(d?": "+d:"")}function ke(c){return"string"==typeof c?c:null==c?"":String(c)}function Fe(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():ke(c)}function Xt(c,d){var p=d?" in ".concat(d):"";throw new xe(-201,"No provider for ".concat(Fe(c)," found").concat(p))}function it(c,d,p){c!=d&&Et(p,c,d,"==")}function Zt(c,d){null==c&&Et(d,c,null,"!=")}function Et(c,d,p,g){throw new Error("ASSERTION ERROR: ".concat(c)+(null==g?"":" [Expected=> ".concat(p," ").concat(g," ").concat(d," <=Actual]")))}function yt(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function cn(c){return{providers:c.providers||[],imports:c.imports||[]}}function $t(c){return j(c,Bt)||j(c,de)}function j(c,d){return c.hasOwnProperty(d)?c[d]:null}function wn(c){return c&&(c.hasOwnProperty(dt)||c.hasOwnProperty(Te))?c[dt]:null}var ue,c,We,dn,On,zn,Bt=W({"\u0275prov":W}),dt=W({"\u0275inj":W}),de=W({ngInjectableDef:W}),Te=W({ngInjectorDef:W});function lt(){return We}function Dt(c){var d=We;return We=c,d}function tn(c,d,p){var g=$t(c);return g&&"root"==g.providedIn?void 0===g.value?g.value=g.factory():g.value:p&ue.Optional?null:void 0!==d?d:void Xt(ce(c),"Injector")}function nn(c){return{toString:c}.toString()}(c=ue||(ue={}))[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"}(dn||(dn={})),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"}(On||(On={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(zn||(zn={}));var Zn="undefined"!=typeof globalThis&&globalThis,jn="undefined"!=typeof window&&window,mn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lr="undefined"!=typeof global&&global,Yn=Zn||lr||jn||mn;var Ue={},Ee=[],He=W({"\u0275cmp":W}),bt=W({"\u0275dir":W}),Yt=W({"\u0275pipe":W}),En=W({"\u0275mod":W}),rr=W({"\u0275fac":W}),pn=W({__NG_ELEMENT_ID__:W}),ut=0;function Se(c){return nn(function(){var p={},g={type:c.type,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:p,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||Ee,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||zn.Emulated,id:"c",styles:c.styles||Ee,_:null,setInput:null,schemas:c.schemas||null,tView:null},b=c.directives,Z=c.features,Q=c.pipes;return g.id+=ut++,g.inputs=cr(c.inputs,p),g.outputs=cr(c.outputs),Z&&Z.forEach(function(le){return le(g)}),g.directiveDefs=b?function(){return("function"==typeof b?b():b).map(Qe)}:null,g.pipeDefs=Q?function(){return("function"==typeof Q?Q():Q).map(_t)}:null,g})}function Ae(c,d,p){var g=c.\u0275cmp;g.directiveDefs=function(){return d.map(Qe)},g.pipeDefs=function(){return p.map(_t)}}function Qe(c){return Mr(c)||Hi(c)}function _t(c){return bo(c)}var Wt={};function vn(c){return nn(function(){var d={type:c.type,bootstrap:c.bootstrap||Ee,declarations:c.declarations||Ee,imports:c.imports||Ee,exports:c.exports||Ee,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Wt[c.id]=c.type),d})}function Ln(c,d){return nn(function(){var p=qi(c,!0);p.declarations=d.declarations||Ee,p.imports=d.imports||Ee,p.exports=d.exports||Ee})}function cr(c,d){if(null==c)return Ue;var p={};for(var g in c)if(c.hasOwnProperty(g)){var b=c[g],Z=b;Array.isArray(b)&&(Z=b[1],b=b[0]),p[b]=g,d&&(d[b]=Z)}return p}var Rr=Se;function $r(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function Mr(c){return c[He]||null}function Hi(c){return c[bt]||null}function bo(c){return c[Yt]||null}function qi(c,d){var p=c[En]||null;if(!p&&!0===d)throw new Error("Type ".concat(ce(c)," does not have '\u0275mod' property."));return p}function Ba(c){return Array.isArray(c)&&"object"==typeof c[1]}function yn(c){return Array.isArray(c)&&!0===c[1]}function Cn(c){return 0!=(8&c.flags)}function oi(c){return 2==(2&c.flags)}function Li(c){return 1==(1&c.flags)}function Ki(c){return null!==c.template}function ti(c){return 0!=(512&c[2])}function Xi(c,d){return c.hasOwnProperty(rr)?c[rr]:null}var $a=function(){function c(d,p,g){(0,M.Z)(this,c),this.previousValue=d,this.currentValue=p,this.firstChange=g}return(0,F.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function Ps(){return es}function es(c){return c.type.prototype.ngOnChanges&&(c.setInput=Mu),Ua}function Ua(){var c=Xo(this),d=null==c?void 0:c.current;if(d){var p=c.previous;if(p===Ue)c.previous=d;else for(var g in d)p[g]=d[g];c.current=null,this.ngOnChanges(d)}}function Mu(c,d,p,g){var b=Xo(c)||function ts(c,d){return c[Ha]=d}(c,{previous:Ue,current:null}),Z=b.current||(b.current={}),Q=b.previous,le=this.declaredInputs[p],he=Q[le];Z[le]=new $a(he&&he.currentValue,d,Q===Ue),c[g]=d}Ps.ngInherit=!0;var Ha="__ngSimpleChanges__";function Xo(c){return c[Ha]||null}var Rs=null,wo=function(d,p,g){null!=Rs&&Rs(d,p,g)},ye="math";var Mn,gt=void 0;function xt(c){gt=c}function un(){return void 0!==gt?gt:"undefined"!=typeof document?document:void 0}function Pn(c){return!!c.listen}!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Mn||(Mn={}));var Or={createRenderer:function(d,p){return un()}};function ar(c){for(;Array.isArray(c);)c=c[0];return c}function So(c,d){return ar(d[c])}function Di(c,d){return ar(d[c.index])}function Ye(c,d){return c.data[d]}function Le(c,d){return c[d]}function Ce(c,d){var p=d[c];return Ba(p)?p:p[0]}function Je(c){return 4==(4&c[2])}function Ke(c){return 128==(128&c[2])}function an(c,d){return null==d?null:c[d]}function nr(c){c[18]=0}function Lr(c,d){c[5]+=d;for(var p=c,g=c[3];null!==g&&(1===d&&1===p[5]||-1===d&&0===p[5]);)g[5]+=d,p=g,g=g[3]}var Ir={lFrame:At(null),bindingsEnabled:!0};function si(){return Ir.bindingsEnabled}function dr(){Ir.bindingsEnabled=!0}function ac(){Ir.bindingsEnabled=!1}function Nn(){return Ir.lFrame.lView}function wi(){return Ir.lFrame.tView}function pi(c){return Ir.lFrame.contextLView=c,c[8]}function Ai(){for(var c=cf();null!==c&&64===c.type;)c=c.parent;return c}function cf(){return Ir.lFrame.currentTNode}function xu(){var c=Ir.lFrame,d=c.currentTNode;return c.isParent?d:d.parent}function ji(c,d){var p=Ir.lFrame;p.currentTNode=c,p.isParent=d}function ml(){return Ir.lFrame.isParent}function ze(){Ir.lFrame.isParent=!1}function $e(){var c=Ir.lFrame,d=c.bindingRootIndex;return-1===d&&(d=c.bindingRootIndex=c.tView.bindingStartIndex),d}function kt(){return Ir.lFrame.bindingIndex}function Ft(c){return Ir.lFrame.bindingIndex=c}function Vt(){return Ir.lFrame.bindingIndex++}function Qt(c){var d=Ir.lFrame,p=d.bindingIndex;return d.bindingIndex=d.bindingIndex+c,p}function Qn(c){Ir.lFrame.inI18n=c}function ir(c,d){var p=Ir.lFrame;p.bindingIndex=p.bindingRootIndex=c,gr(d)}function gr(c){Ir.lFrame.currentDirectiveIndex=c}function di(c){var d=Ir.lFrame.currentDirectiveIndex;return-1===d?null:c[d]}function Ne(){return Ir.lFrame.currentQueryIndex}function we(c){Ir.lFrame.currentQueryIndex=c}function X(c){var d=c[1];return 2===d.type?d.declTNode:1===d.type?c[6]:null}function je(c,d,p){if(p&ue.SkipSelf){for(var g=d,b=c;null===(g=g.parent)&&!(p&ue.Host)&&!(null===(g=X(b))||(b=b[15],10&g.type)););if(null===g)return!1;d=g,c=b}var Z=Ir.lFrame=ot();return Z.currentTNode=d,Z.lView=c,!0}function De(c){var d=ot(),p=c[1];Ir.lFrame=d,d.currentTNode=p.firstChild,d.lView=c,d.tView=p,d.contextLView=c,d.bindingIndex=p.bindingStartIndex,d.inI18n=!1}function ot(){var c=Ir.lFrame,d=null===c?null:c.child;return null===d?At(c):d}function At(c){var d={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=d),d}function fn(){var c=Ir.lFrame;return Ir.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Sn=fn;function Sr(){var c=fn();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 Ti(c){var d=Ir.lFrame.contextLView=function jo(c,d){for(;c>0;)d=d[15],c--;return d}(c,Ir.lFrame.contextLView);return d[8]}function eo(){return Ir.lFrame.selectedIndex}function Ts(c){Ir.lFrame.selectedIndex=c}function to(){var c=Ir.lFrame;return Ye(c.tView,c.selectedIndex)}function df(){Ir.lFrame.currentNamespace="svg"}function au(){Ir.lFrame.currentNamespace=ye}function Em(){!function id(){Ir.lFrame.currentNamespace=null}()}function ff(c,d){for(var p=d.directiveStart,g=d.directiveEnd;p<g;p++){var Z=c.data[p].type.prototype,Q=Z.ngAfterContentInit,le=Z.ngAfterContentChecked,he=Z.ngAfterViewInit,Ie=Z.ngAfterViewChecked,et=Z.ngOnDestroy;Q&&(c.contentHooks||(c.contentHooks=[])).push(-p,Q),le&&((c.contentHooks||(c.contentHooks=[])).push(p,le),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(p,le)),he&&(c.viewHooks||(c.viewHooks=[])).push(-p,he),Ie&&((c.viewHooks||(c.viewHooks=[])).push(p,Ie),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(p,Ie)),null!=et&&(c.destroyHooks||(c.destroyHooks=[])).push(p,et)}}function Ip(c,d,p){od(c,d,3,p)}function pf(c,d,p,g){(3&c[2])===p&&od(c,d,p,g)}function Pp(c,d){var p=c[2];(3&p)===d&&(p&=2047,p+=1,c[2]=p)}function od(c,d,p,g){for(var b=void 0!==g?65535&c[18]:0,Z=null!=g?g:-1,Q=d.length-1,le=0,he=b;he<Q;he++){if("number"==typeof d[he+1]){if(le=d[he],null!=g&&le>=g)break}else d[he]<0&&(c[18]+=65536),(le<Z||-1==Z)&&(iv(c,p,d,he),c[18]=(4294901760&c[18])+he+2),he++}}function iv(c,d,p,g){var b=p[g]<0,Z=p[g+1],le=c[b?-p[g]:p[g]];if(b){if(c[2]>>11<c[18]>>16&&(3&c[2])===d){c[2]+=2048,wo(4,le,Z);try{Z.call(le)}finally{wo(5,le,Z)}}}else{wo(4,le,Z);try{Z.call(le)}finally{wo(5,le,Z)}}}var ns=(0,F.Z)(function c(d,p,g){(0,M.Z)(this,c),this.factory=d,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=g});function Au(c,d,p){for(var g=Pn(c),b=0;b<p.length;){var Z=p[b];if("number"==typeof Z){if(0!==Z)break;b++;var Q=p[b++],le=p[b++],he=p[b++];g?c.setAttribute(d,le,he,Q):d.setAttributeNS(Q,le,he)}else{var Ie=Z,et=p[++b];ad(Ie)?g&&c.setProperty(d,Ie,et):g?c.setAttribute(d,Ie,et):d.setAttribute(Ie,et),b++}}return b}function Ou(c){return 3===c||4===c||6===c}function ad(c){return 64===c.charCodeAt(0)}function uc(c,d){if(null!==d&&0!==d.length)if(null===c||0===c.length)c=d.slice();else for(var p=-1,g=0;g<d.length;g++){var b=d[g];"number"==typeof b?p=b:0===p||xm(c,p,b,null,-1===p||2===p?d[++g]:null)}return c}function xm(c,d,p,g,b){var Z=0,Q=c.length;if(-1===d)Q=-1;else for(;Z<c.length;){var le=c[Z++];if("number"==typeof le){if(le===d){Q=-1;break}if(le>d){Q=Z-1;break}}}for(;Z<c.length;){var he=c[Z];if("number"==typeof he)break;if(he===p){if(null===g)return void(null!==b&&(c[Z+1]=b));if(g===c[Z+1])return void(c[Z+2]=b)}Z++,null!==g&&Z++,null!==b&&Z++}-1!==Q&&(c.splice(Q,0,d),Z=Q+1),c.splice(Z++,0,p),null!==g&&c.splice(Z++,0,g),null!==b&&c.splice(Z++,0,b)}function Ca(c){return-1!==c}function Iu(c){return 32767&c}function ds(c,d){for(var p=function Dm(c){return c>>16}(c),g=d;p>0;)g=g[15],p--;return g}var Pu=!0;function cc(c){var d=Pu;return Pu=c,d}var GN=0;function av(c,d){var p=AI(c,d);if(-1!==p)return p;var g=d[1];g.firstCreatePass&&(c.injectorIndex=d.length,Mb(g.data,c),Mb(d,null),Mb(g.blueprint,null));var b=oT(c,d),Z=c.injectorIndex;if(Ca(b))for(var Q=Iu(b),le=ds(b,d),he=le[1].data,Ie=0;Ie<8;Ie++)d[Z+Ie]=le[Q+Ie]|he[Q+Ie];return d[Z+8]=b,Z}function Mb(c,d){c.push(0,0,0,0,0,0,0,0,d)}function AI(c,d){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===d[c.injectorIndex+8]?-1:c.injectorIndex}function oT(c,d){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var p=0,g=null,b=d;null!==b;){var Z=b[1],Q=Z.type;if(null===(g=2===Q?Z.declTNode:1===Q?b[6]:null))return-1;if(p++,b=b[15],-1!==g.injectorIndex)return g.injectorIndex|p<<16}return-1}function aT(c,d,p){!function DI(c,d,p){var g;"string"==typeof p?g=p.charCodeAt(0)||0:p.hasOwnProperty(pn)&&(g=p[pn]),null==g&&(g=p[pn]=GN++);var b=255&g,Z=1<<b;d.data[c+(b>>5)]|=Z}(c,d,p)}function qN(c,d,p){if(p&ue.Optional)return c;Xt(d,"NodeInjector")}function ld(c,d,p,g){if(p&ue.Optional&&void 0===g&&(g=null),0==(p&(ue.Self|ue.Host))){var b=c[9],Z=Dt(void 0);try{return b?b.get(d,g,p&ue.Optional):tn(d,g,p&ue.Optional)}finally{Dt(Z)}}return qN(g,d,p)}function sv(c,d,p){var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ue.Default,b=arguments.length>4?arguments[4]:void 0;if(null!==c){var Z=Gz(p);if("function"==typeof Z){if(!je(d,c,g))return g&ue.Host?qN(b,p,g):ld(d,p,g,b);try{var Q=Z(g);if(null!=Q||g&ue.Optional)return Q;Xt(p)}finally{Sn()}}else if("number"==typeof Z){var le=null,he=AI(c,d),Ie=-1,et=g&ue.Host?d[16][6]:null;for((-1===he||g&ue.SkipSelf)&&(-1!==(Ie=-1===he?oT(c,d):d[he+8])&&PI(g,!1)?(le=d[1],he=Iu(Ie),d=ds(Ie,d)):he=-1);-1!==he;){var Tt=d[1];if(JN(Z,he,Tt.data)){var Ot=KN(he,d,p,le,g,et);if(Ot!==Am)return Ot}-1!==(Ie=d[he+8])&&PI(g,d[1].data[he+8]===et)&&JN(Z,he,d)?(le=Tt,he=Iu(Ie),d=ds(Ie,d)):he=-1}}}return ld(d,p,g,b)}var Am={};function II(){return new Om(Ai(),Nn())}function KN(c,d,p,g,b,Z){var Q=d[1],le=Q.data[c+8],et=lv(le,Q,p,null==g?oi(le)&&Pu:g!=Q&&0!=(3&le.type),b&ue.Host&&Z===le);return null!==et?hf(d,Q,et,le):Am}function lv(c,d,p,g,b){for(var Z=c.providerIndexes,Q=d.data,le=1048575&Z,he=c.directiveStart,Ie=c.directiveEnd,et=Z>>20,Ot=b?le+et:Ie,zt=g?le:le+et;zt<Ot;zt++){var hn=Q[zt];if(zt<he&&p===hn||zt>=he&&hn.type===p)return zt}if(b){var Fn=Q[he];if(Fn&&Ki(Fn)&&Fn.type===p)return he}return null}function hf(c,d,p,g){var b=c[p],Z=d.data;if(function Sm(c){return c instanceof ns}(b)){var Q=b;Q.resolving&&function ct(c,d){var p=d?". Dependency path: ".concat(d.join(" > ")," > ").concat(c):"";throw new xe(-200,"Circular dependency in DI detected for ".concat(c).concat(p))}(Fe(Z[p]));var le=cc(Q.canSeeViewProviders);Q.resolving=!0;var he=Q.injectImpl?Dt(Q.injectImpl):null;je(c,g,ue.Default);try{b=c[p]=Q.factory(void 0,Z,c,g),d.firstCreatePass&&p>=g.directiveStart&&function Mm(c,d,p){var g=d.type.prototype,b=g.ngOnChanges,Z=g.ngOnInit,Q=g.ngDoCheck;if(b){var le=es(d);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,le),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,le)}Z&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,Z),Q&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,Q),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,Q))}(p,Z[p],d)}finally{null!==he&&Dt(he),cc(le),Q.resolving=!1,Sn()}}return b}function Gz(c){if("string"==typeof c)return c.charCodeAt(0)||0;var d=c.hasOwnProperty(pn)?c[pn]:void 0;return"number"==typeof d?d>=0?255&d:II:d}function JN(c,d,p){var g=1<<c;return!!(p[d+(c>>5)]&g)}function PI(c,d){return!(c&ue.Self||c&ue.Host&&d)}var Om=function(){function c(d,p){(0,M.Z)(this,c),this._tNode=d,this._lView=p}return(0,F.Z)(c,[{key:"get",value:function(p,g,b){return sv(this._tNode,this._lView,p,b,g)}}]),c}();function QN(c){return nn(function(){for(var d=c.prototype.constructor,p=d[rr]||RI(d),g=Object.prototype,b=Object.getPrototypeOf(c.prototype).constructor;b&&b!==g;){var Z=b[rr]||RI(b);if(Z&&Z!==p)return Z;b=Object.getPrototypeOf(b)}return function(Q){return new Q}})}function RI(c){return Oe(c)?function(){var d=RI(ve(c));return d&&d()}:Xi(c)}function sT(c){return function OI(c,d){if("class"===d)return c.classes;if("style"===d)return c.styles;var p=c.attrs;if(p)for(var g=p.length,b=0;b<g;){var Z=p[b];if(Ou(Z))break;if(0===Z)b+=2;else if("number"==typeof Z)for(b++;b<g&&"string"==typeof p[b];)b++;else{if(Z===d)return p[b+1];b+=2}}return null}(Ai(),c)}var Im="__annotations__",uv="__parameters__",cv="__prop__metadata__";function Sb(c,d,p,g,b){return nn(function(){var Z=LI(d);function Q(){for(var le=arguments.length,he=new Array(le),Ie=0;Ie<le;Ie++)he[Ie]=arguments[Ie];if(this instanceof Q)return Z.call.apply(Z,[this].concat(he)),this;var et=(0,K.Z)(Q,he);return function(Ot){return b&&b.apply(void 0,[Ot].concat(he)),(Ot.hasOwnProperty(Im)?Ot[Im]:Object.defineProperty(Ot,Im,{value:[]})[Im]).push(et),g&&g(Ot),Ot}}return p&&(Q.prototype=Object.create(p.prototype)),Q.prototype.ngMetadataName=c,Q.annotationCls=Q,Q})}function LI(c){return function(){if(c){var p=c.apply(void 0,arguments);for(var g in p)this[g]=p[g]}}}function dv(c,d,p){return nn(function(){var g=LI(d);function b(){for(var Z=arguments.length,Q=new Array(Z),le=0;le<Z;le++)Q[le]=arguments[le];if(this instanceof b)return g.apply(this,Q),this;var he=(0,K.Z)(b,Q);return Ie.annotation=he,Ie;function Ie(et,Tt,Ot){for(var zt=et.hasOwnProperty(uv)?et[uv]:Object.defineProperty(et,uv,{value:[]})[uv];zt.length<=Ot;)zt.push(null);return(zt[Ot]=zt[Ot]||[]).push(he),et}}return p&&(b.prototype=Object.create(p.prototype)),b.prototype.ngMetadataName=c,b.annotationCls=b,b})}function Rp(c,d,p,g){return nn(function(){var b=LI(d);function Z(){for(var Q=arguments.length,le=new Array(Q),he=0;he<Q;he++)le[he]=arguments[he];if(this instanceof Z)return b.apply(this,le),this;var Ie=(0,K.Z)(Z,le);function et(Tt,Ot){var zt=Tt.constructor,hn=zt.hasOwnProperty(cv)?zt[cv]:Object.defineProperty(zt,cv,{value:{}})[cv];hn[Ot]=hn.hasOwnProperty(Ot)&&hn[Ot]||[],hn[Ot].unshift(Ie),g&&g.apply(void 0,[Tt,Ot].concat(le))}return et}return p&&(Z.prototype=Object.create(p.prototype)),Z.prototype.ngMetadataName=c,Z.annotationCls=Z,Z})}var Pm,eB,ZI=dv("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return sT(c)}}}),wa=function(){function c(d,p){(0,M.Z)(this,c),this._desc=d,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=yt({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}return(0,F.Z)(c,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),qz=new wa("AnalyzeForEntryComponents"),lT=(0,F.Z)(function c(){(0,M.Z)(this,c)}),Kz=Rp("ContentChildren",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},d)},lT),Jz=Rp("ContentChild",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},d)},lT),Qz=Rp("ViewChildren",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},d)},lT),$N=Rp("ViewChild",function(c,d){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},d)},lT);function fs(c){var d=Yn.ng;if(d&&d.\u0275compilerFacade)return d.\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"}(Pm||(Pm={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(eB||(eB={}));var xb=Function;function fv(c){return"function"==typeof c}function _l(c,d){void 0===d&&(d=c);for(var p=0;p<c.length;p++){var g=c[p];Array.isArray(g)?(d===c&&(d=c.slice(0,p)),_l(g,d)):d!==c&&d.push(g)}return d}function fc(c,d){c.forEach(function(p){return Array.isArray(p)?fc(p,d):d(p)})}function BI(c,d,p){d>=c.length?c.push(p):c.splice(d,0,p)}function pv(c,d){return d>=c.length-1?c.pop():c.splice(d,1)[0]}function Rm(c,d){for(var p=[],g=0;g<c;g++)p.push(d);return p}function Ll(c,d,p){var g=Lp(c,d);return g>=0?c[1|g]=p:function tB(c,d,p,g){var b=c.length;if(b==d)c.push(p,g);else if(1===b)c.push(g,c[0]),c[0]=p;else{for(b--,c.push(c[b-1],c[b]);b>d;){var Z=b-2;c[b]=c[Z],b--}c[d]=p,c[d+1]=g}}(c,g=~g,d,p),g}function uT(c,d){var p=Lp(c,d);if(p>=0)return c[1|p]}function Lp(c,d){return dT(c,d,1)}function dT(c,d,p){for(var g=0,b=c.length>>p;b!==g;){var Z=g+(b-g>>1),Q=c[Z<<p];if(d===Q)return Z<<p;Q>d?b=Z:g=Z+1}return~(b<<p)}var fT=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Ab=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,FI=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,rB=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var Ob=function(){function c(d){(0,M.Z)(this,c),this._reflect=d||Yn.Reflect}return(0,F.Z)(c,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(p){return function(){for(var g=arguments.length,b=new Array(g),Z=0;Z<g;Z++)b[Z]=arguments[Z];return(0,K.Z)(p,b)}}},{key:"_zipTypesAndAnnotations",value:function(p,g){var b;b=Rm(void 0===p?g.length:p.length);for(var Z=0;Z<b.length;Z++)void 0===p?b[Z]=[]:p[Z]&&p[Z]!=Object?b[Z]=[p[Z]]:b[Z]=[],g&&null!=g[Z]&&(b[Z]=b[Z].concat(g[Z]));return b}},{key:"_ownParameters",value:function(p,g){if(function iB(c){return fT.test(c)||rB.test(c)||Ab.test(c)&&!FI.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==g.parameters)return p.parameters;var Z=p.ctorParameters;if(Z&&Z!==g.ctorParameters){var Q="function"==typeof Z?Z():Z,le=Q.map(function(Tt){return Tt&&Tt.type}),he=Q.map(function(Tt){return Tt&&Zl(Tt.decorators)});return this._zipTypesAndAnnotations(le,he)}var Ie=p.hasOwnProperty(uv)&&p[uv],et=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return et||Ie?this._zipTypesAndAnnotations(et,Ie):Rm(p.length)}},{key:"parameters",value:function(p){if(!fv(p))return[];var g=mf(p),b=this._ownParameters(p,g);return!b&&g!==Object&&(b=this.parameters(g)),b||[]}},{key:"_ownAnnotations",value:function(p,g){if(p.annotations&&p.annotations!==g.annotations){var b=p.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}return p.decorators&&p.decorators!==g.decorators?Zl(p.decorators):p.hasOwnProperty(Im)?p[Im]:null}},{key:"annotations",value:function(p){if(!fv(p))return[];var g=mf(p),b=this._ownAnnotations(p,g)||[];return(g!==Object?this.annotations(g):[]).concat(b)}},{key:"_ownPropMetadata",value:function(p,g){if(p.propMetadata&&p.propMetadata!==g.propMetadata){var b=p.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(p.propDecorators&&p.propDecorators!==g.propDecorators){var Z=p.propDecorators,Q={};return Object.keys(Z).forEach(function(le){Q[le]=Zl(Z[le])}),Q}return p.hasOwnProperty(cv)?p[cv]:null}},{key:"propMetadata",value:function(p){if(!fv(p))return{};var g=mf(p),b={};if(g!==Object){var Z=this.propMetadata(g);Object.keys(Z).forEach(function(le){b[le]=Z[le]})}var Q=this._ownPropMetadata(p,g);return Q&&Object.keys(Q).forEach(function(le){var he=[];b.hasOwnProperty(le)&&he.push.apply(he,(0,y.Z)(b[le])),he.push.apply(he,(0,y.Z)(Q[le])),b[le]=he}),b}},{key:"ownPropMetadata",value:function(p){return fv(p)&&this._ownPropMetadata(p,mf(p))||{}}},{key:"hasLifecycleHook",value:function(p,g){return p instanceof xb&&g in p.prototype}},{key:"guards",value:function(p){return{}}},{key:"getter",value:function(p){return new Function("o","return o."+p+";")}},{key:"setter",value:function(p){return new Function("o","v","return o."+p+" = v;")}},{key:"method",value:function(p){var g="if (!o.".concat(p,") throw new Error('\"").concat(p,"\" is undefined');\n return o.").concat(p,".apply(o, args);");return new Function("o","args",g)}},{key:"importUri",value:function(p){return"object"==typeof p&&p.filePath?p.filePath:"./".concat(ce(p))}},{key:"resourceUri",value:function(p){return"./".concat(ce(p))}},{key:"resolveIdentifier",value:function(p,g,b,Z){return Z}},{key:"resolveEnum",value:function(p,g){return p[g]}}]),c}();function Zl(c){return c?c.map(function(d){var g=d.type.annotationCls,b=d.args?d.args:[];return(0,K.Z)(g,(0,y.Z)(b))}):[]}function mf(c){var d=c.prototype?Object.getPrototypeOf(c.prototype):null;return(d?d.constructor:null)||Object}var _f={},pT="__NG_DI_FLAG__",mv="ngTempTokenPath",sB=/\n/gm,hT="__source",gv=W({provide:String,useValue:W}),Ls=void 0;function vv(c){var d=Ls;return Ls=c,d}function lB(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;if(void 0===Ls){var p="";throw new xe(203,p)}return null===Ls?tn(c,void 0,d):Ls.get(c,d&ue.Optional?null:void 0,d)}function rs(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;return(lt()||lB)(ve(c),d)}function UI(c){throw new Error("invalid")}var ps=rs;function HI(c){for(var d=[],p=0;p<c.length;p++){var g=ve(c[p]);if(Array.isArray(g)){if(0===g.length){throw new xe(900,"")}for(var Z=void 0,Q=ue.Default,le=0;le<g.length;le++){var he=g[le],Ie=Ib(he);"number"==typeof Ie?-1===Ie?Z=he.token:Q|=Ie:Z=he}d.push(rs(Z,Q))}else d.push(rs(g))}return d}function Ru(c,d){return c[pT]=d,c.prototype[pT]=d,c}function Ib(c){return c[pT]}function jI(c,d,p,g){var b=c[mv];throw d[hT]&&b.unshift(d[hT]),c.message=function zI(c,d,p){var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;var b=ce(d);if(Array.isArray(d))b=d.map(ce).join(" -> ");else if("object"==typeof d){var Z=[];for(var Q in d)if(d.hasOwnProperty(Q)){var le=d[Q];Z.push(Q+":"+("string"==typeof le?JSON.stringify(le):ce(le)))}b="{".concat(Z.join(", "),"}")}return"".concat(p).concat(g?"("+g+")":"","[").concat(b,"]: ").concat(c.replace(sB,"\n "))}("\n"+c.message,b,p,g),c.ngTokenPath=b,c[mv]=null,c}var yv=Ru(dv("Inject",function(c){return{token:c}}),-1),Zm=Ru(dv("Optional"),8),Pb=Ru(dv("Self"),2),Nm=Ru(dv("SkipSelf"),4),mT=Ru(dv("Host"),1),su=null;function Zs(){return su=su||new Ob}function Rb(c){return Lb(Zs().parameters(c))}function Lb(c){return c.map(function(d){return function Zp(c){var d={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(c)&&c.length>0)for(var p=0;p<c.length;p++){var g=c[p];if(void 0!==g){var b=Object.getPrototypeOf(g);if(g instanceof Zm||"Optional"===b.ngMetadataName)d.optional=!0;else if(g instanceof Nm||"SkipSelf"===b.ngMetadataName)d.skipSelf=!0;else if(g instanceof Pb||"Self"===b.ngMetadataName)d.self=!0;else if(g instanceof mT||"Host"===b.ngMetadataName)d.host=!0;else if(g instanceof yv)d.token=g.token;else if(g instanceof ZI){if(void 0===g.attributeName)throw new Error("Attribute name must be defined.");d.attribute=g.attributeName}else d.token=g}}else void 0===c||Array.isArray(c)&&0===c.length?d.token=null:d.token=c;return d}(d)})}var Fp,cd,Np=new Map,Bp=new Set;function Bm(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}function Up(){if(void 0===Fp&&(Fp=null,Yn.trustedTypes))try{Fp=Yn.trustedTypes.createPolicy("angular",{createHTML:function(d){return d},createScript:function(d){return d},createScriptURL:function(d){return d}})}catch(c){}return Fp}function Fm(c){var d;return(null===(d=Up())||void 0===d?void 0:d.createHTML(c))||c}function Lu(){if(void 0===cd&&(cd=null,Yn.trustedTypes))try{cd=Yn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(d){return d},createScript:function(d){return d},createScriptURL:function(d){return d}})}catch(c){}return cd}function dd(c){var d;return(null===(d=Lu())||void 0===d?void 0:d.createHTML(c))||c}function pc(c){var d;return(null===(d=Lu())||void 0===d?void 0:d.createScript(c))||c}function Hp(c){var d;return(null===(d=Lu())||void 0===d?void 0:d.createScriptURL(c))||c}var lu=function(){function c(d){(0,M.Z)(this,c),this.changingThisBreaksApplicationSecurity=d}return(0,F.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),gf=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(lu),KI=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(lu),gT=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(lu),dB=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(lu),JI=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),p}(lu);function gl(c){return c instanceof lu?c.changingThisBreaksApplicationSecurity:c}function Um(c,d){var p=QI(c);if(null!=p&&p!==d){if("ResourceURL"===p&&"URL"===d)return!0;throw new Error("Required a safe ".concat(d,", got a ").concat(p," (see https://g.co/ng/security#xss)"))}return p===d}function QI(c){return c instanceof lu&&c.getTypeName()||null}function fB(c){return new gf(c)}function Nb(c){return new KI(c)}function Cv(c){return new gT(c)}function vT(c){return new dB(c)}function wv(c){return new JI(c)}function XI(c){var d=new jp(c);return function pB(){try{return!!(new window.DOMParser).parseFromString(Fm(""),"text/html")}catch(c){return!1}}()?new yT(d):d}var yT=function(){function c(d){(0,M.Z)(this,c),this.inertDocumentHelper=d}return(0,F.Z)(c,[{key:"getInertBodyElement",value:function(p){p="<body><remove></remove>"+p;try{var g=(new window.DOMParser).parseFromString(Fm(p),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(p):(g.removeChild(g.firstChild),g)}catch(b){return null}}}]),c}(),jp=function(){function c(d){if((0,M.Z)(this,c),this.defaultDoc=d,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);var g=this.inertDocument.createElement("body");p.appendChild(g)}}return(0,F.Z)(c,[{key:"getInertBodyElement",value:function(p){var g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=Fm(p),g;var b=this.inertDocument.createElement("body");return b.innerHTML=Fm(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(b),b}},{key:"stripCustomNsAttrs",value:function(p){for(var g=p.attributes,b=g.length-1;0<b;b--){var Q=g.item(b).name;("xmlns:ns1"===Q||0===Q.indexOf("ns1:"))&&p.removeAttribute(Q)}for(var le=p.firstChild;le;)le.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(le),le=le.nextSibling}}]),c}();var hB=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,eP=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Hm(c){return(c=String(c)).match(hB)||c.match(eP)?c:"unsafe:"+c}function bT(c){return(c=String(c)).split(",").map(function(d){return Hm(d.trim())}).join(", ")}function Zu(c){var g,d={},p=(0,D.Z)(c.split(","));try{for(p.s();!(g=p.n()).done;){d[g.value]=!0}}catch(Z){p.e(Z)}finally{p.f()}return d}function jm(){for(var c={},d=arguments.length,p=new Array(d),g=0;g<d;g++)p[g]=arguments[g];for(var b=0,Z=p;b<Z.length;b++){var Q=Z[b];for(var le in Q)Q.hasOwnProperty(le)&&(c[le]=!0)}return c}var vf,uu,CT=Zu("area,br,col,hr,img,wbr"),zm=Zu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fd=Zu("rp,rt"),tP=jm(fd,zm),hc=jm(zm,Zu("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")),nP=jm(fd,Zu("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")),rP=jm(CT,hc,nP,tP),iP=Zu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oP=Zu("srcset"),mB=Zu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wT=Zu("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"),pd=jm(iP,oP,mB,wT),kT=Zu("script,style,template"),_B=function(){function c(){(0,M.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,F.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var g=p.firstChild,b=!0;g;)if(g.nodeType===Node.ELEMENT_NODE?b=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,b&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);var Z=this.checkClobberedElement(g,g.nextSibling);if(Z){g=Z;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var g=p.nodeName.toLowerCase();if(!rP.hasOwnProperty(g))return this.sanitizedSomething=!0,!kT.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);for(var b=p.attributes,Z=0;Z<b.length;Z++){var Q=b.item(Z),le=Q.name,he=le.toLowerCase();if(pd.hasOwnProperty(he)){var Ie=Q.value;iP[he]&&(Ie=Hm(Ie)),oP[he]&&(Ie=bT(Ie)),this.buf.push(" ",le,'="',Bb(Ie),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var g=p.nodeName.toLowerCase();rP.hasOwnProperty(g)&&!CT.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(Bb(p))}},{key:"checkClobberedElement",value:function(p,g){if(g&&(p.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(p.outerHTML));return g}}]),c}(),aP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sP=/([^\#-~ |!])/g;function Bb(c){return c.replace(/&/g,"&amp;").replace(aP,function(d){return"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";"}).replace(sP,function(d){return"&#"+d.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Fb(c,d){var p=null;try{vf=vf||XI(c);var g=d?String(d):"";p=vf.getInertBodyElement(g);var b=5,Z=g;do{if(0===b)throw new Error("Failed to sanitize html because the input is unstable");b--,g=Z,Z=p.innerHTML,p=vf.getInertBodyElement(g)}while(g!==Z);return Fm((new _B).sanitizeChildren(za(p)||p))}finally{if(p)for(var he=za(p)||p;he.firstChild;)he.removeChild(he.firstChild)}}function za(c){return"content"in c&&function hd(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function lP(c){var d=kv();return d?dd(d.sanitize(uu.HTML,c)||""):Um(c,"HTML")?dd(gl(c)):Fb(un(),ke(c))}function uP(c){var d=kv();return d?d.sanitize(uu.STYLE,c)||"":Um(c,"Style")?gl(c):ke(c)}function TT(c){var d=kv();return d?d.sanitize(uu.URL,c)||"":Um(c,"URL")?gl(c):Hm(ke(c))}function zp(c){var d=kv();if(d)return Hp(d.sanitize(uu.RESOURCE_URL,c)||"");if(Um(c,"ResourceURL"))return Hp(gl(c));throw new xe(904,"")}function cP(c){var d=kv();if(d)return pc(d.sanitize(uu.SCRIPT,c)||"");if(Um(c,"Script"))return pc(gl(c));throw new xe(905,"")}function gB(c){return Fm(c[0])}function Ub(c){return function ud(c){var d;return(null===(d=Up())||void 0===d?void 0:d.createScriptURL(c))||c}(c[0])}function yB(c,d,p){return function vB(c,d){return"src"===d&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===d&&("base"===c||"link"===c)?zp:TT}(d,p)(c)}function kv(){var c=Nn();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"}(uu||(uu={}));var dP="__ngContext__";function Ns(c,d){c[dP]=d}function Tv(c){return c[dP]||null}function jb(c){var d=Tv(c);return d?Array.isArray(d)?d:d.lView:null}var vl="ngOriginalError";function Mv(c){return c[vl]}function yf(c){for(var d=arguments.length,p=new Array(d>1?d-1:0),g=1;g<d;g++)p[g-1]=arguments[g];c.error.apply(c,p)}var Vm=function(){function c(){(0,M.Z)(this,c),this._console=console}return(0,F.Z)(c,[{key:"handleError",value:function(p){var g=this._findOriginalError(p),b=function DT(c){return c&&c.ngErrorLogger||yf}(p);b(this._console,"ERROR",p),g&&b(this._console,"ORIGINAL ERROR",g)}},{key:"_findOriginalError",value:function(p){for(var g=p&&Mv(p);g&&Mv(g);)g=Mv(g);return g||null}}]),c}(),Yb=/^>|^->|<!--|-->|--!>|<!-$/g,OT=/(<|>)/;function yl(c){return c.replace(Yb,function(d){return d.replace(OT,"\u200b$1\u200b")})}var Ym=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Yn);function Kb(c){return c.ownerDocument.defaultView}function Jb(c){return c.ownerDocument}function Gm(c){return c.ownerDocument.body}var Sv,PT;function Va(c){return c instanceof Function?c():c}function xv(c,d){return PT(c,d)}!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Sv||(Sv={}));function Dv(c){var d=c[3];return yn(d)?d[3]:d}function ZT(c){return _P(c[13])}function NT(c){return _P(c[4])}function _P(c){for(;null!==c&&!yn(c);)c=c[4];return c}function qm(c,d,p,g,b){if(null!=g){var Z,Q=!1;yn(g)?Z=g:Ba(g)&&(Q=!0,g=g[0]);var le=ar(g);0===c&&null!==p?null==b?wP(d,p,le):Yp(d,p,le,b||null,!0):1===c&&null!==p?Yp(d,p,le,b||null,!0):2===c?SP(d,le,Q):3===c&&d.destroyNode(le),null!=Z&&function SB(c,d,p,g,b){var Z=p[7],Q=ar(p);Z!==Q&&qm(d,c,g,Z,b);for(var le=10;le<p.length;le++){var he=p[le];Ov(he[1],he,c,d,g,Z)}}(d,c,Z,p,b)}}function Xb(c,d){return Pn(c)?c.createText(d):c.createTextNode(d)}function gP(c,d,p){Pn(c)?c.setValue(d,p):d.textContent=p}function BT(c,d){return c.createComment(yl(d))}function $b(c,d,p){if(Pn(c))return c.createElement(d,p);var g=null!==p?function Ge(c){var d=c.toLowerCase();return"svg"===d?"http://www.w3.org/2000/svg":d===ye?"http://www.w3.org/1998/MathML/":null}(p):null;return null===g?c.createElement(d):c.createElementNS(g,d)}function Xs(c,d,p,g){var b=10+g,Z=p.length;g>0&&(p[b-1][4]=d),g<Z-10?(d[4]=p[b],BI(p,10+g,d)):(p.push(d),d[4]=null),d[3]=p;var Q=d[17];null!==Q&&p!==Q&&function EB(c,d){var p=c[9],b=d[3][3][16];d[16]!==b&&(c[2]=!0),null===p?c[9]=[d]:p.push(d)}(Q,d);var le=d[19];null!==le&&le.insertView(c),d[2]|=128}function e1(c,d){var p=c[9],g=p.indexOf(d),b=d[3];1024&d[2]&&(d[2]&=-1025,Lr(b,-1)),p.splice(g,1)}function t1(c,d){if(!(c.length<=10)){var p=10+d,g=c[p];if(g){var b=g[17];null!==b&&b!==c&&e1(b,g),d>0&&(c[p-1][4]=g[4]);var Z=pv(c,10+d);!function kB(c,d){Ov(c,d,d[11],2,null,null),d[0]=null,d[6]=null}(g[1],g);var Q=Z[19];null!==Q&&Q.detachView(Z[1]),g[3]=null,g[4]=null,g[2]&=-129}return g}}function n1(c,d){if(!(256&d[2])){var p=d[11];Pn(p)&&p.destroyNode&&Ov(c,d,p,3,null,null),function vP(c){var d=c[13];if(!d)return FT(c[1],c);for(;d;){var p=null;if(Ba(d))p=d[13];else{var g=d[10];g&&(p=g)}if(!p){for(;d&&!d[4]&&d!==c;)Ba(d)&&FT(d[1],d),d=d[3];null===d&&(d=c),Ba(d)&&FT(d[1],d),p=d&&d[4]}d=p}}(d)}}function FT(c,d){if(!(256&d[2])){d[2]&=-129,d[2]|=256,function Km(c,d){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var g=0;g<p.length;g+=2){var b=d[p[g]];if(!(b instanceof ns)){var Z=p[g+1];if(Array.isArray(Z))for(var Q=0;Q<Z.length;Q+=2){var le=b[Z[Q]],he=Z[Q+1];wo(4,le,he);try{he.call(le)}finally{wo(5,le,he)}}else{wo(4,b,Z);try{Z.call(b)}finally{wo(5,b,Z)}}}}}(c,d),function yP(c,d){var p=c.cleanup,g=d[7],b=-1;if(null!==p)for(var Z=0;Z<p.length-1;Z+=2)if("string"==typeof p[Z]){var Q=p[Z+1],le="function"==typeof Q?Q(d):ar(d[Q]),he=g[b=p[Z+2]],Ie=p[Z+3];"boolean"==typeof Ie?le.removeEventListener(p[Z],he,Ie):Ie>=0?g[b=Ie]():g[b=-Ie].unsubscribe(),Z+=2}else{var et=g[b=p[Z+1]];p[Z].call(et)}if(null!==g){for(var Tt=b+1;Tt<g.length;Tt++){(0,g[Tt])()}d[7]=null}}(c,d),1===d[1].type&&Pn(d[11])&&d[11].destroy();var p=d[17];if(null!==p&&yn(d[3])){p!==d[3]&&e1(p,d);var g=d[19];null!==g&&g.detachView(c)}}}function bP(c,d,p){return CP(c,d.parent,p)}function CP(c,d,p){for(var g=d;null!==g&&40&g.type;)g=(d=g).parent;if(null===g)return p[0];if(2&g.flags){var b=c.data[g.directiveStart].encapsulation;if(b===zn.None||b===zn.Emulated)return null}return Di(g,p)}function Yp(c,d,p,g,b){Pn(c)?c.insertBefore(d,p,g,b):d.insertBefore(p,g,b)}function wP(c,d,p){Pn(c)?c.appendChild(d,p):d.appendChild(p)}function UT(c,d,p,g,b){null!==g?Yp(c,d,p,g,b):wP(c,d,p)}function Jm(c,d){return Pn(c)?c.parentNode(d):d.parentNode}function kP(c,d,p){return EP(c,d,p)}function TP(c,d,p){return 40&c.type?Di(c,p):null}var _d,EP=TP;function jT(c,d){EP=c,_d=d}function i1(c,d,p,g){var b=bP(c,g,d),Z=d[11],le=kP(g.parent||d[6],g,d);if(null!=b)if(Array.isArray(p))for(var he=0;he<p.length;he++)UT(Z,b,p[he],le,!1);else UT(Z,b,p,le,!1);void 0!==_d&&_d(Z,g,d,p,b)}function Av(c,d){if(null!==d){var p=d.type;if(3&p)return Di(d,c);if(4&p)return bf(-1,c[d.index]);if(8&p){var g=d.child;if(null!==g)return Av(c,g);var b=c[d.index];return yn(b)?bf(-1,b):ar(b)}if(32&p)return xv(d,c)()||ar(c[d.index]);var le=MP(c,d);return null!==le?Array.isArray(le)?le[0]:Av(Dv(c[16]),le):Av(c,d.next)}return null}function MP(c,d){if(null!==d){var g=c[16][6],b=d.projection;return g.projection[b]}return null}function bf(c,d){var p=10+c+1;if(p<d.length){var g=d[p],b=g[1].firstChild;if(null!==b)return Av(g,b)}return d[7]}function SP(c,d,p){var g=Jm(c,d);g&&function r1(c,d,p,g){Pn(c)?c.removeChild(d,p,g):d.removeChild(p)}(c,g,d,p)}function zT(c,d,p,g,b,Z,Q){for(;null!=p;){var le=g[p.index],he=p.type;if(Q&&0===d&&(le&&Ns(ar(le),g),p.flags|=4),64!=(64&p.flags))if(8&he)zT(c,d,p.child,g,b,Z,!1),qm(d,c,b,le,Z);else if(32&he){for(var Ie=xv(p,g),et=void 0;et=Ie();)qm(d,c,b,et,Z);qm(d,c,b,le,Z)}else 16&he?xP(c,d,g,p,b,Z):qm(d,c,b,le,Z);p=Q?p.projectionNext:p.next}}function Ov(c,d,p,g,b,Z){zT(p,g,c.firstChild,d,b,Z,!1)}function MB(c,d,p){xP(d[11],0,d,p,bP(c,p,d),kP(p.parent||d[6],p,d))}function xP(c,d,p,g,b,Z){var Q=p[16],he=Q[6].projection[g.projection];if(Array.isArray(he))for(var Ie=0;Ie<he.length;Ie++){qm(d,c,b,he[Ie],Z)}else zT(c,d,he,Q[3],b,Z,!0)}function DP(c,d,p){Pn(c)?c.setAttribute(d,"style",p):d.style.cssText=p}function VT(c,d,p){Pn(c)?""===p?c.removeAttribute(d,"class"):c.setAttribute(d,"class",p):d.className=p}function AP(c,d,p){for(var g=c.length;;){var b=c.indexOf(d,p);if(-1===b)return b;if(0===b||c.charCodeAt(b-1)<=32){var Z=d.length;if(b+Z===g||c.charCodeAt(b+Z)<=32)return b}p=b+1}}var OP="ng-template";function YT(c,d,p){for(var g=0;g<c.length;){var b=c[g++];if(p&&"class"===b){if(-1!==AP((b=c[g]).toLowerCase(),d,0))return!0}else if(1===b){for(;g<c.length&&"string"==typeof(b=c[g++]);)if(b.toLowerCase()===d)return!0;return!1}}return!1}function GT(c){return 4===c.type&&c.value!==OP}function xB(c,d,p){return d===(4!==c.type||p?c.value:OP)}function IP(c,d,p){for(var g=4,b=c.attrs||[],Z=function LP(c){for(var d=0;d<c.length;d++){if(Ou(c[d]))return d}return c.length}(b),Q=!1,le=0;le<d.length;le++){var he=d[le];if("number"!=typeof he){if(!Q)if(4&g){if(g=2|1&g,""!==he&&!xB(c,he,p)||""===he&&1===d.length){if(Nu(g))return!1;Q=!0}}else{var Ie=8&g?he:d[++le];if(8&g&&null!==c.attrs){if(!YT(c.attrs,Ie,p)){if(Nu(g))return!1;Q=!0}continue}var Tt=DB(8&g?"class":he,b,GT(c),p);if(-1===Tt){if(Nu(g))return!1;Q=!0;continue}if(""!==Ie){var Ot=void 0;Ot=Tt>Z?"":b[Tt+1].toLowerCase();var zt=8&g?Ot:null;if(zt&&-1!==AP(zt,Ie,0)||2&g&&Ie!==Ot){if(Nu(g))return!1;Q=!0}}}}else{if(!Q&&!Nu(g)&&!Nu(he))return!1;if(Q&&Nu(he))continue;Q=!1,g=he|1&g}}return Nu(g)||Q}function Nu(c){return 0==(1&c)}function DB(c,d,p,g){if(null===d)return-1;var b=0;if(g||!p){for(var Z=!1;b<d.length;){var Q=d[b];if(Q===c)return b;if(3===Q||6===Q)Z=!0;else{if(1===Q||2===Q){for(var le=d[++b];"string"==typeof le;)le=d[++b];continue}if(4===Q)break;if(0===Q){b+=4;continue}}b+=Z?1:2}return-1}return function AB(c,d){var p=c.indexOf(4);if(p>-1)for(p++;p<c.length;){var g=c[p];if("number"==typeof g)return-1;if(g===d)return p;p++}return-1}(d,c)}function PP(c,d){for(var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],g=0;g<d.length;g++)if(IP(c,d[g],p))return!0;return!1}function o1(c,d){e:for(var p=0;p<d.length;p++){var g=d[p];if(c.length===g.length){for(var b=0;b<c.length;b++)if(c[b]!==g[b])continue e;return!0}}return!1}function qT(c,d){return c?":not("+d.trim()+")":d}function ZP(c){for(var d=c[0],p=1,g=2,b="",Z=!1;p<c.length;){var Q=c[p];if("string"==typeof Q)if(2&g){var le=c[++p];b+="["+Q+(le.length>0?'="'+le+'"':"")+"]"}else 8&g?b+="."+Q:4&g&&(b+=" "+Q);else""!==b&&!Nu(Q)&&(d+=qT(Z,b),b=""),g=Q,Z=Z||!Nu(g);p++}return""!==b&&(d+=qT(Z,b)),d}var fi={};function BP(c){FP(wi(),Nn(),eo()+c,!1)}function FP(c,d,p,g){if(!g)if(3==(3&d[2])){var Z=c.preOrderCheckHooks;null!==Z&&Ip(d,Z,p)}else{var Q=c.preOrderHooks;null!==Q&&pf(d,Q,0,p)}Ts(p)}function hi(c,d){return c<<17|d<<2}function Bu(c){return c>>17&32767}function JT(c){return 2==(2&c)}function a1(c){return 2|c}function vd(c){return(131068&c)>>2}function QT(c,d){return-131069&c|d<<2}function UP(c){return 1==(1&c)}function Iv(c){return 1|c}var iE=Promise.resolve(null);function KP(c,d){var p=c.contentQueries;if(null!==p)for(var g=0;g<p.length;g+=2){var b=p[g],Z=p[g+1];if(-1!==Z){var Q=c.data[Z];we(b),Q.contentQueries(2,d[Z],Z)}}}function n_(c,d,p,g,b,Z,Q,le,he,Ie){var et=d.blueprint.slice();return et[0]=b,et[2]=140|g,nr(et),et[3]=et[15]=c,et[8]=p,et[10]=Q||c&&c[10],et[11]=le||c&&c[11],et[12]=he||c&&c[12]||null,et[9]=Ie||c&&c[9]||null,et[6]=Z,et[16]=2==d.type?c[16]:et,et}function r_(c,d,p,g,b){var Z=c.data[d];if(null===Z)Z=u1(c,d,p,g,b),function bn(){return Ir.lFrame.inI18n}()&&(Z.flags|=64);else if(64&Z.type){Z.type=p,Z.value=g,Z.attrs=b;var Q=xu();Z.injectorIndex=null===Q?-1:Q.injectorIndex}return ji(Z,!0),Z}function u1(c,d,p,g,b){var Z=cf(),Q=ml(),le=Q?Z:Z&&Z.parent,he=c.data[d]=function t3(c,d,p,g,b,Z){var Q=d?d.injectorIndex:-1;return{type:p,index:g,insertBeforeIndex:null,injectorIndex:Q,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:b,attrs:Z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:d,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,le,p,d,g,b);return null===c.firstChild&&(c.firstChild=he),null!==Z&&(Q?null==Z.child&&null!==he.parent&&(Z.child=he):null===Z.next&&(Z.next=he)),he}function i_(c,d,p,g){if(0===p)return-1;for(var b=d.length,Z=0;Z<p;Z++)d.push(g),c.blueprint.push(g),c.data.push(null);return b}function Gp(c,d,p){De(d);try{var g=c.viewQuery;null!==g&&bE(1,g,p);var b=c.template;null!==b&&JP(c,d,b,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&KP(c,d),c.staticViewQueries&&bE(2,c.viewQuery,p);var Z=c.components;null!==Z&&function HB(c,d){for(var p=0;p<d.length;p++)XB(c,d[p])}(d,Z)}catch(Q){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),Q}finally{d[2]&=-5,Sr()}}function Cl(c,d,p,g){var b=d[2];if(256!=(256&b)){De(d);try{nr(d),Ft(c.bindingStartIndex),null!==p&&JP(c,d,p,2,g);var Q=3==(3&b);if(Q){var le=c.preOrderCheckHooks;null!==le&&Ip(d,le,null)}else{var he=c.preOrderHooks;null!==he&&pf(d,he,0,null),Pp(d,0)}if(function mE(c){for(var d=ZT(c);null!==d;d=NT(d))if(d[2])for(var p=d[9],g=0;g<p.length;g++){var b=p[g],Z=b[3];0==(1024&b[2])&&Lr(Z,1),b[2]|=1024}}(d),function cW(c){for(var d=ZT(c);null!==d;d=NT(d))for(var p=10;p<d.length;p++){var g=d[p],b=g[1];Ke(g)&&Cl(b,g,b.template,g[8])}}(d),null!==c.contentQueries&&KP(c,d),Q){var Ie=c.contentCheckHooks;null!==Ie&&Ip(d,Ie)}else{var et=c.contentHooks;null!==et&&pf(d,et,1),Pp(d,1)}!function FB(c,d){var p=c.hostBindingOpCodes;if(null!==p)try{for(var g=0;g<p.length;g++){var b=p[g];if(b<0)Ts(~b);else{var Z=b,Q=p[++g],le=p[++g];ir(Q,Z),le(2,d[Z])}}}finally{Ts(-1)}}(c,d);var Tt=c.components;null!==Tt&&function UB(c,d){for(var p=0;p<d.length;p++)_E(c,d[p])}(d,Tt);var Ot=c.viewQuery;if(null!==Ot&&bE(2,Ot,g),Q){var zt=c.viewCheckHooks;null!==zt&&Ip(d,zt)}else{var hn=c.viewHooks;null!==hn&&pf(d,hn,2),Pp(d,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),d[2]&=-73,1024&d[2]&&(d[2]&=-1025,Lr(d[3],-1))}finally{Sr()}}}function oE(c,d,p,g){var b=d[10],Q=Je(d);try{!Q&&b.begin&&b.begin(),Q&&Gp(c,d,g),Cl(c,d,p,g)}finally{!Q&&b.end&&b.end()}}function JP(c,d,p,g,b){var Z=eo(),Q=2&g;try{Ts(-1),Q&&d.length>20&&FP(c,d,20,!1),wo(Q?2:0,b),p(g,b)}finally{Ts(Z),wo(Q?3:1,b)}}function QP(c,d,p){if(Cn(d))for(var g=d.directiveStart,b=d.directiveEnd,Z=g;Z<b;Z++){var Q=c.data[Z];Q.contentQueries&&Q.contentQueries(1,p[Z],Z)}}function c1(c,d,p){!si()||(function GB(c,d,p,g){var b=p.directiveStart,Z=p.directiveEnd;c.firstCreatePass||av(p,d),Ns(g,d);for(var Q=p.initialInputs,le=b;le<Z;le++){var he=c.data[le],Ie=Ki(he);Ie&&u3(d,p,he);var et=hf(d,c,le,p);if(Ns(et,d),null!==Q&&JB(d,le-b,et,he,p,Q),Ie)Ce(p.index,d)[8]=et}}(c,d,p,Di(p,d)),128==(128&p.flags)&&function qB(c,d,p){var g=p.directiveStart,b=p.directiveEnd,Q=(c.firstCreatePass,p.index),le=function _r(){return Ir.lFrame.currentDirectiveIndex}();try{Ts(Q);for(var he=g;he<b;he++){var Ie=c.data[he],et=d[he];gr(he),(null!==Ie.hostBindings||0!==Ie.hostVars||null!==Ie.hostAttrs)&&a3(Ie,et)}}finally{Ts(-1),gr(le)}}(c,d,p))}function d1(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di,g=d.localNames;if(null!==g)for(var b=d.index+1,Z=0;Z<g.length;Z+=2){var Q=g[Z+1],le=-1===Q?p(d,c):c[Q];c[b++]=le}}function XP(c){var d=c.tView;if(null===d||d.incompleteFirstPass){return c.tView=Nv(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return d}function Nv(c,d,p,g,b,Z,Q,le,he,Ie){var et=20+g,Tt=et+b,Ot=function jB(c,d){for(var p=[],g=0;g<d;g++)p.push(g<c?null:fi);return p}(et,Tt),zt="function"==typeof Ie?Ie():Ie;return Ot[1]={type:c,blueprint:Ot,template:p,queries:null,viewQuery:le,declTNode:d,data:Ot.slice().fill(null,et),bindingStartIndex:et,expandoStartIndex:Tt,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 Z?Z():Z,pipeRegistry:"function"==typeof Q?Q():Q,firstChild:null,schemas:he,consts:zt,incompleteFirstPass:!1}}function $P(c,d,p){if(Pn(c)){var g=p===zn.ShadowDom;return c.selectRootElement(d,g)}var b="string"==typeof d?c.querySelector(d):d;return b.textContent="",b}function e3(c,d,p,g){var b=p3(d);null===p?b.push(g):(b.push(p),c.firstCreatePass&&h3(c).push(g,b.length-1))}function sE(c,d,p){for(var g in c)if(c.hasOwnProperty(g)){p=null===p?{}:p;var b=c[g];p.hasOwnProperty(g)?p[g].push(d,b):p[g]=[d,b]}return p}function du(c,d,p,g,b,Z,Q,le){var et,he=Di(d,p),Ie=d.inputs;!le&&null!=Ie&&(et=Ie[g])?(wE(c,p,et,g,b),oi(d)&&function WB(c,d){var p=Ce(d,c);16&p[2]||(p[2]|=64)}(p,d.index)):3&d.type?(g=function n3(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(g),b=null!=Q?Q(b,d.value||"",g):b,Pn(Z)?Z.setProperty(he,g,b):ad(g)||(he.setProperty?he.setProperty(g,b):he[g]=b)):d.type}function i3(c,d,p,g){var b=!1;if(si()){var Z=function dE(c,d,p){var g=c.directiveRegistry,b=null;if(g)for(var Z=0;Z<g.length;Z++){var Q=g[Z];PP(p,Q.selectors,!1)&&(b||(b=[]),aT(av(p,d),c,Q.type),Ki(Q)?(s3(c,p),b.unshift(Q)):b.push(Q))}return b}(c,d,p),Q=null===g?null:{"":-1};if(null!==Z){b=!0,fE(p,c.data.length,Z.length);for(var le=0;le<Z.length;le++){var he=Z[le];he.providersResolver&&he.providersResolver(he)}for(var Ie=!1,et=!1,Tt=i_(c,d,Z.length,null),Ot=0;Ot<Z.length;Ot++){var zt=Z[Ot];p.mergedAttrs=uc(p.mergedAttrs,zt.hostAttrs),pE(c,p,d,Tt,zt),KB(Tt,zt,Q),null!==zt.contentQueries&&(p.flags|=8),(null!==zt.hostBindings||null!==zt.hostAttrs||0!==zt.hostVars)&&(p.flags|=128);var hn=zt.type.prototype;!Ie&&(hn.ngOnChanges||hn.ngOnInit||hn.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(p.index),Ie=!0),!et&&(hn.ngOnChanges||hn.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(p.index),et=!0),Tt++}!function zB(c,d){for(var p=d.directiveStart,g=d.directiveEnd,b=c.data,Z=d.attrs,Q=[],le=null,he=null,Ie=p;Ie<g;Ie++){var et=b[Ie],Tt=et.inputs,Ot=null===Z||GT(d)?null:QB(Tt,Z);Q.push(Ot),le=sE(Tt,Ie,le),he=sE(et.outputs,Ie,he)}null!==le&&(le.hasOwnProperty("class")&&(d.flags|=16),le.hasOwnProperty("style")&&(d.flags|=32)),d.initialInputs=Q,d.inputs=le,d.outputs=he}(c,p)}Q&&function l3(c,d,p){if(d)for(var g=c.localNames=[],b=0;b<d.length;b+=2){var Z=p[d[b+1]];if(null==Z)throw new xe(-301,!1);g.push(d[b],Z)}}(p,g,Q)}return p.mergedAttrs=uc(p.mergedAttrs,p.attrs),b}function o3(c,d,p,g,b,Z){var Q=Z.hostBindings;if(Q){var le=c.hostBindingOpCodes;null===le&&(le=c.hostBindingOpCodes=[]);var he=~d.index;(function YB(c){for(var d=c.length;d>0;){var p=c[--d];if("number"==typeof p&&p<0)return p}return 0})(le)!=he&&le.push(he),le.push(g,b,Q)}}function a3(c,d){null!==c.hostBindings&&c.hostBindings(1,d)}function s3(c,d){d.flags|=2,(c.components||(c.components=[])).push(d.index)}function KB(c,d,p){if(p){if(d.exportAs)for(var g=0;g<d.exportAs.length;g++)p[d.exportAs[g]]=c;Ki(d)&&(p[""]=c)}}function fE(c,d,p){c.flags|=1,c.directiveStart=d,c.directiveEnd=d+p,c.providerIndexes=d}function pE(c,d,p,g,b){c.data[g]=b;var Z=b.factory||(b.factory=Xi(b.type)),Q=new ns(Z,Ki(b),null);c.blueprint[g]=Q,p[g]=Q,o3(c,d,0,g,i_(c,p,b.hostVars,fi),b)}function u3(c,d,p){var g=Di(d,c),b=XP(p),Z=c[10],Q=f1(c,n_(c,b,null,p.onPush?64:16,g,d,Z,Z.createRenderer(g,p),null,null));c[d.index]=Q}function gc(c,d,p,g,b,Z){var Q=Di(c,d);hE(d[11],Q,Z,c.value,p,g,b)}function hE(c,d,p,g,b,Z,Q){if(null==Z)Pn(c)?c.removeAttribute(d,b,p):d.removeAttribute(b);else{var le=null==Q?ke(Z):Q(Z,g||"",b);Pn(c)?c.setAttribute(d,b,le,p):p?d.setAttributeNS(p,b,le):d.setAttribute(b,le)}}function JB(c,d,p,g,b,Z){var Q=Z[d];if(null!==Q)for(var le=g.setInput,he=0;he<Q.length;){var Ie=Q[he++],et=Q[he++],Tt=Q[he++];null!==le?g.setInput(p,Tt,Ie,et):p[et]=Tt}}function QB(c,d){for(var p=null,g=0;g<d.length;){var b=d[g];if(0!==b)if(5!==b){if("number"==typeof b)break;c.hasOwnProperty(b)&&(null===p&&(p=[]),p.push(b,c[b],d[g+1])),g+=2}else g+=2;else g+=4}return p}function d3(c,d,p,g){return new Array(c,!0,!1,d,null,0,g,p,null,null)}function _E(c,d){var p=Ce(d,c);if(Ke(p)){var g=p[1];80&p[2]?Cl(g,p,g.template,p[8]):p[5]>0&&vc(p)}}function vc(c){for(var d=ZT(c);null!==d;d=NT(d))for(var p=10;p<d.length;p++){var g=d[p];if(1024&g[2]){var b=g[1];Cl(b,g,b.template,g[8])}else g[5]>0&&vc(g)}var Q=c[1].components;if(null!==Q)for(var le=0;le<Q.length;le++){var he=Ce(Q[le],c);Ke(he)&&he[5]>0&&vc(he)}}function XB(c,d){var p=Ce(d,c),g=p[1];(function $B(c,d){for(var p=d.length;p<c.blueprint.length;p++)d.push(c.blueprint[p])})(g,p),Gp(g,p,p[8])}function f1(c,d){return c[13]?c[14][4]=d:c[13]=d,c[14]=d,d}function gE(c){for(;c;){c[2]|=64;var d=Dv(c);if(ti(c)&&!d)return c;c=d}return null}function vE(c){for(var d=0;d<c.components.length;d++){var p=c.components[d],g=jb(p),b=g[1];oE(b,g,b.template,p)}}function yE(c,d,p){var g=d[10];g.begin&&g.begin();try{Cl(c,d,c.template,p)}catch(b){throw CE(d,b),b}finally{g.end&&g.end()}}function f3(c){vE(c[8])}function bE(c,d,p){we(0),d(c,p)}var wl=iE;function p3(c){return c[7]||(c[7]=[])}function h3(c){return c.cleanup||(c.cleanup=[])}function m3(c,d,p){return(null===c||Ki(c))&&(p=function ai(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(p[d.index])),p[11]}function CE(c,d){var p=c[9],g=p?p.get(Vm,null):null;g&&g.handleError(d)}function wE(c,d,p,g,b){for(var Z=0;Z<p.length;){var Q=p[Z++],le=p[Z++],he=d[Q],Ie=c.data[Q];null!==Ie.setInput?Ie.setInput(he,b,g,le):he[le]=b}}function yc(c,d,p){var g=So(d,c);gP(c[11],g,p)}function Bv(c,d,p){var g=p?c.styles:null,b=p?c.classes:null,Z=0;if(null!==d)for(var Q=0;Q<d.length;Q++){var le=d[Q];if("number"==typeof le)Z=le;else if(1==Z)b=se(b,le);else if(2==Z){g=se(g,le+": "+d[++Q]+";")}}p?c.styles=g:c.stylesWithoutHost=g,p?c.classes=b:c.classesWithoutHost=b}var bc=new wa("INJECTOR",-1),kE=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"get",value:function(p){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f;if(g===_f){var b=new Error("NullInjectorError: No provider for ".concat(ce(p),"!"));throw b.name="NullInjectorError",b}return g}}]),c}(),TE=new wa("Set Injector scope."),Fv={},rF={},EE=void 0;function ME(){return void 0===EE&&(EE=new kE),EE}function h1(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,g=arguments.length>3?arguments[3]:void 0,b=g3(c,d,p,g);return b._resolveInjectorDefTypes(),b}function g3(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,g=arguments.length>3?arguments[3]:void 0;return new iF(c,p,d||ME(),g)}var iF=function(){function c(d,p,g){var b=this,Z=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,M.Z)(this,c),this.parent=g,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var Q=[];p&&fc(p,function(he){return b.processProvider(he,d,p)}),fc([d],function(he){return b.processInjectorType(he,[],Q)}),this.records.set(bc,kf(void 0,this));var le=this.records.get(TE);this.scope=null!=le?le.value:null,this.source=Z||("object"==typeof d?null:ce(d))}return(0,F.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(p){return p.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(p){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;this.assertNotDestroyed();var Z=vv(this),Q=Dt(void 0);try{if(!(b&ue.SkipSelf)){var le=this.records.get(p);if(void 0===le){var he=lF(p)&&$t(p);le=he&&this.injectableDefInScope(he)?kf(SE(p),Fv):null,this.records.set(p,le)}if(null!=le)return this.hydrate(p,le)}var Ie=b&ue.Self?ME():this.parent;return g=b&ue.Optional&&g===_f?null:g,Ie.get(p,g)}catch(Tt){if("NullInjectorError"===Tt.name){var et=Tt[mv]=Tt[mv]||[];if(et.unshift(ce(p)),Z)throw Tt;return jI(Tt,p,"R3InjectorError",this.source)}throw Tt}finally{Dt(Q),vv(Z)}}},{key:"_resolveInjectorDefTypes",value:function(){var p=this;this.injectorDefTypes.forEach(function(g){return p.get(g)})}},{key:"toString",value:function(){var p=[];return this.records.forEach(function(b,Z){return p.push(ce(Z))}),"R3Injector[".concat(p.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new xe(205,!1)}},{key:"processInjectorType",value:function(p,g,b){var Z=this;if(!(p=ve(p)))return!1;var Q=wn(p),le=null==Q&&p.ngModule||void 0,he=void 0===le?p:le,Tt=-1!==b.indexOf(he);if(void 0!==le&&(Q=wn(le)),null==Q)return!1;if(null!=Q.imports&&!Tt){var Ot;b.push(he);try{fc(Q.imports,function(xn){Z.processInjectorType(xn,g,b)&&(void 0===Ot&&(Ot=[]),Ot.push(xn))})}finally{}if(void 0!==Ot)for(var zt=function(Cr){var ki=Ot[Cr],Ni=ki.ngModule,Po=ki.providers;fc(Po,function(is){return Z.processProvider(is,Ni,Po||Ee)})},hn=0;hn<Ot.length;hn++)zt(hn)}this.injectorDefTypes.add(he);var Fn=Xi(he)||function(){return new he};this.records.set(he,kf(Fn,Fv));var Xn=Q.providers;if(null!=Xn&&!Tt){var fr=p;fc(Xn,function(xn){return Z.processProvider(xn,fr,Xn)})}return void 0!==le&&void 0!==p.providers}},{key:"processProvider",value:function(p,g,b){var Z=o_(p=ve(p))?p:ve(p&&p.provide),Q=function oF(c,d,p){return m1(c)?kf(void 0,c.useValue):kf(v3(c,d,p),Fv)}(p,g,b);if(o_(p)||!0!==p.multi)this.records.get(Z);else{var le=this.records.get(Z);le||((le=kf(void 0,Fv,!0)).factory=function(){return HI(le.multi)},this.records.set(Z,le)),Z=p,le.multi.push(p)}this.records.set(Z,Q)}},{key:"hydrate",value:function(p,g){return g.value===Fv&&(g.value=rF,g.value=g.factory()),"object"==typeof g.value&&g.value&&function C3(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}},{key:"injectableDefInScope",value:function(p){if(!p.providedIn)return!1;var g=ve(p.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}]),c}();function SE(c){var d=$t(c),p=null!==d?d.factory:Xi(c);if(null!==p)return p;if(c instanceof wa)throw new xe(204,!1);if(c instanceof Function)return function Cc(c){var d=c.length;if(d>0){Rm(d,"?");throw new xe(204,!1)}var g=function V(c){var d=c&&(c[Bt]||c[de]);if(d){var p=function Jn(c){if(c.hasOwnProperty("name"))return c.name;var d=(""+c).match(/^function\s*([^\s(]+)/);return null===d?"":d[1]}(c);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(p,'" 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(p,'" class.')),d}return null}(c);return null!==g?function(){return g.factory(c)}:function(){return new c}}(c);throw new xe(204,!1)}function v3(c,d,p){var g=void 0;if(o_(c)){var b=ve(c);return Xi(b)||SE(b)}if(m1(c))g=function(){return ve(c.useValue)};else if(function aF(c){return!(!c||!c.useFactory)}(c))g=function(){return c.useFactory.apply(c,(0,y.Z)(HI(c.deps||[])))};else if(function y3(c){return!(!c||!c.useExisting)}(c))g=function(){return rs(ve(c.useExisting))};else{var Z=ve(c&&(c.useClass||c.provide));if(!function b3(c){return!!c.deps}(c))return Xi(Z)||SE(Z);g=function(){return(0,K.Z)(Z,(0,y.Z)(HI(c.deps)))}}return g}function kf(c,d){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:d,multi:p?[]:void 0}}function m1(c){return null!==c&&"object"==typeof c&&gv in c}function o_(c){return"function"==typeof c}function lF(c){return"function"==typeof c||"object"==typeof c&&c instanceof wa}var Bs=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,null,[{key:"create",value:function(p,g){var b;if(Array.isArray(p))return h1({name:""},g,p,"");var Z=null!==(b=p.name)&&void 0!==b?b:"";return h1({name:Z},p.parent,p.providers,Z)}}]),c}();Bs.THROW_IF_NOT_FOUND=_f,Bs.NULL=new kE,Bs.\u0275prov=yt({token:Bs,providedIn:"any",factory:function(){return rs(bc)}}),Bs.__NG_ELEMENT_ID__=-1;function M3(c,d,p,g,b,Z){var Q=p[1];p[20]=c;var he=r_(Q,20,2,"#host",null),Ie=he.mergedAttrs=d.hostAttrs;null!==Ie&&(Bv(he,Ie,!0),null!==c&&(Au(b,c,Ie),null!==he.classes&&VT(b,c,he.classes),null!==he.styles&&DP(b,c,he.styles)));var et=g.createRenderer(c,d),Tt=n_(p,XP(d),null,d.onPush?64:16,p[20],he,g,et,Z||null,null);return Q.firstCreatePass&&(aT(av(he,p),Q,d.type),s3(Q,he),fE(he,p.length,1)),f1(p,Tt),p[20]=Tt}function _1(c,d,p,g,b){var Z=p[1],Q=function VB(c,d,p){var g=Ai();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),pE(c,g,d,i_(c,d,1,null),p));var Z=hf(d,c,g.directiveStart,g);Ns(Z,d);var Q=Di(g,d);return Q&&Ns(Q,d),Z}(Z,p,d);if(g.components.push(Q),c[8]=Q,b&&b.forEach(function(et){return et(Q,d)}),d.contentQueries){var le=Ai();d.contentQueries(1,Q,le.directiveStart)}var he=Ai();!Z.firstCreatePass||null===d.hostBindings&&null===d.hostAttrs||(Ts(he.index),o3(p[1],he,0,he.directiveStart,he.directiveEnd,d),a3(d,Q));return Q}function S3(c,d){return{components:[],scheduler:c||Ym,clean:wl,playerHandler:d||null,flags:0}}function bF(c,d){ff(jb(c)[1],Ai())}function g1(c){return Object.getPrototypeOf(c.prototype).constructor}function DE(c){for(var d=g1(c.type),p=!0,g=[c];d;){var b=void 0;if(Ki(c))b=d.\u0275cmp||d.\u0275dir;else{if(d.\u0275cmp){throw new xe(903,"")}b=d.\u0275dir}if(b){if(p){g.push(b);var Q=c;Q.inputs=v1(c.inputs),Q.declaredInputs=v1(c.declaredInputs),Q.outputs=v1(c.outputs);var le=b.hostBindings;le&&x3(c,le);var he=b.viewQuery,Ie=b.contentQueries;if(he&&wF(c,he),Ie&&kF(c,Ie),$(c.inputs,b.inputs),$(c.declaredInputs,b.declaredInputs),$(c.outputs,b.outputs),Ki(b)&&b.data.animation){var et=c.data;et.animation=(et.animation||[]).concat(b.data.animation)}}var Tt=b.features;if(Tt)for(var Ot=0;Ot<Tt.length;Ot++){var zt=Tt[Ot];zt&&zt.ngInherit&&zt(c),zt===DE&&(p=!1)}}d=Object.getPrototypeOf(d)}!function Tf(c){for(var d=0,p=null,g=c.length-1;g>=0;g--){var b=c[g];b.hostVars=d+=b.hostVars,b.hostAttrs=uc(b.hostAttrs,p=uc(p,b.hostAttrs))}}(g)}function v1(c){return c===Ue?{}:c===Ee?[]:c}function wF(c,d){var p=c.viewQuery;c.viewQuery=p?function(g,b){d(g,b),p(g,b)}:d}function kF(c,d){var p=c.contentQueries;c.contentQueries=p?function(g,b,Z){d(g,b,Z),p(g,b,Z)}:d}function x3(c,d){var p=c.hostBindings;c.hostBindings=p?function(g,b){d(g,b),p(g,b)}:d}var TF=["providersResolver"],EF=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function MF(c){var d=g1(c.type),p=void 0;p=Ki(c)?d.\u0275cmp:d.\u0275dir;var Z,g=c,b=(0,D.Z)(TF);try{for(b.s();!(Z=b.n()).done;){var Q=Z.value;g[Q]=p[Q]}}catch(et){b.e(et)}finally{b.f()}if(Ki(p)){var he,le=(0,D.Z)(EF);try{for(le.s();!(he=le.n()).done;){var Ie=he.value;g[Ie]=p[Ie]}}catch(et){le.e(et)}finally{le.f()}}}var y1=null;function Ef(){if(!y1){var c=Yn.Symbol;if(c&&c.iterator)y1=c.iterator;else for(var d=Object.getOwnPropertyNames(Map.prototype),p=0;p<d.length;++p){var g=d[p];"entries"!==g&&"size"!==g&&Map.prototype[g]===Map.prototype.entries&&(y1=g)}}return y1}function a_(c){return!!A3(c)&&(Array.isArray(c)||!(c instanceof Map)&&Ef()in c)}function A3(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function wc(c,d,p){return c[d]=p}function l_(c,d){return c[d]}function Fs(c,d,p){var g=c[d];return!Object.is(g,p)&&(c[d]=p,!0)}function qp(c,d,p,g){var b=Fs(c,d,p);return Fs(c,d+1,g)||b}function b1(c,d,p,g,b){var Z=qp(c,d,p,g);return Fs(c,d+2,b)||Z}function Nl(c,d,p,g,b,Z){var Q=qp(c,d,p,g);return qp(c,d+2,b,Z)||Q}function u_(c,d,p,g){var b=Nn();if(Fs(b,Vt(),d)){wi();gc(to(),b,c,d,p,g)}return u_}function Kp(c,d){for(var p=!1,g=kt(),b=1;b<d.length;b+=2)p=Fs(c,g++,d[b])||p;if(Ft(g),!p)return fi;for(var Z=d[0],Q=1;Q<d.length;Q+=2)Z+=ke(d[Q])+d[Q+1];return Z}function c_(c,d,p,g){return Fs(c,Vt(),p)?d+ke(p)+g:fi}function d_(c,d,p,g,b,Z){var le=qp(c,kt(),p,b);return Qt(2),le?d+ke(p)+g+ke(b)+Z:fi}function f_(c,d,p,g,b,Z,Q,le){var Ie=b1(c,kt(),p,b,Q);return Qt(3),Ie?d+ke(p)+g+ke(b)+Z+ke(Q)+le:fi}function Mf(c,d,p,g,b,Z,Q,le,he,Ie){var Tt=Nl(c,kt(),p,b,Q,he);return Qt(4),Tt?d+ke(p)+g+ke(b)+Z+ke(Q)+le+ke(he)+Ie:fi}function yd(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt){var Ot=kt(),zt=Nl(c,Ot,p,b,Q,he);return zt=Fs(c,Ot+4,et)||zt,Qt(5),zt?d+ke(p)+g+ke(b)+Z+ke(Q)+le+ke(he)+Ie+ke(et)+Tt:fi}function Jp(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt){var hn=kt(),Fn=Nl(c,hn,p,b,Q,he);return Fn=qp(c,hn+4,et,Ot)||Fn,Qt(6),Fn?d+ke(p)+g+ke(b)+Z+ke(Q)+le+ke(he)+Ie+ke(et)+Tt+ke(Ot)+zt:fi}function p_(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn){var Xn=kt(),fr=Nl(c,Xn,p,b,Q,he);return fr=b1(c,Xn+4,et,Ot,hn)||fr,Qt(7),fr?d+ke(p)+g+ke(b)+Z+ke(Q)+le+ke(he)+Ie+ke(et)+Tt+ke(Ot)+zt+ke(hn)+Fn:fi}function h_(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr){var xn=kt(),Cr=Nl(c,xn,p,b,Q,he);return Cr=Nl(c,xn+4,et,Ot,hn,Xn)||Cr,Qt(8),Cr?d+ke(p)+g+ke(b)+Z+ke(Q)+le+ke(he)+Ie+ke(et)+Tt+ke(Ot)+zt+ke(hn)+Fn+ke(Xn)+fr:fi}function C1(c,d,p,g,b,Z){var Q=Nn(),le=c_(Q,d,p,g);le!==fi&&gc(to(),Q,c,le,b,Z);return C1}function AE(c,d,p,g,b,Z,Q,le){var he=Nn(),Ie=d_(he,d,p,g,b,Z);Ie!==fi&&gc(to(),he,c,Ie,Q,le);return AE}function OE(c,d,p,g,b,Z,Q,le,he,Ie){var et=Nn(),Tt=f_(et,d,p,g,b,Z,Q,le);Tt!==fi&&gc(to(),et,c,Tt,he,Ie);return OE}function O3(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt){var Ot=Nn(),zt=Mf(Ot,d,p,g,b,Z,Q,le,he,Ie);zt!==fi&&gc(to(),Ot,c,zt,et,Tt);return O3}function I3(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt){var hn=Nn(),Fn=yd(hn,d,p,g,b,Z,Q,le,he,Ie,et,Tt);Fn!==fi&&gc(to(),hn,c,Fn,Ot,zt);return I3}function IE(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn){var Xn=Nn(),fr=Jp(Xn,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt);fr!==fi&&gc(to(),Xn,c,fr,hn,Fn);return IE}function PE(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr){var xn=Nn(),Cr=p_(xn,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn);Cr!==fi&&gc(to(),xn,c,Cr,Xn,fr);return PE}function P3(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr,xn,Cr){var ki=Nn(),Ni=h_(ki,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr);Ni!==fi&&gc(to(),ki,c,Ni,xn,Cr);return P3}function R3(c,d,p,g){var b=Nn(),Z=Kp(b,d);Z!==fi&&gc(to(),b,c,Z,p,g);return R3}function RE(c,d,p,g,b,Z,Q,le){var he=Nn(),Ie=wi(),et=c+20,Tt=Ie.firstCreatePass?function L3(c,d,p,g,b,Z,Q,le,he){var Ie=d.consts,et=r_(d,c,4,Q||null,an(Ie,le));i3(d,p,et,an(Ie,he)),ff(d,et);var Tt=et.tViews=Nv(2,et,g,b,Z,d.directiveRegistry,d.pipeRegistry,null,d.schemas,Ie);return null!==d.queries&&(d.queries.template(d,et),Tt.queries=d.queries.embeddedTView(et)),et}(et,Ie,he,d,p,g,b,Z,Q):Ie.data[et];ji(Tt,!1);var Ot=he[11].createComment("");i1(Ie,he,Ot,Tt),Ns(Ot,he),f1(he,he[et]=d3(Ot,he,Ot,Tt)),Li(Tt)&&c1(Ie,he,Tt),null!=Q&&d1(he,Tt,le)}function N3(c){return Le(function ie(){return Ir.lFrame.contextLView}(),20+c)}var B3={"\u0275\u0275defineInjectable":yt,"\u0275\u0275defineInjector":cn,"\u0275\u0275inject":rs,"\u0275\u0275invalidFactoryDep":UI,resolveForwardRef:ve};function xF(c,d){var p=null,g=null;c.hasOwnProperty(Bt)||Object.defineProperty(c,Bt,{get:function(){if(null===p){var Z=fs();p=Z.compileInjectable(B3,"ng:///".concat(c.name,"/\u0275prov.js"),function AF(c,d){var p=d||{providedIn:null},g={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(LE(p)||NE(p))&&void 0!==p.deps&&(g.deps=Lb(p.deps)),LE(p)?g.useClass=p.useClass:function ZE(c){return DF in c}(p)?g.useValue=p.useValue:NE(p)?g.useFactory=p.useFactory:function F3(c){return void 0!==c.useExisting}(p)&&(g.useExisting=p.useExisting),g}(c,d))}return p}}),c.hasOwnProperty(rr)||Object.defineProperty(c,rr,{get:function(){if(null===g){var Z=fs();g=Z.compileFactory(B3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:Rb(c),target:Z.FactoryTarget.Injectable})}return g},configurable:!0})}var DF=W({provide:String,useValue:W});function LE(c){return void 0!==c.useClass}function NE(c){return void 0!==c.useFactory}var OF=Sb("Injectable",void 0,void 0,void 0,function(c,d){return xF(c,d)});function BE(c){if(c.length>1){var d=function U3(c){for(var d=[],p=0;p<c.length;++p){if(d.indexOf(c[p])>-1)return d.push(c[p]),d;d.push(c[p])}return d}(c.slice().reverse());return" ("+d.map(function(g){return ce(g.token)}).join(" -> ")+")"}return""}function FE(c,d,p,g){var b=[d],Z=p(b),Q=g?function xT(c,d){var p="".concat(c," caused by: ").concat(d instanceof Error?d.message:d),g=Error(p);return g[vl]=d,g}(Z,g):Error(Z);return Q.addKey=IF,Q.keys=b,Q.injectors=[c],Q.constructResolvingMessage=p,Q[vl]=g,Q}function IF(c,d){this.injectors.push(c),this.keys.push(d),this.message=this.constructResolvingMessage(this.keys)}function H3(c,d){for(var p=[],g=0,b=d.length;g<b;g++){var Z=d[g];Z&&0!=Z.length?p.push(Z.map(ce).join(" ")):p.push("?")}return Error("Cannot resolve all parameters for '"+ce(c)+"'("+p.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ce(c)+"' is decorated with Injectable.")}function j3(c,d){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(d))}var bd=function(){function c(d,p){if((0,M.Z)(this,c),this.token=d,this.id=p,!d)throw new Error("Token must be defined!");this.displayName=ce(this.token)}return(0,F.Z)(c,null,[{key:"get",value:function(p){return UE.get(ve(p))}},{key:"numberOfKeys",get:function(){return UE.numberOfKeys}}]),c}(),z3=function(){function c(){(0,M.Z)(this,c),this._allKeys=new Map}return(0,F.Z)(c,[{key:"get",value:function(p){if(p instanceof bd)return p;if(this._allKeys.has(p))return this._allKeys.get(p);var g=new bd(p,bd.numberOfKeys);return this._allKeys.set(p,g),g}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),UE=new z3,W3=function(){function c(d){(0,M.Z)(this,c),this.reflectionCapabilities=d}return(0,F.Z)(c,[{key:"updateCapabilities",value:function(p){this.reflectionCapabilities=p}},{key:"factory",value:function(p){return this.reflectionCapabilities.factory(p)}},{key:"parameters",value:function(p){return this.reflectionCapabilities.parameters(p)}},{key:"annotations",value:function(p){return this.reflectionCapabilities.annotations(p)}},{key:"propMetadata",value:function(p){return this.reflectionCapabilities.propMetadata(p)}},{key:"hasLifecycleHook",value:function(p,g){return this.reflectionCapabilities.hasLifecycleHook(p,g)}},{key:"getter",value:function(p){return this.reflectionCapabilities.getter(p)}},{key:"setter",value:function(p){return this.reflectionCapabilities.setter(p)}},{key:"method",value:function(p){return this.reflectionCapabilities.method(p)}},{key:"importUri",value:function(p){return this.reflectionCapabilities.importUri(p)}},{key:"resourceUri",value:function(p){return this.reflectionCapabilities.resourceUri(p)}},{key:"resolveIdentifier",value:function(p,g,b,Z){return this.reflectionCapabilities.resolveIdentifier(p,g,b,Z)}},{key:"resolveEnum",value:function(p,g){return this.reflectionCapabilities.resolveEnum(p,g)}}]),c}(),HE=new W3(new Ob),jE=function(){function c(d,p,g){(0,M.Z)(this,c),this.key=d,this.optional=p,this.visibility=g}return(0,F.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),V3=[],zE=(0,F.Z)(function c(d,p,g){(0,M.Z)(this,c),this.key=d,this.resolvedFactories=p,this.multiProvider=g,this.resolvedFactory=this.resolvedFactories[0]}),BF=(0,F.Z)(function c(d,p){(0,M.Z)(this,c),this.factory=d,this.dependencies=p});function FF(c){var d,p;if(c.useClass){var g=ve(c.useClass);d=HE.factory(g),p=VE(g)}else c.useExisting?(d=function(Z){return Z},p=[jE.fromKey(bd.get(c.useExisting))]):c.useFactory?(d=c.useFactory,p=function m_(c,d){if(d){var p=d.map(function(g){return[g]});return d.map(function(g){return YE(c,g,p)})}return VE(c)}(c.useFactory,c.deps)):(d=function(){return c.useValue},p=V3);return new BF(d,p)}function UF(c){return new zE(bd.get(c.provide),[FF(c)],c.multi||!1)}function HF(c){var g=function jF(c,d){for(var p=0;p<c.length;p++){var g=c[p],b=d.get(g.key.id);if(b){if(g.multiProvider!==b.multiProvider)throw j3(b,g);if(g.multiProvider)for(var Z=0;Z<g.resolvedFactories.length;Z++)b.resolvedFactories.push(g.resolvedFactories[Z]);else d.set(g.key.id,g)}else{var Q=void 0;Q=g.multiProvider?new zE(g.key,g.resolvedFactories.slice(),g.multiProvider):g,d.set(g.key.id,Q)}}return d}(WE(c,[]).map(UF),new Map);return Array.from(g.values())}function WE(c,d){return c.forEach(function(p){if(p instanceof xb)d.push({provide:p,useClass:p});else if(p&&"object"==typeof p&&void 0!==p.provide)d.push(p);else{if(!Array.isArray(p))throw function ZF(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(p);WE(p,d)}}),d}function VE(c){var d=HE.parameters(c);if(!d)return[];if(d.some(function(p){return null==p}))throw H3(c,d);return d.map(function(p){return YE(c,p,d)})}function YE(c,d,p){var g=null,b=!1;if(!Array.isArray(d))return GE(d instanceof yv?d.token:d,b,null);for(var Z=null,Q=0;Q<d.length;++Q){var le=d[Q];le instanceof xb?g=le:le instanceof yv?g=le.token:le instanceof Zm?b=!0:le instanceof Pb||le instanceof Nm?Z=le:le instanceof wa&&(g=le)}if(null!=(g=ve(g)))return GE(g,b,Z);throw H3(c,p)}function GE(c,d,p){return new jE(bd.get(c),d,p)}var __={},qE=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,null,[{key:"resolve",value:function(p){return HF(p)}},{key:"resolveAndCreate",value:function(p,g){var b=c.resolve(p);return c.fromResolvedProviders(b,g)}},{key:"fromResolvedProviders",value:function(p,g){return new KE(p,g)}}]),c}(),KE=function(){function c(d,p){(0,M.Z)(this,c),this._constructionCounter=0,this._providers=d,this.parent=p||null;var g=d.length;this.keyIds=[],this.objs=[];for(var b=0;b<g;b++)this.keyIds[b]=d[b].key.id,this.objs[b]=__}return(0,F.Z)(c,[{key:"get",value:function(p){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f;return this._getByKey(bd.get(p),null,g)}},{key:"resolveAndCreateChild",value:function(p){var g=qE.resolve(p);return this.createChildFromResolved(g)}},{key:"createChildFromResolved",value:function(p){var g=new c(p);return g.parent=this,g}},{key:"resolveAndInstantiate",value:function(p){return this.instantiateResolved(qE.resolve([p])[0])}},{key:"instantiateResolved",value:function(p){return this._instantiateProvider(p)}},{key:"getProviderAtIndex",value:function(p){if(p<0||p>=this._providers.length)throw function NF(c){return Error("Index ".concat(c," is out-of-bounds."))}(p);return this._providers[p]}},{key:"_new",value:function(p){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function RF(c,d){return FE(c,d,function(p){return"Cannot instantiate cyclic dependency!".concat(BE(p))})}(this,p.key);return this._instantiateProvider(p)}},{key:"_getMaxNumberOfObjects",value:function(){return this.objs.length}},{key:"_instantiateProvider",value:function(p){if(p.multiProvider){for(var g=[],b=0;b<p.resolvedFactories.length;++b)g[b]=this._instantiate(p,p.resolvedFactories[b]);return g}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,g){var Q,le,b=this,Z=g.factory;try{Q=g.dependencies.map(function(he){return b._getByReflectiveDependency(he)})}catch(he){throw he.addKey&&he.addKey(this,p.key),he}try{le=Z.apply(void 0,(0,y.Z)(Q))}catch(he){throw function LF(c,d,p,g){return FE(c,g,function(b){var Z=ce(b[0].token);return"".concat(d.message,": Error during instantiation of ").concat(Z,"!").concat(BE(b),".")},d)}(this,he,he.stack,p.key)}return le}},{key:"_getByReflectiveDependency",value:function(p){return this._getByKey(p.key,p.visibility,p.optional?null:_f)}},{key:"_getByKey",value:function(p,g,b){return p===c.INJECTOR_KEY?this:g instanceof Pb?this._getByKeySelf(p,b):this._getByKeyDefault(p,b,g)}},{key:"_getObjByKeyId",value:function(p){for(var g=0;g<this.keyIds.length;g++)if(this.keyIds[g]===p)return this.objs[g]===__&&(this.objs[g]=this._new(this._providers[g])),this.objs[g];return __}},{key:"_throwOrNull",value:function(p,g){if(g!==_f)return g;throw function PF(c,d){return FE(c,d,function(p){var g=ce(p[0].token);return"No provider for ".concat(g,"!").concat(BE(p))})}(this,p)}},{key:"_getByKeySelf",value:function(p,g){var b=this._getObjByKeyId(p.id);return b!==__?b:this._throwOrNull(p,g)}},{key:"_getByKeyDefault",value:function(p,g,b){var Z;for(Z=b instanceof Nm?this.parent:this;Z instanceof c;){var Q=Z,le=Q._getObjByKeyId(p.id);if(le!==__)return le;Z=Q.parent}return null!==Z?Z.get(p.token,g):this._throwOrNull(p,g)}},{key:"displayName",get:function(){var p=function zF(c,d){for(var p=[],g=0;g<c._providers.length;++g)p[g]=d(c.getProviderAtIndex(g));return p}(this,function(g){return' "'+g.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(p,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function Uv(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default,p=Nn();if(null===p)return rs(c,d);var g=Ai();return sv(g,p,ve(c),d)}function Y3(){throw new Error("invalid")}function JE(c,d,p){var g=Nn();Fs(g,Vt(),d)&&du(wi(),to(),g,c,d,g[11],p,!1);return JE}function QE(c,d,p,g,b){var Q=b?"class":"style";wE(c,p,d.inputs[Q],Q,g)}function w1(c,d,p,g){var b=Nn(),Z=wi(),Q=20+c,le=b[11],he=b[Q]=$b(le,d,function Eb(){return Ir.lFrame.currentNamespace}()),Ie=Z.firstCreatePass?function G3(c,d,p,g,b,Z,Q){var le=d.consts,Ie=r_(d,c,2,b,an(le,Z));return i3(d,p,Ie,an(le,Q)),null!==Ie.attrs&&Bv(Ie,Ie.attrs,!1),null!==Ie.mergedAttrs&&Bv(Ie,Ie.mergedAttrs,!0),null!==d.queries&&d.queries.elementStart(d,Ie),Ie}(Q,Z,b,0,d,p,g):Z.data[Q];ji(Ie,!0);var et=Ie.mergedAttrs;null!==et&&Au(le,he,et);var Tt=Ie.classes;null!==Tt&&VT(le,he,Tt);var Ot=Ie.styles;return null!==Ot&&DP(le,he,Ot),64!=(64&Ie.flags)&&i1(Z,b,he,Ie),0===function ou(){return Ir.lFrame.elementDepthCount}()&&Ns(he,b),function rd(){Ir.lFrame.elementDepthCount++}(),Li(Ie)&&(c1(Z,b,Ie),QP(Z,Ie,b)),null!==g&&d1(b,Ie),w1}function k1(){var c=Ai();ml()?ze():ji(c=c.parent,!1);var d=c;!function oc(){Ir.lFrame.elementDepthCount--}();var p=wi();return p.firstCreatePass&&(ff(p,c),Cn(c)&&p.queries.elementEnd(c)),null!=d.classesWithoutHost&&function ur(c){return 0!=(16&c.flags)}(d)&&QE(p,d,Nn(),d.classesWithoutHost,!0),null!=d.stylesWithoutHost&&function Wr(c){return 0!=(32&c.flags)}(d)&&QE(p,d,Nn(),d.stylesWithoutHost,!1),k1}function XE(c,d,p,g){return w1(c,d,p,g),k1(),XE}function $E(c,d,p){var g=Nn(),b=wi(),Z=c+20,Q=b.firstCreatePass?function bW(c,d,p,g,b){var Z=d.consts,Q=an(Z,g),le=r_(d,c,8,"ng-container",Q);return null!==Q&&Bv(le,Q,!0),i3(d,p,le,an(Z,b)),null!==d.queries&&d.queries.elementStart(d,le),le}(Z,b,g,d,p):b.data[Z];ji(Q,!0);var le=g[Z]=g[11].createComment("");return i1(b,g,le,Q),Ns(le,g),Li(Q)&&(c1(b,g,Q),QP(b,Q,g)),null!=p&&d1(g,Q),$E}function T1(){var c=Ai(),d=wi();return ml()?ze():ji(c=c.parent,!1),d.firstCreatePass&&(ff(d,c),Cn(c)&&d.queries.elementEnd(c)),T1}function q3(c,d,p){return $E(c,d,p),T1(),q3}function WF(){return Nn()}function eM(c){return!!c&&"function"==typeof c.then}function K3(c){return!!c&&"function"==typeof c.subscribe}KE.INJECTOR_KEY=bd.get(Bs);var VF=K3;function J3(c,d,p,g){var b=Nn(),Z=wi(),Q=Ai();return tM(Z,b,b[11],Q,c,d,!!p,g),J3}function Q3(c,d){var p=Ai(),g=Nn(),b=wi();return tM(b,g,m3(di(b.data),p,g),p,c,d,!1),Q3}function tM(c,d,p,g,b,Z,Q,le){var he=Li(g),et=c.firstCreatePass&&h3(c),Tt=d[8],Ot=p3(d),zt=!0;if(3&g.type||le){var hn=Di(g,d),Fn=le?le(hn):hn,Xn=Ot.length,fr=le?function(tC){return le(ar(tC[g.index]))}:g.index;if(Pn(p)){var xn=null;if(!le&&he&&(xn=function CW(c,d,p,g){var b=c.cleanup;if(null!=b)for(var Z=0;Z<b.length-1;Z+=2){var Q=b[Z];if(Q===p&&b[Z+1]===g){var le=d[7],he=b[Z+2];return le.length>he?le[he]:null}"string"==typeof Q&&(Z+=2)}return null}(c,d,b,g.index)),null!==xn){(xn.__ngLastListenerFn__||xn).__ngNextListenerFn__=Z,xn.__ngLastListenerFn__=Z,zt=!1}else{Z=X3(g,d,Tt,Z,!1);var ki=p.listen(Fn,b,Z);Ot.push(Z,ki),et&&et.push(b,fr,Xn,Xn+1)}}else Z=X3(g,d,Tt,Z,!0),Fn.addEventListener(b,Z,Q),Ot.push(Z),et&&et.push(b,fr,Xn,Q)}else Z=X3(g,d,Tt,Z,!1);var Po,Ni=g.outputs;if(zt&&null!==Ni&&(Po=Ni[b])){var is=Po.length;if(is)for(var nl=0;nl<is;nl+=2){var Ul=Po[nl],Hl=Po[nl+1],cy=d[Ul][Hl].subscribe(Z),dy=Ot.length;Ot.push(Z,cy),et&&et.push(b,g.index,dy,-(dy+1))}}}function nM(c,d,p,g){try{return wo(6,d,p),!1!==p(g)}catch(b){return CE(c,b),!1}finally{wo(7,d,p)}}function X3(c,d,p,g,b){return function Z(Q){if(Q===Function)return g;var le=2&c.flags?Ce(c.index,d):d;0==(32&d[2])&&gE(le);for(var he=nM(d,p,g,Q),Ie=Z.__ngNextListenerFn__;Ie;)he=nM(d,p,Ie,Q)&&he,Ie=Ie.__ngNextListenerFn__;return b&&!1===he&&(Q.preventDefault(),Q.returnValue=!1),he}}function YF(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ti(c)}function wW(c,d){for(var p=null,g=function RP(c){var d=c.attrs;if(null!=d){var p=d.indexOf(5);if(0==(1&p))return d[p+1]}return null}(c),b=0;b<d.length;b++){var Z=d[b];if("*"!==Z){if(null===g?PP(c,Z,!0):o1(g,Z))return b}else p=b}return p}function GF(c){var d=Nn()[16][6];if(!d.projection)for(var p=c?c.length:1,g=d.projection=Rm(p,null),b=g.slice(),Z=d.child;null!==Z;){var Q=c?wW(Z,c):0;null!==Q&&(b[Q]?b[Q].projectionNext=Z:g[Q]=Z,b[Q]=Z),Z=Z.next}}function $3(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,g=Nn(),b=wi(),Z=r_(b,20+c,16,null,p||null);null===Z.projection&&(Z.projection=d),ze(),64!=(64&Z.flags)&&MB(b,g,Z)}function rM(c,d,p){return iM(c,"",d,"",p),rM}function iM(c,d,p,g,b){var Z=Nn(),Q=c_(Z,d,p,g);Q!==fi&&du(wi(),to(),Z,c,Q,Z[11],b,!1);return iM}function e6(c,d,p,g,b,Z,Q){var le=Nn(),he=d_(le,d,p,g,b,Z);he!==fi&&du(wi(),to(),le,c,he,le[11],Q,!1);return e6}function qF(c,d,p,g,b,Z,Q,le,he){var Ie=Nn(),et=f_(Ie,d,p,g,b,Z,Q,le);et!==fi&&du(wi(),to(),Ie,c,et,Ie[11],he,!1);return qF}function KF(c,d,p,g,b,Z,Q,le,he,Ie,et){var Tt=Nn(),Ot=Mf(Tt,d,p,g,b,Z,Q,le,he,Ie);Ot!==fi&&du(wi(),to(),Tt,c,Ot,Tt[11],et,!1);return KF}function JF(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot){var zt=Nn(),hn=yd(zt,d,p,g,b,Z,Q,le,he,Ie,et,Tt);hn!==fi&&du(wi(),to(),zt,c,hn,zt[11],Ot,!1);return JF}function QF(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn){var Fn=Nn(),Xn=Jp(Fn,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt);Xn!==fi&&du(wi(),to(),Fn,c,Xn,Fn[11],hn,!1);return QF}function XF(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn){var fr=Nn(),xn=p_(fr,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn);xn!==fi&&du(wi(),to(),fr,c,xn,fr[11],Xn,!1);return XF}function $F(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr,xn){var Cr=Nn(),ki=h_(Cr,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr);ki!==fi&&du(wi(),to(),Cr,c,ki,Cr[11],xn,!1);return $F}function e4(c,d,p){var g=Nn(),b=Kp(g,d);b!==fi&&du(wi(),to(),g,c,b,g[11],p,!1);return e4}function kW(c,d,p,g,b,Z){var Q=Z?d.classBindings:d.styleBindings,le=Bu(Q),he=vd(Q);c[g]=p;var et,Ie=!1;if(Array.isArray(p)){var Tt=p;(null===(et=Tt[1])||Lp(Tt,et)>0)&&(Ie=!0)}else et=p;if(b)if(0!==he){var zt=Bu(c[le+1]);c[g+1]=hi(zt,le),0!==zt&&(c[zt+1]=QT(c[zt+1],g)),c[le+1]=function gd(c,d){return 131071&c|d<<17}(c[le+1],g)}else c[g+1]=hi(le,0),0!==le&&(c[le+1]=QT(c[le+1],g)),le=g;else c[g+1]=hi(he,0),0===le?le=g:c[he+1]=QT(c[he+1],g),he=g;Ie&&(c[g+1]=a1(c[g+1])),t4(c,et,g,!0,Z),t4(c,et,g,!1,Z),function TW(c,d,p,g,b){var Z=b?c.residualClasses:c.residualStyles;null!=Z&&"string"==typeof d&&Lp(Z,d)>=0&&(p[g+1]=Iv(p[g+1]))}(d,et,c,g,Z),Q=hi(le,he),Z?d.classBindings=Q:d.styleBindings=Q}function t4(c,d,p,g,b){for(var Z=c[p+1],Q=null===d,le=g?Bu(Z):vd(Z),he=!1;0!==le&&(!1===he||Q);){var Ie=c[le],et=c[le+1];EW(Ie,d)&&(he=!0,c[le+1]=g?Iv(et):a1(et)),le=g?Bu(et):vd(et)}he&&(c[p+1]=g?a1(Z):Iv(Z))}function EW(c,d){return null===c||null==d||(Array.isArray(c)?c[1]:c)===d||!(!Array.isArray(c)||"string"!=typeof d)&&Lp(c,d)>=0}var hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function t6(c){return c.substring(hs.key,hs.keyEnd)}function MW(c){return c.substring(hs.value,hs.valueEnd)}function n4(c,d){var p=hs.textEnd;return p===d?-1:(d=hs.keyEnd=function DW(c,d,p){for(;d<p&&c.charCodeAt(d)>32;)d++;return d}(c,hs.key=d,p),Hv(c,d,p))}function r4(c,d){var p=hs.textEnd,g=hs.key=Hv(c,d,p);return p===g?-1:(g=hs.keyEnd=function AW(c,d,p){for(var g;d<p&&(45===(g=c.charCodeAt(d))||95===g||(-33&g)>=65&&(-33&g)<=90||g>=48&&g<=57);)d++;return d}(c,g,p),g=o4(c,g,p,58),g=hs.value=Hv(c,g,p),g=hs.valueEnd=function OW(c,d,p){for(var g=-1,b=-1,Z=-1,Q=d,le=Q;Q<p;){var he=c.charCodeAt(Q++);if(59===he)return le;34===he||39===he?le=Q=a4(c,he,Q,p):d===Q-4&&85===Z&&82===b&&76===g&&40===he?le=Q=a4(c,41,Q,p):he>32&&(le=Q),Z=b,b=g,g=-33&he}return le}(c,g,p),o4(c,g,p,59))}function i4(c){hs.key=0,hs.keyEnd=0,hs.value=0,hs.valueEnd=0,hs.textEnd=c.length}function Hv(c,d,p){for(;d<p&&c.charCodeAt(d)<=32;)d++;return d}function o4(c,d,p,g){return(d=Hv(c,d,p))<p&&d++,d}function a4(c,d,p,g){for(var b=-1,Z=p;Z<g;){var Q=c.charCodeAt(Z++);if(Q==d&&92!==b)return Z;b=92==Q&&92===b?0:Q}throw new Error}function n6(c,d,p){return Tc(c,d,p,!1),n6}function oM(c,d){return Tc(c,d,null,!0),oM}function kc(c){Ec(u4,IW,c,!1)}function IW(c,d){for(var p=function xW(c){return i4(c),r4(c,Hv(c,0,hs.textEnd))}(d);p>=0;p=r4(d,p))u4(c,t6(d),MW(d))}function s4(c){Ec(Ll,Cd,c,!0)}function Cd(c,d){for(var p=function SW(c){return i4(c),n4(c,Hv(c,0,hs.textEnd))}(d);p>=0;p=n4(d,p))Ll(c,t6(d),!0)}function Tc(c,d,p,g){var b=Nn(),Z=wi(),Q=Qt(2);(Z.firstUpdatePass&&r6(Z,c,Q,g),d!==fi&&Fs(b,Q,d))&&aM(Z,Z.data[eo()],b,b[11],c,b[Q+1]=function FW(c,d){return null==c||("string"==typeof d?c+=d:"object"==typeof c&&(c=ce(gl(c)))),c}(d,p),g,Q)}function Ec(c,d,p,g){var b=wi(),Z=Qt(2);b.firstUpdatePass&&r6(b,null,Z,g);var Q=Nn();if(p!==fi&&Fs(Q,Z,p)){var le=b.data[eo()];if(d4(le,g)&&!l4(b,Z)){var Ie=g?le.classesWithoutHost:le.stylesWithoutHost;null!==Ie&&(p=se(Ie,p||"")),QE(b,le,Q,p,g)}else!function BW(c,d,p,g,b,Z,Q,le){b===fi&&(b=Ee);for(var he=0,Ie=0,et=0<b.length?b[0]:null,Tt=0<Z.length?Z[0]:null;null!==et||null!==Tt;){var Ot=he<b.length?b[he+1]:void 0,zt=Ie<Z.length?Z[Ie+1]:void 0,hn=null,Fn=void 0;et===Tt?(he+=2,Ie+=2,Ot!==zt&&(hn=Tt,Fn=zt)):null===Tt||null!==et&&et<Tt?(he+=2,hn=et):(Ie+=2,hn=Tt,Fn=zt),null!==hn&&aM(c,d,p,g,hn,Fn,Q,le),et=he<b.length?b[he]:null,Tt=Ie<Z.length?Z[Ie]:null}}(b,le,Q,Q[11],Q[Z+1],Q[Z+1]=function NW(c,d,p){if(null==p||""===p)return Ee;var g=[],b=gl(p);if(Array.isArray(b))for(var Z=0;Z<b.length;Z++)c(g,b[Z],!0);else if("object"==typeof b)for(var Q in b)b.hasOwnProperty(Q)&&c(g,Q,b[Q]);else"string"==typeof b&&d(g,b);return g}(c,d,p),g,Z)}}function l4(c,d){return d>=c.expandoStartIndex}function r6(c,d,p,g){var b=c.data;if(null===b[p+1]){var Z=b[eo()],Q=l4(c,p);d4(Z,g)&&null===d&&!Q&&(d=!1),d=function PW(c,d,p,g){var b=di(c),Z=g?d.residualClasses:d.residualStyles;if(null===b){0===(g?d.classBindings:d.styleBindings)&&(p=E1(p=i6(null,c,d,p,g),d.attrs,g),Z=null)}else{var le=d.directiveStylingLast;if(-1===le||c[le]!==b)if(p=i6(b,c,d,p,g),null===Z){var Ie=function RW(c,d,p){var g=p?d.classBindings:d.styleBindings;if(0!==vd(g))return c[Bu(g)]}(c,d,g);void 0!==Ie&&Array.isArray(Ie)&&function LW(c,d,p,g){var b=p?d.classBindings:d.styleBindings;c[Bu(b)]=g}(c,d,g,Ie=E1(Ie=i6(null,c,d,Ie[1],g),d.attrs,g))}else Z=function ZW(c,d,p){for(var g=void 0,b=d.directiveEnd,Z=1+d.directiveStylingLast;Z<b;Z++){g=E1(g,c[Z].hostAttrs,p)}return E1(g,d.attrs,p)}(c,d,g)}return void 0!==Z&&(g?d.residualClasses=Z:d.residualStyles=Z),p}(b,Z,d,g),kW(b,Z,d,p,Q,g)}}function i6(c,d,p,g,b){var Z=null,Q=p.directiveEnd,le=p.directiveStylingLast;for(-1===le?le=p.directiveStart:le++;le<Q&&(g=E1(g,(Z=d[le]).hostAttrs,b),Z!==c);)le++;return null!==c&&(p.directiveStylingLast=le),g}function E1(c,d,p){var g=p?1:2,b=-1;if(null!==d)for(var Z=0;Z<d.length;Z++){var Q=d[Z];"number"==typeof Q?b=Q:b===g&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),Ll(c,Q,!!p||d[++Z]))}return void 0===c?null:c}function u4(c,d,p){Ll(c,d,gl(p))}function aM(c,d,p,g,b,Z,Q,le){if(3&d.type){var he=c.data,Ie=he[le+1];if(!sM(UP(Ie)?c4(he,d,p,b,vd(Ie),Q):void 0))sM(Z)||JT(Ie)&&(Z=c4(he,null,p,b,le,Q)),function WT(c,d,p,g,b){var Z=Pn(c);if(d)b?Z?c.addClass(p,g):p.classList.add(g):Z?c.removeClass(p,g):p.classList.remove(g);else{var Q=-1===g.indexOf("-")?void 0:Sv.DashCase;if(null==b)Z?c.removeStyle(p,g,Q):p.style.removeProperty(g);else{var le="string"==typeof b&&b.endsWith("!important");le&&(b=b.slice(0,-10),Q|=Sv.Important),Z?c.setStyle(p,g,b,Q):p.style.setProperty(g,b,le?"important":"")}}}(g,Q,So(eo(),p),b,Z)}}function c4(c,d,p,g,b,Z){for(var Q=null===d,le=void 0;b>0;){var he=c[b],Ie=Array.isArray(he),et=Ie?he[1]:he,Tt=null===et,Ot=p[b+1];Ot===fi&&(Ot=Tt?Ee:void 0);var zt=Tt?uT(Ot,g):et===g?Ot:void 0;if(Ie&&!sM(zt)&&(zt=uT(he,g)),sM(zt)&&(le=zt,Q))return le;var hn=c[b+1];b=Q?Bu(hn):vd(hn)}if(null!==d){var Fn=Z?d.residualClasses:d.residualStyles;null!=Fn&&(le=uT(Fn,g))}return le}function sM(c){return void 0!==c}function d4(c,d){return 0!=(c.flags&(d?16:32))}function f4(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=Nn(),g=wi(),b=c+20,Z=g.firstCreatePass?r_(g,b,1,d,null):g.data[b],Q=p[b]=Xb(p[11],d);i1(g,p,Q,Z),ji(Z,!1)}function o6(c){return lM("",c,""),o6}function lM(c,d,p){var g=Nn(),b=c_(g,c,d,p);return b!==fi&&yc(g,eo(),b),lM}function uM(c,d,p,g,b){var Z=Nn(),Q=d_(Z,c,d,p,g,b);return Q!==fi&&yc(Z,eo(),Q),uM}function a6(c,d,p,g,b,Z,Q){var le=Nn(),he=f_(le,c,d,p,g,b,Z,Q);return he!==fi&&yc(le,eo(),he),a6}function Qp(c,d,p,g,b,Z,Q,le,he){var Ie=Nn(),et=Mf(Ie,c,d,p,g,b,Z,Q,le,he);return et!==fi&&yc(Ie,eo(),et),Qp}function M1(c,d,p,g,b,Z,Q,le,he,Ie,et){var Tt=Nn(),Ot=yd(Tt,c,d,p,g,b,Z,Q,le,he,Ie,et);return Ot!==fi&&yc(Tt,eo(),Ot),M1}function s6(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot){var zt=Nn(),hn=Jp(zt,c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot);return hn!==fi&&yc(zt,eo(),hn),s6}function cM(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn){var Fn=Nn(),Xn=p_(Fn,c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn);return Xn!==fi&&yc(Fn,eo(),Xn),cM}function l6(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn){var fr=Nn(),xn=h_(fr,c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn);return xn!==fi&&yc(fr,eo(),xn),l6}function p4(c){var d=Nn(),p=Kp(d,c);return p!==fi&&yc(d,eo(),p),p4}function dM(c,d,p){Ec(Ll,Cd,c_(Nn(),c,d,p),!0)}function u6(c,d,p,g,b){Ec(Ll,Cd,d_(Nn(),c,d,p,g,b),!0)}function h4(c,d,p,g,b,Z,Q){Ec(Ll,Cd,f_(Nn(),c,d,p,g,b,Z,Q),!0)}function UW(c,d,p,g,b,Z,Q,le,he){Ec(Ll,Cd,Mf(Nn(),c,d,p,g,b,Z,Q,le,he),!0)}function m4(c,d,p,g,b,Z,Q,le,he,Ie,et){Ec(Ll,Cd,yd(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et),!0)}function _4(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot){Ec(Ll,Cd,Jp(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot),!0)}function g4(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn){Ec(Ll,Cd,p_(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn),!0)}function c6(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn){Ec(Ll,Cd,h_(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn),!0)}function v4(c){Ec(Ll,Cd,Kp(Nn(),c),!0)}function y4(c,d,p){kc(c_(Nn(),c,d,p))}function HW(c,d,p,g,b){kc(d_(Nn(),c,d,p,g,b))}function b4(c,d,p,g,b,Z,Q){kc(f_(Nn(),c,d,p,g,b,Z,Q))}function jW(c,d,p,g,b,Z,Q,le,he){kc(Mf(Nn(),c,d,p,g,b,Z,Q,le,he))}function C4(c,d,p,g,b,Z,Q,le,he,Ie,et){kc(yd(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et))}function w4(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot){kc(Jp(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot))}function zW(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn){kc(p_(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn))}function k4(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn){kc(h_(Nn(),c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn))}function T4(c){kc(Kp(Nn(),c))}function E4(c,d,p,g,b){return Tc(c,c_(Nn(),d,p,g),b,!1),E4}function d6(c,d,p,g,b,Z,Q){return Tc(c,d_(Nn(),d,p,g,b,Z),Q,!1),d6}function f6(c,d,p,g,b,Z,Q,le,he){return Tc(c,f_(Nn(),d,p,g,b,Z,Q,le),he,!1),f6}function M4(c,d,p,g,b,Z,Q,le,he,Ie,et){return Tc(c,Mf(Nn(),d,p,g,b,Z,Q,le,he,Ie),et,!1),M4}function p6(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot){return Tc(c,yd(Nn(),d,p,g,b,Z,Q,le,he,Ie,et,Tt),Ot,!1),p6}function n(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn){return Tc(c,Jp(Nn(),d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt),hn,!1),n}function wt(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn){return Tc(c,p_(Nn(),d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn),Xn,!1),wt}function Zi(c,d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr,xn){return Tc(c,h_(Nn(),d,p,g,b,Z,Q,le,he,Ie,et,Tt,Ot,zt,hn,Fn,Xn,fr),xn,!1),Zi}function Hn(c,d,p){return Tc(c,Kp(Nn(),d),p,!1),Hn}function Oi(c,d,p){var g=Nn();Fs(g,Vt(),d)&&du(wi(),to(),g,c,d,g[11],p,!0);return Oi}function qn(c,d,p){var g=Nn();if(Fs(g,Vt(),d)){var Z=wi(),Q=to();du(Z,Q,g,c,d,m3(di(Z.data),Q,g),p,!0)}return qn}var Io=void 0;var xo,x4=["en",[["a","p"],["AM","PM"],Io],[["AM","PM"],Io,Io],[["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"]],Io,[["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"]],Io,[["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}",Io,"{1} 'at' {0}",Io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function S4(c){var p=Math.floor(Math.abs(c)),g=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===g?1:5}],fo={};function Yr(c){var d=function ka(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=no(d);if(p)return p;var g=d.split("-")[0];if(p=no(g))return p;if("en"===g)return x4;throw new Error('Missing locale data for the locale "'.concat(c,'".'))}function mr(c){return Yr(c)[xo.PluralCase]}function no(c){return c in fo||(fo[c]=Yn.ng&&Yn.ng.common&&Yn.ng.common.locales&&Yn.ng.common.locales[c]),fo[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"}(xo||(xo={}));var Es=["zero","one","two","few","many"];var $s,wd="en-US",Xp={marker:"element"},jv={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}($s||($s={}));var S1=wd;function hM(c,d,p){var g=d.insertBeforeIndex,b=Array.isArray(g)?g[0]:g;return null===b?TP(c,0,p):ar(p[b])}function mM(c,d,p,g,b){var Z=d.insertBeforeIndex;if(Array.isArray(Z)){var Q=g,le=null;if(3&d.type||(le=Q,Q=b),null!==Q&&0==(2&d.flags))for(var he=1;he<Z.length;he++){Yp(c,Q,p[Z[he]],le,!1)}}}function _M(c,d){if(c.push(d),c.length>1)for(var p=c.length-2;p>=0;p--){var g=c[p];gM(g)||D4(g,d)&&null===_6(g)&&g6(g,d.index)}}function gM(c){return!(64&c.type)}function D4(c,d){return gM(d)||c.index>d.index}function _6(c){var d=c.insertBeforeIndex;return Array.isArray(d)?d[0]:d}function g6(c,d){var p=c.insertBeforeIndex;Array.isArray(p)?p[0]=d:(jT(hM,mM),c.insertBeforeIndex=d)}function g_(c,d){var p=c.data[d];return null===p||"string"==typeof p?null:p.hasOwnProperty("currentCaseLViewIndex")?p:p.value}function vM(c,d,p){var g=u1(c,p,64,null,null);return _M(d,g),g}function D1(c,d){var p=d[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function Wv(c){return c>>>17}function yM(c){return(131070&c)>>>1}var y_=0,Vv=0;function Yv(c,d,p,g){for(var b=c[11],Z=0;Z<d.length;Z++){var Q=d[Z++],le=d[Z],he=(Q&$s.COMMENT)===$s.COMMENT,Ie=(Q&$s.APPEND_EAGERLY)===$s.APPEND_EAGERLY,et=Q>>>$s.SHIFT,Tt=c[et];null===Tt&&(Tt=c[et]=he?b.createComment(le):Xb(b,le)),Ie&&null!==p&&Yp(b,p,Tt,g,!1)}}function bM(c,d,p,g){for(var Q,b=p[11],Z=null,le=0;le<d.length;le++){var he=d[le];if("string"==typeof he){var Ie=d[++le];null===p[Ie]&&(p[Ie]=Xb(b,he))}else if("number"==typeof he)switch(1&he){case 0:var et=Wv(he);null===Z&&(Z=et,Q=Jm(b,g));var Tt=void 0,Ot=void 0;if(et===Z?(Tt=g,Ot=Q):(Tt=null,Ot=ar(p[et])),null!==Ot){var zt=yM(he);Yp(b,Ot,p[zt],Tt,!1);var Fn=g_(c,zt);if(null!==Fn&&"object"==typeof Fn){var Xn=D1(Fn,p);null!==Xn&&bM(c,Fn.create[Xn],p,p[Fn.anchorIdx])}}break;case 1:var fr=he>>>1,xn=d[++le],Cr=d[++le];hE(b,So(fr,p),null,null,xn,Cr,null)}else switch(he){case jv:var ki=d[++le],Ni=d[++le];if(null===p[Ni])Ns(p[Ni]=BT(b,ki),p);break;case Xp:var is=d[++le],nl=d[++le];if(null===p[nl])Ns(p[nl]=$b(b,is,null),p)}}}function CM(c,d,p,g,b){for(var Z=0;Z<p.length;Z++){var Q=p[Z],le=p[++Z];if(Q&b)for(var he="",Ie=Z+1;Ie<=Z+le;Ie++){var et=p[Ie];if("string"==typeof et)he+=et;else if("number"==typeof et)if(et<0)he+=ke(d[g-et]);else{var Tt=et>>>2;switch(3&et){case 1:var Ot=p[++Ie],zt=p[++Ie],hn=c.data[Tt];"string"==typeof hn?hE(d[11],d[Tt],null,hn,Ot,he,zt):du(c,hn,d,Ot,he,d[11],zt,!1);break;case 0:var Fn=d[Tt];null!==Fn&&gP(d[11],Fn,he);break;case 2:b6(c,g_(c,Tt),d,he);break;case 3:y6(c,g_(c,Tt),g,d)}}}else{var Xn=p[Z+1];if(Xn>0&&3==(3&Xn)){var xn=g_(c,Xn>>>2);d[xn.currentCaseLViewIndex]<0&&y6(c,xn,g,d)}}Z+=le}}function y6(c,d,p,g){var b=g[d.currentCaseLViewIndex];if(null!==b){var Z=y_;b<0&&(b=g[d.currentCaseLViewIndex]=~b,Z=-1),CM(c,g,d.update[b],p,Z)}}function b6(c,d,p,g){var b=function O4(c,d){var p=c.cases.indexOf(d);if(-1===p)switch(c.type){case 1:var g=function fM(c,d){var p=mr(d)(parseInt(c,10)),g=Es[p];return void 0!==g?g:"other"}(d,function zv(){return S1}());-1===(p=c.cases.indexOf(g))&&"other"!==g&&(p=c.cases.indexOf("other"));break;case 0:p=c.cases.indexOf("other")}return-1===p?null:p}(d,g);if(D1(d,p)!==b&&(wM(c,d,p),p[d.currentCaseLViewIndex]=null===b?null:~b,null!==b)){var Q=p[d.anchorIdx];Q&&bM(c,d.create[b],p,Q)}}function wM(c,d,p){var g=D1(d,p);if(null!==g)for(var b=d.remove[g],Z=0;Z<b.length;Z++){var Q=b[Z];if(Q>0){var le=So(Q,p);null!==le&&SP(p[11],le)}else wM(c,g_(c,~Q),p)}}function A1(){var p,g,c=[],d=-1;function Z(le,he){d=0;var Ie=D1(le,he);g=null!==Ie?le.remove[Ie]:Ee}function Q(){if(d<g.length){var le=g[d++];if(le>0)return p[le];c.push(d,g);var Ie=~le;return Z(p[1].data[Ie],p),Q()}return 0===c.length?null:(g=c.pop(),d=c.pop(),Q())}return function b(le,he){for(p=he;c.length;)c.pop();return Z(le.value,he),Q}}var Sf=/\ufffd(\d+):?\d*\ufffd/gi,w6=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,GW=/\ufffd(\d+)\ufffd/,k6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,b_="\ufffd",C_=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,kM=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,qv=/\uE500/g;function Kv(c,d,p,g,b,Z){var Q=xu(),le=[],he=[],Ie=[[]];b=function go(c,d){if(function po(c){return-1===c}(d))return el(c);var p=c.indexOf(":".concat(d).concat(b_))+2+d.toString().length,g=c.search(new RegExp("".concat(b_,"\\/\\*\\d+:").concat(d).concat(b_)));return el(c.substring(p,g))}(b,Z);for(var et=function T6(c){return c.replace(qv," ")}(b).split(kM),Tt=0;Tt<et.length;Tt++){var Ot=et[Tt];if(0==(1&Tt))for(var zt=EM(Ot),hn=0;hn<zt.length;hn++){var Fn=zt[hn];if(0==(1&hn)){var Xn=Fn;""!==Xn&&Jv(c,Q,Ie[0],le,he,p,Xn)}else{var fr=Fn;if("object"!=typeof fr)throw new Error('Unable to parse ICU expression in "'.concat(b,'" message.'));I1(c,p,he,d,fr,TM(c,Q,Ie[0],p,le,"",!0).index)}}else{var ki=47===Ot.charCodeAt(0),Po=(Ot.charCodeAt(ki?1:0),20+Number.parseInt(Ot.substring(ki?2:1)));if(ki)Ie.shift(),ji(xu(),!1);else{var is=vM(c,Ie[0],Po);Ie.unshift([]),ji(is,!0)}}}c.data[g]={create:le,update:he}}function TM(c,d,p,g,b,Z,Q){var le=i_(c,g,1,null),he=le<<$s.SHIFT,Ie=xu();d===Ie&&(Ie=null),null===Ie&&(he|=$s.APPEND_EAGERLY),Q&&(he|=$s.COMMENT,function Vp(c){void 0===PT&&(PT=c())}(A1)),b.push(he,null===Z?"":Z);var et=u1(c,le,Q?32:1,null===Z?"":Z,null);_M(p,et);var Tt=et.index;return ji(et,!1),null!==Ie&&d!==Ie&&function A4(c,d){var p=c.insertBeforeIndex;null===p?(jT(hM,mM),p=c.insertBeforeIndex=[null,d]):(it(Array.isArray(p),!0,"Expecting array here"),p.push(d))}(Ie,Tt),et}function Jv(c,d,p,g,b,Z,Q){var le=Q.match(Sf),he=TM(c,d,p,Z,g,le?null:Q,!1);le&&Uu(b,Q,he.index,null,0,null)}function Uu(c,d,p,g,b,Z){var Q=c.length,le=Q+1;c.push(null,null);for(var he=Q+2,Ie=d.split(Sf),et=0,Tt=0;Tt<Ie.length;Tt++){var Ot=Ie[Tt];if(1&Tt){var zt=b+parseInt(Ot,10);c.push(-1-zt),et|=Ao(zt)}else""!==Ot&&c.push(Ot)}return c.push(p<<2|(g?1:0)),g&&c.push(g,Z),c[Q]=et,c[le]=c.length-he,et}function w_(c){for(var d=0,p=0;p<c.length;p++){var g=c[p];"number"==typeof g&&g<0&&d++}return d}function Ao(c){return 1<<Math.min(c,31)}function el(c){for(var d,Z,p="",g=0,b=!1;null!==(d=C_.exec(c));)b?d[0]==="".concat(b_,"/*").concat(Z).concat(b_)&&(g=d.index,b=!1):(p+=c.substring(g,d.index+d[0].length),Z=d[1],b=!0);return p+=c.substr(g)}function I1(c,d,p,g,b,Z){var Q=0,le={type:b.type,currentCaseLViewIndex:i_(c,d,1,null),anchorIdx:Z,cases:[],create:[],remove:[],update:[]};(function k_(c,d,p){c.push(Ao(d.mainBinding),2,-1-d.mainBinding,p<<2|2)})(p,b,Z),function x1(c,d,p){var g=c.data[d];null===g?c.data[d]=p:g.value=p}(c,Z,le);for(var he=b.values,Ie=0;Ie<he.length;Ie++){for(var et=he[Ie],Tt=[],Ot=0;Ot<et.length;Ot++){var zt=et[Ot];if("string"!=typeof zt){var hn=Tt.push(zt)-1;et[Ot]="\x3c!--\ufffd".concat(hn,"\ufffd--\x3e")}}Q=P4(c,le,d,p,g,b.cases[Ie],et.join(""),Tt)|Q}Q&&function R4(c,d,p){c.push(d,1,p<<2|3)}(p,Q,Z)}function pr(c){for(var d=[],p=[],g=1,b=0,Z=EM(c=c.replace(k6,function(Ie,et,Tt){return g="select"===Tt?0:1,b=parseInt(et.substr(1),10),""})),Q=0;Q<Z.length;){var le=Z[Q++].trim();1===g&&(le=le.replace(/\s*(?:=)?(\w+)\s*/,"$1")),le.length&&d.push(le);var he=EM(Z[Q++]);d.length>p.length&&p.push(he)}return{type:g,mainBinding:b,cases:d,values:p}}function EM(c){if(!c)return[];var Z,d=0,p=[],g=[],b=/[{}]/g;for(b.lastIndex=0;Z=b.exec(c);){var Q=Z.index;if("}"==Z[0]){if(p.pop(),0==p.length){var le=c.substring(d,Q);k6.test(le)?g.push(pr(le)):g.push(le),d=Q+1}}else{if(0==p.length){var he=c.substring(d,Q);g.push(he),d=Q+1}p.push("{")}}var Ie=c.substring(d);return g.push(Ie),g}function P4(c,d,p,g,b,Z,Q,le){var he=[],Ie=[],et=[];d.cases.push(Z),d.create.push(he),d.remove.push(Ie),d.update.push(et);var Ot=XI(un()).getInertBodyElement(Q),zt=za(Ot)||Ot;return zt?E6(c,d,p,g,he,Ie,et,zt,b,le,0):0}function E6(c,d,p,g,b,Z,Q,le,he,Ie,et){for(var Tt=0,Ot=le.firstChild;Ot;){var zt=i_(c,p,1,null);switch(Ot.nodeType){case Node.ELEMENT_NODE:var hn=Ot,Fn=hn.tagName.toLowerCase();if(rP.hasOwnProperty(Fn)){fu(b,Xp,Fn,he,zt),c.data[zt]=Fn;for(var Xn=hn.attributes,fr=0;fr<Xn.length;fr++){var xn=Xn.item(fr),Cr=xn.name.toLowerCase();!!xn.value.match(Sf)?pd.hasOwnProperty(Cr)&&(iP[Cr]?Uu(Q,xn.value,zt,xn.name,0,Hm):oP[Cr]?Uu(Q,xn.value,zt,xn.name,0,bT):Uu(Q,xn.value,zt,xn.name,0,null)):Mc(b,zt,xn)}Tt=E6(c,d,p,g,b,Z,Q,Ot,zt,Ie,et+1)|Tt,M6(Z,zt,et)}break;case Node.TEXT_NODE:var Ni=Ot.textContent||"",Po=Ni.match(Sf);fu(b,null,Po?"":Ni,he,zt),M6(Z,zt,et),Po&&(Tt=Uu(Q,Ni,zt,null,0,null)|Tt);break;case Node.COMMENT_NODE:var is=GW.exec(Ot.textContent||"");if(is){var Ul=Ie[parseInt(is[1],10)];fu(b,jv,"",he,zt),I1(c,p,g,he,Ul,zt),MM(Z,zt,et)}}Ot=Ot.nextSibling}return Tt}function M6(c,d,p){0===p&&c.push(d)}function MM(c,d,p){0===p&&(c.push(~d),c.push(d))}function fu(c,d,p,g,b){null!==d&&c.push(d),c.push(p,b,function v6(c,d,p){return c|d<<17|p<<1}(0,g,b))}function Mc(c,d,p){c.push(d<<1|1,p.name,p.value)}var L4=/\[(\ufffd.+?\ufffd?)\]/,Z4=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,SM=/{([A-Z0-9_]+)}/g,eh=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,T_=/\/\*/,th=/\d+\:(\d+)/;function S6(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(L4.test(c)){var g={},b=[0];p=p.replace(Z4,function(Z,Q,le){var he=Q||le,Ie=g[he]||[];if(Ie.length||(he.split("|").forEach(function(fr){var xn=fr.match(th),Cr=xn?parseInt(xn[1],10):0,ki=T_.test(fr);Ie.push([Cr,ki,fr])}),g[he]=Ie),!Ie.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(he));for(var et=b[b.length-1],Tt=0,Ot=0;Ot<Ie.length;Ot++)if(Ie[Ot][0]===et){Tt=Ot;break}var zt=(0,U.Z)(Ie[Tt],3),hn=zt[0],Fn=zt[1],Xn=zt[2];return Fn?b.pop():et!==hn&&b.push(hn),Ie.splice(Tt,1),Xn})}return Object.keys(d).length&&(p=(p=(p=p.replace(kl,function(Z,Q,le,he,Ie,et){return d.hasOwnProperty(le)?"".concat(Q).concat(d[le]).concat(et):Z})).replace(SM,function(Z,Q){return d.hasOwnProperty(Q)?d[Q]:Z})).replace(eh,function(Z,Q){if(d.hasOwnProperty(Q)){var le=d[Q];if(!le.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(Z," with key: ").concat(Q));return le.shift()}return Z})),p}function P1(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,g=wi(),b=Nn(),Z=20+c,Q=an(g.consts,d),le=xu();g.firstCreatePass&&Kv(g,null===le?0:le.index,b,Z,Q,p);var he=g.data[Z],Ie=le===b[6]?null:le,et=CP(g,Ie,b),Tt=le&&8&le.type?b[le.index]:null;Yv(b,he.create,et,Tt),Qn(!0)}function xf(){Qn(!1)}function qW(c,d,p){P1(c,d,p),xf()}function nh(c,d){var p=wi();!function I4(c,d,p){var b=Ai().index,Z=[];if(c.firstCreatePass&&null===c.data[d]){for(var Q=0;Q<p.length;Q+=2){var le=p[Q],he=p[Q+1];if(""!==he){if(w6.test(he))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(he,'".'));Uu(Z,he,b,le,w_(Z),null)}}c.data[d]=Z}}(p,c+20,an(p.consts,d))}function x6(c){return function WW(c){c&&(y_|=1<<Math.min(Vv,31)),Vv++}(Fs(Nn(),Vt(),c)),x6}function N4(c){!function VW(c,d,p){if(Vv>0){var g=c.data[p];CM(c,d,Array.isArray(g)?g:g.update,kt()-Vv-1,y_)}y_=0,Vv=0}(wi(),Nn(),c+20)}function Td(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S6(c,d)}function B4(c,d,p){var g=wi();if(g.firstCreatePass){var b=Ki(c);xM(p,g.data,g.blueprint,b,!0),xM(d,g.data,g.blueprint,b,!1)}}function xM(c,d,p,g,b){if(c=ve(c),Array.isArray(c))for(var Z=0;Z<c.length;Z++)xM(c[Z],d,p,g,b);else{var Q=wi(),le=Nn(),he=o_(c)?c:ve(c.provide),Ie=v3(c),et=Ai(),Tt=1048575&et.providerIndexes,Ot=et.directiveStart,zt=et.providerIndexes>>20;if(o_(c)||!c.multi){var hn=new ns(Ie,b,Uv),Fn=Us(he,d,b?Tt:Tt+zt,Ot);-1===Fn?(aT(av(et,le),Q,he),Hu(Q,c,d.length),d.push(he),et.directiveStart++,et.directiveEnd++,b&&(et.providerIndexes+=1048576),p.push(hn),le.push(hn)):(p[Fn]=hn,le[Fn]=hn)}else{var Xn=Us(he,d,Tt+zt,Ot),fr=Us(he,d,Tt,Tt+zt),xn=Xn>=0&&p[Xn],Cr=fr>=0&&p[fr];if(b&&!Cr||!b&&!xn){aT(av(et,le),Q,he);var ki=function Df(c,d,p,g,b){var Z=new ns(c,p,Uv);return Z.multi=[],Z.index=d,Z.componentProviders=0,Ed(Z,b,g&&!p),Z}(b?ih:rh,p.length,b,g,Ie);!b&&Cr&&(p[fr].providerFactory=ki),Hu(Q,c,d.length,0),d.push(he),et.directiveStart++,et.directiveEnd++,b&&(et.providerIndexes+=1048576),p.push(ki),le.push(ki)}else{Hu(Q,c,Xn>-1?Xn:fr,Ed(p[b?fr:Xn],Ie,!b&&g))}!b&&g&&Cr&&p[fr].componentProviders++}}}function Hu(c,d,p,g){var b=o_(d),Z=function sF(c){return!!c.useClass}(d);if(b||Z){var he=(Z?ve(d.useClass):d).prototype.ngOnDestroy;if(he){var Ie=c.destroyHooks||(c.destroyHooks=[]);if(!b&&d.multi){var et=Ie.indexOf(p);-1===et?Ie.push(p,[g,he]):Ie[et+1].push(g,he)}else Ie.push(p,he)}}}function Ed(c,d,p){return p&&c.componentProviders++,c.multi.push(d)-1}function Us(c,d,p,g){for(var b=p;b<g;b++)if(d[b]===c)return b;return-1}function rh(c,d,p,g){return Md(this.multi,[])}function ih(c,d,p,g){var Z,b=this.multi;if(this.providerFactory){var Q=this.providerFactory.componentProviders,le=hf(p,p[1],this.providerFactory.index,g);Md(b,Z=le.slice(0,Q));for(var he=Q;he<le.length;he++)Z.push(le[he])}else Md(b,Z=[]);return Z}function Md(c,d){for(var p=0;p<c.length;p++){var g=c[p];d.push(g())}return d}function DM(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(g,b){return B4(g,b?b(c):c,d)}}}var F4=(0,F.Z)(function c(){(0,M.Z)(this,c)}),U4=(0,F.Z)(function c(){(0,M.Z)(this,c)});var H4="ngComponent";var JW=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"resolveComponentFactory",value:function(p){throw function KW(c){var d=Error("No component factory found for ".concat(ce(c),". Did you add it to @NgModule.entryComponents?"));return d[H4]=c,d}(p)}}]),c}(),R1=(0,F.Z)(function c(){(0,M.Z)(this,c)});function Qv(c,d){return new Af(Di(c,d))}R1.NULL=new JW;var Af=(0,F.Z)(function c(d){(0,M.Z)(this,c),this.nativeElement=d});function Xv(c){return c instanceof Af?c.nativeElement:c}Af.__NG_ELEMENT_ID__=function QW(){return Qv(Ai(),Nn())};new wa("Renderer2Interceptor");var Sd=(0,F.Z)(function c(){(0,M.Z)(this,c)}),xd=(0,F.Z)(function c(){(0,M.Z)(this,c)});xd.__NG_ELEMENT_ID__=function(){return function XW(){var c=Nn(),p=Ce(Ai().index,c);return function Of(c){return c[11]}(Ba(p)?p:c)}()};var D6=(0,F.Z)(function c(){(0,M.Z)(this,c)});D6.\u0275prov=yt({token:D6,providedIn:"root",factory:function(){return null}});var Sc=(0,F.Z)(function c(d){(0,M.Z)(this,c),this.full=d,this.major=d.split(".")[0],this.minor=d.split(".")[1],this.patch=d.split(".").slice(2).join(".")}),L1=new Sc("13.3.11"),If={};function AM(c,d,p,g){for(var b=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var Z=d[p.index];if(null!==Z&&g.push(ar(Z)),yn(Z))for(var Q=10;Q<Z.length;Q++){var le=Z[Q],he=le[1].firstChild;null!==he&&AM(le[1],le,he,g)}var Ie=p.type;if(8&Ie)AM(c,d,p.child,g);else if(32&Ie)for(var et=xv(p,d),Tt=void 0;Tt=et();)g.push(Tt);else if(16&Ie){var Ot=MP(d,p);if(Array.isArray(Ot))g.push.apply(g,(0,y.Z)(Ot));else{var zt=Dv(d[16]);AM(zt[1],zt,Ot,g,!0)}}p=b?p.projectionNext:p.next}return g}var ju=function(){function c(d,p){(0,M.Z)(this,c),this._lView=d,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}return(0,F.Z)(c,[{key:"rootNodes",get:function(){var p=this._lView,g=p[1];return AM(g,p,g.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(p){this._lView[8]=p}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var p=this._lView[3];if(yn(p)){var g=p[8],b=g?g.indexOf(this):-1;b>-1&&(t1(p,b),pv(g,b))}this._attachedToViewContainer=!1}n1(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){e3(this._lView[1],this._lView,null,p)}},{key:"markForCheck",value:function(){gE(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){yE(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef){throw new xe(902,"")}this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function TB(c,d){Ov(c,d,d[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(p){if(this._attachedToViewContainer){throw new xe(902,"")}this._appRef=p}}]),c}(),zu=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g){var b;return(0,M.Z)(this,p),(b=d.call(this,g))._view=g,b}return(0,F.Z)(p,[{key:"detectChanges",value:function(){f3(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(ju),ne=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g){var b;return(0,M.Z)(this,p),(b=d.call(this)).ngModule=g,b}return(0,F.Z)(p,[{key:"resolveComponentFactory",value:function(b){var Z=Mr(b);return new Ei(Z,this.ngModule)}}]),p}(R1);function sn(c){var d=[];for(var p in c)if(c.hasOwnProperty(p)){var g=c[p];d.push({propName:g,templateName:p})}return d}var Ei=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b){var Z;return(0,M.Z)(this,p),(Z=d.call(this)).componentDef=g,Z.ngModule=b,Z.componentType=g.type,Z.selector=function NP(c){return c.map(ZP).join(",")}(g.selectors),Z.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],Z.isBoundToModule=!!b,Z}return(0,F.Z)(p,[{key:"inputs",get:function(){return sn(this.componentDef.inputs)}},{key:"outputs",get:function(){return sn(this.componentDef.outputs)}},{key:"create",value:function(b,Z,Q,le){var xn,Cr,he=(le=le||this.ngModule)?function Pf(c,d){return{get:function(g,b,Z){var Q=c.get(g,If,Z);return Q!==If||b===If?Q:d.get(g,b,Z)}}}(b,le.injector):b,Ie=he.get(Sd,Or),et=he.get(D6,null),Tt=Ie.createRenderer(null,this.componentDef),Ot=this.componentDef.selectors[0][0]||"div",zt=Q?$P(Tt,Q,this.componentDef.encapsulation):$b(Ie.createRenderer(null,this.componentDef),Ot,function Gr(c){var d=c.toLowerCase();return"svg"===d?"svg":"math"===d?ye:null}(Ot)),hn=this.componentDef.onPush?576:528,Fn=S3(),Xn=Nv(0,null,null,1,0,null,null,null,null,null),fr=n_(null,Xn,Fn,hn,null,null,Ie,Tt,et,he);De(fr);try{var ki=M3(zt,this.componentDef,fr,Ie,Tt);if(zt)if(Q)Au(Tt,zt,["ng-version",L1.full]);else{var Ni=function OB(c){for(var d=[],p=[],g=1,b=2;g<c.length;){var Z=c[g];if("string"==typeof Z)2===b?""!==Z&&d.push(Z,c[++g]):8===b&&p.push(Z);else{if(!Nu(b))break;b=Z}g++}return{attrs:d,classes:p}}(this.componentDef.selectors[0]),Po=Ni.attrs,is=Ni.classes;Po&&Au(Tt,zt,Po),is&&is.length>0&&VT(Tt,zt,is.join(" "))}if(Cr=Ye(Xn,20),void 0!==Z)for(var nl=Cr.projection=[],Ul=0;Ul<this.ngContentSelectors.length;Ul++){var Hl=Z[Ul];nl.push(null!=Hl?Array.from(Hl):null)}xn=_1(ki,this.componentDef,fr,Fn,[bF]),Gp(Xn,fr,null)}finally{Sr()}return new O6(this.componentType,xn,Qv(Cr,fr),fr,Cr)}}]),p}(U4);new ne;var O6=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b,Z,Q,le){var he;return(0,M.Z)(this,p),(he=d.call(this)).location=Z,he._rootLView=Q,he._tNode=le,he.instance=b,he.hostView=he.changeDetectorRef=new zu(Q),he.componentType=g,he}return(0,F.Z)(p,[{key:"injector",get:function(){return new Om(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(b){this.hostView.onDestroy(b)}}]),p}(F4);function rn(c,d,p,g){return nn(function(){var b=c;if(null!==d)if(b.hasOwnProperty("decorators")&&void 0!==b.decorators){var Z;(Z=b.decorators).push.apply(Z,(0,y.Z)(d))}else b.decorators=d;null!==p&&(b.ctorParameters=p),null!==g&&(b.hasOwnProperty("propDecorators")&&void 0!==b.propDecorators?b.propDecorators=Object.assign(Object.assign({},b.propDecorators),g):b.propDecorators=g)})}var Ta=(0,F.Z)(function c(){(0,M.Z)(this,c)}),$v=(0,F.Z)(function c(){(0,M.Z)(this,c)}),E_=new Map;function I6(c,d,p){if(d&&d!==p)throw new Error("Duplicate module registered for ".concat(c," - ").concat(ce(d)," vs ").concat(ce(d.name)))}var R6=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b){var Z;(0,M.Z)(this,p),(Z=d.call(this))._parent=b,Z._bootstrapComponents=[],Z.injector=(0,S.Z)(Z),Z.destroyCbs=[],Z.componentFactoryResolver=new ne((0,S.Z)(Z));var Q=qi(g);return Z._bootstrapComponents=Va(Q.bootstrap),Z._r3Injector=g3(g,b,[{provide:Ta,useValue:(0,S.Z)(Z)},{provide:R1,useValue:Z.componentFactoryResolver}],ce(g)),Z._r3Injector._resolveInjectorDefTypes(),Z.instance=Z.get(g),Z}return(0,F.Z)(p,[{key:"get",value:function(b){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bs.THROW_IF_NOT_FOUND,Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;return b===Bs||b===Ta||b===bc?this:this._r3Injector.get(b,Z,Q)}},{key:"destroy",value:function(){var b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(function(Z){return Z()}),this.destroyCbs=null}},{key:"onDestroy",value:function(b){this.destroyCbs.push(b)}}]),p}(Ta),IM=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g){var b;return(0,M.Z)(this,p),(b=d.call(this)).moduleType=g,null!==qi(g)&&function j4(c){var d=new Set;!function p(g){var b=qi(g,!0),Z=b.id;null!==Z&&(I6(Z,E_.get(Z),g),E_.set(Z,g));var Ie,le=Va(b.imports),he=(0,D.Z)(le);try{for(he.s();!(Ie=he.n()).done;){var et=Ie.value;d.has(et)||(d.add(et),p(et))}}catch(Tt){he.e(Tt)}finally{he.f()}}(c)}(g),b}return(0,F.Z)(p,[{key:"create",value:function(b){return new R6(this.moduleType,b)}}]),p}($v);function L6(c,d,p){var g=$e()+c,b=Nn();return b[g]===fi?wc(b,g,p?d.call(p):d()):l_(b,g)}function PM(c,d,p,g){return Rf(Nn(),$e(),c,d,p,g)}function z4(c,d,p,g,b){return lh(Nn(),$e(),c,d,p,g,b)}function W4(c,d,p,g,b,Z){return Z1(Nn(),$e(),c,d,p,g,b,Z)}function RM(c,d,p,g,b,Z,Q){return uh(Nn(),$e(),c,d,p,g,b,Z,Q)}function V4(c,d,p,g,b,Z,Q,le){var he=$e()+c,Ie=Nn(),et=Nl(Ie,he,p,g,b,Z);return Fs(Ie,he+4,Q)||et?wc(Ie,he+5,le?d.call(le,p,g,b,Z,Q):d(p,g,b,Z,Q)):l_(Ie,he+5)}function Dd(c,d,p,g,b,Z,Q,le,he){var Ie=$e()+c,et=Nn(),Tt=Nl(et,Ie,p,g,b,Z);return qp(et,Ie+4,Q,le)||Tt?wc(et,Ie+6,he?d.call(he,p,g,b,Z,Q,le):d(p,g,b,Z,Q,le)):l_(et,Ie+6)}function M_(c,d,p,g,b,Z,Q,le,he,Ie){var et=$e()+c,Tt=Nn(),Ot=Nl(Tt,et,p,g,b,Z);return b1(Tt,et+4,Q,le,he)||Ot?wc(Tt,et+7,Ie?d.call(Ie,p,g,b,Z,Q,le,he):d(p,g,b,Z,Q,le,he)):l_(Tt,et+7)}function ah(c,d,p,g,b,Z,Q,le,he,Ie,et){var Tt=$e()+c,Ot=Nn(),zt=Nl(Ot,Tt,p,g,b,Z);return Nl(Ot,Tt+4,Q,le,he,Ie)||zt?wc(Ot,Tt+8,et?d.call(et,p,g,b,Z,Q,le,he,Ie):d(p,g,b,Z,Q,le,he,Ie)):l_(Ot,Tt+8)}function sh(c,d,p,g){return Ea(Nn(),$e(),c,d,p,g)}function xc(c,d){var p=c[d];return p===fi?void 0:p}function Rf(c,d,p,g,b,Z){var Q=d+p;return Fs(c,Q,b)?wc(c,Q+1,Z?g.call(Z,b):g(b)):xc(c,Q+1)}function lh(c,d,p,g,b,Z,Q){var le=d+p;return qp(c,le,b,Z)?wc(c,le+2,Q?g.call(Q,b,Z):g(b,Z)):xc(c,le+2)}function Z1(c,d,p,g,b,Z,Q,le){var he=d+p;return b1(c,he,b,Z,Q)?wc(c,he+3,le?g.call(le,b,Z,Q):g(b,Z,Q)):xc(c,he+3)}function uh(c,d,p,g,b,Z,Q,le,he){var Ie=d+p;return Nl(c,Ie,b,Z,Q,le)?wc(c,Ie+4,he?g.call(he,b,Z,Q,le):g(b,Z,Q,le)):xc(c,Ie+4)}function Ea(c,d,p,g,b,Z){for(var Q=d+p,le=!1,he=0;he<b.length;he++)Fs(c,Q++,b[he])&&(le=!0);return le?wc(c,Q,g.apply(Z,b)):xc(c,Q)}function ch(c,d){var g,p=wi(),b=c+20;p.firstCreatePass?(g=function LM(c,d){if(d)for(var p=d.length-1;p>=0;p--){var g=d[p];if(c===g.name)return g}}(d,p.pipeRegistry),p.data[b]=g,g.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(b,g.onDestroy)):g=p.data[b];var Z=g.factory||(g.factory=Xi(g.type)),Q=Dt(Uv);try{var le=cc(!1),he=Z();return cc(le),function Z3(c,d,p,g){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),d[p]=g}(p,Nn(),b,he),he}finally{Dt(Q)}}function Z6(c,d,p){var g=c+20,b=Nn(),Z=Le(b,g);return S_(b,g)?Rf(b,$e(),d,Z.transform,p,Z):Z.transform(p)}function ZM(c,d,p,g){var b=c+20,Z=Nn(),Q=Le(Z,b);return S_(Z,b)?lh(Z,$e(),d,Q.transform,p,g,Q):Q.transform(p,g)}function Y4(c,d,p,g,b){var Z=c+20,Q=Nn(),le=Le(Q,Z);return S_(Q,Z)?Z1(Q,$e(),d,le.transform,p,g,b,le):le.transform(p,g,b)}function NM(c,d,p,g,b,Z){var Q=c+20,le=Nn(),he=Le(le,Q);return S_(le,Q)?uh(le,$e(),d,he.transform,p,g,b,Z,he):he.transform(p,g,b,Z)}function BM(c,d,p){var g=c+20,b=Nn(),Z=Le(b,g);return S_(b,g)?Ea(b,$e(),d,Z.transform,p,Z):Z.transform.apply(Z,p)}function S_(c,d){return c[1].data[d].pure}var N6=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){var g,b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,M.Z)(this,p),(g=d.call(this)).__isAsync=b,g}return(0,F.Z)(p,[{key:"emit",value:function(b){(0,z.Z)((0,Y.Z)(p.prototype),"next",this).call(this,b)}},{key:"subscribe",value:function(b,Z,Q){var le,he,Ie,et=b,Tt=Z||function(){return null},Ot=Q;if(b&&"object"==typeof b){var zt=b;et=null===(le=zt.next)||void 0===le?void 0:le.bind(zt),Tt=null===(he=zt.error)||void 0===he?void 0:he.bind(zt),Ot=null===(Ie=zt.complete)||void 0===Ie?void 0:Ie.bind(zt)}this.__isAsync&&(Tt=ey(Tt),et&&(et=ey(et)),Ot&&(Ot=ey(Ot)));var hn=(0,z.Z)((0,Y.Z)(p.prototype),"subscribe",this).call(this,{next:et,error:Tt,complete:Ot});return b instanceof T.w&&b.add(hn),hn}}]),p}(w.xQ);function ey(c){return function(d){setTimeout(c,void 0,d)}}var Dc=N6;function G4(){return this._results[Ef()]()}var B6=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,M.Z)(this,c),this._emitDistinctChangesOnly=d,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var p=Ef(),g=c.prototype;g[p]||(g[p]=G4)}return(0,F.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new Dc)}},{key:"get",value:function(p){return this._results[p]}},{key:"map",value:function(p){return this._results.map(p)}},{key:"filter",value:function(p){return this._results.filter(p)}},{key:"find",value:function(p){return this._results.find(p)}},{key:"reduce",value:function(p,g){return this._results.reduce(p,g)}},{key:"forEach",value:function(p){this._results.forEach(p)}},{key:"some",value:function(p){return this._results.some(p)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(p,g){var b=this;b.dirty=!1;var Z=_l(p);(this._changesDetected=!function NI(c,d,p){if(c.length!==d.length)return!1;for(var g=0;g<c.length;g++){var b=c[g],Z=d[g];if(p&&(b=p(b),Z=p(Z)),Z!==b)return!1}return!0}(b._results,Z,g))&&(b._results=Z,b.length=Z.length,b.last=Z[this.length-1],b.first=Z[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}();Symbol.iterator;var Lf=(0,F.Z)(function c(){(0,M.Z)(this,c)});Lf.__NG_ELEMENT_ID__=function F6(){return N1(Ai(),Nn())};var K4=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b,Z){var Q;return(0,M.Z)(this,p),(Q=d.call(this))._declarationLView=g,Q._declarationTContainer=b,Q.elementRef=Z,Q}return(0,F.Z)(p,[{key:"createEmbeddedView",value:function(b){var Z=this._declarationTContainer.tViews,Q=n_(this._declarationLView,Z,b,16,null,Z.declTNode,null,null,null,null),le=this._declarationLView[this._declarationTContainer.index];Q[17]=le;var he=this._declarationLView[19];return null!==he&&(Q[19]=he.createEmbeddedView(Z)),Gp(Z,Q,b),new ju(Q)}}]),p}(Lf);function N1(c,d){return 4&c.type?new K4(d,c,Qv(c,d)):null}var dh=(0,F.Z)(function c(){(0,M.Z)(this,c)});dh.__NG_ELEMENT_ID__=function J4(){return x_(Ai(),Nn())};var U6=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(g,b,Z){var Q;return(0,M.Z)(this,p),(Q=d.call(this))._lContainer=g,Q._hostTNode=b,Q._hostLView=Z,Q}return(0,F.Z)(p,[{key:"element",get:function(){return Qv(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Om(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var b=oT(this._hostTNode,this._hostLView);if(Ca(b)){var Z=ds(b,this._hostLView),Q=Iu(b),le=Z[1].data[Q+8];return new Om(le,Z)}return new Om(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(b){var Z=B1(this._lContainer);return null!==Z&&Z[b]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(b,Z,Q){var le=b.createEmbeddedView(Z||{});return this.insert(le,Q),le}},{key:"createComponent",value:function(b,Z,Q,le,he){var et,Ie=b&&!fv(b);if(Ie)et=Z;else{var Tt=Z||{};et=Tt.index,Q=Tt.injector,le=Tt.projectableNodes,he=Tt.ngModuleRef}var Ot=Ie?b:new Ei(Mr(b)),zt=Q||this.parentInjector;if(!he&&null==Ot.ngModule){var Fn=(Ie?zt:this.parentInjector).get(Ta,null);Fn&&(he=Fn)}var Xn=Ot.create(zt,le,void 0,he);return this.insert(Xn.hostView,et),Xn}},{key:"insert",value:function(b,Z){var Q=b._lView,le=Q[1];if(function Rt(c){return yn(c[3])}(Q)){var he=this.indexOf(b);if(-1!==he)this.detach(he);else{var Ie=Q[3],et=new U6(Ie,Ie[6],Ie[3]);et.detach(et.indexOf(b))}}var Tt=this._adjustIndex(Z),Ot=this._lContainer;Xs(le,Q,Ot,Tt);var zt=bf(Tt,Ot),hn=Q[11],Fn=Jm(hn,Ot[7]);return null!==Fn&&function co(c,d,p,g,b,Z){g[0]=b,g[6]=d,Ov(c,g,p,1,b,Z)}(le,Ot[6],hn,Q,Fn,zt),b.attachToViewContainerRef(),BI(ty(Ot),Tt,b),b}},{key:"move",value:function(b,Z){return this.insert(b,Z)}},{key:"indexOf",value:function(b){var Z=B1(this._lContainer);return null!==Z?Z.indexOf(b):-1}},{key:"remove",value:function(b){var Z=this._adjustIndex(b,-1),Q=t1(this._lContainer,Z);Q&&(pv(ty(this._lContainer),Z),n1(Q[1],Q))}},{key:"detach",value:function(b){var Z=this._adjustIndex(b,-1),Q=t1(this._lContainer,Z);return Q&&null!=pv(ty(this._lContainer),Z)?new ju(Q):null}},{key:"_adjustIndex",value:function(b){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==b?this.length+Z:b}}]),p}(dh);function B1(c){return c[8]}function ty(c){return c[8]||(c[8]=[])}function x_(c,d){var p,g=d[c.index];if(yn(g))p=g;else{var b;if(8&c.type)b=ar(g);else{var Z=d[11];b=Z.createComment("");var Q=Di(c,d);Yp(Z,Jm(Z,Q),b,function HT(c,d){return Pn(c)?c.nextSibling(d):d.nextSibling}(Z,Q),!1)}d[c.index]=p=d3(g,d,b,c),f1(d,p)}return new U6(p,c,d)}var Q4=function(){function c(d){(0,M.Z)(this,c),this.queryList=d,this.matches=null}return(0,F.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),H6=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,c),this.queries=d}return(0,F.Z)(c,[{key:"createEmbeddedView",value:function(p){var g=p.queries;if(null!==g){for(var b=null!==p.contentQueries?p.contentQueries[0]:g.length,Z=[],Q=0;Q<b;Q++){var le=g.getByIndex(Q),he=this.queries[le.indexInDeclarationView];Z.push(he.clone())}return new c(Z)}return null}},{key:"insertView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"detachView",value:function(p){this.dirtyQueriesWithMatches(p)}},{key:"dirtyQueriesWithMatches",value:function(p){for(var g=0;g<this.queries.length;g++)null!==G6(p,g).matches&&this.queries[g].setDirty()}}]),c}(),j6=(0,F.Z)(function c(d,p){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,M.Z)(this,c),this.predicate=d,this.flags=p,this.read=g}),FM=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,M.Z)(this,c),this.queries=d}return(0,F.Z)(c,[{key:"elementStart",value:function(p,g){for(var b=0;b<this.queries.length;b++)this.queries[b].elementStart(p,g)}},{key:"elementEnd",value:function(p){for(var g=0;g<this.queries.length;g++)this.queries[g].elementEnd(p)}},{key:"embeddedTView",value:function(p){for(var g=null,b=0;b<this.length;b++){var Z=null!==g?g.length:0,Q=this.getByIndex(b).embeddedTView(p,Z);Q&&(Q.indexInDeclarationView=b,null!==g?g.push(Q):g=[Q])}return null!==g?new c(g):null}},{key:"template",value:function(p,g){for(var b=0;b<this.queries.length;b++)this.queries[b].template(p,g)}},{key:"getByIndex",value:function(p){return this.queries[p]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(p){this.queries.push(p)}}]),c}(),F1=function(){function c(d){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,M.Z)(this,c),this.metadata=d,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}return(0,F.Z)(c,[{key:"elementStart",value:function(p,g){this.isApplyingToNode(g)&&this.matchTNode(p,g)}},{key:"elementEnd",value:function(p){this._declarationNodeIndex===p.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(p,g){this.elementStart(p,g)}},{key:"embeddedTView",value:function(p,g){return this.isApplyingToNode(p)?(this.crossesNgTemplate=!0,this.addMatch(-p.index,g),new c(this.metadata)):null}},{key:"isApplyingToNode",value:function(p){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var g=this._declarationNodeIndex,b=p.parent;null!==b&&8&b.type&&b.index!==g;)b=b.parent;return g===(null!==b?b.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,g){var b=this.metadata.predicate;if(Array.isArray(b))for(var Z=0;Z<b.length;Z++){var Q=b[Z];this.matchTNodeWithReadOption(p,g,ph(g,Q)),this.matchTNodeWithReadOption(p,g,lv(g,p,Q,!1,!1))}else b===Lf?4&g.type&&this.matchTNodeWithReadOption(p,g,-1):this.matchTNodeWithReadOption(p,g,lv(g,p,b,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,g,b){if(null!==b){var Z=this.metadata.read;if(null!==Z)if(Z===Af||Z===dh||Z===Lf&&4&g.type)this.addMatch(g.index,-2);else{var Q=lv(g,p,Z,!1,!1);null!==Q&&this.addMatch(g.index,Q)}else this.addMatch(g.index,b)}}},{key:"addMatch",value:function(p,g){null===this.matches?this.matches=[p,g]:this.matches.push(p,g)}}]),c}();function ph(c,d){var p=c.localNames;if(null!==p)for(var g=0;g<p.length;g+=2)if(p[g]===d)return p[g+1];return null}function ry(c,d,p,g){return-1===p?function A_(c,d){return 11&c.type?Qv(c,d):4&c.type?N1(c,d):null}(d,c):-2===p?function z6(c,d,p){if(p===Af)return Qv(d,c);if(p===Lf)return N1(d,c);if(p===dh)return x_(d,c)}(c,d,g):hf(c,c[1],p,d)}function iy(c,d,p,g){var b=d[19].queries[g];if(null===b.matches){for(var Z=c.data,Q=p.matches,le=[],he=0;he<Q.length;he+=2){var Ie=Q[he];if(Ie<0)le.push(null);else{var et=Z[Ie];le.push(ry(d,et,Q[he+1],p.metadata.read))}}b.matches=le}return b.matches}function Zf(c,d,p,g){var b=c.queries.getByIndex(p),Z=b.matches;if(null!==Z)for(var Q=iy(c,d,b,p),le=0;le<Z.length;le+=2){var he=Z[le];if(he>0)g.push(Q[le/2]);else{for(var Ie=Z[le+1],et=d[-he],Tt=10;Tt<et.length;Tt++){var Ot=et[Tt];Ot[17]===Ot[3]&&Zf(Ot[1],Ot,Ie,g)}if(null!==et[9])for(var zt=et[9],hn=0;hn<zt.length;hn++){var Fn=zt[hn];Zf(Fn[1],Fn,Ie,g)}}}return g}function UM(c){var d=Nn(),p=wi(),g=Ne();we(g+1);var b=G6(p,g);if(c.dirty&&Je(d)===(2==(2&b.metadata.flags))){if(null===b.matches)c.reset([]);else{var Z=b.crossesNgTemplate?Zf(p,d,g,[]):iy(p,d,b,g);c.reset(Z,Xv),c.notifyOnChanges()}return!0}return!1}function Nf(c,d,p){var g=wi();g.firstCreatePass&&(Y6(g,new j6(c,d,p),-1),2==(2&d)&&(g.staticViewQueries=!0)),HM(g,Nn(),d)}function U1(c,d,p,g){var b=wi();if(b.firstCreatePass){var Z=Ai();Y6(b,new j6(d,p,g),Z.index),function O_(c,d){var p=c.contentQueries||(c.contentQueries=[]),g=p.length?p[p.length-1]:-1;d!==g&&p.push(c.queries.length-1,d)}(b,c),2==(2&p)&&(b.staticContentQueries=!0)}HM(b,Nn(),p)}function W6(){return function V6(c,d){return c[19].queries[d].queryList}(Nn(),Ne())}function HM(c,d,p){var g=new B6(4==(4&p));e3(c,d,g,g.destroy),null===d[19]&&(d[19]=new H6),d[19].queries.push(new Q4(g))}function Y6(c,d,p){null===c.queries&&(c.queries=new FM),c.queries.track(new F1(d,p))}function G6(c,d){return c.queries.getByIndex(d)}function jM(c,d){return N1(c,d)}var tl={"\u0275\u0275attribute":u_,"\u0275\u0275attributeInterpolate1":C1,"\u0275\u0275attributeInterpolate2":AE,"\u0275\u0275attributeInterpolate3":OE,"\u0275\u0275attributeInterpolate4":O3,"\u0275\u0275attributeInterpolate5":I3,"\u0275\u0275attributeInterpolate6":IE,"\u0275\u0275attributeInterpolate7":PE,"\u0275\u0275attributeInterpolate8":P3,"\u0275\u0275attributeInterpolateV":R3,"\u0275\u0275defineComponent":Se,"\u0275\u0275defineDirective":Rr,"\u0275\u0275defineInjectable":yt,"\u0275\u0275defineInjector":cn,"\u0275\u0275defineNgModule":vn,"\u0275\u0275definePipe":$r,"\u0275\u0275directiveInject":Uv,"\u0275\u0275getInheritedFactory":QN,"\u0275\u0275inject":rs,"\u0275\u0275injectAttribute":sT,"\u0275\u0275invalidFactory":Y3,"\u0275\u0275invalidFactoryDep":UI,"\u0275\u0275templateRefExtractor":jM,"\u0275\u0275NgOnChangesFeature":Ps,"\u0275\u0275ProvidersFeature":DM,"\u0275\u0275CopyDefinitionFeature":MF,"\u0275\u0275InheritDefinitionFeature":DE,"\u0275\u0275nextContext":YF,"\u0275\u0275namespaceHTML":Em,"\u0275\u0275namespaceMathML":au,"\u0275\u0275namespaceSVG":df,"\u0275\u0275enableBindings":dr,"\u0275\u0275disableBindings":ac,"\u0275\u0275elementStart":w1,"\u0275\u0275elementEnd":k1,"\u0275\u0275element":XE,"\u0275\u0275elementContainerStart":$E,"\u0275\u0275elementContainerEnd":T1,"\u0275\u0275elementContainer":q3,"\u0275\u0275pureFunction0":L6,"\u0275\u0275pureFunction1":PM,"\u0275\u0275pureFunction2":z4,"\u0275\u0275pureFunction3":W4,"\u0275\u0275pureFunction4":RM,"\u0275\u0275pureFunction5":V4,"\u0275\u0275pureFunction6":Dd,"\u0275\u0275pureFunction7":M_,"\u0275\u0275pureFunction8":ah,"\u0275\u0275pureFunctionV":sh,"\u0275\u0275getCurrentView":WF,"\u0275\u0275restoreView":pi,"\u0275\u0275listener":J3,"\u0275\u0275projection":$3,"\u0275\u0275syntheticHostProperty":qn,"\u0275\u0275syntheticHostListener":Q3,"\u0275\u0275pipeBind1":Z6,"\u0275\u0275pipeBind2":ZM,"\u0275\u0275pipeBind3":Y4,"\u0275\u0275pipeBind4":NM,"\u0275\u0275pipeBindV":BM,"\u0275\u0275projectionDef":GF,"\u0275\u0275hostProperty":Oi,"\u0275\u0275property":JE,"\u0275\u0275propertyInterpolate":rM,"\u0275\u0275propertyInterpolate1":iM,"\u0275\u0275propertyInterpolate2":e6,"\u0275\u0275propertyInterpolate3":qF,"\u0275\u0275propertyInterpolate4":KF,"\u0275\u0275propertyInterpolate5":JF,"\u0275\u0275propertyInterpolate6":QF,"\u0275\u0275propertyInterpolate7":XF,"\u0275\u0275propertyInterpolate8":$F,"\u0275\u0275propertyInterpolateV":e4,"\u0275\u0275pipe":ch,"\u0275\u0275queryRefresh":UM,"\u0275\u0275viewQuery":Nf,"\u0275\u0275loadQuery":W6,"\u0275\u0275contentQuery":U1,"\u0275\u0275reference":N3,"\u0275\u0275classMap":s4,"\u0275\u0275classMapInterpolate1":dM,"\u0275\u0275classMapInterpolate2":u6,"\u0275\u0275classMapInterpolate3":h4,"\u0275\u0275classMapInterpolate4":UW,"\u0275\u0275classMapInterpolate5":m4,"\u0275\u0275classMapInterpolate6":_4,"\u0275\u0275classMapInterpolate7":g4,"\u0275\u0275classMapInterpolate8":c6,"\u0275\u0275classMapInterpolateV":v4,"\u0275\u0275styleMap":kc,"\u0275\u0275styleMapInterpolate1":y4,"\u0275\u0275styleMapInterpolate2":HW,"\u0275\u0275styleMapInterpolate3":b4,"\u0275\u0275styleMapInterpolate4":jW,"\u0275\u0275styleMapInterpolate5":C4,"\u0275\u0275styleMapInterpolate6":w4,"\u0275\u0275styleMapInterpolate7":zW,"\u0275\u0275styleMapInterpolate8":k4,"\u0275\u0275styleMapInterpolateV":T4,"\u0275\u0275styleProp":n6,"\u0275\u0275stylePropInterpolate1":E4,"\u0275\u0275stylePropInterpolate2":d6,"\u0275\u0275stylePropInterpolate3":f6,"\u0275\u0275stylePropInterpolate4":M4,"\u0275\u0275stylePropInterpolate5":p6,"\u0275\u0275stylePropInterpolate6":n,"\u0275\u0275stylePropInterpolate7":wt,"\u0275\u0275stylePropInterpolate8":Zi,"\u0275\u0275stylePropInterpolateV":Hn,"\u0275\u0275classProp":oM,"\u0275\u0275advance":BP,"\u0275\u0275template":RE,"\u0275\u0275text":f4,"\u0275\u0275textInterpolate":o6,"\u0275\u0275textInterpolate1":lM,"\u0275\u0275textInterpolate2":uM,"\u0275\u0275textInterpolate3":a6,"\u0275\u0275textInterpolate4":Qp,"\u0275\u0275textInterpolate5":M1,"\u0275\u0275textInterpolate6":s6,"\u0275\u0275textInterpolate7":cM,"\u0275\u0275textInterpolate8":l6,"\u0275\u0275textInterpolateV":p4,"\u0275\u0275i18n":qW,"\u0275\u0275i18nAttributes":nh,"\u0275\u0275i18nExp":x6,"\u0275\u0275i18nStart":P1,"\u0275\u0275i18nEnd":xf,"\u0275\u0275i18nApply":N4,"\u0275\u0275i18nPostprocess":Td,"\u0275\u0275resolveWindow":Kb,"\u0275\u0275resolveDocument":Jb,"\u0275\u0275resolveBody":Gm,"\u0275\u0275setComponentScope":Ae,"\u0275\u0275setNgModuleScope":Ln,"\u0275\u0275sanitizeHtml":lP,"\u0275\u0275sanitizeStyle":uP,"\u0275\u0275sanitizeResourceUrl":zp,"\u0275\u0275sanitizeScript":cP,"\u0275\u0275sanitizeUrl":TT,"\u0275\u0275sanitizeUrlOrResourceUrl":yB,"\u0275\u0275trustConstantHtml":gB,"\u0275\u0275trustConstantResourceUrl":Ub,forwardRef:oe,resolveForwardRef:ve},I_=null;var hh=[];function K6(c,d){hh.push({moduleType:c,ngModule:d})}var zM=!1;function oy(c){return Array.isArray(c)?c.every(oy):!!ve(c)}function Bl(c,d){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var g=_l(d.declarations||Ee),b=null;Object.defineProperty(c,En,{configurable:!0,get:function(){if(null===b){var he=fs();(b=he.compileNgModule(tl,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:_l(d.bootstrap||Ee).map(ve),declarations:g.map(ve),imports:_l(d.imports||Ee).map(ve).map(J6),exports:_l(d.exports||Ee).map(ve).map(J6),schemas:d.schemas?_l(d.schemas):null,id:d.id||null})).schemas||(b.schemas=[])}return b}});var Z=null;Object.defineProperty(c,rr,{get:function(){if(null===Z){var he=fs();Z=he.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:Rb(c),target:he.FactoryTarget.NgModule,typeArgumentCount:0})}return Z},configurable:!1});var Q=null;Object.defineProperty(c,dt,{get:function(){if(null===Q){var he={name:c.name,type:c,providers:d.providers||Ee,imports:[(d.imports||Ee).map(ve),(d.exports||Ee).map(ve)]},Ie=fs();Q=Ie.compileInjector(tl,"ng:///".concat(c.name,"/\u0275inj.js"),he)}return Q},configurable:!1})}function t8(c,d){var p=_l(d.declarations||Ee),g=W1(c);p.forEach(function(b){b.hasOwnProperty(He)?L_(Mr(b),g):!b.hasOwnProperty(bt)&&!b.hasOwnProperty(Yt)&&(b.ngSelectorScope=c)})}function L_(c,d){c.directiveDefs=function(){return Array.from(d.compilation.directives).map(function(p){return p.hasOwnProperty(He)?Mr(p):Hi(p)}).filter(function(p){return!!p})},c.pipeDefs=function(){return Array.from(d.compilation.pipes).map(function(p){return bo(p)})},c.schemas=d.schemas,c.tView=null}function W1(c){if(!WM(c))throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"));var d=qi(c);if(null!==d.transitiveCompileScopes)return d.transitiveCompileScopes;var p={schemas:d.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Va(d.imports).forEach(function(g){var b=g;if(!WM(b))throw new Error("Importing ".concat(b.name," which does not have a \u0275mod property"));var Z=W1(b);Z.exported.directives.forEach(function(Q){return p.compilation.directives.add(Q)}),Z.exported.pipes.forEach(function(Q){return p.compilation.pipes.add(Q)})}),Va(d.declarations).forEach(function(g){bo(g)?p.compilation.pipes.add(g):p.compilation.directives.add(g)}),Va(d.exports).forEach(function(g){var b=g;if(WM(b)){var Z=W1(b);Z.exported.directives.forEach(function(Q){p.compilation.directives.add(Q),p.exported.directives.add(Q)}),Z.exported.pipes.forEach(function(Q){p.compilation.pipes.add(Q),p.exported.pipes.add(Q)})}else bo(b)?p.exported.pipes.add(b):p.exported.directives.add(b)}),d.transitiveCompileScopes=p,p}function J6(c){return function Q6(c){return void 0!==c.ngModule}(c)?c.ngModule:c}function WM(c){return!!qi(c)}var VM=0;function YM(c,d){var p=null;(function VI(c,d){Bm(d)&&(Np.set(c,d),Bp.add(c))})(c,d),tR(c,d),Object.defineProperty(c,He,{get:function(){if(null===p){var b=fs();if(Bm(d)){var Z=["Component '".concat(c.name,"' is not resolved:")];throw d.templateUrl&&Z.push(" - templateUrl: ".concat(d.templateUrl)),d.styleUrls&&d.styleUrls.length&&Z.push(" - styleUrls: ".concat(JSON.stringify(d.styleUrls))),Z.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(Z.join("\n"))}var Q=function q6(){return I_}(),le=d.preserveWhitespaces;void 0===le&&(le=null!==Q&&void 0!==Q.preserveWhitespaces&&Q.preserveWhitespaces);var he=d.encapsulation;void 0===he&&(he=null!==Q&&void 0!==Q.defaultEncapsulation?Q.defaultEncapsulation:zn.Emulated);var Ie=d.templateUrl||"ng:///".concat(c.name,"/template.html"),et=Object.assign(Object.assign({},GM(c,d)),{typeSourceSpan:b.createParseSourceSpan("Component",c.name,Ie),template:d.template||"",preserveWhitespaces:le,styles:d.styles||Ee,animations:d.animations,directives:[],changeDetection:d.changeDetection,pipes:new Map,encapsulation:he,interpolation:d.interpolation,viewProviders:d.viewProviders||null});VM++;try{et.usesInheritance&&nR(c),p=b.compileComponent(tl,Ie,et)}finally{VM--}if(0===VM&&function $4(){if(!zM){zM=!0;try{for(var c=hh.length-1;c>=0;c--){var d=hh[c],p=d.moduleType,g=d.ngModule;g.declarations&&g.declarations.every(oy)&&(hh.splice(c,1),t8(p,g))}}finally{zM=!1}}}(),function X6(c){return void 0!==c.ngSelectorScope}(c)){var Tt=W1(c.ngSelectorScope);L_(p,Tt)}}return p},configurable:!1})}function $6(c,d){var p=null;tR(c,d||{}),Object.defineProperty(c,bt,{get:function(){if(null===p){var b=eR(c,d||{}),Z=fs();p=Z.compileDirective(tl,b.sourceMapUrl,b.metadata)}return p},configurable:!1})}function eR(c,d){var p=c&&c.name,g="ng:///".concat(p,"/\u0275dir.js"),b=fs(),Z=GM(c,d);return Z.typeSourceSpan=b.createParseSourceSpan("Directive",p,g),Z.usesInheritance&&nR(c),{metadata:Z,sourceMapUrl:g}}function tR(c,d){var p=null;Object.defineProperty(c,rr,{get:function(){if(null===p){var b=eR(c,d),Z=fs();p=Z.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:b.metadata.name,type:b.metadata.type,typeArgumentCount:0,deps:Rb(c),target:Z.FactoryTarget.Directive})}return p},configurable:!1})}function n8(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function GM(c,d){var p=Zs(),g=p.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==d.selector?d.selector:null,host:d.host||Ue,propMetadata:g,inputs:d.inputs||Ee,outputs:d.outputs||Ee,queries:rR(c,g,sy),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!n8(c),exportAs:V1(d.exportAs),providers:d.providers||null,viewQueries:rR(c,g,Y1)}}function nR(c){for(var d=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==d;)!Hi(p)&&!Mr(p)&&o8(p)&&$6(p,null),p=Object.getPrototypeOf(p)}function r8(c){return"string"==typeof c?KM(c):ve(c)}function rR(c,d,p){var g=[],b=function(le){if(d.hasOwnProperty(le)){var he=d[le];he.forEach(function(Ie){if(p(Ie)){if(!Ie.selector)throw new Error("Can't construct a query for the property \"".concat(le,'" of ')+'"'.concat(Fe(c),"\" since the query selector wasn't defined."));if(he.some(Z_))throw new Error("Cannot combine @Input decorators with query decorators");g.push(function qM(c,d){return{propertyName:c,predicate:r8(d.selector),descendants:d.descendants,first:d.first,read:d.read?d.read:null,static:!!d.static,emitDistinctChangesOnly:!!d.emitDistinctChangesOnly}}(le,Ie))}})}};for(var Z in d)b(Z);return g}function V1(c){return void 0===c?null:KM(c)}function sy(c){var d=c.ngMetadataName;return"ContentChild"===d||"ContentChildren"===d}function Y1(c){var d=c.ngMetadataName;return"ViewChild"===d||"ViewChildren"===d}function Z_(c){return"Input"===c.ngMetadataName}function KM(c){return c.split(",").map(function(d){return d.trim()})}var i8=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function o8(c){var d=Zs();if(i8.some(function(he){return d.hasLifecycleHook(c,he)}))return!0;var p=d.propMetadata(c);for(var g in p)for(var b=p[g],Z=0;Z<b.length;Z++){var Q=b[Z],le=Q.ngMetadataName;if(Z_(Q)||sy(Q)||Y1(Q)||"Output"===le||"HostBinding"===le||"HostListener"===le)return!0}return!1}function iR(c,d){return{type:c,name:c.name,pipeName:d.name,pure:void 0===d.pure||d.pure}}var oR=Sb("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,d){return $6(c,d)}),G1=Sb("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:dn.Default},c)},oR,void 0,function(c,d){return YM(c,d)}),s8=Sb("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,d){return function a8(c,d){var p=null,g=null;Object.defineProperty(c,rr,{get:function(){if(null===g){var Z=iR(c,d),Q=fs(Z.type);g=Q.compileFactory(tl,"ng:///".concat(Z.name,"/\u0275fac.js"),{name:Z.name,type:Z.type,typeArgumentCount:0,deps:Rb(c),target:Q.FactoryTarget.Pipe})}return g},configurable:!1}),Object.defineProperty(c,Yt,{get:function(){if(null===p){var Z=iR(c,d),Q=fs(Z.type);p=Q.compilePipe(tl,"ng:///".concat(Z.name,"/\u0275pipe.js"),Z)}return p},configurable:!1})}(c,d)}),l8=Rp("Input",function(c){return{bindingPropertyName:c}}),u8=Rp("Output",function(c){return{bindingPropertyName:c}}),c8=Rp("HostBinding",function(c){return{hostPropertyName:c}}),d8=Rp("HostListener",function(c,d){return{eventName:c,args:d}}),aR=Sb("NgModule",function(c){return c},void 0,void 0,function(c,d){return function e8(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Bl(c,d),K6(c,d)}(c,d)});function _h(){}var sR=new wa("Application Initializer"),Ad=function(){function c(d){var p=this;(0,M.Z)(this,c),this.appInits=d,this.resolve=_h,this.reject=_h,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(g,b){p.resolve=g,p.reject=b})}return(0,F.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var g=[],b=function(){p.done=!0,p.resolve()};if(this.appInits)for(var Z=function(he){var Ie=p.appInits[he]();if(eM(Ie))g.push(Ie);else if(VF(Ie)){var et=new Promise(function(Tt,Ot){Ie.subscribe({complete:Tt,error:Ot})});g.push(et)}},Q=0;Q<this.appInits.length;Q++)Z(Q);Promise.all(g).then(function(){b()}).catch(function(le){p.reject(le)}),0===g.length&&b(),this.initialized=!0}}}]),c}();Ad.\u0275fac=function(d){return new(d||Ad)(rs(sR,8))},Ad.\u0275prov=yt({token:Ad,factory:Ad.\u0275fac,providedIn:"root"});var Ff=new wa("AppId",{providedIn:"root",factory:lR});function lR(){return"".concat(JM()).concat(JM()).concat(JM())}function JM(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var cR=new wa("Platform Initializer"),dR=new wa("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),fR=new wa("appBootstrapListener"),N_=(new wa("Application Packages Root URL"),function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"log",value:function(p){console.log(p)}},{key:"warn",value:function(p){console.warn(p)}}]),c}());N_.\u0275fac=function(d){return new(d||N_)},N_.\u0275prov=yt({token:N_,factory:N_.\u0275fac,providedIn:"platform"});var hR,QM=new wa("LocaleId",{providedIn:"root",factory:function(){return ps(QM,ue.Optional|ue.SkipSelf)||function pR(){return"undefined"!=typeof $localize&&$localize.locale||wd}()}}),q1=new wa("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new wa("Translations"),new wa("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(hR||(hR={}));var h8=(0,F.Z)(function c(d,p){(0,M.Z)(this,c),this.ngModuleFactory=d,this.componentFactories=p}),B_=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"compileModuleSync",value:function(p){return new IM(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var g=this.compileModuleSync(p),Z=Va(qi(p).declarations).reduce(function(Q,le){var he=Mr(le);return he&&Q.push(new Ei(he)),Q},[]);return new h8(g,Z)}},{key:"compileModuleAndAllComponentsAsync",value:function(p){return Promise.resolve(this.compileModuleAndAllComponentsSync(p))}},{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(p){}},{key:"getModuleId",value:function(p){}}]),c}();B_.\u0275fac=function(d){return new(d||B_)},B_.\u0275prov=yt({token:B_,factory:B_.\u0275fac,providedIn:"root"});new wa("compilerOptions");var _8=Promise.resolve(0);function XM(c){"undefined"==typeof Zone?_8.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var Uf=function(){function c(d){var p=d.enableLongStackTrace,g=void 0!==p&&p,b=d.shouldCoalesceEventChangeDetection,Z=void 0!==b&&b,Q=d.shouldCoalesceRunChangeDetection,le=void 0!==Q&&Q;if((0,M.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var he=this;he._nesting=0,he._outer=he._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(he._inner=he._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(he._inner=he._inner.fork(Zone.longStackTraceZoneSpec)),he.shouldCoalesceEventChangeDetection=!le&&Z,he.shouldCoalesceRunChangeDetection=le,he.lastRequestAnimationFrameId=-1,he.nativeRequestAnimationFrame=function g8(){var c=Yn.requestAnimationFrame,d=Yn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&d){var p=c[Zone.__symbol__("OriginalDelegate")];p&&(c=p);var g=d[Zone.__symbol__("OriginalDelegate")];g&&(d=g)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function b8(c){var d=function(){!function y8(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Yn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,eS(c),c.isCheckStableRunning=!0,$M(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),eS(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(g,b,Z,Q,le,he){try{return mR(c),g.invokeTask(Z,Q,le,he)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===Q.type||c.shouldCoalesceRunChangeDetection)&&d(),K1(c)}},onInvoke:function(g,b,Z,Q,le,he,Ie){try{return mR(c),g.invoke(Z,Q,le,he,Ie)}finally{c.shouldCoalesceRunChangeDetection&&d(),K1(c)}},onHasTask:function(g,b,Z,Q){g.hasTask(Z,Q),b===Z&&("microTask"==Q.change?(c._hasPendingMicrotasks=Q.microTask,eS(c),$M(c)):"macroTask"==Q.change&&(c.hasPendingMacrotasks=Q.macroTask))},onHandleError:function(g,b,Z,Q){return g.handleError(Z,Q),c.runOutsideAngular(function(){return c.onError.emit(Q)}),!1}})}(he)}return(0,F.Z)(c,[{key:"run",value:function(p,g,b){return this._inner.run(p,g,b)}},{key:"runTask",value:function(p,g,b,Z){var Q=this._inner,le=Q.scheduleEventTask("NgZoneEvent: "+Z,p,v8,_h,_h);try{return Q.runTask(le,g,b)}finally{Q.cancelTask(le)}}},{key:"runGuarded",value:function(p,g,b){return this._inner.runGuarded(p,g,b)}},{key:"runOutsideAngular",value:function(p){return this._outer.run(p)}}],[{key:"isInAngularZone",value:function(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!c.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),c}(),v8={};function $M(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 eS(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function mR(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function K1(c){c._nesting--,$M(c)}var _R=function(){function c(){(0,M.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}return(0,F.Z)(c,[{key:"run",value:function(p,g,b){return p.apply(g,b)}},{key:"runGuarded",value:function(p,g,b){return p.apply(g,b)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,g,b,Z){return p.apply(g,b)}}]),c}(),Ac=function(){function c(d){var p=this;(0,M.Z)(this,c),this._ngZone=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),d.run(function(){p.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,F.Z)(c,[{key:"_watchAngularEvents",value:function(){var p=this;this._ngZone.onUnstable.subscribe({next:function(){p._didWork=!0,p._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){p._ngZone.onStable.subscribe({next:function(){Uf.assertNotInAngularZone(),XM(function(){p._isZoneStable=!0,p._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 p=this;if(this.isStable())XM(function(){for(;0!==p._callbacks.length;){var b=p._callbacks.pop();clearTimeout(b.timeoutId),b.doneCb(p._didWork)}p._didWork=!1});else{var g=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(b){return!b.updateCb||!b.updateCb(g)||(clearTimeout(b.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(p){return{source:p.source,creationLocation:p.creationLocation,data:p.data}}):[]}},{key:"addCallback",value:function(p,g,b){var Z=this,Q=-1;g&&g>0&&(Q=setTimeout(function(){Z._callbacks=Z._callbacks.filter(function(le){return le.timeoutId!==Q}),p(Z._didWork,Z.getPendingTasks())},g)),this._callbacks.push({doneCb:p,timeoutId:Q,updateCb:b})}},{key:"whenStable",value:function(p,g,b){if(b&&!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(p,g,b),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(p,g,b){return[]}}]),c}();Ac.\u0275fac=function(d){return new(d||Ac)(rs(Uf))},Ac.\u0275prov=yt({token:Ac,factory:Ac.\u0275fac});var F_=function(){function c(){(0,M.Z)(this,c),this._applications=new Map,tS.addToWindow(this)}return(0,F.Z)(c,[{key:"registerApplication",value:function(p,g){this._applications.set(p,g)}},{key:"unregisterApplication",value:function(p){this._applications.delete(p)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(p){return this._applications.get(p)||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(p){var g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tS.findTestabilityInTree(this,p,g)}}]),c}();F_.\u0275fac=function(d){return new(d||F_)},F_.\u0275prov=yt({token:F_,factory:F_.\u0275fac,providedIn:"platform"});var C8=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"addToWindow",value:function(p){}},{key:"findTestabilityInTree",value:function(p,g,b){return null}}]),c}();function w8(c){tS=c}var tS=new C8,gh=null,gR=new wa("AllowMultipleToken"),vR=new wa("PlatformOnDestroy");function yR(c,d,p){var g=new IM(p);return Promise.resolve(g)}var T8=(0,F.Z)(function c(d,p){(0,M.Z)(this,c),this.name=d,this.token=p});function E8(c){if(gh&&!gh.get(gR,!1)){throw new xe(400,"")}gh=c;var p=c.get(Hf),g=c.get(cR,null);return g&&g.forEach(function(b){return b()}),p}function vh(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],g="Platform: ".concat(d),b=new wa(g);return function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Q=nS();if(!Q||Q.injector.get(gR,!1)){var le=[].concat((0,y.Z)(p),(0,y.Z)(Z),[{provide:b,useValue:!0}]);c?c(le):E8(S8(le,g))}return M8(b)}}function M8(c){var d=nS();if(!d){throw new xe(401,"")}return d}function S8(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;return Bs.create({name:d,providers:[{provide:TE,useValue:"platform"},{provide:vR,useValue:function(){return gh=null}}].concat((0,y.Z)(c))})}function nS(){var c;return null!==(c=null==gh?void 0:gh.get(Hf))&&void 0!==c?c:null}var Hf=function(){function c(d){(0,M.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,F.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,g){var b=this,he=function rS(c,d){var p;return p="noop"===c?new _R:("zone.js"===c?void 0:c)||new Uf({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==d?void 0:d.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==d?void 0:d.ngZoneRunCoalescing)}),p}(g?g.ngZone:void 0,{ngZoneEventCoalescing:g&&g.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:g&&g.ngZoneRunCoalescing||!1}),Ie=[{provide:Uf,useValue:he}];return he.run(function(){var et=Bs.create({providers:Ie,parent:b.injector,name:p.moduleType.name}),Tt=p.create(et),Ot=Tt.injector.get(Vm,null);if(!Ot){throw new xe(402,"")}return he.runOutsideAngular(function(){var hn=he.onError.subscribe({next:function(Xn){Ot.handleError(Xn)}});Tt.onDestroy(function(){oS(b._modules,Tt),hn.unsubscribe()})}),function bR(c,d,p){try{var g=p();return eM(g)?g.catch(function(b){throw d.runOutsideAngular(function(){return c.handleError(b)}),b}):g}catch(b){throw d.runOutsideAngular(function(){return c.handleError(b)}),b}}(Ot,he,function(){var hn=Tt.injector.get(Ad);return hn.runInitializers(),hn.donePromise.then(function(){return function pM(c){Zt(c,"Expected localeId to be defined"),"string"==typeof c&&(S1=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(QM,wd)||wd),b._moduleDoBootstrap(Tt),Tt})})})}},{key:"bootstrapModule",value:function(p){var g=this,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Z=iS({},b);return yR(this.injector,0,p).then(function(Q){return g.bootstrapModuleFactory(Q,Z)})}},{key:"_moduleDoBootstrap",value:function(p){var g=p.injector.get(Od);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(Z){return g.bootstrap(Z)});else{if(!p.instance.ngDoBootstrap){throw new xe(403,"")}p.instance.ngDoBootstrap(g)}this._modules.push(p)}},{key:"onDestroy",value:function(p){this._destroyListeners.push(p)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed){throw new xe(404,"")}this._modules.slice().forEach(function(b){return b.destroy()}),this._destroyListeners.forEach(function(b){return b()});var g=this._injector.get(vR,null);null==g||g(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function iS(c,d){return c=Array.isArray(d)?d.reduce(iS,c):Object.assign(Object.assign({},c),d)}Hf.\u0275fac=function(d){return new(d||Hf)(rs(Bs))},Hf.\u0275prov=yt({token:Hf,factory:Hf.\u0275fac,providedIn:"platform"});var Od=function(){function c(d,p,g,b){var Z=this;(0,M.Z)(this,c),this._zone=d,this._injector=p,this._exceptionHandler=g,this._initStatus=b,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){Z._zone.run(function(){Z.tick()})}});var Q=new x.y(function(he){Z._stable=Z._zone.isStable&&!Z._zone.hasPendingMacrotasks&&!Z._zone.hasPendingMicrotasks,Z._zone.runOutsideAngular(function(){he.next(Z._stable),he.complete()})}),le=new x.y(function(he){var Ie;Z._zone.runOutsideAngular(function(){Ie=Z._zone.onStable.subscribe(function(){Uf.assertNotInAngularZone(),XM(function(){!Z._stable&&!Z._zone.hasPendingMacrotasks&&!Z._zone.hasPendingMicrotasks&&(Z._stable=!0,he.next(!0))})})});var et=Z._zone.onUnstable.subscribe(function(){Uf.assertInAngularZone(),Z._stable&&(Z._stable=!1,Z._zone.runOutsideAngular(function(){he.next(!1)}))});return function(){Ie.unsubscribe(),et.unsubscribe()}});this.isStable=(0,N.T)(Q,le.pipe((0,R.B)()))}return(0,F.Z)(c,[{key:"bootstrap",value:function(p,g){var Q,b=this;if(!this._initStatus.done){throw new xe(405,"")}p instanceof U4?Q=p:Q=this._injector.get(R1).resolveComponentFactory(p);this.componentTypes.push(Q.componentType);var he=function k8(c){return c.isBoundToModule}(Q)?void 0:this._injector.get(Ta),Ie=g||Q.selector,et=Q.create(Bs.NULL,[],Ie,he),Tt=et.location.nativeElement,Ot=et.injector.get(Ac,null),zt=Ot&&et.injector.get(F_);return Ot&&zt&&zt.registerApplication(Tt,Ot),et.onDestroy(function(){b.detachView(et.hostView),oS(b.components,et),zt&&zt.unregisterApplication(Tt)}),this._loadComponent(et),et}},{key:"tick",value:function(){var p=this;if(this._runningTick){throw new xe(101,"")}try{this._runningTick=!0;var Z,b=(0,D.Z)(this._views);try{for(b.s();!(Z=b.n()).done;){Z.value.detectChanges()}}catch(et){b.e(et)}finally{b.f()}}catch(et){this._zone.runOutsideAngular(function(){return p._exceptionHandler.handleError(et)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(p){var g=p;this._views.push(g),g.attachToAppRef(this)}},{key:"detachView",value:function(p){var g=p;oS(this._views,g),g.detachFromAppRef()}},{key:"_loadComponent",value:function(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(fR,[]).concat(this._bootstrapListeners).forEach(function(b){return b(p)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(p){return p.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();function oS(c,d){var p=c.indexOf(d);p>-1&&c.splice(p,1)}Od.\u0275fac=function(d){return new(d||Od)(rs(Uf),rs(Bs),rs(Vm),rs(Ad))},Od.\u0275prov=yt({token:Od,factory:Od.\u0275fac,providedIn:"root"});var kR=!1;function D8(){if(kR)throw new Error("Cannot enable prod mode after platform setup.");!1}var aS=(0,F.Z)(function c(){(0,M.Z)(this,c)});aS.__NG_ELEMENT_ID__=function A8(c){return function O8(c,d,p){if(oi(c)&&!p){var g=Ce(c.index,d);return new ju(g,g)}if(47&c.type){var b=d[16];return new ju(b,d)}return null}(Ai(),Nn(),16==(16&c))};var I8=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p)}(aS),P8=function(c){(0,O.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,M.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p)}(I8);var xR=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"supports",value:function(p){return a_(p)}},{key:"create",value:function(p){return new Q1(p)}}]),c}(),Z8=function(d,p){return p},Q1=function(){function c(d){(0,M.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=d||Z8}return(0,F.Z)(c,[{key:"forEachItem",value:function(p){var g;for(g=this._itHead;null!==g;g=g._next)p(g)}},{key:"forEachOperation",value:function(p){for(var g=this._itHead,b=this._removalsHead,Z=0,Q=null;g||b;){var le=!b||g&&g.currentIndex<OR(b,Z,Q)?g:b,he=OR(le,Z,Q),Ie=le.currentIndex;if(le===b)Z--,b=b._nextRemoved;else if(g=g._next,null==le.previousIndex)Z++;else{Q||(Q=[]);var et=he-Z,Tt=Ie-Z;if(et!=Tt){for(var Ot=0;Ot<et;Ot++){var zt=Ot<Q.length?Q[Ot]:Q[Ot]=0,hn=zt+Ot;Tt<=hn&&hn<et&&(Q[Ot]=zt+1)}Q[le.previousIndex]=Tt-et}}he!==Ie&&p(le,he,Ie)}}},{key:"forEachPreviousItem",value:function(p){var g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)p(g)}},{key:"forEachAddedItem",value:function(p){var g;for(g=this._additionsHead;null!==g;g=g._nextAdded)p(g)}},{key:"forEachMovedItem",value:function(p){var g;for(g=this._movesHead;null!==g;g=g._nextMoved)p(g)}},{key:"forEachRemovedItem",value:function(p){var g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)p(g)}},{key:"forEachIdentityChange",value:function(p){var g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)p(g)}},{key:"diff",value:function(p){if(null==p&&(p=[]),!a_(p)){throw new xe(900,"")}return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var g=this;this._reset();var Q,le,he,b=this._itHead,Z=!1;if(Array.isArray(p)){this.length=p.length;for(var Ie=0;Ie<this.length;Ie++)le=p[Ie],he=this._trackByFn(Ie,le),null!==b&&Object.is(b.trackById,he)?(Z&&(b=this._verifyReinsertion(b,le,he,Ie)),Object.is(b.item,le)||this._addIdentityChange(b,le)):(b=this._mismatch(b,le,he,Ie),Z=!0),b=b._next}else Q=0,function SF(c,d){if(Array.isArray(c))for(var p=0;p<c.length;p++)d(c[p]);else for(var b,g=c[Ef()]();!(b=g.next()).done;)d(b.value)}(p,function(et){he=g._trackByFn(Q,et),null!==b&&Object.is(b.trackById,he)?(Z&&(b=g._verifyReinsertion(b,et,he,Q)),Object.is(b.item,et)||g._addIdentityChange(b,et)):(b=g._mismatch(b,et,he,Q),Z=!0),b=b._next,Q++}),this.length=Q;return this._truncate(b),this.collection=p,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 p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(p,g,b,Z){var Q;return null===p?Q=this._itTail:(Q=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null))?(Object.is(p.item,g)||this._addIdentityChange(p,g),this._reinsertAfter(p,Q,Z)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(b,Z))?(Object.is(p.item,g)||this._addIdentityChange(p,g),this._moveAfter(p,Q,Z)):p=this._addAfter(new DR(g,b),Q,Z),p}},{key:"_verifyReinsertion",value:function(p,g,b,Z){var Q=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null);return null!==Q?p=this._reinsertAfter(Q,p._prev,Z):p.currentIndex!=Z&&(p.currentIndex=Z,this._addToMoves(p,Z)),p}},{key:"_truncate",value:function(p){for(;null!==p;){var g=p._next;this._addToRemovals(this._unlink(p)),p=g}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(p,g,b){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var Z=p._prevRemoved,Q=p._nextRemoved;return null===Z?this._removalsHead=Q:Z._nextRemoved=Q,null===Q?this._removalsTail=Z:Q._prevRemoved=Z,this._insertAfter(p,g,b),this._addToMoves(p,b),p}},{key:"_moveAfter",value:function(p,g,b){return this._unlink(p),this._insertAfter(p,g,b),this._addToMoves(p,b),p}},{key:"_addAfter",value:function(p,g,b){return this._insertAfter(p,g,b),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,g,b){var Z=null===g?this._itHead:g._next;return p._next=Z,p._prev=g,null===Z?this._itTail=p:Z._prev=p,null===g?this._itHead=p:g._next=p,null===this._linkedRecords&&(this._linkedRecords=new AR),this._linkedRecords.put(p),p.currentIndex=b,p}},{key:"_remove",value:function(p){return this._addToRemovals(this._unlink(p))}},{key:"_unlink",value:function(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);var g=p._prev,b=p._next;return null===g?this._itHead=b:g._next=b,null===b?this._itTail=g:b._prev=g,p}},{key:"_addToMoves",value:function(p,g){return p.previousIndex===g||(null===this._movesTail?this._movesTail=this._movesHead=p:this._movesTail=this._movesTail._nextMoved=p),p}},{key:"_addToRemovals",value:function(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new AR),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}},{key:"_addIdentityChange",value:function(p,g){return p.item=g,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=p:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=p,p}}]),c}(),DR=(0,F.Z)(function c(d,p){(0,M.Z)(this,c),this.item=d,this.trackById=p,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}),N8=function(){function c(){(0,M.Z)(this,c),this._head=null,this._tail=null}return(0,F.Z)(c,[{key:"add",value:function(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}},{key:"get",value:function(p,g){var b;for(b=this._head;null!==b;b=b._nextDup)if((null===g||g<=b.currentIndex)&&Object.is(b.trackById,p))return b;return null}},{key:"remove",value:function(p){var g=p._prevDup,b=p._nextDup;return null===g?this._head=b:g._nextDup=b,null===b?this._tail=g:b._prevDup=g,null===this._head}}]),c}(),AR=function(){function c(){(0,M.Z)(this,c),this.map=new Map}return(0,F.Z)(c,[{key:"put",value:function(p){var g=p.trackById,b=this.map.get(g);b||(b=new N8,this.map.set(g,b)),b.add(p)}},{key:"get",value:function(p,g){var b=p,Z=this.map.get(b);return Z?Z.get(p,g):null}},{key:"remove",value:function(p){var g=p.trackById;return this.map.get(g).remove(p)&&this.map.delete(g),p}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),c}();function OR(c,d,p){var g=c.previousIndex;if(null===g)return g;var b=0;return p&&g<p.length&&(b=p[g]),g+d+b}var cS=function(){function c(){(0,M.Z)(this,c)}return(0,F.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||A3(p)}},{key:"create",value:function(){return new Fl}}]),c}(),Fl=function(){function c(){(0,M.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,F.Z)(c,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(p){var g;for(g=this._mapHead;null!==g;g=g._next)p(g)}},{key:"forEachPreviousItem",value:function(p){var g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)p(g)}},{key:"forEachChangedItem",value:function(p){var g;for(g=this._changesHead;null!==g;g=g._nextChanged)p(g)}},{key:"forEachAddedItem",value:function(p){var g;for(g=this._additionsHead;null!==g;g=g._nextAdded)p(g)}},{key:"forEachRemovedItem",value:function(p){var g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)p(g)}},{key:"diff",value:function(p){if(p){if(!(p instanceof Map||A3(p))){throw new xe(900,"")}}else p=new Map;return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var g=this;this._reset();var b=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(Q,le){if(b&&b.key===le)g._maybeAddToChanges(b,Q),g._appendAfter=b,b=b._next;else{var he=g._getOrCreateRecordForKey(le,Q);b=g._insertBeforeOrAppend(b,he)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(var Z=b;null!==Z;Z=Z._nextRemoved)Z===this._mapHead&&(this._mapHead=null),this._records.delete(Z.key),Z._nextRemoved=Z._next,Z.previousValue=Z.currentValue,Z.currentValue=null,Z._prev=null,Z._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(p,g){if(p){var b=p._prev;return g._next=p,g._prev=b,p._prev=g,b&&(b._next=g),p===this._mapHead&&(this._mapHead=g),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}},{key:"_getOrCreateRecordForKey",value:function(p,g){if(this._records.has(p)){var b=this._records.get(p);this._maybeAddToChanges(b,g);var Z=b._prev,Q=b._next;return Z&&(Z._next=Q),Q&&(Q._prev=Z),b._next=null,b._prev=null,b}var le=new IR(p);return this._records.set(p,le),le.currentValue=g,this._addToAdditions(le),le}},{key:"_reset",value:function(){if(this.isDirty){var p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(p,g){Object.is(g,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=g,this._addToChanges(p))}},{key:"_addToAdditions",value:function(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}},{key:"_addToChanges",value:function(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}},{key:"_forEach",value:function(p,g){p instanceof Map?p.forEach(g):Object.keys(p).forEach(function(b){return g(p[b],b)})}}]),c}(),IR=(0,F.Z)(function c(d){(0,M.Z)(this,c),this.key=d,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 Id(){return new gi([new xR])}var gi=function(){function c(d){(0,M.Z)(this,c),this.factories=d}return(0,F.Z)(c,[{key:"find",value:function(p){var g=this.factories.find(function(Z){return Z.supports(p)});if(null!=g)return g;throw new xe(901,"")}}],[{key:"create",value:function(p,g){if(null!=g){var b=g.factories.slice();p=p.concat(b)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(b){return c.create(p,b||Id())},deps:[[c,new Nm,new Zm]]}}}]),c}();function bh(){return new jf([new cS])}gi.\u0275prov=yt({token:gi,providedIn:"root",factory:Id});var jf=function(){function c(d){(0,M.Z)(this,c),this.factories=d}return(0,F.Z)(c,[{key:"find",value:function(p){var g=this.factories.find(function(Z){return Z.supports(p)});if(g)return g;throw new xe(901,"")}}],[{key:"create",value:function(p,g){if(g){var b=g.factories.slice();p=p.concat(b)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(b){return c.create(p,b||bh())},deps:[[c,new Nm,new Zm]]}}}]),c}();jf.\u0275prov=yt({token:jf,providedIn:"root",factory:bh});var X1=[new cS],$1=[new xR],Ch=(new gi($1),new jf(X1),vh(null,"core",[])),Wu=(0,F.Z)(function c(d){(0,M.Z)(this,c)});Wu.\u0275fac=function(d){return new(d||Wu)(rs(Od))},Wu.\u0275mod=vn({type:Wu}),Wu.\u0275inj=cn({})},3075:function(qe,J,m){"use strict";m.d(J,{Cf:function(){return te},F:function(){return Pi},Fj:function(){return $},JJ:function(){return V},JL:function(){return Jn},JU:function(){return T},NI:function(){return lo},On:function(){return bi},Q7:function(){return wo},UX:function(){return $i},Zs:function(){return ja},_Y:function(){return Nr},a5:function(){return yt},cw:function(){return uo},kI:function(){return Oe},oH:function(){return Ji},qu:function(){return Di},sg:function(){return Co},u:function(){return tr},u5:function(){return ai},wV:function(){return oa}});var z=m(7326),Y=m(7762),S=m(4902),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(5e3),K=m(9808),F=m(3527),M=m(567),O=m(4850),k=function(){function Ye(Le,Ce){(0,P.Z)(this,Ye),this._renderer=Le,this._elementRef=Ce,this.onChange=function(Je){},this.onTouched=function(){}}return(0,D.Z)(Ye,[{key:"setProperty",value:function(Ce,Je){this._renderer.setProperty(this._elementRef.nativeElement,Ce,Je)}},{key:"registerOnTouched",value:function(Ce){this.onTouched=Ce}},{key:"registerOnChange",value:function(Ce){this.onChange=Ce}},{key:"setDisabledState",value:function(Ce){this.setProperty("disabled",Ce)}}]),Ye}();k.\u0275fac=function(Le){return new(Le||k)(y.Y36(y.Qsj),y.Y36(y.SBq))},k.\u0275dir=y.lG2({type:k});var I=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce)}(k);I.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(I)))(Ce||I)}}(),I.\u0275dir=y.lG2({type:I,features:[y.qOj]});var T=new y.OlP("NgValueAccessor"),w={provide:T,useExisting:(0,y.Gpc)(function(){return x}),multi:!0},x=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce,[{key:"writeValue",value:function(Ke){this.setProperty("checked",Ke)}}]),Ce}(I);x.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(x)))(Ce||x)}}(),x.\u0275dir=y.lG2({type:x,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("change",function(Ke){return Ce.onChange(Ke.target.checked)})("blur",function(){return Ce.onTouched()})},features:[y._Bn([w]),y.qOj]});var N={provide:T,useExisting:(0,y.Gpc)(function(){return $}),multi:!0};var W=new y.OlP("CompositionEventMode"),$=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this,Je,Ke))._compositionMode=Rt,an._composing=!1,null==an._compositionMode&&(an._compositionMode=!function R(){var Ye=(0,K.q)()?(0,K.q)().getUserAgent():"";return/android (\d+)/.test(Ye.toLowerCase())}()),an}return(0,D.Z)(Ce,[{key:"writeValue",value:function(Ke){var Rt=null==Ke?"":Ke;this.setProperty("value",Rt)}},{key:"_handleInput",value:function(Ke){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ke)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Ke){this._composing=!1,this._compositionMode&&this.onChange(Ke)}}]),Ce}(k);function ce(Ye){return null==Ye||0===Ye.length}function se(Ye){return null!=Ye&&"number"==typeof Ye.length}$.\u0275fac=function(Le){return new(Le||$)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(W,8))},$.\u0275dir=y.lG2({type:$,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(Le,Ce){1&Le&&y.NdJ("input",function(Ke){return Ce._handleInput(Ke.target.value)})("blur",function(){return Ce.onTouched()})("compositionstart",function(){return Ce._compositionStart()})("compositionend",function(Ke){return Ce._compositionEnd(Ke.target.value)})},features:[y._Bn([N]),y.qOj]});var te=new y.OlP("NgValidators"),oe=new y.OlP("NgAsyncValidators"),ve=/^(?=.{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])?)*$/,Oe=function(){function Ye(){(0,P.Z)(this,Ye)}return(0,D.Z)(Ye,null,[{key:"min",value:function(Ce){return st(Ce)}},{key:"max",value:function(Ce){return xe(Ce)}},{key:"required",value:function(Ce){return _e(Ce)}},{key:"requiredTrue",value:function(Ce){return ke(Ce)}},{key:"email",value:function(Ce){return Fe(Ce)}},{key:"minLength",value:function(Ce){return ct(Ce)}},{key:"maxLength",value:function(Ce){return Mt(Ce)}},{key:"pattern",value:function(Ce){return Nt(Ce)}},{key:"nullValidator",value:function(Ce){return null}},{key:"compose",value:function(Ce){return nt(Ce)}},{key:"composeAsync",value:function(Ce){return It(Ce)}}]),Ye}();function st(Ye){return function(Le){if(ce(Le.value)||ce(Ye))return null;var Ce=parseFloat(Le.value);return!isNaN(Ce)&&Ce<Ye?{min:{min:Ye,actual:Le.value}}:null}}function xe(Ye){return function(Le){if(ce(Le.value)||ce(Ye))return null;var Ce=parseFloat(Le.value);return!isNaN(Ce)&&Ce>Ye?{max:{max:Ye,actual:Le.value}}:null}}function _e(Ye){return ce(Ye.value)?{required:!0}:null}function ke(Ye){return!0===Ye.value?null:{required:!0}}function Fe(Ye){return ce(Ye.value)||ve.test(Ye.value)?null:{email:!0}}function ct(Ye){return function(Le){return ce(Le.value)||!se(Le.value)?null:Le.value.length<Ye?{minlength:{requiredLength:Ye,actualLength:Le.value.length}}:null}}function Mt(Ye){return function(Le){return se(Le.value)&&Le.value.length>Ye?{maxlength:{requiredLength:Ye,actualLength:Le.value.length}}:null}}function Nt(Ye){return Ye?("string"==typeof Ye?(Ce="","^"!==Ye.charAt(0)&&(Ce+="^"),Ce+=Ye,"$"!==Ye.charAt(Ye.length-1)&&(Ce+="$"),Le=new RegExp(Ce)):(Ce=Ye.toString(),Le=Ye),function(Je){if(ce(Je.value))return null;var Ke=Je.value;return Le.test(Ke)?null:{pattern:{requiredPattern:Ce,actualValue:Ke}}}):Xt;var Le,Ce}function Xt(Ye){return null}function en(Ye){return null!=Ye}function qt(Ye){var Le=(0,y.QGY)(Ye)?(0,F.D)(Ye):Ye;return(0,y.CqO)(Le),Le}function Xe(Ye){var Le={};return Ye.forEach(function(Ce){Le=null!=Ce?Object.assign(Object.assign({},Le),Ce):Le}),0===Object.keys(Le).length?null:Le}function jt(Ye,Le){return Le.map(function(Ce){return Ce(Ye)})}function vt(Ye){return Ye.map(function(Le){return function it(Ye){return!Ye.validate}(Le)?Le:function(Ce){return Le.validate(Ce)}})}function nt(Ye){if(!Ye)return null;var Le=Ye.filter(en);return 0==Le.length?null:function(Ce){return Xe(jt(Ce,Le))}}function Lt(Ye){return null!=Ye?nt(vt(Ye)):null}function It(Ye){if(!Ye)return null;var Le=Ye.filter(en);return 0==Le.length?null:function(Ce){var Je=jt(Ce,Le).map(qt);return(0,M.D)(Je).pipe((0,O.U)(Xe))}}function on(Ye){return null!=Ye?It(vt(Ye)):null}function _n(Ye,Le){return null===Ye?[Le]:Array.isArray(Ye)?[].concat((0,S.Z)(Ye),[Le]):[Ye,Le]}function An(Ye){return Ye._rawValidators}function Gt(Ye){return Ye._rawAsyncValidators}function Zt(Ye){return Ye?Array.isArray(Ye)?Ye:[Ye]:[]}function Et(Ye,Le){return Array.isArray(Ye)?Ye.includes(Le):Ye===Le}function Ut(Ye,Le){var Ce=Zt(Le);return Zt(Ye).forEach(function(Ke){Et(Ce,Ke)||Ce.push(Ke)}),Ce}function Ht(Ye,Le){return Zt(Le).filter(function(Ce){return!Et(Ye,Ce)})}var ln=function(){function Ye(){(0,P.Z)(this,Ye),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,D.Z)(Ye,[{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(Ce){this._rawValidators=Ce||[],this._composedValidatorFn=Lt(this._rawValidators)}},{key:"_setAsyncValidators",value:function(Ce){this._rawAsyncValidators=Ce||[],this._composedAsyncValidatorFn=on(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(Ce){this._onDestroyCallbacks.push(Ce)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(Ce){return Ce()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(Ce)}},{key:"hasError",value:function(Ce,Je){return!!this.control&&this.control.hasError(Ce,Je)}},{key:"getError",value:function(Ce,Je){return this.control?this.control.getError(Ce,Je):null}}]),Ye}(),yt=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments))._parent=null,Je.name=null,Je.valueAccessor=null,Je}return(0,D.Z)(Ce)}(ln),mt=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),Ce}(ln),cn=function(){function Ye(Le){(0,P.Z)(this,Ye),this._cd=Le}return(0,D.Z)(Ye,[{key:"is",value:function(Ce){var Je,Ke,Rt;return"submitted"===Ce?!!(null===(Je=this._cd)||void 0===Je?void 0:Je.submitted):!!(null===(Rt=null===(Ke=this._cd)||void 0===Ke?void 0:Ke.control)||void 0===Rt?void 0:Rt[Ce])}}]),Ye}(),V=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je){return(0,P.Z)(this,Ce),Le.call(this,Je)}return(0,D.Z)(Ce)}(cn);V.\u0275fac=function(Le){return new(Le||V)(y.Y36(yt,2))},V.\u0275dir=y.lG2({type:V,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Le,Ce){2&Le&&y.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))},features:[y.qOj]});var Jn=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je){return(0,P.Z)(this,Ce),Le.call(this,Je)}return(0,D.Z)(Ce)}(cn);Jn.\u0275fac=function(Le){return new(Le||Jn)(y.Y36(mt,10))},Jn.\u0275dir=y.lG2({type:Jn,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Le,Ce){2&Le&&y.ekj("ng-untouched",Ce.is("untouched"))("ng-touched",Ce.is("touched"))("ng-pristine",Ce.is("pristine"))("ng-dirty",Ce.is("dirty"))("ng-valid",Ce.is("valid"))("ng-invalid",Ce.is("invalid"))("ng-pending",Ce.is("pending"))("ng-submitted",Ce.is("submitted"))},features:[y.qOj]});function Zn(Ye,Le){return[].concat((0,S.Z)(Le.path),[Ye])}function jn(Ye,Le){Kt(Ye,Le),Le.valueAccessor.writeValue(Ye.value),function Ue(Ye,Le){Le.valueAccessor.registerOnChange(function(Ce){Ye._pendingValue=Ce,Ye._pendingChange=!0,Ye._pendingDirty=!0,"change"===Ye.updateOn&&He(Ye,Le)})}(Ye,Le),function bt(Ye,Le){var Ce=function(Ke,Rt){Le.valueAccessor.writeValue(Ke),Rt&&Le.viewToModelUpdate(Ke)};Ye.registerOnChange(Ce),Le._registerOnDestroy(function(){Ye._unregisterOnChange(Ce)})}(Ye,Le),function Ee(Ye,Le){Le.valueAccessor.registerOnTouched(function(){Ye._pendingTouched=!0,"blur"===Ye.updateOn&&Ye._pendingChange&&He(Ye,Le),"submit"!==Ye.updateOn&&Ye.markAsTouched()})}(Ye,Le),function Yn(Ye,Le){if(Le.valueAccessor.setDisabledState){var Ce=function(Ke){Le.valueAccessor.setDisabledState(Ke)};Ye.registerOnDisabledChange(Ce),Le._registerOnDestroy(function(){Ye._unregisterOnDisabledChange(Ce)})}}(Ye,Le)}function mn(Ye,Le){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Je=function(){};Le.valueAccessor&&(Le.valueAccessor.registerOnChange(Je),Le.valueAccessor.registerOnTouched(Je)),tt(Ye,Le),Ye&&(Le._invokeOnDestroyCallbacks(),Ye._registerOnCollectionChange(function(){}))}function lr(Ye,Le){Ye.forEach(function(Ce){Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(Le)})}function Kt(Ye,Le){var Ce=An(Ye);null!==Le.validator?Ye.setValidators(_n(Ce,Le.validator)):"function"==typeof Ce&&Ye.setValidators([Ce]);var Je=Gt(Ye);null!==Le.asyncValidator?Ye.setAsyncValidators(_n(Je,Le.asyncValidator)):"function"==typeof Je&&Ye.setAsyncValidators([Je]);var Ke=function(){return Ye.updateValueAndValidity()};lr(Le._rawValidators,Ke),lr(Le._rawAsyncValidators,Ke)}function tt(Ye,Le){var Ce=!1;if(null!==Ye){if(null!==Le.validator){var Je=An(Ye);if(Array.isArray(Je)&&Je.length>0){var Ke=Je.filter(function(Lr){return Lr!==Le.validator});Ke.length!==Je.length&&(Ce=!0,Ye.setValidators(Ke))}}if(null!==Le.asyncValidator){var Rt=Gt(Ye);if(Array.isArray(Rt)&&Rt.length>0){var an=Rt.filter(function(Lr){return Lr!==Le.asyncValidator});an.length!==Rt.length&&(Ce=!0,Ye.setAsyncValidators(an))}}}var nr=function(){};return lr(Le._rawValidators,nr),lr(Le._rawAsyncValidators,nr),Ce}function He(Ye,Le){Ye._pendingDirty&&Ye.markAsDirty(),Ye.setValue(Ye._pendingValue,{emitModelToViewChange:!1}),Le.viewToModelUpdate(Ye._pendingValue),Ye._pendingChange=!1}function Yt(Ye,Le){Kt(Ye,Le)}function Ae(Ye,Le){if(!Ye.hasOwnProperty("model"))return!1;var Ce=Ye.model;return!!Ce.isFirstChange()||!Object.is(Le,Ce.currentValue)}function _t(Ye,Le){Ye._syncPendingControls(),Le.forEach(function(Ce){var Je=Ce.control;"submit"===Je.updateOn&&Je._pendingChange&&(Ce.viewToModelUpdate(Je._pendingValue),Je._pendingChange=!1)})}function Wt(Ye,Le){if(!Le)return null;Array.isArray(Le);var Ce=void 0,Je=void 0,Ke=void 0;return Le.forEach(function(Rt){Rt.constructor===$?Ce=Rt:function Qe(Ye){return Object.getPrototypeOf(Ye.constructor)===I}(Rt)?Je=Rt:Ke=Rt}),Ke||Je||Ce||null}function vn(Ye,Le){var Ce=Ye.indexOf(Le);Ce>-1&&Ye.splice(Ce,1)}var Rr="VALID",$r="INVALID",Mr="PENDING",Hi="DISABLED";function qi(Ye){return(_a(Ye)?Ye.validators:Ye)||null}function Ja(Ye){return Array.isArray(Ye)?Lt(Ye):Ye||null}function Na(Ye,Le){return(_a(Le)?Le.asyncValidators:Ye)||null}function qo(Ye){return Array.isArray(Ye)?on(Ye):Ye||null}function _a(Ye){return null!=Ye&&!Array.isArray(Ye)&&"object"==typeof Ye}var Ko=function(Le){return Le instanceof lo},yi=function(Le){return Le instanceof uo},Qa=function(Le){return Le instanceof mi};function zi(Ye){return Ko(Ye)?Ye.value:Ye.getRawValue()}function or(Ye,Le){var Ce=yi(Ye),Je=Ye.controls;if(!(Ce?Object.keys(Je):Je).length)throw new y.vHH(1e3,"");if(!Je[Le])throw new y.vHH(1001,"")}function Pr(Ye,Le){yi(Ye);Ye._forEachChild(function(Je,Ke){if(void 0===Le[Ke])throw new y.vHH(1002,"")})}var ci=function(){function Ye(Le,Ce){(0,P.Z)(this,Ye),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=Le,this._rawAsyncValidators=Ce,this._composedValidatorFn=Ja(this._rawValidators),this._composedAsyncValidatorFn=qo(this._rawAsyncValidators)}return(0,D.Z)(Ye,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(Ce){this._rawValidators=this._composedValidatorFn=Ce}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(Ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ce}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Rr}},{key:"invalid",get:function(){return this.status===$r}},{key:"pending",get:function(){return this.status==Mr}},{key:"disabled",get:function(){return this.status===Hi}},{key:"enabled",get:function(){return this.status!==Hi}},{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(Ce){this._rawValidators=Ce,this._composedValidatorFn=Ja(Ce)}},{key:"setAsyncValidators",value:function(Ce){this._rawAsyncValidators=Ce,this._composedAsyncValidatorFn=qo(Ce)}},{key:"addValidators",value:function(Ce){this.setValidators(Ut(Ce,this._rawValidators))}},{key:"addAsyncValidators",value:function(Ce){this.setAsyncValidators(Ut(Ce,this._rawAsyncValidators))}},{key:"removeValidators",value:function(Ce){this.setValidators(Ht(Ce,this._rawValidators))}},{key:"removeAsyncValidators",value:function(Ce){this.setAsyncValidators(Ht(Ce,this._rawAsyncValidators))}},{key:"hasValidator",value:function(Ce){return Et(this._rawValidators,Ce)}},{key:"hasAsyncValidator",value:function(Ce){return Et(this._rawAsyncValidators,Ce)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!Ce.onlySelf&&this._parent.markAsTouched(Ce)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(Ce){return Ce.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Je){Je.markAsUntouched({onlySelf:!0})}),this._parent&&!Ce.onlySelf&&this._parent._updateTouched(Ce)}},{key:"markAsDirty",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!Ce.onlySelf&&this._parent.markAsDirty(Ce)}},{key:"markAsPristine",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Je){Je.markAsPristine({onlySelf:!0})}),this._parent&&!Ce.onlySelf&&this._parent._updatePristine(Ce)}},{key:"markAsPending",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Mr,!1!==Ce.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ce.onlySelf&&this._parent.markAsPending(Ce)}},{key:"disable",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Je=this._parentMarkedDirty(Ce.onlySelf);this.status=Hi,this.errors=null,this._forEachChild(function(Ke){Ke.disable(Object.assign(Object.assign({},Ce),{onlySelf:!0}))}),this._updateValue(),!1!==Ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Ce),{skipPristineCheck:Je})),this._onDisabledChange.forEach(function(Ke){return Ke(!0)})}},{key:"enable",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Je=this._parentMarkedDirty(Ce.onlySelf);this.status=Rr,this._forEachChild(function(Ke){Ke.enable(Object.assign(Object.assign({},Ce),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ce.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Ce),{skipPristineCheck:Je})),this._onDisabledChange.forEach(function(Ke){return Ke(!1)})}},{key:"_updateAncestors",value:function(Ce){this._parent&&!Ce.onlySelf&&(this._parent.updateValueAndValidity(Ce),Ce.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(Ce){this._parent=Ce}},{key:"updateValueAndValidity",value:function(){var Ce=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===Rr||this.status===Mr)&&this._runAsyncValidator(Ce.emitEvent)),!1!==Ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ce.onlySelf&&this._parent.updateValueAndValidity(Ce)}},{key:"_updateTreeValidity",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Je){return Je._updateTreeValidity(Ce)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ce.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Hi:Rr}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(Ce){var Je=this;if(this.asyncValidator){this.status=Mr,this._hasOwnPendingAsyncValidator=!0;var Ke=qt(this.asyncValidator(this));this._asyncValidationSubscription=Ke.subscribe(function(Rt){Je._hasOwnPendingAsyncValidator=!1,Je.setErrors(Rt,{emitEvent:Ce})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(Ce){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=Ce,this._updateControlsErrors(!1!==Je.emitEvent)}},{key:"get",value:function(Ce){return function bo(Ye,Le,Ce){if(null==Le||(Array.isArray(Le)||(Le=Le.split(Ce)),Array.isArray(Le)&&0===Le.length))return null;var Je=Ye;return Le.forEach(function(Ke){Je=yi(Je)?Je.controls.hasOwnProperty(Ke)?Je.controls[Ke]:null:Qa(Je)&&Je.at(Ke)||null}),Je}(this,Ce,".")}},{key:"getError",value:function(Ce,Je){var Ke=Je?this.get(Je):this;return Ke&&Ke.errors?Ke.errors[Ce]:null}},{key:"hasError",value:function(Ce,Je){return!!this.getError(Ce,Je)}},{key:"root",get:function(){for(var Ce=this;Ce._parent;)Ce=Ce._parent;return Ce}},{key:"_updateControlsErrors",value:function(Ce){this.status=this._calculateStatus(),Ce&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ce)}},{key:"_initObservables",value:function(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Hi:this.errors?$r:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mr)?Mr:this._anyControlsHaveStatus($r)?$r:Rr}},{key:"_anyControlsHaveStatus",value:function(Ce){return this._anyControls(function(Je){return Je.status===Ce})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(Ce){return Ce.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(Ce){return Ce.touched})}},{key:"_updatePristine",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!Ce.onlySelf&&this._parent._updatePristine(Ce)}},{key:"_updateTouched",value:function(){var Ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!Ce.onlySelf&&this._parent._updateTouched(Ce)}},{key:"_isBoxedValue",value:function(Ce){return"object"==typeof Ce&&null!==Ce&&2===Object.keys(Ce).length&&"value"in Ce&&"disabled"in Ce}},{key:"_registerOnCollectionChange",value:function(Ce){this._onCollectionChange=Ce}},{key:"_setUpdateStrategy",value:function(Ce){_a(Ce)&&null!=Ce.updateOn&&(this._updateOn=Ce.updateOn)}},{key:"_parentMarkedDirty",value:function(Ce){var Je=this._parent&&this._parent.dirty;return!Ce&&!!Je&&!this._parent._anyControlsDirty()}}]),Ye}(),lo=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je,Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Rt=arguments.length>1?arguments[1]:void 0,an=arguments.length>2?arguments[2]:void 0;return(0,P.Z)(this,Ce),(Je=Le.call(this,qi(Rt),Na(an,Rt))).defaultValue=null,Je._onChange=[],Je._pendingChange=!1,Je._applyFormState(Ke),Je._setUpdateStrategy(Rt),Je._initObservables(),Je.updateValueAndValidity({onlySelf:!0,emitEvent:!!Je.asyncValidator}),_a(Rt)&&Rt.initialValueIsDefault&&(Je._isBoxedValue(Ke)?Je.defaultValue=Ke.value:Je.defaultValue=Ke),Je}return(0,D.Z)(Ce,[{key:"setValue",value:function(Ke){var Rt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Ke,this._onChange.length&&!1!==an.emitModelToViewChange&&this._onChange.forEach(function(nr){return nr(Rt.value,!1!==an.emitViewToModelChange)}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Ke,Rt)}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Ke),this.markAsPristine(Rt),this.markAsUntouched(Rt),this.setValue(this.value,Rt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Ke){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Ke){this._onChange.push(Ke)}},{key:"_unregisterOnChange",value:function(Ke){vn(this._onChange,Ke)}},{key:"registerOnDisabledChange",value:function(Ke){this._onDisabledChange.push(Ke)}},{key:"_unregisterOnDisabledChange",value:function(Ke){vn(this._onDisabledChange,Ke)}},{key:"_forEachChild",value:function(Ke){}},{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(Ke){this._isBoxedValue(Ke)?(this.value=this._pendingValue=Ke.value,Ke.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ke}}]),Ce}(ci),uo=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this,qi(Ke),Na(Rt,Ke))).controls=Je,an._initObservables(),an._setUpdateStrategy(Ke),an._setUpControls(),an.updateValueAndValidity({onlySelf:!0,emitEvent:!!an.asyncValidator}),an}return(0,D.Z)(Ce,[{key:"registerControl",value:function(Ke,Rt){return this.controls[Ke]?this.controls[Ke]:(this.controls[Ke]=Rt,Rt.setParent(this),Rt._registerOnCollectionChange(this._onCollectionChange),Rt)}},{key:"addControl",value:function(Ke,Rt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Ke,Rt),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Ke){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),delete this.controls[Ke],this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Ke,Rt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),delete this.controls[Ke],Rt&&this.registerControl(Ke,Rt),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Ke){return this.controls.hasOwnProperty(Ke)&&this.controls[Ke].enabled}},{key:"setValue",value:function(Ke){var Rt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr(this,Ke),Object.keys(Ke).forEach(function(nr){or(Rt,nr),Rt.controls[nr].setValue(Ke[nr],{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Rt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ke&&(Object.keys(Ke).forEach(function(nr){Rt.controls[nr]&&Rt.controls[nr].patchValue(Ke[nr],{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an))}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(an,nr){an.reset(Ke[nr],{onlySelf:!0,emitEvent:Rt.emitEvent})}),this._updatePristine(Rt),this._updateTouched(Rt),this.updateValueAndValidity(Rt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Ke,Rt,an){return Ke[an]=zi(Rt),Ke})}},{key:"_syncPendingControls",value:function(){var Ke=this._reduceChildren(!1,function(Rt,an){return!!an._syncPendingControls()||Rt});return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}},{key:"_forEachChild",value:function(Ke){var Rt=this;Object.keys(this.controls).forEach(function(an){var nr=Rt.controls[an];nr&&Ke(nr,an)})}},{key:"_setUpControls",value:function(){var Ke=this;this._forEachChild(function(Rt){Rt.setParent(Ke),Rt._registerOnCollectionChange(Ke._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Ke){for(var Rt=0,an=Object.keys(this.controls);Rt<an.length;Rt++){var nr=an[Rt],Lr=this.controls[nr];if(this.contains(nr)&&Ke(Lr))return!0}return!1}},{key:"_reduceValue",value:function(){var Ke=this;return this._reduceChildren({},function(Rt,an,nr){return(an.enabled||Ke.disabled)&&(Rt[nr]=an.value),Rt})}},{key:"_reduceChildren",value:function(Ke,Rt){var an=Ke;return this._forEachChild(function(nr,Lr){an=Rt(an,nr,Lr)}),an}},{key:"_allControlsDisabled",value:function(){for(var Ke=0,Rt=Object.keys(this.controls);Ke<Rt.length;Ke++){var an=Rt[Ke];if(this.controls[an].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}}]),Ce}(ci),mi=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this,qi(Ke),Na(Rt,Ke))).controls=Je,an._initObservables(),an._setUpdateStrategy(Ke),an._setUpControls(),an.updateValueAndValidity({onlySelf:!0,emitEvent:!!an.asyncValidator}),an}return(0,D.Z)(Ce,[{key:"at",value:function(Ke){return this.controls[Ke]}},{key:"push",value:function(Ke){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Ke),this._registerControl(Ke),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Ke,Rt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Ke,0,Rt),this._registerControl(Rt),this.updateValueAndValidity({emitEvent:an.emitEvent})}},{key:"removeAt",value:function(Ke){var Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),this.controls.splice(Ke,1),this.updateValueAndValidity({emitEvent:Rt.emitEvent})}},{key:"setControl",value:function(Ke,Rt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),this.controls.splice(Ke,1),Rt&&(this.controls.splice(Ke,0,Rt),this._registerControl(Rt)),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Ke){var Rt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr(this,Ke),Ke.forEach(function(nr,Lr){or(Rt,Lr),Rt.at(Lr).setValue(nr,{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Rt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ke&&(Ke.forEach(function(nr,Lr){Rt.at(Lr)&&Rt.at(Lr).patchValue(nr,{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an))}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Rt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(an,nr){an.reset(Ke[nr],{onlySelf:!0,emitEvent:Rt.emitEvent})}),this._updatePristine(Rt),this._updateTouched(Rt),this.updateValueAndValidity(Rt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Ke){return zi(Ke)})}},{key:"clear",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(Rt){return Rt._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ke.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Ke=this.controls.reduce(function(Rt,an){return!!an._syncPendingControls()||Rt},!1);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}},{key:"_forEachChild",value:function(Ke){this.controls.forEach(function(Rt,an){Ke(Rt,an)})}},{key:"_updateValue",value:function(){var Ke=this;this.value=this.controls.filter(function(Rt){return Rt.enabled||Ke.disabled}).map(function(Rt){return Rt.value})}},{key:"_anyControls",value:function(Ke){return this.controls.some(function(Rt){return Rt.enabled&&Ke(Rt)})}},{key:"_setUpControls",value:function(){var Ke=this;this._forEachChild(function(Rt){return Ke._registerControl(Rt)})}},{key:"_allControlsDisabled",value:function(){var Rt,Ke=(0,Y.Z)(this.controls);try{for(Ke.s();!(Rt=Ke.n()).done;){if(Rt.value.enabled)return!1}}catch(nr){Ke.e(nr)}finally{Ke.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Ke){Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)}}]),Ce}(ci),Bo={provide:mt,useExisting:(0,y.Gpc)(function(){return Pi})},ei=Promise.resolve(null),Pi=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke){var Rt;return(0,P.Z)(this,Ce),(Rt=Le.call(this)).submitted=!1,Rt._directives=new Set,Rt.ngSubmit=new y.vpe,Rt.form=new uo({},Lt(Je),on(Ke)),Rt}return(0,D.Z)(Ce,[{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(Ke){var Rt=this;ei.then(function(){var an=Rt._findContainer(Ke.path);Ke.control=an.registerControl(Ke.name,Ke.control),jn(Ke.control,Ke),Ke.control.updateValueAndValidity({emitEvent:!1}),Rt._directives.add(Ke)})}},{key:"getControl",value:function(Ke){return this.form.get(Ke.path)}},{key:"removeControl",value:function(Ke){var Rt=this;ei.then(function(){var an=Rt._findContainer(Ke.path);an&&an.removeControl(Ke.name),Rt._directives.delete(Ke)})}},{key:"addFormGroup",value:function(Ke){var Rt=this;ei.then(function(){var an=Rt._findContainer(Ke.path),nr=new uo({});Yt(nr,Ke),an.registerControl(Ke.name,nr),nr.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Ke){var Rt=this;ei.then(function(){var an=Rt._findContainer(Ke.path);an&&an.removeControl(Ke.name)})}},{key:"getFormGroup",value:function(Ke){return this.form.get(Ke.path)}},{key:"updateModel",value:function(Ke,Rt){var an=this;ei.then(function(){an.form.get(Ke.path).setValue(Rt)})}},{key:"setValue",value:function(Ke){this.control.setValue(Ke)}},{key:"onSubmit",value:function(Ke){return this.submitted=!0,_t(this.form,this._directives),this.ngSubmit.emit(Ke),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ke),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Ke){return Ke.pop(),Ke.length?this.form.get(Ke):this.form}}]),Ce}(mt);Pi.\u0275fac=function(Le){return new(Le||Pi)(y.Y36(te,10),y.Y36(oe,10))},Pi.\u0275dir=y.lG2({type:Pi,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("submit",function(Ke){return Ce.onSubmit(Ke)})("reset",function(){return Ce.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Bo]),y.qOj]});var Wi=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce,[{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 Zn(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(){}}]),Ce}(mt);Wi.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(Wi)))(Ce||Wi)}}(),Wi.\u0275dir=y.lG2({type:Wi,features:[y.qOj]});var Do={provide:mt,useExisting:(0,y.Gpc)(function(){return _i})},_i=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Rt),an}return(0,D.Z)(Ce,[{key:"_checkParentType",value:function(){!(this._parent instanceof Ce)&&this._parent}}]),Ce}(Wi);_i.\u0275fac=function(Le){return new(Le||_i)(y.Y36(mt,5),y.Y36(te,10),y.Y36(oe,10))},_i.\u0275dir=y.lG2({type:_i,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[y._Bn([Do]),y.qOj]});var Jo={provide:yt,useExisting:(0,y.Gpc)(function(){return bi})},ga=Promise.resolve(null),bi=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt,an,nr){var Lr;return(0,P.Z)(this,Ce),(Lr=Le.call(this))._changeDetectorRef=nr,Lr.control=new lo,Lr._registered=!1,Lr.update=new y.vpe,Lr._parent=Je,Lr._setValidators(Ke),Lr._setAsyncValidators(Rt),Lr.valueAccessor=Wt((0,z.Z)(Lr),an),Lr}return(0,D.Z)(Ce,[{key:"ngOnChanges",value:function(Ke){if(this._checkForErrors(),!this._registered||"name"in Ke){if(this._registered&&(this._checkName(),this.formDirective)){var Rt=Ke.name.previousValue;this.formDirective.removeControl({name:Rt,path:this._getPath(Rt)})}this._setUpControl()}"isDisabled"in Ke&&this._updateDisabled(Ke),Ae(Ke,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(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{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(){jn(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(Ke){var Rt=this;ga.then(function(){var an;Rt.control.setValue(Ke,{emitViewToModelChange:!1}),null===(an=Rt._changeDetectorRef)||void 0===an||an.markForCheck()})}},{key:"_updateDisabled",value:function(Ke){var Rt=this,an=Ke.isDisabled.currentValue,nr=""===an||an&&"false"!==an;ga.then(function(){var Lr;nr&&!Rt.control.disabled?Rt.control.disable():!nr&&Rt.control.disabled&&Rt.control.enable(),null===(Lr=Rt._changeDetectorRef)||void 0===Lr||Lr.markForCheck()})}},{key:"_getPath",value:function(Ke){return this._parent?Zn(Ke,this._parent):[Ke]}}]),Ce}(yt);bi.\u0275fac=function(Le){return new(Le||bi)(y.Y36(mt,9),y.Y36(te,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(y.sBO,8))},bi.\u0275dir=y.lG2({type:bi,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([Jo]),y.qOj,y.TTD]});var Nr=(0,D.Z)(function Ye(){(0,P.Z)(this,Ye)});Nr.\u0275fac=function(Le){return new(Le||Nr)},Nr.\u0275dir=y.lG2({type:Nr,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var ws={provide:T,useExisting:(0,y.Gpc)(function(){return oa}),multi:!0},oa=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce,[{key:"writeValue",value:function(Ke){var Rt=null==Ke?"":Ke;this.setProperty("value",Rt)}},{key:"registerOnChange",value:function(Ke){this.onChange=function(Rt){Ke(""==Rt?null:parseFloat(Rt))}}}]),Ce}(I);oa.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(oa)))(Ce||oa)}}(),oa.\u0275dir=y.lG2({type:oa,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("input",function(Ke){return Ce.onChange(Ke.target.value)})("blur",function(){return Ce.onTouched()})},features:[y._Bn([ws]),y.qOj]});var Ba={provide:T,useExisting:(0,y.Gpc)(function(){return Li}),multi:!0};var Cn=(0,D.Z)(function Ye(){(0,P.Z)(this,Ye)});Cn.\u0275fac=function(Le){return new(Le||Cn)},Cn.\u0275mod=y.oAB({type:Cn}),Cn.\u0275inj=y.cJS({});var oi=function(){function Ye(){(0,P.Z)(this,Ye),this._accessors=[]}return(0,D.Z)(Ye,[{key:"add",value:function(Ce,Je){this._accessors.push([Ce,Je])}},{key:"remove",value:function(Ce){for(var Je=this._accessors.length-1;Je>=0;--Je)if(this._accessors[Je][1]===Ce)return void this._accessors.splice(Je,1)}},{key:"select",value:function(Ce){var Je=this;this._accessors.forEach(function(Ke){Je._isSameGroup(Ke,Ce)&&Ke[1]!==Ce&&Ke[1].fireUncheck(Ce.value)})}},{key:"_isSameGroup",value:function(Ce,Je){return!!Ce[0].control&&(Ce[0]._parent===Je._control._parent&&Ce[1].name===Je.name)}}]),Ye}();oi.\u0275fac=function(Le){return new(Le||oi)},oi.\u0275prov=y.Yz7({token:oi,factory:oi.\u0275fac,providedIn:Cn});var Li=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt,an){var nr;return(0,P.Z)(this,Ce),(nr=Le.call(this,Je,Ke))._registry=Rt,nr._injector=an,nr.onChange=function(){},nr}return(0,D.Z)(Ce,[{key:"ngOnInit",value:function(){this._control=this._injector.get(yt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Ke){this._state=Ke===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Ke){var Rt=this;this._fn=Ke,this.onChange=function(){Ke(Rt.value),Rt._registry.select(Rt)}}},{key:"fireUncheck",value:function(Ke){this.writeValue(Ke)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),Ce}(I);Li.\u0275fac=function(Le){return new(Le||Li)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(oi),y.Y36(y.zs3))},Li.\u0275dir=y.lG2({type:Li,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("change",function(){return Ce.onChange()})("blur",function(){return Ce.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Ba]),y.qOj]});var Ki={provide:T,useExisting:(0,y.Gpc)(function(){return ti}),multi:!0},ti=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){return(0,P.Z)(this,Ce),Le.apply(this,arguments)}return(0,D.Z)(Ce,[{key:"writeValue",value:function(Ke){this.setProperty("value",parseFloat(Ke))}},{key:"registerOnChange",value:function(Ke){this.onChange=function(Rt){Ke(""==Rt?null:parseFloat(Rt))}}}]),Ce}(I);ti.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(ti)))(Ce||ti)}}(),ti.\u0275dir=y.lG2({type:ti,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("change",function(Ke){return Ce.onChange(Ke.target.value)})("input",function(Ke){return Ce.onChange(Ke.target.value)})("blur",function(){return Ce.onTouched()})},features:[y._Bn([Ki]),y.qOj]});var Fo=new y.OlP("NgModelWithFormControlWarning"),va={provide:yt,useExisting:(0,y.Gpc)(function(){return Ji})},Ji=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt,an){var nr;return(0,P.Z)(this,Ce),(nr=Le.call(this))._ngModelWarningConfig=an,nr.update=new y.vpe,nr._ngModelWarningSent=!1,nr._setValidators(Je),nr._setAsyncValidators(Ke),nr.valueAccessor=Wt((0,z.Z)(nr),Rt),nr}return(0,D.Z)(Ce,[{key:"isDisabled",set:function(Ke){}},{key:"ngOnChanges",value:function(Ke){if(this._isControlChanged(Ke)){var Rt=Ke.form.previousValue;Rt&&mn(Rt,this,!1),jn(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ae(Ke,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&mn(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{key:"_isControlChanged",value:function(Ke){return Ke.hasOwnProperty("form")}}]),Ce}(yt);Ji._ngModelWarningSentOnce=!1,Ji.\u0275fac=function(Le){return new(Le||Ji)(y.Y36(te,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(Fo,8))},Ji.\u0275dir=y.lG2({type:Ji,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[y._Bn([va]),y.qOj,y.TTD]});var Ci={provide:mt,useExisting:(0,y.Gpc)(function(){return Co})},Co=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke){var Rt;return(0,P.Z)(this,Ce),(Rt=Le.call(this)).validators=Je,Rt.asyncValidators=Ke,Rt.submitted=!1,Rt._onCollectionChange=function(){return Rt._updateDomValue()},Rt.directives=[],Rt.form=null,Rt.ngSubmit=new y.vpe,Rt._setValidators(Je),Rt._setAsyncValidators(Ke),Rt}return(0,D.Z)(Ce,[{key:"ngOnChanges",value:function(Ke){this._checkFormPresent(),Ke.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(tt(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(Ke){var Rt=this.form.get(Ke.path);return jn(Rt,Ke),Rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ke),Rt}},{key:"getControl",value:function(Ke){return this.form.get(Ke.path)}},{key:"removeControl",value:function(Ke){mn(Ke.control||null,Ke,!1),vn(this.directives,Ke)}},{key:"addFormGroup",value:function(Ke){this._setUpFormContainer(Ke)}},{key:"removeFormGroup",value:function(Ke){this._cleanUpFormContainer(Ke)}},{key:"getFormGroup",value:function(Ke){return this.form.get(Ke.path)}},{key:"addFormArray",value:function(Ke){this._setUpFormContainer(Ke)}},{key:"removeFormArray",value:function(Ke){this._cleanUpFormContainer(Ke)}},{key:"getFormArray",value:function(Ke){return this.form.get(Ke.path)}},{key:"updateModel",value:function(Ke,Rt){this.form.get(Ke.path).setValue(Rt)}},{key:"onSubmit",value:function(Ke){return this.submitted=!0,_t(this.form,this.directives),this.ngSubmit.emit(Ke),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ke),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Ke=this;this.directives.forEach(function(Rt){var an=Rt.control,nr=Ke.form.get(Rt.path);an!==nr&&(mn(an||null,Rt),Ko(nr)&&(jn(nr,Rt),Rt.control=nr))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Ke){var Rt=this.form.get(Ke.path);Yt(Rt,Ke),Rt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Ke){if(this.form){var Rt=this.form.get(Ke.path);if(Rt){var an=function En(Ye,Le){return tt(Ye,Le)}(Rt,Ke);an&&Rt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Kt(this.form,this),this._oldForm&&tt(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),Ce}(mt);Co.\u0275fac=function(Le){return new(Le||Co)(y.Y36(te,10),y.Y36(oe,10))},Co.\u0275dir=y.lG2({type:Co,selectors:[["","formGroup",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("submit",function(Ke){return Ce.onSubmit(Ke)})("reset",function(){return Ce.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Ci]),y.qOj,y.TTD]});var ks={provide:mt,useExisting:(0,y.Gpc)(function(){return Uo})},Uo=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Rt),an}return(0,D.Z)(Ce,[{key:"_checkParentType",value:function(){Qi(this._parent)}}]),Ce}(Wi);Uo.\u0275fac=function(Le){return new(Le||Uo)(y.Y36(mt,13),y.Y36(te,10),y.Y36(oe,10))},Uo.\u0275dir=y.lG2({type:Uo,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[y._Bn([ks]),y.qOj]});var ya={provide:mt,useExisting:(0,y.Gpc)(function(){return Ho})},Ho=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt){var an;return(0,P.Z)(this,Ce),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Rt),an}return(0,D.Z)(Ce,[{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 Zn(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){Qi(this._parent)}}]),Ce}(mt);function Qi(Ye){return!(Ye instanceof Uo||Ye instanceof Co||Ye instanceof Ho)}Ho.\u0275fac=function(Le){return new(Le||Ho)(y.Y36(mt,13),y.Y36(te,10),y.Y36(oe,10))},Ho.\u0275dir=y.lG2({type:Ho,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[y._Bn([ya]),y.qOj]});var mo={provide:yt,useExisting:(0,y.Gpc)(function(){return tr})},tr=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(Je,Ke,Rt,an,nr){var Lr;return(0,P.Z)(this,Ce),(Lr=Le.call(this))._ngModelWarningConfig=nr,Lr._added=!1,Lr.update=new y.vpe,Lr._ngModelWarningSent=!1,Lr._parent=Je,Lr._setValidators(Ke),Lr._setAsyncValidators(Rt),Lr.valueAccessor=Wt((0,z.Z)(Lr),an),Lr}return(0,D.Z)(Ce,[{key:"isDisabled",set:function(Ke){}},{key:"ngOnChanges",value:function(Ke){this._added||this._setUpControl(),Ae(Ke,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(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{key:"path",get:function(){return Zn(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),Ce}(yt);tr._ngModelWarningSentOnce=!1,tr.\u0275fac=function(Le){return new(Le||tr)(y.Y36(mt,13),y.Y36(te,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(Fo,8))},tr.\u0275dir=y.lG2({type:tr,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([mo]),y.qOj,y.TTD]});var Fa={provide:T,useExisting:(0,y.Gpc)(function(){return Kr}),multi:!0};function Oo(Ye,Le){return null==Ye?"".concat(Le):(Le&&"object"==typeof Le&&(Le="Object"),"".concat(Ye,": ").concat(Le).slice(0,50))}var Kr=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments))._optionMap=new Map,Je._idCounter=0,Je._compareWith=Object.is,Je}return(0,D.Z)(Ce,[{key:"compareWith",set:function(Ke){this._compareWith=Ke}},{key:"writeValue",value:function(Ke){this.value=Ke;var an=Oo(this._getOptionId(Ke),Ke);this.setProperty("value",an)}},{key:"registerOnChange",value:function(Ke){var Rt=this;this.onChange=function(an){Rt.value=Rt._getOptionValue(an),Ke(Rt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Ke){for(var Rt=0,an=Array.from(this._optionMap.keys());Rt<an.length;Rt++){var nr=an[Rt];if(this._compareWith(this._optionMap.get(nr),Ke))return nr}return null}},{key:"_getOptionValue",value:function(Ke){var Rt=function io(Ye){return Ye.split(":")[0]}(Ke);return this._optionMap.has(Rt)?this._optionMap.get(Rt):Ke}}]),Ce}(I);Kr.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(Kr)))(Ce||Kr)}}(),Kr.\u0275dir=y.lG2({type:Kr,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("change",function(Ke){return Ce.onChange(Ke.target.value)})("blur",function(){return Ce.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([Fa]),y.qOj]});var la=function(){function Ye(Le,Ce,Je){(0,P.Z)(this,Ye),this._element=Le,this._renderer=Ce,this._select=Je,this._select&&(this.id=this._select._registerOption())}return(0,D.Z)(Ye,[{key:"ngValue",set:function(Ce){null!=this._select&&(this._select._optionMap.set(this.id,Ce),this._setElementValue(Oo(this.id,Ce)),this._select.writeValue(this._select.value))}},{key:"value",set:function(Ce){this._setElementValue(Ce),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(Ce){this._renderer.setProperty(this._element.nativeElement,"value",Ce)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),Ye}();la.\u0275fac=function(Le){return new(Le||la)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(Kr,9))},la.\u0275dir=y.lG2({type:la,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Qo={provide:T,useExisting:(0,y.Gpc)(function(){return ba}),multi:!0};function br(Ye,Le){return null==Ye?"".concat(Le):("string"==typeof Le&&(Le="'".concat(Le,"'")),Le&&"object"==typeof Le&&(Le="Object"),"".concat(Ye,": ").concat(Le).slice(0,50))}var ba=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments))._optionMap=new Map,Je._idCounter=0,Je._compareWith=Object.is,Je}return(0,D.Z)(Ce,[{key:"compareWith",set:function(Ke){this._compareWith=Ke}},{key:"writeValue",value:function(Ke){var an,Rt=this;if(this.value=Ke,Array.isArray(Ke)){var nr=Ke.map(function(Lr){return Rt._getOptionId(Lr)});an=function(Ir,_o){Ir._setSelected(nr.indexOf(_o.toString())>-1)}}else an=function(Ir,_o){Ir._setSelected(!1)};this._optionMap.forEach(an)}},{key:"registerOnChange",value:function(Ke){var Rt=this;this.onChange=function(an){var nr=[],Lr=an.selectedOptions;if(void 0!==Lr)for(var Ir=Lr,_o=0;_o<Ir.length;_o++){var uf=Ir[_o],ou=Rt._getOptionValue(uf.value);nr.push(ou)}else for(var rd=an.options,oc=0;oc<rd.length;oc++){var si=rd[oc];if(si.selected){var dr=Rt._getOptionValue(si.value);nr.push(dr)}}Rt.value=nr,Ke(nr)}}},{key:"_registerOption",value:function(Ke){var Rt=(this._idCounter++).toString();return this._optionMap.set(Rt,Ke),Rt}},{key:"_getOptionId",value:function(Ke){for(var Rt=0,an=Array.from(this._optionMap.keys());Rt<an.length;Rt++){var nr=an[Rt];if(this._compareWith(this._optionMap.get(nr)._value,Ke))return nr}return null}},{key:"_getOptionValue",value:function(Ke){var Rt=function Is(Ye){return Ye.split(":")[0]}(Ke);return this._optionMap.has(Rt)?this._optionMap.get(Rt)._value:Ke}}]),Ce}(I);ba.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(ba)))(Ce||ba)}}(),ba.\u0275dir=y.lG2({type:ba,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Le,Ce){1&Le&&y.NdJ("change",function(Ke){return Ce.onChange(Ke.target)})("blur",function(){return Ce.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([Qo]),y.qOj]});var Xi=function(){function Ye(Le,Ce,Je){(0,P.Z)(this,Ye),this._element=Le,this._renderer=Ce,this._select=Je,this._select&&(this.id=this._select._registerOption(this))}return(0,D.Z)(Ye,[{key:"ngValue",set:function(Ce){null!=this._select&&(this._value=Ce,this._setElementValue(br(this.id,Ce)),this._select.writeValue(this._select.value))}},{key:"value",set:function(Ce){this._select?(this._value=Ce,this._setElementValue(br(this.id,Ce)),this._select.writeValue(this._select.value)):this._setElementValue(Ce)}},{key:"_setElementValue",value:function(Ce){this._renderer.setProperty(this._element.nativeElement,"value",Ce)}},{key:"_setSelected",value:function(Ce){this._renderer.setProperty(this._element.nativeElement,"selected",Ce)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),Ye}();function $a(Ye){return"number"==typeof Ye?Ye:parseInt(Ye,10)}function Ps(Ye){return null!=Ye&&!1!==Ye&&"false"!=="".concat(Ye)}function es(Ye){return"number"==typeof Ye?Ye:parseFloat(Ye)}Xi.\u0275fac=function(Le){return new(Le||Xi)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(ba,9))},Xi.\u0275dir=y.lG2({type:Xi,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Ua=function(){function Ye(){(0,P.Z)(this,Ye),this._validator=Xt}return(0,D.Z)(Ye,[{key:"ngOnChanges",value:function(Ce){if(this.inputName in Ce){var Je=this.normalizeInput(Ce[this.inputName].currentValue);this._enabled=this.enabled(Je),this._validator=this._enabled?this.createValidator(Je):Xt,this._onChange&&this._onChange()}}},{key:"validate",value:function(Ce){return this._validator(Ce)}},{key:"registerOnValidatorChange",value:function(Ce){this._onChange=Ce}},{key:"enabled",value:function(Ce){return null!=Ce}}]),Ye}();Ua.\u0275fac=function(Le){return new(Le||Ua)},Ua.\u0275dir=y.lG2({type:Ua,features:[y.TTD]});var Mu={provide:te,useExisting:(0,y.Gpc)(function(){return Ha}),multi:!0},Ha=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="max",Je.normalizeInput=function(Ke){return es(Ke)},Je.createValidator=function(Ke){return xe(Ke)},Je}return(0,D.Z)(Ce)}(Ua);Ha.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(Ha)))(Ce||Ha)}}(),Ha.\u0275dir=y.lG2({type:Ha,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("max",Ce._enabled?Ce.max:null)},inputs:{max:"max"},features:[y._Bn([Mu]),y.qOj]});var Xo={provide:te,useExisting:(0,y.Gpc)(function(){return ts}),multi:!0},ts=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="min",Je.normalizeInput=function(Ke){return es(Ke)},Je.createValidator=function(Ke){return st(Ke)},Je}return(0,D.Z)(Ce)}(Ua);ts.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(ts)))(Ce||ts)}}(),ts.\u0275dir=y.lG2({type:ts,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("min",Ce._enabled?Ce.min:null)},inputs:{min:"min"},features:[y._Bn([Xo]),y.qOj]});var Rs={provide:te,useExisting:(0,y.Gpc)(function(){return wo}),multi:!0},iu={provide:te,useExisting:(0,y.Gpc)(function(){return ja}),multi:!0},wo=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="required",Je.normalizeInput=function(Ke){return Ps(Ke)},Je.createValidator=function(Ke){return _e},Je}return(0,D.Z)(Ce,[{key:"enabled",value:function(Ke){return Ke}}]),Ce}(Ua);wo.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(wo)))(Ce||wo)}}(),wo.\u0275dir=y.lG2({type:wo,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("required",Ce._enabled?"":null)},inputs:{required:"required"},features:[y._Bn([Rs]),y.qOj]});var ja=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).createValidator=function(Ke){return ke},Je}return(0,D.Z)(Ce)}(wo);ja.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(ja)))(Ce||ja)}}(),ja.\u0275dir=y.lG2({type:ja,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("required",Ce._enabled?"":null)},features:[y._Bn([iu]),y.qOj]});var Su={provide:te,useExisting:(0,y.Gpc)(function(){return ye}),multi:!0},ye=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="email",Je.normalizeInput=function(Ke){return""===Ke||!0===Ke||"true"===Ke},Je.createValidator=function(Ke){return Fe},Je}return(0,D.Z)(Ce,[{key:"enabled",value:function(Ke){return Ke}}]),Ce}(Ua);ye.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(ye)))(Ce||ye)}}(),ye.\u0275dir=y.lG2({type:ye,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[y._Bn([Su]),y.qOj]});var Re={provide:te,useExisting:(0,y.Gpc)(function(){return Ge}),multi:!0},Ge=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="minlength",Je.normalizeInput=function(Ke){return $a(Ke)},Je.createValidator=function(Ke){return ct(Ke)},Je}return(0,D.Z)(Ce)}(Ua);Ge.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(Ge)))(Ce||Ge)}}(),Ge.\u0275dir=y.lG2({type:Ge,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("minlength",Ce._enabled?Ce.minlength:null)},inputs:{minlength:"minlength"},features:[y._Bn([Re]),y.qOj]});var gt={provide:te,useExisting:(0,y.Gpc)(function(){return xt}),multi:!0},xt=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="maxlength",Je.normalizeInput=function(Ke){return $a(Ke)},Je.createValidator=function(Ke){return Mt(Ke)},Je}return(0,D.Z)(Ce)}(Ua);xt.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(xt)))(Ce||xt)}}(),xt.\u0275dir=y.lG2({type:xt,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("maxlength",Ce._enabled?Ce.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([gt]),y.qOj]});var un={provide:te,useExisting:(0,y.Gpc)(function(){return Mn}),multi:!0},Mn=function(Ye){(0,U.Z)(Ce,Ye);var Le=(0,L.Z)(Ce);function Ce(){var Je;return(0,P.Z)(this,Ce),(Je=Le.apply(this,arguments)).inputName="pattern",Je.normalizeInput=function(Ke){return Ke},Je.createValidator=function(Ke){return Nt(Ke)},Je}return(0,D.Z)(Ce)}(Ua);Mn.\u0275fac=function(){var Ye;return function(Ce){return(Ye||(Ye=y.n5z(Mn)))(Ce||Mn)}}(),Mn.\u0275dir=y.lG2({type:Mn,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Le,Ce){2&Le&&y.uIk("pattern",Ce._enabled?Ce.pattern:null)},inputs:{pattern:"pattern"},features:[y._Bn([un]),y.qOj]});var ar=(0,D.Z)(function Ye(){(0,P.Z)(this,Ye)});ar.\u0275fac=function(Le){return new(Le||ar)},ar.\u0275mod=y.oAB({type:ar}),ar.\u0275inj=y.cJS({imports:[[Cn]]});var ai=(0,D.Z)(function Ye(){(0,P.Z)(this,Ye)});ai.\u0275fac=function(Le){return new(Le||ai)},ai.\u0275mod=y.oAB({type:ai}),ai.\u0275inj=y.cJS({imports:[ar]});var $i=function(){function Ye(){(0,P.Z)(this,Ye)}return(0,D.Z)(Ye,null,[{key:"withConfig",value:function(Ce){return{ngModule:Ye,providers:[{provide:Fo,useValue:Ce.warnOnNgModelWithFormControl}]}}}]),Ye}();function So(Ye){return void 0!==Ye.asyncValidators||void 0!==Ye.validators||void 0!==Ye.updateOn}$i.\u0275fac=function(Le){return new(Le||$i)},$i.\u0275mod=y.oAB({type:$i}),$i.\u0275inj=y.cJS({imports:[ar]});var Di=function(){function Ye(){(0,P.Z)(this,Ye)}return(0,D.Z)(Ye,[{key:"group",value:function(Ce){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ke=this._reduceControls(Ce),Rt=null,an=null,nr=void 0;return null!=Je&&(So(Je)?(Rt=null!=Je.validators?Je.validators:null,an=null!=Je.asyncValidators?Je.asyncValidators:null,nr=null!=Je.updateOn?Je.updateOn:void 0):(Rt=null!=Je.validator?Je.validator:null,an=null!=Je.asyncValidator?Je.asyncValidator:null)),new uo(Ke,{asyncValidators:an,updateOn:nr,validators:Rt})}},{key:"control",value:function(Ce,Je,Ke){return new lo(Ce,Je,Ke)}},{key:"array",value:function(Ce,Je,Ke){var Rt=this,an=Ce.map(function(nr){return Rt._createControl(nr)});return new mi(an,Je,Ke)}},{key:"_reduceControls",value:function(Ce){var Je=this,Ke={};return Object.keys(Ce).forEach(function(Rt){Ke[Rt]=Je._createControl(Ce[Rt])}),Ke}},{key:"_createControl",value:function(Ce){if(Ko(Ce)||yi(Ce)||Qa(Ce))return Ce;if(Array.isArray(Ce)){var Je=Ce[0],Ke=Ce.length>1?Ce[1]:null,Rt=Ce.length>2?Ce[2]:null;return this.control(Je,Ke,Rt)}return this.control(Ce)}}]),Ye}();Di.\u0275fac=function(Le){return new(Le||Di)},Di.\u0275prov=y.Yz7({token:Di,factory:Di.\u0275fac,providedIn:$i});new y.GfV("13.3.11")},508:function(qe,J,m){"use strict";m.d(J,{yN:function(){return ve},mZ:function(){return Oe},rD:function(){return Et},K7:function(){return dn},HF:function(){return Dt},Y2:function(){return de},BQ:function(){return _e},X2:function(){return Ut},uc:function(){return yt},Nv:function(){return On},ey:function(){return jn},Ng:function(){return Yn},rN:function(){return zn},nP:function(){return We},us:function(){return lt},wG:function(){return Te},si:function(){return ue},IR:function(){return wn},CB:function(){return mn},jH:function(){return lr},pj:function(){return Nt},Kr:function(){return Xt},Id:function(){return Mt},FD:function(){return qt},dB:function(){return Xe},sb:function(){return en},E0:function(){return Ht}});var z=m(7326),Y=m(3237),S=m(1120),U=m(136),L=m(9388),P=m(3144),D=m(5671),y=m(5e3),K=m(226),M=(new y.GfV("13.3.9"),m(9808)),O=m(925),k=m(5664),I=m(3191),T=m(8929),w=m(7451),x=m(1059),N=m(6360),R=m(1159),W=["*",[["mat-option"],["ng-container"]]];function ce(Kt,tt){if(1&Kt&&y._UZ(0,"mat-pseudo-checkbox",4),2&Kt){var Ue=y.oxw();y.Q6J("state",Ue.selected?"checked":"unchecked")("disabled",Ue.disabled)}}function se(Kt,tt){if(1&Kt&&(y.TgZ(0,"span",5),y._uU(1),y.qZA()),2&Kt){var Ue=y.oxw();y.xp6(1),y.hij("(",Ue.group.label,")")}}new y.GfV("13.3.9");var ve=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});ve.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ve.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ve.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ve.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var Oe=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Oe.COMPLEX="375ms",Oe.ENTERING="225ms",Oe.EXITING="195ms";var xe=new y.OlP("mat-sanity-checks",{providedIn:"root",factory:function st(){return!0}}),_e=function(){function Kt(tt,Ue,Ee){(0,D.Z)(this,Kt),this._sanityChecks=Ue,this._document=Ee,this._hasDoneGlobalChecks=!1,tt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(Kt,[{key:"_checkIsEnabled",value:function(Ue){return!(0,O.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ue])}}]),Kt}();function Mt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._disabled=!1,He}return(0,P.Z)(Ee,[{key:"disabled",get:function(){return this._disabled},set:function(bt){this._disabled=(0,I.Ig)(bt)}}]),Ee}(Kt)}function Nt(Kt,tt){return function(Ue){(0,U.Z)(He,Ue);var Ee=(0,L.Z)(He);function He(){var bt;(0,D.Z)(this,He);for(var Yt=arguments.length,En=new Array(Yt),rr=0;rr<Yt;rr++)En[rr]=arguments[rr];return(bt=Ee.call.apply(Ee,[this].concat(En))).defaultColor=tt,bt.color=tt,bt}return(0,P.Z)(He,[{key:"color",get:function(){return this._color},set:function(Yt){var En=Yt||this.defaultColor;En!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),En&&this._elementRef.nativeElement.classList.add("mat-".concat(En)),this._color=En)}}]),He}(Kt)}function Xt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._disableRipple=!1,He}return(0,P.Z)(Ee,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(bt){this._disableRipple=(0,I.Ig)(bt)}}]),Ee}(Kt)}function en(Kt){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){(0,U.Z)(He,Ue);var Ee=(0,L.Z)(He);function He(){var bt;(0,D.Z)(this,He);for(var Yt=arguments.length,En=new Array(Yt),rr=0;rr<Yt;rr++)En[rr]=arguments[rr];return(bt=Ee.call.apply(Ee,[this].concat(En)))._tabIndex=tt,bt.defaultTabIndex=tt,bt}return(0,P.Z)(He,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Yt){this._tabIndex=null!=Yt?(0,I.su)(Yt):this.defaultTabIndex}}]),He}(Kt)}function qt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt))).stateChanges=new T.xQ,He.errorState=!1,He}return(0,P.Z)(Ee,[{key:"updateErrorState",value:function(){var bt=this.errorState,Yt=this._parentFormGroup||this._parentForm,En=this.errorStateMatcher||this._defaultErrorStateMatcher,rr=this.ngControl?this.ngControl.control:null,pn=En.isErrorState(rr,Yt);pn!==bt&&(this.errorState=pn,this.stateChanges.next())}}]),Ee}(Kt)}function Xe(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._isInitialized=!1,He._pendingSubscribers=[],He.initialized=new w.y(function(rr){He._isInitialized?He._notifySubscriber(rr):He._pendingSubscribers.push(rr)}),He}return(0,P.Z)(Ee,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(bt){bt.next(),bt.complete()}}]),Ee}(Kt)}_e.\u0275fac=function(tt){return new(tt||_e)(y.LFG(k.qm),y.LFG(xe,8),y.LFG(M.K0))},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({imports:[[K.vT],K.vT]});var jt=new y.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function it(){return(0,y.f3M)(y.soG)}});var vt=function(){function Kt(){(0,D.Z)(this,Kt),this._localeChanges=new T.xQ,this.localeChanges=this._localeChanges}return(0,P.Z)(Kt,[{key:"getValidDateOrNull",value:function(Ue){return this.isDateInstance(Ue)&&this.isValid(Ue)?Ue:null}},{key:"deserialize",value:function(Ue){return null==Ue||this.isDateInstance(Ue)&&this.isValid(Ue)?Ue:this.invalid()}},{key:"setLocale",value:function(Ue){this.locale=Ue,this._localeChanges.next()}},{key:"compareDate",value:function(Ue,Ee){return this.getYear(Ue)-this.getYear(Ee)||this.getMonth(Ue)-this.getMonth(Ee)||this.getDate(Ue)-this.getDate(Ee)}},{key:"sameDate",value:function(Ue,Ee){if(Ue&&Ee){var He=this.isValid(Ue),bt=this.isValid(Ee);return He&&bt?!this.compareDate(Ue,Ee):He==bt}return Ue==Ee}},{key:"clampDate",value:function(Ue,Ee,He){return Ee&&this.compareDate(Ue,Ee)<0?Ee:He&&this.compareDate(Ue,He)>0?He:Ue}}]),Kt}(),nt=new y.OlP("mat-date-formats"),Lt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function It(Kt,tt){for(var Ue=Array(Kt),Ee=0;Ee<Kt;Ee++)Ue[Ee]=tt(Ee);return Ue}var on=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee,He){var bt,Yt;return(0,D.Z)(this,Ue),(Yt=tt.call(this)).useUtcForDisplay=!1,(0,Y.Z)((bt=(0,z.Z)(Yt),(0,S.Z)(Ue.prototype)),"setLocale",bt).call(bt,Ee),Yt}return(0,P.Z)(Ue,[{key:"getYear",value:function(He){return He.getFullYear()}},{key:"getMonth",value:function(He){return He.getMonth()}},{key:"getDate",value:function(He){return He.getDate()}},{key:"getDayOfWeek",value:function(He){return He.getDay()}},{key:"getMonthNames",value:function(He){var bt=this,Yt=new Intl.DateTimeFormat(this.locale,{month:He,timeZone:"utc"});return It(12,function(En){return bt._format(Yt,new Date(2017,En,1))})}},{key:"getDateNames",value:function(){var He=this,bt=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return It(31,function(Yt){return He._format(bt,new Date(2017,0,Yt+1))})}},{key:"getDayOfWeekNames",value:function(He){var bt=this,Yt=new Intl.DateTimeFormat(this.locale,{weekday:He,timeZone:"utc"});return It(7,function(En){return bt._format(Yt,new Date(2017,0,En+1))})}},{key:"getYearName",value:function(He){var bt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(bt,He)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(He){return this.getDate(this._createDateWithOverflow(this.getYear(He),this.getMonth(He)+1,0))}},{key:"clone",value:function(He){return new Date(He.getTime())}},{key:"createDate",value:function(He,bt,Yt){var En=this._createDateWithOverflow(He,bt,Yt);return En.getMonth(),En}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(He){return"number"==typeof He?new Date(He):He?new Date(Date.parse(He)):null}},{key:"format",value:function(He,bt){if(!this.isValid(He))throw Error("NativeDateAdapter: Cannot format invalid date.");var Yt=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},bt),{timeZone:"utc"}));return this._format(Yt,He)}},{key:"addCalendarYears",value:function(He,bt){return this.addCalendarMonths(He,12*bt)}},{key:"addCalendarMonths",value:function(He,bt){var Yt=this._createDateWithOverflow(this.getYear(He),this.getMonth(He)+bt,this.getDate(He));return this.getMonth(Yt)!=((this.getMonth(He)+bt)%12+12)%12&&(Yt=this._createDateWithOverflow(this.getYear(Yt),this.getMonth(Yt),0)),Yt}},{key:"addCalendarDays",value:function(He,bt){return this._createDateWithOverflow(this.getYear(He),this.getMonth(He),this.getDate(He)+bt)}},{key:"toIso8601",value:function(He){return[He.getUTCFullYear(),this._2digit(He.getUTCMonth()+1),this._2digit(He.getUTCDate())].join("-")}},{key:"deserialize",value:function(He){if("string"==typeof He){if(!He)return null;if(Lt.test(He)){var bt=new Date(He);if(this.isValid(bt))return bt}}return(0,Y.Z)((0,S.Z)(Ue.prototype),"deserialize",this).call(this,He)}},{key:"isDateInstance",value:function(He){return He instanceof Date}},{key:"isValid",value:function(He){return!isNaN(He.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(He,bt,Yt){var En=new Date;return En.setFullYear(He,bt,Yt),En.setHours(0,0,0,0),En}},{key:"_2digit",value:function(He){return("00"+He).slice(-2)}},{key:"_format",value:function(He,bt){var Yt=new Date;return Yt.setUTCFullYear(bt.getFullYear(),bt.getMonth(),bt.getDate()),Yt.setUTCHours(bt.getHours(),bt.getMinutes(),bt.getSeconds(),bt.getMilliseconds()),He.format(Yt)}}]),Ue}(vt);on.\u0275fac=function(tt){return new(tt||on)(y.LFG(jt,8),y.LFG(O.t4))},on.\u0275prov=y.Yz7({token:on,factory:on.\u0275fac});var An=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});An.\u0275fac=function(tt){return new(tt||An)},An.\u0275mod=y.oAB({type:An}),An.\u0275inj=y.cJS({providers:[{provide:vt,useClass:on}]});var Gt=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Gt.\u0275fac=function(tt){return new(tt||Gt)},Gt.\u0275mod=y.oAB({type:Gt}),Gt.\u0275inj=y.cJS({providers:[{provide:nt,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:[[An]]});var Zt=function(){function Kt(){(0,D.Z)(this,Kt)}return(0,P.Z)(Kt,[{key:"isErrorState",value:function(Ue,Ee){return!!(Ue&&Ue.invalid&&(Ue.dirty||Ee&&Ee.submitted))}}]),Kt}();Zt.\u0275fac=function(tt){return new(tt||Zt)},Zt.\u0275prov=y.Yz7({token:Zt,factory:Zt.\u0275fac});var Et=function(){function Kt(){(0,D.Z)(this,Kt)}return(0,P.Z)(Kt,[{key:"isErrorState",value:function(Ue,Ee){return!!(Ue&&Ue.invalid&&(Ue.touched||Ee&&Ee.submitted))}}]),Kt}();Et.\u0275fac=function(tt){return new(tt||Et)},Et.\u0275prov=y.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"});var Ut=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});function Ht(Kt,tt){var Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";Kt.changes.pipe((0,x.O)(Kt)).subscribe(function(Ee){var He=Ee.length;ln(tt,"".concat(Ue,"-2-line"),!1),ln(tt,"".concat(Ue,"-3-line"),!1),ln(tt,"".concat(Ue,"-multi-line"),!1),2===He||3===He?ln(tt,"".concat(Ue,"-").concat(He,"-line"),!0):He>3&&ln(tt,"".concat(Ue,"-multi-line"),!0)})}function ln(Kt,tt,Ue){Kt.nativeElement.classList.toggle(tt,Ue)}Ut.\u0275fac=function(tt){return new(tt||Ut)},Ut.\u0275dir=y.lG2({type:Ut,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var yt=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});yt.\u0275fac=function(tt){return new(tt||yt)},yt.\u0275mod=y.oAB({type:yt}),yt.\u0275inj=y.cJS({imports:[[_e],_e]});var mt=function(){function Kt(tt,Ue,Ee){(0,D.Z)(this,Kt),this._renderer=tt,this.element=Ue,this.config=Ee,this.state=3}return(0,P.Z)(Kt,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Kt}(),cn={enterDuration:225,exitDuration:150},j=(0,O.i$)({passive:!0}),V=["mousedown","touchstart"],Jn=["mouseup","mouseleave","touchend","touchcancel"],wn=function(){function Kt(tt,Ue,Ee,He){(0,D.Z)(this,Kt),this._target=tt,this._ngZone=Ue,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,He.isBrowser&&(this._containerElement=(0,I.fI)(Ee))}return(0,P.Z)(Kt,[{key:"fadeInRipple",value:function(Ue,Ee){var He=this,bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Yt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),En=Object.assign(Object.assign({},cn),bt.animation);bt.centered&&(Ue=Yt.left+Yt.width/2,Ee=Yt.top+Yt.height/2);var rr=bt.radius||dt(Ue,Ee,Yt),pn=Ue-Yt.left,ut=Ee-Yt.top,Se=En.enterDuration,Ae=document.createElement("div");Ae.classList.add("mat-ripple-element"),Ae.style.left="".concat(pn-rr,"px"),Ae.style.top="".concat(ut-rr,"px"),Ae.style.height="".concat(2*rr,"px"),Ae.style.width="".concat(2*rr,"px"),null!=bt.color&&(Ae.style.backgroundColor=bt.color),Ae.style.transitionDuration="".concat(Se,"ms"),this._containerElement.appendChild(Ae),Bt(Ae),Ae.style.transform="scale(1)";var Qe=new mt(this,Ae,bt);return Qe.state=0,this._activeRipples.add(Qe),bt.persistent||(this._mostRecentTransientRipple=Qe),this._runTimeoutOutsideZone(function(){var _t=Qe===He._mostRecentTransientRipple;Qe.state=1,!bt.persistent&&(!_t||!He._isPointerDown)&&Qe.fadeOut()},Se),Qe}},{key:"fadeOutRipple",value:function(Ue){var Ee=this._activeRipples.delete(Ue);if(Ue===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Ee){var He=Ue.element,bt=Object.assign(Object.assign({},cn),Ue.config.animation);He.style.transitionDuration="".concat(bt.exitDuration,"ms"),He.style.opacity="0",Ue.state=2,this._runTimeoutOutsideZone(function(){Ue.state=3,He.remove()},bt.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(Ue){return Ue.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(Ue){Ue.config.persistent||Ue.fadeOut()})}},{key:"setupTriggerEvents",value:function(Ue){var Ee=(0,I.fI)(Ue);!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,this._registerEvents(V))}},{key:"handleEvent",value:function(Ue){"mousedown"===Ue.type?this._onMousedown(Ue):"touchstart"===Ue.type?this._onTouchStart(Ue):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Jn),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(Ue){var Ee=(0,k.X6)(Ue),He=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ee&&!He&&(this._isPointerDown=!0,this.fadeInRipple(Ue.clientX,Ue.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(Ue){if(!this._target.rippleDisabled&&!(0,k.yG)(Ue)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Ee=Ue.changedTouches,He=0;He<Ee.length;He++)this.fadeInRipple(Ee[He].clientX,Ee[He].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(Ue){var Ee=1===Ue.state||Ue.config.terminateOnPointerUp&&0===Ue.state;!Ue.config.persistent&&Ee&&Ue.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(Ue){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(Ue,Ee)})}},{key:"_registerEvents",value:function(Ue){var Ee=this;this._ngZone.runOutsideAngular(function(){Ue.forEach(function(He){Ee._triggerElement.addEventListener(He,Ee,j)})})}},{key:"_removeTriggerEvents",value:function(){var Ue=this;this._triggerElement&&(V.forEach(function(Ee){Ue._triggerElement.removeEventListener(Ee,Ue,j)}),this._pointerUpEventsRegistered&&Jn.forEach(function(Ee){Ue._triggerElement.removeEventListener(Ee,Ue,j)}))}}]),Kt}();function Bt(Kt){window.getComputedStyle(Kt).getPropertyValue("opacity")}function dt(Kt,tt,Ue){var Ee=Math.max(Math.abs(Kt-Ue.left),Math.abs(Kt-Ue.right)),He=Math.max(Math.abs(tt-Ue.top),Math.abs(tt-Ue.bottom));return Math.sqrt(Ee*Ee+He*He)}var de=new y.OlP("mat-ripple-global-options"),Te=function(){function Kt(tt,Ue,Ee,He,bt){(0,D.Z)(this,Kt),this._elementRef=tt,this._animationMode=bt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=He||{},this._rippleRenderer=new wn(this,Ue,tt,Ee)}return(0,P.Z)(Kt,[{key:"disabled",get:function(){return this._disabled},set:function(Ue){Ue&&this.fadeOutAllNonPersistent(),this._disabled=Ue,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Ue){this._trigger=Ue,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(Ue){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,He=arguments.length>2?arguments[2]:void 0;return"number"==typeof Ue?this._rippleRenderer.fadeInRipple(Ue,Ee,Object.assign(Object.assign({},this.rippleConfig),He)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ue))}}]),Kt}();Te.\u0275fac=function(tt){return new(tt||Te)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(O.t4),y.Y36(de,8),y.Y36(N.Qb,8))},Te.\u0275dir=y.lG2({type:Te,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(tt,Ue){2&tt&&y.ekj("mat-ripple-unbounded",Ue.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 ue=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});ue.\u0275fac=function(tt){return new(tt||ue)},ue.\u0275mod=y.oAB({type:ue}),ue.\u0275inj=y.cJS({imports:[[_e],_e]});var We=(0,P.Z)(function Kt(tt){(0,D.Z)(this,Kt),this._animationMode=tt,this.state="unchecked",this.disabled=!1});We.\u0275fac=function(tt){return new(tt||We)(y.Y36(N.Qb,8))},We.\u0275cmp=y.Xpm({type:We,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(tt,Ue){2&tt&&y.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ue.state)("mat-pseudo-checkbox-checked","checked"===Ue.state)("mat-pseudo-checkbox-disabled",Ue.disabled)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(tt,Ue){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0});var lt=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});lt.\u0275fac=function(tt){return new(tt||lt)},lt.\u0275mod=y.oAB({type:lt}),lt.\u0275inj=y.cJS({imports:[[_e]]});var Dt=new y.OlP("MAT_OPTION_PARENT_COMPONENT"),tn=Mt(function(){return(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)})}()),Jt=0,nn=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee){var He,bt;return(0,D.Z)(this,Ue),(He=tt.call(this))._labelId="mat-optgroup-label-".concat(Jt++),He._inert=null!==(bt=null==Ee?void 0:Ee.inertGroups)&&void 0!==bt&&bt,He}return(0,P.Z)(Ue)}(tn);nn.\u0275fac=function(tt){return new(tt||nn)(y.Y36(Dt,8))},nn.\u0275dir=y.lG2({type:nn,inputs:{label:"label"},features:[y.qOj]});var dn=new y.OlP("MatOptgroup"),On=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(){return(0,D.Z)(this,Ue),tt.apply(this,arguments)}return(0,P.Z)(Ue)}(nn);On.\u0275fac=function(){var Kt;return function(Ue){return(Kt||(Kt=y.n5z(On)))(Ue||On)}}(),On.\u0275cmp=y.Xpm({type:On,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(tt,Ue){2&tt&&(y.uIk("role",Ue._inert?null:"group")("aria-disabled",Ue._inert?null:Ue.disabled.toString())("aria-labelledby",Ue._inert?null:Ue._labelId),y.ekj("mat-optgroup-disabled",Ue.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[y._Bn([{provide:dn,useExisting:On}]),y.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(tt,Ue){1&tt&&(y.F$t(W),y.TgZ(0,"span",0),y._uU(1),y.Hsn(2),y.qZA(),y.Hsn(3,1)),2&tt&&(y.Q6J("id",Ue._labelId),y.xp6(1),y.hij("",Ue.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}\n"],encapsulation:2,changeDetection:0});var Dn=0,zn=(0,P.Z)(function Kt(tt){var Ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,D.Z)(this,Kt),this.source=tt,this.isUserInput=Ue}),Zn=function(){function Kt(tt,Ue,Ee,He){(0,D.Z)(this,Kt),this._element=tt,this._changeDetectorRef=Ue,this._parent=Ee,this.group=He,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Dn++),this.onSelectionChange=new y.vpe,this._stateChanges=new T.xQ}return(0,P.Z)(Kt,[{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(Ue){this._disabled=(0,I.Ig)(Ue)}},{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(Ue,Ee){var He=this._getHostElement();"function"==typeof He.focus&&He.focus(Ee)}},{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(Ue){(Ue.keyCode===R.K5||Ue.keyCode===R.L_)&&!(0,R.Vb)(Ue)&&(this._selectViaInteraction(),Ue.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 Ue=this.viewValue;Ue!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ue,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Ue=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new zn(this,Ue))}}]),Kt}();Zn.\u0275fac=function(tt){y.$Z()},Zn.\u0275dir=y.lG2({type:Zn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var jn=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee,He,bt,Yt){return(0,D.Z)(this,Ue),tt.call(this,Ee,He,bt,Yt)}return(0,P.Z)(Ue)}(Zn);function mn(Kt,tt,Ue){if(Ue.length){for(var Ee=tt.toArray(),He=Ue.toArray(),bt=0,Yt=0;Yt<Kt+1;Yt++)Ee[Yt].group&&Ee[Yt].group===He[bt]&&bt++;return bt}return 0}function lr(Kt,tt,Ue,Ee){return Kt<Ue?Kt:Kt+tt>Ue+Ee?Math.max(0,Kt-Ee+tt):Ue}jn.\u0275fac=function(tt){return new(tt||jn)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(Dt,8),y.Y36(dn,8))},jn.\u0275cmp=y.Xpm({type:jn,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(tt,Ue){1&tt&&y.NdJ("click",function(){return Ue._selectViaInteraction()})("keydown",function(He){return Ue._handleKeydown(He)}),2&tt&&(y.Ikx("id",Ue.id),y.uIk("tabindex",Ue._getTabIndex())("aria-selected",Ue._getAriaSelected())("aria-disabled",Ue.disabled.toString()),y.ekj("mat-selected",Ue.selected)("mat-option-multiple",Ue.multiple)("mat-active",Ue.active)("mat-option-disabled",Ue.disabled))},exportAs:["matOption"],features:[y.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(tt,Ue){1&tt&&(y.F$t(),y.YNc(0,ce,1,2,"mat-pseudo-checkbox",0),y.TgZ(1,"span",1),y.Hsn(2),y.qZA(),y.YNc(3,se,2,1,"span",2),y._UZ(4,"div",3)),2&tt&&(y.Q6J("ngIf",Ue.multiple),y.xp6(3),y.Q6J("ngIf",Ue.group&&Ue.group._inert),y.xp6(1),y.Q6J("matRippleTrigger",Ue._getHostElement())("matRippleDisabled",Ue.disabled||Ue.disableRipple))},directives:[We,M.O5,Te],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}\n"],encapsulation:2,changeDetection:0});var Yn=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Yn.\u0275fac=function(tt){return new(tt||Yn)},Yn.\u0275mod=y.oAB({type:Yn}),Yn.\u0275inj=y.cJS({imports:[[ue,M.ez,_e,lt]]})},4834:function(qe,J,m){"use strict";m.d(J,{d:function(){return P},t:function(){return D}});var z=m(5671),Y=m(3144),S=m(5e3),U=m(3191),L=m(508),P=function(){function y(){(0,z.Z)(this,y),this._vertical=!1,this._inset=!1}return(0,Y.Z)(y,[{key:"vertical",get:function(){return this._vertical},set:function(F){this._vertical=(0,U.Ig)(F)}},{key:"inset",get:function(){return this._inset},set:function(F){this._inset=(0,U.Ig)(F)}}]),y}();P.\u0275fac=function(K){return new(K||P)},P.\u0275cmp=S.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(K,F){2&K&&(S.uIk("aria-orientation",F.vertical?"vertical":"horizontal"),S.ekj("mat-divider-vertical",F.vertical)("mat-divider-horizontal",!F.vertical)("mat-divider-inset",F.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(K,F){},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}\n"],encapsulation:2,changeDetection:0});var D=(0,Y.Z)(function y(){(0,z.Z)(this,y)});D.\u0275fac=function(K){return new(K||D)},D.\u0275mod=S.oAB({type:D}),D.\u0275inj=S.cJS({imports:[[L.BQ],L.BQ]})},7322:function(qe,J,m){"use strict";m.d(J,{Eo:function(){return it},G_:function(){return j},KE:function(){return V},R9:function(){return Ht},TO:function(){return Xe},hX:function(){return An},lN:function(){return Jn}});var z=m(4902),Y=m(136),S=m(9388),U=m(3144),L=m(5671),P=m(7144),D=m(9808),y=m(5e3),K=m(508),F=m(3191),M=m(8929),O=m(6787),k=m(3753),I=m(1059),T=m(7625),w=m(2986),x=m(1777),N=m(6360),R=m(226),W=m(925),$=["connectionContainer"],ce=["inputContainer"],se=["label"];function te(wn,Bt){1&wn&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15)(3,"div",16)(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15)(7,"div",16)(8,"div",17),y.qZA(),y.BQk())}function oe(wn,Bt){if(1&wn){var dt=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(dt),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&wn){var de=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=de.appearance)}}function ve(wn,Bt){if(1&wn&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&wn){var dt=y.oxw(2);y.xp6(3),y.Oqu(dt._control.placeholder)}}function Oe(wn,Bt){1&wn&&y.Hsn(0,3,["*ngSwitchCase","true"])}function st(wn,Bt){1&wn&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function xe(wn,Bt){if(1&wn){var dt=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(dt),y.oxw().updateOutlineGap()}),y.YNc(2,ve,4,1,"ng-container",12),y.YNc(3,Oe,1,0,"ng-content",12),y.YNc(4,st,2,0,"span",22),y.qZA()}if(2&wn){var de=y.oxw();y.ekj("mat-empty",de._control.empty&&!de._shouldAlwaysFloat())("mat-form-field-empty",de._control.empty&&!de._shouldAlwaysFloat())("mat-accent","accent"==de.color)("mat-warn","warn"==de.color),y.Q6J("cdkObserveContentDisabled","outline"!=de.appearance)("id",de._labelId)("ngSwitch",de._hasLabel()),y.uIk("for",de._control.id)("aria-owns",de._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!de.hideRequiredMarker&&de._control.required&&!de._control.disabled)}}function _e(wn,Bt){1&wn&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ke(wn,Bt){if(1&wn&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&wn){var dt=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==dt.color)("mat-warn","warn"==dt.color)}}function Fe(wn,Bt){if(1&wn&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&wn){var dt=y.oxw();y.Q6J("@transitionMessages",dt._subscriptAnimationState)}}function ct(wn,Bt){if(1&wn&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&wn){var dt=y.oxw(2);y.Q6J("id",dt._hintLabelId),y.xp6(1),y.Oqu(dt.hintLabel)}}function Mt(wn,Bt){if(1&wn&&(y.TgZ(0,"div",27),y.YNc(1,ct,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&wn){var dt=y.oxw();y.Q6J("@transitionMessages",dt._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",dt.hintLabel)}}var Nt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],en=0,qt=new y.OlP("MatError"),Xe=(0,U.Z)(function wn(Bt,dt){(0,L.Z)(this,wn),this.id="mat-error-".concat(en++),Bt||dt.nativeElement.setAttribute("aria-live","polite")});Xe.\u0275fac=function(Bt){return new(Bt||Xe)(y.$8M("aria-live"),y.Y36(y.SBq))},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Bt,dt){2&Bt&&y.uIk("id",dt.id)},inputs:{id:"id"},features:[y._Bn([{provide:qt,useExisting:Xe}])]});var jt={transitionMessages:(0,x.X$)("transitionMessages",[(0,x.SB)("enter",(0,x.oB)({opacity:1,transform:"translateY(0%)"})),(0,x.eR)("void => enter",[(0,x.oB)({opacity:0,transform:"translateY(-5px)"}),(0,x.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},it=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});it.\u0275fac=function(Bt){return new(Bt||it)},it.\u0275dir=y.lG2({type:it});var It=0,on=new y.OlP("MatHint"),_n=(0,U.Z)(function wn(){(0,L.Z)(this,wn),this.align="start",this.id="mat-hint-".concat(It++)});_n.\u0275fac=function(Bt){return new(Bt||_n)},_n.\u0275dir=y.lG2({type:_n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Bt,dt){2&Bt&&(y.uIk("id",dt.id)("align",null),y.ekj("mat-form-field-hint-end","end"===dt.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:on,useExisting:_n}])]});var An=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});An.\u0275fac=function(Bt){return new(Bt||An)},An.\u0275dir=y.lG2({type:An,selectors:[["mat-label"]]});var Gt=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Gt.\u0275fac=function(Bt){return new(Bt||Gt)},Gt.\u0275dir=y.lG2({type:Gt,selectors:[["mat-placeholder"]]});var Zt=new y.OlP("MatPrefix"),Et=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Et.\u0275fac=function(Bt){return new(Bt||Et)},Et.\u0275dir=y.lG2({type:Et,selectors:[["","matPrefix",""]],features:[y._Bn([{provide:Zt,useExisting:Et}])]});var Ut=new y.OlP("MatSuffix"),Ht=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Ht.\u0275fac=function(Bt){return new(Bt||Ht)},Ht.\u0275dir=y.lG2({type:Ht,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Ut,useExisting:Ht}])]});var ln=0,cn=(0,K.pj)(function(){return(0,U.Z)(function wn(Bt){(0,L.Z)(this,wn),this._elementRef=Bt})}(),"primary"),$t=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),j=new y.OlP("MatFormField"),V=function(wn){(0,Y.Z)(dt,wn);var Bt=(0,S.Z)(dt);function dt(de,Te,ue,We,lt,Dt,tn){var Jt;return(0,L.Z)(this,dt),(Jt=Bt.call(this,de))._changeDetectorRef=Te,Jt._dir=ue,Jt._defaults=We,Jt._platform=lt,Jt._ngZone=Dt,Jt._outlineGapCalculationNeededImmediately=!1,Jt._outlineGapCalculationNeededOnStable=!1,Jt._destroyed=new M.xQ,Jt._showAlwaysAnimate=!1,Jt._subscriptAnimationState="",Jt._hintLabel="",Jt._hintLabelId="mat-hint-".concat(ln++),Jt._labelId="mat-form-field-label-".concat(ln++),Jt.floatLabel=Jt._getDefaultFloatLabelState(),Jt._animationsEnabled="NoopAnimations"!==tn,Jt.appearance=We&&We.appearance?We.appearance:"legacy",Jt._hideRequiredMarker=!(!We||null==We.hideRequiredMarker)&&We.hideRequiredMarker,Jt}return(0,U.Z)(dt,[{key:"appearance",get:function(){return this._appearance},set:function(Te){var ue=this._appearance;this._appearance=Te||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ue!==Te&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Te){this._hideRequiredMarker=(0,F.Ig)(Te)}},{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(Te){this._hintLabel=Te,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Te){Te!==this._floatLabel&&(this._floatLabel=Te||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Te){this._explicitFormFieldControl=Te}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Te=this;this._validateControlChild();var ue=this._control;ue.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(ue.controlType)),ue.stateChanges.pipe((0,I.O)(null)).subscribe(function(){Te._validatePlaceholders(),Te._syncDescribedByIds(),Te._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(function(){return Te._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Te._ngZone.onStable.pipe((0,T.R)(Te._destroyed)).subscribe(function(){Te._outlineGapCalculationNeededOnStable&&Te.updateOutlineGap()})}),(0,O.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Te._outlineGapCalculationNeededOnStable=!0,Te._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(function(){Te._processHints(),Te._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(function(){Te._syncDescribedByIds(),Te._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Te._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Te.updateOutlineGap()})}):Te.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(Te){var ue=this._control?this._control.ngControl:null;return ue&&ue[Te]}},{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 Te=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,w.q)(1)).subscribe(function(){Te._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 Te=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Te.push.apply(Te,(0,z.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var ue=this._hintChildren?this._hintChildren.find(function(lt){return"start"===lt.align}):null,We=this._hintChildren?this._hintChildren.find(function(lt){return"end"===lt.align}):null;ue?Te.push(ue.id):this._hintLabel&&Te.push(this._hintLabelId),We&&Te.push(We.id)}else this._errorChildren&&Te.push.apply(Te,(0,z.Z)(this._errorChildren.map(function(lt){return lt.id})));this._control.setDescribedByIds(Te)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Te=this._label?this._label.nativeElement:null,ue=this._connectionContainerRef.nativeElement,We=".mat-form-field-outline-start",lt=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Te||!Te.children.length||!Te.textContent.trim()){for(var Dt=ue.querySelectorAll("".concat(We,", ").concat(lt)),tn=0;tn<Dt.length;tn++)Dt[tn].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var Jt=0,nn=0,dn=ue.querySelectorAll(We),On=ue.querySelectorAll(lt);if(this._label&&this._label.nativeElement.children.length){var Dn=ue.getBoundingClientRect();if(0===Dn.width&&0===Dn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var zn=this._getStartEnd(Dn),Zn=Te.children,jn=this._getStartEnd(Zn[0].getBoundingClientRect()),mn=0,lr=0;lr<Zn.length;lr++)mn+=Zn[lr].offsetWidth;Jt=Math.abs(jn-zn)-5,nn=mn>0?.75*mn+10:0}for(var Yn=0;Yn<dn.length;Yn++)dn[Yn].style.width="".concat(Jt,"px");for(var Kt=0;Kt<On.length;Kt++)On[Kt].style.width="".concat(nn,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Te){return this._dir&&"rtl"===this._dir.value?Te.right:Te.left}},{key:"_isAttachedToDOM",value:function(){var Te=this._elementRef.nativeElement;if(Te.getRootNode){var ue=Te.getRootNode();return ue&&ue!==Te}return document.documentElement.contains(Te)}}]),dt}(cn);V.\u0275fac=function(Bt){return new(Bt||V)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(R.Is,8),y.Y36($t,8),y.Y36(W.t4),y.Y36(y.R0b),y.Y36(N.Qb,8))},V.\u0275cmp=y.Xpm({type:V,selectors:[["mat-form-field"]],contentQueries:function(Bt,dt,de){var Te;(1&Bt&&(y.Suo(de,it,5),y.Suo(de,it,7),y.Suo(de,An,5),y.Suo(de,An,7),y.Suo(de,Gt,5),y.Suo(de,qt,5),y.Suo(de,on,5),y.Suo(de,Zt,5),y.Suo(de,Ut,5)),2&Bt)&&(y.iGM(Te=y.CRH())&&(dt._controlNonStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._controlStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._labelChildNonStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._labelChildStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._placeholderChild=Te.first),y.iGM(Te=y.CRH())&&(dt._errorChildren=Te),y.iGM(Te=y.CRH())&&(dt._hintChildren=Te),y.iGM(Te=y.CRH())&&(dt._prefixChildren=Te),y.iGM(Te=y.CRH())&&(dt._suffixChildren=Te))},viewQuery:function(Bt,dt){var de;(1&Bt&&(y.Gf($,7),y.Gf(ce,5),y.Gf(se,5)),2&Bt)&&(y.iGM(de=y.CRH())&&(dt._connectionContainerRef=de.first),y.iGM(de=y.CRH())&&(dt._inputContainerRef=de.first),y.iGM(de=y.CRH())&&(dt._label=de.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(Bt,dt){2&Bt&&y.ekj("mat-form-field-appearance-standard","standard"==dt.appearance)("mat-form-field-appearance-fill","fill"==dt.appearance)("mat-form-field-appearance-outline","outline"==dt.appearance)("mat-form-field-appearance-legacy","legacy"==dt.appearance)("mat-form-field-invalid",dt._control.errorState)("mat-form-field-can-float",dt._canLabelFloat())("mat-form-field-should-float",dt._shouldLabelFloat())("mat-form-field-has-label",dt._hasFloatingLabel())("mat-form-field-hide-placeholder",dt._hideControlPlaceholder())("mat-form-field-disabled",dt._control.disabled)("mat-form-field-autofilled",dt._control.autofilled)("mat-focused",dt._control.focused)("ng-untouched",dt._shouldForward("untouched"))("ng-touched",dt._shouldForward("touched"))("ng-pristine",dt._shouldForward("pristine"))("ng-dirty",dt._shouldForward("dirty"))("ng-valid",dt._shouldForward("valid"))("ng-invalid",dt._shouldForward("invalid"))("ng-pending",dt._shouldForward("pending"))("_mat-animation-noopable",!dt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[y._Bn([{provide:j,useExisting:V}]),y.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(Bt,dt){1&Bt&&(y.F$t(Nt),y.TgZ(0,"div",0)(1,"div",1,2),y.NdJ("click",function(Te){return dt._control.onContainerClick&&dt._control.onContainerClick(Te)}),y.YNc(3,te,9,0,"ng-container",3),y.YNc(4,oe,2,1,"div",4),y.TgZ(5,"div",5,6),y.Hsn(7),y.TgZ(8,"span",7),y.YNc(9,xe,5,16,"label",8),y.qZA()(),y.YNc(10,_e,2,0,"div",9),y.qZA(),y.YNc(11,ke,2,4,"div",10),y.TgZ(12,"div",11),y.YNc(13,Fe,2,1,"div",12),y.YNc(14,Mt,5,2,"div",13),y.qZA()()),2&Bt&&(y.xp6(3),y.Q6J("ngIf","outline"==dt.appearance),y.xp6(1),y.Q6J("ngIf",dt._prefixChildren.length),y.xp6(5),y.Q6J("ngIf",dt._hasFloatingLabel()),y.xp6(1),y.Q6J("ngIf",dt._suffixChildren.length),y.xp6(1),y.Q6J("ngIf","outline"!=dt.appearance),y.xp6(1),y.Q6J("ngSwitch",dt._getDisplayedMessages()),y.xp6(1),y.Q6J("ngSwitchCase","error"),y.xp6(1),y.Q6J("ngSwitchCase","hint"))},directives:[D.O5,P.wD,D.RF,D.n9],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}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.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}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-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 transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.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}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[jt.transitionMessages]},changeDetection:0});var Jn=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Jn.\u0275fac=function(Bt){return new(Bt||Jn)},Jn.\u0275mod=y.oAB({type:Jn}),Jn.\u0275inj=y.cJS({imports:[[D.ez,K.BQ,P.Q8],K.BQ]})},4107:function(qe,J,m){"use strict";m.d(J,{LD:function(){return wn},gD:function(){return Jn}});var z=m(3237),Y=m(1120),S=m(4902),U=m(7326),L=m(136),P=m(9388),D=m(3144),y=m(5671),K=m(1314),F=m(9808),M=m(5e3),O=m(508),k=m(7322),I=m(9071),T=m(5664),w=m(3191),x=m(449),N=m(1159),R=m(3075),W=m(8929),$=m(8514),ce=m(6787),se=m(1059),te=m(7545),oe=m(2986),ve=m(9664),Oe=m(4850),st=m(5778),xe=m(7625),_e=m(1777),ke=m(226),Fe=["trigger"],ct=["panel"];function Mt(Bt,dt){if(1&Bt&&(M.TgZ(0,"span",8),M._uU(1),M.qZA()),2&Bt){var de=M.oxw();M.xp6(1),M.Oqu(de.placeholder)}}function Nt(Bt,dt){if(1&Bt&&(M.TgZ(0,"span",12),M._uU(1),M.qZA()),2&Bt){var de=M.oxw(2);M.xp6(1),M.Oqu(de.triggerValue)}}function Xt(Bt,dt){1&Bt&&M.Hsn(0,0,["*ngSwitchCase","true"])}function en(Bt,dt){if(1&Bt&&(M.TgZ(0,"span",9),M.YNc(1,Nt,2,1,"span",10),M.YNc(2,Xt,1,0,"ng-content",11),M.qZA()),2&Bt){var de=M.oxw();M.Q6J("ngSwitch",!!de.customTrigger),M.xp6(2),M.Q6J("ngSwitchCase",!0)}}function qt(Bt,dt){if(1&Bt){var de=M.EpF();M.TgZ(0,"div",13)(1,"div",14,15),M.NdJ("@transformPanel.done",function(We){return M.CHM(de),M.oxw()._panelDoneAnimatingStream.next(We.toState)})("keydown",function(We){return M.CHM(de),M.oxw()._handleKeydown(We)}),M.Hsn(3,1),M.qZA()()}if(2&Bt){var Te=M.oxw();M.Q6J("@transformPanelWrap",void 0),M.xp6(1),M.Gre("mat-select-panel ",Te._getPanelTheme(),""),M.Udp("transform-origin",Te._transformOrigin)("font-size",Te._triggerFontSize,"px"),M.Q6J("ngClass",Te.panelClass)("@transformPanel",Te.multiple?"showing-multiple":"showing"),M.uIk("id",Te.id+"-panel")("aria-multiselectable",Te.multiple)("aria-label",Te.ariaLabel||null)("aria-labelledby",Te._getPanelAriaLabelledby())}}var Xe=[[["mat-select-trigger"]],"*"],it={transformPanelWrap:(0,_e.X$)("transformPanelWrap",[(0,_e.eR)("* => void",(0,_e.IO)("@transformPanel",[(0,_e.pV)()],{optional:!0}))]),transformPanel:(0,_e.X$)("transformPanel",[(0,_e.SB)("void",(0,_e.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,_e.SB)("showing",(0,_e.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,_e.SB)("showing-multiple",(0,_e.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,_e.eR)("void => *",(0,_e.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,_e.eR)("* => void",(0,_e.jt)("100ms 25ms linear",(0,_e.oB)({opacity:0})))])};var It=0,Ut=new M.OlP("mat-select-scroll-strategy");var ln=new M.OlP("MAT_SELECT_CONFIG"),yt={provide:Ut,deps:[K.aV],useFactory:function Ht(Bt){return function(){return Bt.scrollStrategies.reposition()}}},mt=(0,D.Z)(function Bt(dt,de){(0,y.Z)(this,Bt),this.source=dt,this.value=de}),cn=(0,O.Kr)((0,O.sb)((0,O.Id)((0,O.FD)(function(){return(0,D.Z)(function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._elementRef=dt,this._defaultErrorStateMatcher=de,this._parentForm=Te,this._parentFormGroup=ue,this.ngControl=We})}())))),$t=new M.OlP("MatSelectTrigger"),j=(0,D.Z)(function Bt(){(0,y.Z)(this,Bt)});j.\u0275fac=function(dt){return new(dt||j)},j.\u0275dir=M.lG2({type:j,selectors:[["mat-select-trigger"]],features:[M._Bn([{provide:$t,useExisting:j}])]});var V=function(Bt){(0,L.Z)(de,Bt);var dt=(0,P.Z)(de);function de(Te,ue,We,lt,Dt,tn,Jt,nn,dn,On,Dn,zn,Zn,jn){var mn,lr,Yn,Kt;return(0,y.Z)(this,de),(mn=dt.call(this,Dt,lt,Jt,nn,On))._viewportRuler=Te,mn._changeDetectorRef=ue,mn._ngZone=We,mn._dir=tn,mn._parentFormField=dn,mn._liveAnnouncer=Zn,mn._defaultOptions=jn,mn._panelOpen=!1,mn._compareWith=function(tt,Ue){return tt===Ue},mn._uid="mat-select-".concat(It++),mn._triggerAriaLabelledBy=null,mn._destroy=new W.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(It++),mn._panelDoneAnimatingStream=new W.xQ,mn._overlayPanelClass=(null===(lr=mn._defaultOptions)||void 0===lr?void 0:lr.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(Kt=null===(Yn=mn._defaultOptions)||void 0===Yn?void 0:Yn.disableOptionCentering)&&void 0!==Kt&&Kt,mn.ariaLabel="",mn.optionSelectionChanges=(0,$.P)(function(){var tt=mn.options;return tt?tt.changes.pipe((0,se.O)(tt),(0,te.w)(function(){return ce.T.apply(void 0,(0,S.Z)(tt.map(function(Ue){return Ue.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,oe.q)(1),(0,te.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new M.vpe,mn._openedStream=mn.openedChange.pipe((0,ve.h)(function(tt){return tt}),(0,Oe.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,ve.h)(function(tt){return!tt}),(0,Oe.U)(function(){})),mn.selectionChange=new M.vpe,mn.valueChange=new M.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,U.Z)(mn)),null!=(null==jn?void 0:jn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=jn.typeaheadDebounceInterval),mn._scrollStrategyFactory=zn,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(Dn)||0,mn.id=mn.id,mn}return(0,D.Z)(de,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(ue){this._placeholder=ue,this.stateChanges.next()}},{key:"required",get:function(){var ue,We,lt,Dt;return null!==(Dt=null!==(ue=this._required)&&void 0!==ue?ue:null===(lt=null===(We=this.ngControl)||void 0===We?void 0:We.control)||void 0===lt?void 0:lt.hasValidator(R.kI.required))&&void 0!==Dt&&Dt},set:function(ue){this._required=(0,w.Ig)(ue),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ue){this._selectionModel,this._multiple=(0,w.Ig)(ue)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ue){this._disableOptionCentering=(0,w.Ig)(ue)}},{key:"compareWith",get:function(){return this._compareWith},set:function(ue){this._compareWith=ue,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(ue){this._assignValue(ue)&&this._onChange(ue)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(ue){this._typeaheadDebounceInterval=(0,w.su)(ue)}},{key:"id",get:function(){return this._id},set:function(ue){this._id=ue||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var ue=this;this._selectionModel=new x.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,st.x)(),(0,xe.R)(this._destroy)).subscribe(function(){return ue._panelDoneAnimating(ue.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var ue=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,xe.R)(this._destroy)).subscribe(function(We){We.added.forEach(function(lt){return lt.select()}),We.removed.forEach(function(lt){return lt.deselect()})}),this.options.changes.pipe((0,se.O)(null),(0,xe.R)(this._destroy)).subscribe(function(){ue._resetOptions(),ue._initializeSelection()})}},{key:"ngDoCheck",value:function(){var ue=this._getTriggerAriaLabelledby(),We=this.ngControl;if(ue!==this._triggerAriaLabelledBy){var lt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ue,ue?lt.setAttribute("aria-labelledby",ue):lt.removeAttribute("aria-labelledby")}We&&(this._previousControl!==We.control&&(void 0!==this._previousControl&&null!==We.disabled&&We.disabled!==this.disabled&&(this.disabled=We.disabled),this._previousControl=We.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(ue){ue.disabled&&this.stateChanges.next(),ue.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(ue){this._assignValue(ue)}},{key:"registerOnChange",value:function(ue){this._onChange=ue}},{key:"registerOnTouched",value:function(ue){this._onTouched=ue}},{key:"setDisabledState",value:function(ue){this.disabled=ue,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var ue,We;return this.multiple?(null===(ue=this._selectionModel)||void 0===ue?void 0:ue.selected)||[]:null===(We=this._selectionModel)||void 0===We?void 0:We.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var ue=this._selectionModel.selected.map(function(We){return We.viewValue});return this._isRtl()&&ue.reverse(),ue.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(ue){this.disabled||(this.panelOpen?this._handleOpenKeydown(ue):this._handleClosedKeydown(ue))}},{key:"_handleClosedKeydown",value:function(ue){var We=ue.keyCode,lt=We===N.JH||We===N.LH||We===N.oh||We===N.SV,Dt=We===N.K5||We===N.L_,tn=this._keyManager;if(!tn.isTyping()&&Dt&&!(0,N.Vb)(ue)||(this.multiple||ue.altKey)&&lt)ue.preventDefault(),this.open();else if(!this.multiple){var Jt=this.selected;tn.onKeydown(ue);var nn=this.selected;nn&&Jt!==nn&&this._liveAnnouncer.announce(nn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(ue){var We=this._keyManager,lt=ue.keyCode,Dt=lt===N.JH||lt===N.LH,tn=We.isTyping();if(Dt&&ue.altKey)ue.preventDefault(),this.close();else if(tn||lt!==N.K5&&lt!==N.L_||!We.activeItem||(0,N.Vb)(ue))if(!tn&&this._multiple&&lt===N.A&&ue.ctrlKey){ue.preventDefault();var Jt=this.options.some(function(dn){return!dn.disabled&&!dn.selected});this.options.forEach(function(dn){dn.disabled||(Jt?dn.select():dn.deselect())})}else{var nn=We.activeItemIndex;We.onKeydown(ue),this._multiple&&Dt&&ue.shiftKey&&We.activeItem&&We.activeItemIndex!==nn&&We.activeItem._selectViaInteraction()}else ue.preventDefault(),We.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 ue=this;this._overlayDir.positionChange.pipe((0,oe.q)(1)).subscribe(function(){ue._changeDetectorRef.detectChanges(),ue._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 ue=this;Promise.resolve().then(function(){ue.ngControl&&(ue._value=ue.ngControl.value),ue._setSelectionByValue(ue._value),ue.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(ue){var We=this;if(this._selectionModel.selected.forEach(function(Dt){return Dt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&ue)Array.isArray(ue),ue.forEach(function(Dt){return We._selectOptionByValue(Dt)}),this._sortValues();else{var lt=this._selectOptionByValue(ue);lt?this._keyManager.updateActiveItem(lt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(ue){var We=this,lt=this.options.find(function(Dt){if(We._selectionModel.isSelected(Dt))return!1;try{return null!=Dt.value&&We._compareWith(Dt.value,ue)}catch(tn){return!1}});return lt&&this._selectionModel.select(lt),lt}},{key:"_assignValue",value:function(ue){return!!(ue!==this._value||this._multiple&&Array.isArray(ue))&&(this.options&&this._setSelectionByValue(ue),this._value=ue,!0)}},{key:"_initKeyManager",value:function(){var ue=this;this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,xe.R)(this._destroy)).subscribe(function(){ue.panelOpen&&(!ue.multiple&&ue._keyManager.activeItem&&ue._keyManager.activeItem._selectViaInteraction(),ue.focus(),ue.close())}),this._keyManager.change.pipe((0,xe.R)(this._destroy)).subscribe(function(){ue._panelOpen&&ue.panel?ue._scrollOptionIntoView(ue._keyManager.activeItemIndex||0):!ue._panelOpen&&!ue.multiple&&ue._keyManager.activeItem&&ue._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var ue=this,We=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,xe.R)(We)).subscribe(function(lt){ue._onSelect(lt.source,lt.isUserInput),lt.isUserInput&&!ue.multiple&&ue._panelOpen&&(ue.close(),ue.focus())}),ce.T.apply(void 0,(0,S.Z)(this.options.map(function(lt){return lt._stateChanges}))).pipe((0,xe.R)(We)).subscribe(function(){ue._changeDetectorRef.markForCheck(),ue.stateChanges.next()})}},{key:"_onSelect",value:function(ue,We){var lt=this._selectionModel.isSelected(ue);null!=ue.value||this._multiple?(lt!==ue.selected&&(ue.selected?this._selectionModel.select(ue):this._selectionModel.deselect(ue)),We&&this._keyManager.setActiveItem(ue),this.multiple&&(this._sortValues(),We&&this.focus())):(ue.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ue.value)),lt!==this._selectionModel.isSelected(ue)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var ue=this;if(this.multiple){var We=this.options.toArray();this._selectionModel.sort(function(lt,Dt){return ue.sortComparator?ue.sortComparator(lt,Dt,We):We.indexOf(lt)-We.indexOf(Dt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(ue){var We=null;We=this.multiple?this.selected.map(function(lt){return lt.value}):this.selected?this.selected.value:ue,this._value=We,this.valueChange.emit(We),this._onChange(We),this.selectionChange.emit(this._getChangeEvent(We)),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 ue;return!this._panelOpen&&!this.disabled&&(null===(ue=this.options)||void 0===ue?void 0:ue.length)>0}},{key:"focus",value:function(ue){this._elementRef.nativeElement.focus(ue)}},{key:"_getPanelAriaLabelledby",value:function(){var ue;if(this.ariaLabel)return null;var We=null===(ue=this._parentFormField)||void 0===ue?void 0:ue.getLabelId(),lt=We?We+" ":"";return this.ariaLabelledby?lt+this.ariaLabelledby:We}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var ue;if(this.ariaLabel)return null;var We=null===(ue=this._parentFormField)||void 0===ue?void 0:ue.getLabelId(),lt=(We?We+" ":"")+this._valueId;return this.ariaLabelledby&&(lt+=" "+this.ariaLabelledby),lt}},{key:"_panelDoneAnimating",value:function(ue){this.openedChange.emit(ue)}},{key:"setDescribedByIds",value:function(ue){this._ariaDescribedby=ue.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),de}(cn);V.\u0275fac=function(dt){return new(dt||V)(M.Y36(I.rL),M.Y36(M.sBO),M.Y36(M.R0b),M.Y36(O.rD),M.Y36(M.SBq),M.Y36(ke.Is,8),M.Y36(R.F,8),M.Y36(R.sg,8),M.Y36(k.G_,8),M.Y36(R.a5,10),M.$8M("tabindex"),M.Y36(Ut),M.Y36(T.Kd),M.Y36(ln,8))},V.\u0275dir=M.lG2({type:V,viewQuery:function(dt,de){var Te;(1&dt&&(M.Gf(Fe,5),M.Gf(ct,5),M.Gf(K.pI,5)),2&dt)&&(M.iGM(Te=M.CRH())&&(de.trigger=Te.first),M.iGM(Te=M.CRH())&&(de.panel=Te.first),M.iGM(Te=M.CRH())&&(de._overlayDir=Te.first))},inputs:{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:[M.qOj,M.TTD]});var Jn=function(Bt){(0,L.Z)(de,Bt);var dt=(0,P.Z)(de);function de(){var Te;return(0,y.Z)(this,de),(Te=dt.apply(this,arguments))._scrollTop=0,Te._triggerFontSize=0,Te._transformOrigin="top",Te._offsetY=0,Te._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Te}return(0,D.Z)(de,[{key:"_calculateOverlayScroll",value:function(ue,We,lt){var Dt=this._getItemHeight(),nn=Dt*ue-We+Dt/2;return Math.min(Math.max(0,nn),lt)}},{key:"ngOnInit",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,xe.R)(this._destroy)).subscribe(function(){ue.panelOpen&&(ue._triggerRect=ue.trigger.nativeElement.getBoundingClientRect(),ue._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"_canOpen",this).call(this)&&((0,z.Z)((0,Y.Z)(de.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,oe.q)(1)).subscribe(function(){ue._triggerFontSize&&ue._overlayDir.overlayRef&&ue._overlayDir.overlayRef.overlayElement&&(ue._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(ue._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(ue){var We=(0,O.CB)(ue,this.options,this.optionGroups),lt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ue&&1===We?0:(0,O.jH)((ue+We)*lt,lt,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(ue){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,z.Z)((0,Y.Z)(de.prototype),"_panelDoneAnimating",this).call(this,ue)}},{key:"_getChangeEvent",value:function(ue){return new mt(this,ue)}},{key:"_calculateOverlayOffsetX",value:function(){var tn,ue=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),We=this._viewportRuler.getViewportSize(),lt=this._isRtl(),Dt=this.multiple?56:32;if(this.multiple)tn=40;else if(this.disableOptionCentering)tn=16;else{var Jt=this._selectionModel.selected[0]||this.options.first;tn=Jt&&Jt.group?32:16}lt||(tn*=-1);var nn=0-(ue.left+tn-(lt?Dt:0)),dn=ue.right+tn-We.width+(lt?0:Dt);nn>0?tn+=nn+8:dn>0&&(tn-=dn+8),this._overlayDir.offsetX=Math.round(tn),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(ue,We,lt){var nn,Dt=this._getItemHeight(),tn=(Dt-this._triggerRect.height)/2,Jt=Math.floor(256/Dt);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)nn=ue*Dt;else if(this._scrollTop===lt){nn=(ue-(this._getItemCount()-Jt))*Dt+(Dt-(this._getItemCount()*Dt-256)%Dt)}else nn=We-Dt/2;return Math.round(-1*nn-tn)}},{key:"_checkOverlayWithinViewport",value:function(ue){var We=this._getItemHeight(),lt=this._viewportRuler.getViewportSize(),Dt=this._triggerRect.top-8,tn=lt.height-this._triggerRect.bottom-8,Jt=Math.abs(this._offsetY),dn=Math.min(this._getItemCount()*We,256)-Jt-this._triggerRect.height;dn>tn?this._adjustPanelUp(dn,tn):Jt>Dt?this._adjustPanelDown(Jt,Dt,ue):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(ue,We){var lt=Math.round(ue-We);this._scrollTop-=lt,this._offsetY-=lt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(ue,We,lt){var Dt=Math.round(ue-We);if(this._scrollTop+=Dt,this._offsetY+=Dt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=lt)return this._scrollTop=lt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Jt,ue=this._getItemHeight(),We=this._getItemCount(),lt=Math.min(We*ue,256),tn=We*ue-lt;Jt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Jt+=(0,O.CB)(Jt,this.options,this.optionGroups);var nn=lt/2;this._scrollTop=this._calculateOverlayScroll(Jt,nn,tn),this._offsetY=this._calculateOverlayOffsetY(Jt,nn,tn),this._checkOverlayWithinViewport(tn)}},{key:"_getOriginBasedOnOption",value:function(){var ue=this._getItemHeight(),We=(ue-this._triggerRect.height)/2,lt=Math.abs(this._offsetY)-We+ue/2;return"50% ".concat(lt,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),de}(V);Jn.\u0275fac=function(){var Bt;return function(de){return(Bt||(Bt=M.n5z(Jn)))(de||Jn)}}(),Jn.\u0275cmp=M.Xpm({type:Jn,selectors:[["mat-select"]],contentQueries:function(dt,de,Te){var ue;(1&dt&&(M.Suo(Te,$t,5),M.Suo(Te,O.ey,5),M.Suo(Te,O.K7,5)),2&dt)&&(M.iGM(ue=M.CRH())&&(de.customTrigger=ue.first),M.iGM(ue=M.CRH())&&(de.options=ue),M.iGM(ue=M.CRH())&&(de.optionGroups=ue))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(dt,de){1&dt&&M.NdJ("keydown",function(ue){return de._handleKeydown(ue)})("focus",function(){return de._onFocus()})("blur",function(){return de._onBlur()}),2&dt&&(M.uIk("id",de.id)("tabindex",de.tabIndex)("aria-controls",de.panelOpen?de.id+"-panel":null)("aria-expanded",de.panelOpen)("aria-label",de.ariaLabel||null)("aria-required",de.required.toString())("aria-disabled",de.disabled.toString())("aria-invalid",de.errorState)("aria-describedby",de._ariaDescribedby||null)("aria-activedescendant",de._getAriaActiveDescendant()),M.ekj("mat-select-disabled",de.disabled)("mat-select-invalid",de.errorState)("mat-select-required",de.required)("mat-select-empty",de.empty)("mat-select-multiple",de.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[M._Bn([{provide:k.Eo,useExisting:Jn},{provide:O.HF,useExisting:Jn}]),M.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(dt,de){if(1&dt&&(M.F$t(Xe),M.TgZ(0,"div",0,1),M.NdJ("click",function(){return de.toggle()}),M.TgZ(3,"div",2),M.YNc(4,Mt,2,1,"span",3),M.YNc(5,en,3,2,"span",4),M.qZA(),M.TgZ(6,"div",5),M._UZ(7,"div",6),M.qZA()(),M.YNc(8,qt,4,14,"ng-template",7),M.NdJ("backdropClick",function(){return de.close()})("attach",function(){return de._onAttached()})("detach",function(){return de.close()})),2&dt){var Te=M.MAs(1);M.uIk("aria-owns",de.panelOpen?de.id+"-panel":null),M.xp6(3),M.Q6J("ngSwitch",de.empty),M.uIk("id",de._valueId),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1),M.xp6(3),M.Q6J("cdkConnectedOverlayPanelClass",de._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",de._scrollStrategy)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayOpen",de.panelOpen)("cdkConnectedOverlayPositions",de._positions)("cdkConnectedOverlayMinWidth",null==de._triggerRect?null:de._triggerRect.width)("cdkConnectedOverlayOffsetY",de._offsetY)}},directives:[K.xu,F.RF,F.n9,F.ED,K.pI,F.mk],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 transparent;border-right:5px solid transparent;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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[it.transformPanelWrap,it.transformPanel]},changeDetection:0});var wn=(0,D.Z)(function Bt(){(0,y.Z)(this,Bt)});wn.\u0275fac=function(dt){return new(dt||wn)},wn.\u0275mod=M.oAB({type:wn}),wn.\u0275inj=M.cJS({providers:[yt],imports:[[F.ez,K.U8,O.Ng,O.BQ],I.ZD,k.lN,O.Ng,O.BQ]})},3251:function(qe,J,m){"use strict";m.d(J,{BU:function(){return Ee},Nh:function(){return rr},Nj:function(){return Yt},SP:function(){return Kt},uD:function(){return Jn},uX:function(){return dt}});var z=m(7326),Y=m(4902),S=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(5664),F=m(7144),M=m(7429),O=m(9808),k=m(5e3),I=m(508),T=m(6360),w=m(2986),x=m(1059),N=m(5778),R=m(7625),W=m(7545),$=m(1307),ce=m(8929),se=m(4096),te=m(3753),oe=m(1086),ve=m(6787),Oe=m(8896),st=m(7451),xe=m(8723),_e=m(1777),ke=m(226),Fe=m(3191),ct=m(1159),Mt=m(925),Nt=m(9071);function Xt(pn,ut){1&pn&&k.Hsn(0)}var en=["*"];function qt(pn,ut){}var Xe=function(ut){return{animationDuration:ut}},jt=function(ut,Se){return{value:ut,params:Se}},it=["tabListContainer"],vt=["tabList"],nt=["tabListInner"],Lt=["nextPaginator"],It=["previousPaginator"],on=["tabBodyWrapper"],_n=["tabHeader"];function An(pn,ut){}function Gt(pn,ut){if(1&pn&&k.YNc(0,An,0,0,"ng-template",10),2&pn){var Se=k.oxw().$implicit;k.Q6J("cdkPortalOutlet",Se.templateLabel)}}function Zt(pn,ut){if(1&pn&&k._uU(0),2&pn){var Se=k.oxw().$implicit;k.Oqu(Se.textLabel)}}function Et(pn,ut){if(1&pn){var Se=k.EpF();k.TgZ(0,"div",6),k.NdJ("click",function(){var Ln=k.CHM(Se),cr=Ln.$implicit,Rr=Ln.index,$r=k.oxw(),Mr=k.MAs(1);return $r._handleClick(cr,Mr,Rr)})("cdkFocusChange",function(Ln){var Rr=k.CHM(Se).index;return k.oxw()._tabFocusChanged(Ln,Rr)}),k.TgZ(1,"div",7),k.YNc(2,Gt,1,1,"ng-template",8),k.YNc(3,Zt,1,1,"ng-template",null,9,k.W1O),k.qZA()()}if(2&pn){var Ae=ut.$implicit,Qe=ut.index,_t=k.MAs(4),Wt=k.oxw();k.ekj("mat-tab-label-active",Wt.selectedIndex===Qe),k.Q6J("id",Wt._getTabLabelId(Qe))("ngClass",Ae.labelClass)("disabled",Ae.disabled)("matRippleDisabled",Ae.disabled||Wt.disableRipple),k.uIk("tabIndex",Wt._getTabIndex(Ae,Qe))("aria-posinset",Qe+1)("aria-setsize",Wt._tabs.length)("aria-controls",Wt._getTabContentId(Qe))("aria-selected",Wt.selectedIndex===Qe)("aria-label",Ae.ariaLabel||null)("aria-labelledby",!Ae.ariaLabel&&Ae.ariaLabelledby?Ae.ariaLabelledby:null),k.xp6(2),k.Q6J("ngIf",Ae.templateLabel)("ngIfElse",_t)}}function Ut(pn,ut){if(1&pn){var Se=k.EpF();k.TgZ(0,"mat-tab-body",11),k.NdJ("_onCentered",function(){return k.CHM(Se),k.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(vn){return k.CHM(Se),k.oxw()._setTabBodyWrapperHeight(vn)}),k.qZA()}if(2&pn){var Ae=ut.$implicit,Qe=ut.index,_t=k.oxw();k.ekj("mat-tab-body-active",_t.selectedIndex===Qe),k.Q6J("id",_t._getTabContentId(Qe))("ngClass",Ae.bodyClass)("content",Ae.content)("position",Ae.position)("origin",Ae.origin)("animationDuration",_t.animationDuration),k.uIk("tabindex",null!=_t.contentTabIndex&&_t.selectedIndex===Qe?_t.contentTabIndex:null)("aria-labelledby",_t._getTabLabelId(Qe))}}var ln=new k.OlP("MatInkBarPositioner",{providedIn:"root",factory:function yt(){return function(Se){return{left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"}}}});var mt=function(){function pn(ut,Se,Ae,Qe){(0,D.Z)(this,pn),this._elementRef=ut,this._ngZone=Se,this._inkBarPositioner=Ae,this._animationMode=Qe}return(0,y.Z)(pn,[{key:"alignToElement",value:function(Se){var Ae=this;this.show(),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(function(){var Qe=Ae._inkBarPositioner(Se),_t=Ae._elementRef.nativeElement;_t.style.left=Qe.left,_t.style.width=Qe.width})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),pn}();mt.\u0275fac=function(ut){return new(ut||mt)(k.Y36(k.SBq),k.Y36(k.R0b),k.Y36(ln),k.Y36(T.Qb,8))},mt.\u0275dir=k.lG2({type:mt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ut,Se){2&ut&&k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode)}});var cn=new k.OlP("MatTabContent"),$t=(0,y.Z)(function pn(ut){(0,D.Z)(this,pn),this.template=ut});$t.\u0275fac=function(ut){return new(ut||$t)(k.Y36(k.Rgc))},$t.\u0275dir=k.lG2({type:$t,selectors:[["","matTabContent",""]],features:[k._Bn([{provide:cn,useExisting:$t}])]});var j=new k.OlP("MatTabLabel"),V=new k.OlP("MAT_TAB"),Jn=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t){var Wt;return(0,D.Z)(this,Se),(Wt=ut.call(this,Ae,Qe))._closestTab=_t,Wt}return(0,y.Z)(Se)}(M.ig);Jn.\u0275fac=function(ut){return new(ut||Jn)(k.Y36(k.Rgc),k.Y36(k.s_b),k.Y36(V,8))},Jn.\u0275dir=k.lG2({type:Jn,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[k._Bn([{provide:j,useExisting:Jn}]),k.qOj]});var wn=(0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()),Bt=new k.OlP("MAT_TAB_GROUP"),dt=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe){var _t;return(0,D.Z)(this,Se),(_t=ut.call(this))._viewContainerRef=Ae,_t._closestTabGroup=Qe,_t.textLabel="",_t._contentPortal=null,_t._stateChanges=new ce.xQ,_t.position=null,_t.origin=null,_t.isActive=!1,_t}return(0,y.Z)(Se,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(Qe){this._setTemplateLabelInput(Qe)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(Qe){(Qe.hasOwnProperty("textLabel")||Qe.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new M.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(Qe){Qe&&Qe._closestTab===this&&(this._templateLabel=Qe)}}]),Se}(wn);dt.\u0275fac=function(ut){return new(ut||dt)(k.Y36(k.s_b),k.Y36(Bt,8))},dt.\u0275cmp=k.Xpm({type:dt,selectors:[["mat-tab"]],contentQueries:function(ut,Se,Ae){var Qe;(1&ut&&(k.Suo(Ae,j,5),k.Suo(Ae,cn,7,k.Rgc)),2&ut)&&(k.iGM(Qe=k.CRH())&&(Se.templateLabel=Qe.first),k.iGM(Qe=k.CRH())&&(Se._explicitContent=Qe.first))},viewQuery:function(ut,Se){var Ae;(1&ut&&k.Gf(k.Rgc,7),2&ut)&&(k.iGM(Ae=k.CRH())&&(Se._implicitContent=Ae.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[k._Bn([{provide:V,useExisting:dt}]),k.qOj,k.TTD],ngContentSelectors:en,decls:1,vars:0,template:function(ut,Se){1&ut&&(k.F$t(),k.YNc(0,Xt,1,0,"ng-template"))},encapsulation:2});var de={translateTab:(0,_e.X$)("translateTab",[(0,_e.SB)("center, void, left-origin-center, right-origin-center",(0,_e.oB)({transform:"none"})),(0,_e.SB)("left",(0,_e.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,_e.SB)("right",(0,_e.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,_e.eR)("* => left, * => right, left => center, right => center",(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,_e.eR)("void => left-origin-center",[(0,_e.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,_e.eR)("void => right-origin-center",[(0,_e.oB)({transform:"translate3d(100%, 0, 0)"}),(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Te=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){var vn;return(0,D.Z)(this,Se),(vn=ut.call(this,Ae,Qe,Wt))._host=_t,vn._centeringSub=se.w.EMPTY,vn._leavingSub=se.w.EMPTY,vn}return(0,y.Z)(Se,[{key:"ngOnInit",value:function(){var Qe=this;(0,S.Z)((0,U.Z)(Se.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,x.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(_t){_t&&!Qe.hasAttached()&&Qe.attach(Qe._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){Qe.detach()})}},{key:"ngOnDestroy",value:function(){(0,S.Z)((0,U.Z)(Se.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),Se}(M.Pl);Te.\u0275fac=function(ut){return new(ut||Te)(k.Y36(k._Vd),k.Y36(k.s_b),k.Y36((0,k.Gpc)(function(){return We})),k.Y36(O.K0))},Te.\u0275dir=k.lG2({type:Te,selectors:[["","matTabBodyHost",""]],features:[k.qOj]});var ue=function(){function pn(ut,Se,Ae){var Qe=this;(0,D.Z)(this,pn),this._elementRef=ut,this._dir=Se,this._dirChangeSubscription=se.w.EMPTY,this._translateTabComplete=new ce.xQ,this._onCentering=new k.vpe,this._beforeCentering=new k.vpe,this._afterLeavingCenter=new k.vpe,this._onCentered=new k.vpe(!0),this.animationDuration="500ms",Se&&(this._dirChangeSubscription=Se.change.subscribe(function(_t){Qe._computePositionAnimationState(_t),Ae.markForCheck()})),this._translateTabComplete.pipe((0,N.x)(function(_t,Wt){return _t.fromState===Wt.fromState&&_t.toState===Wt.toState})).subscribe(function(_t){Qe._isCenterPosition(_t.toState)&&Qe._isCenterPosition(Qe._position)&&Qe._onCentered.emit(),Qe._isCenterPosition(_t.fromState)&&!Qe._isCenterPosition(Qe._position)&&Qe._afterLeavingCenter.emit()})}return(0,y.Z)(pn,[{key:"position",set:function(Se){this._positionIndex=Se,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(Se){var Ae=this._isCenterPosition(Se.toState);this._beforeCentering.emit(Ae),Ae&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(Se){return"center"==Se||"left-origin-center"==Se||"right-origin-center"==Se}},{key:"_computePositionAnimationState",value:function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==Se?"left":"right":this._positionIndex>0?this._position="ltr"==Se?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function(Se){var Ae=this._getLayoutDirection();return"ltr"==Ae&&Se<=0||"rtl"==Ae&&Se>0?"left-origin-center":"right-origin-center"}}]),pn}();ue.\u0275fac=function(ut){return new(ut||ue)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.sBO))},ue.\u0275dir=k.lG2({type:ue,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var We=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t){return(0,D.Z)(this,Se),ut.call(this,Ae,Qe,_t)}return(0,y.Z)(Se)}(ue);We.\u0275fac=function(ut){return new(ut||We)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.sBO))},We.\u0275cmp=k.Xpm({type:We,selectors:[["mat-tab-body"]],viewQuery:function(ut,Se){var Ae;(1&ut&&k.Gf(M.Pl,5),2&ut)&&(k.iGM(Ae=k.CRH())&&(Se._portalHost=Ae.first))},hostAttrs:[1,"mat-tab-body"],features:[k.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ut,Se){1&ut&&(k.TgZ(0,"div",0,1),k.NdJ("@translateTab.start",function(Qe){return Se._onTranslateTabStarted(Qe)})("@translateTab.done",function(Qe){return Se._translateTabComplete.next(Qe)}),k.YNc(2,qt,0,0,"ng-template",2),k.qZA()),2&ut&&k.Q6J("@translateTab",k.WLB(3,jt,Se._position,k.VKq(1,Xe,Se.animationDuration)))},directives:[Te],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}\n'],encapsulation:2,data:{animation:[de.translateTab]}});var lt=new k.OlP("MAT_TABS_CONFIG"),tn=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae){var Qe;return(0,D.Z)(this,Se),(Qe=ut.call(this)).elementRef=Ae,Qe}return(0,y.Z)(Se,[{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}}]),Se}((0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()));tn.\u0275fac=function(ut){return new(ut||tn)(k.Y36(k.SBq))},tn.\u0275dir=k.lG2({type:tn,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ut,Se){2&ut&&(k.uIk("aria-disabled",!!Se.disabled),k.ekj("mat-tab-disabled",Se.disabled))},inputs:{disabled:"disabled"},features:[k.qOj]});var Jt=(0,Mt.i$)({passive:!0}),Dn=function(){function pn(ut,Se,Ae,Qe,_t,Wt,vn){var Ln=this;(0,D.Z)(this,pn),this._elementRef=ut,this._changeDetectorRef=Se,this._viewportRuler=Ae,this._dir=Qe,this._ngZone=_t,this._platform=Wt,this._animationMode=vn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ce.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ce.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new k.vpe,this.indexFocused=new k.vpe,_t.runOutsideAngular(function(){(0,te.R)(ut.nativeElement,"mouseleave").pipe((0,R.R)(Ln._destroyed)).subscribe(function(){Ln._stopInterval()})})}return(0,y.Z)(pn,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Se){Se=(0,Fe.su)(Se),this._selectedIndex!=Se&&(this._selectedIndexChanged=!0,this._selectedIndex=Se,this._keyManager&&this._keyManager.updateActiveItem(Se))}},{key:"ngAfterViewInit",value:function(){var Se=this;(0,te.R)(this._previousPaginator.nativeElement,"touchstart",Jt).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._handlePaginatorPress("before")}),(0,te.R)(this._nextPaginator.nativeElement,"touchstart",Jt).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var Se=this,Ae=this._dir?this._dir.change:(0,oe.of)("ltr"),Qe=this._viewportRuler.change(150),_t=function(){Se.updatePagination(),Se._alignInkBarToSelectedTab()};this._keyManager=new K.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(_t),(0,ve.T)(Ae,Qe,this._items.changes,this._itemsResized()).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._ngZone.run(function(){Promise.resolve().then(function(){Se._scrollDistance=Math.max(0,Math.min(Se._getMaxScrollDistance(),Se._scrollDistance)),_t()})}),Se._keyManager.withHorizontalOrientation(Se._getLayoutDirection())}),this._keyManager.change.pipe((0,R.R)(this._destroyed)).subscribe(function(Wt){Se.indexFocused.emit(Wt),Se._setTabFocus(Wt)})}},{key:"_itemsResized",value:function(){var Se=this;return"function"!=typeof ResizeObserver?Oe.E:this._items.changes.pipe((0,x.O)(this._items),(0,W.w)(function(Ae){return new st.y(function(Qe){return Se._ngZone.runOutsideAngular(function(){var _t=new ResizeObserver(function(){Qe.next()});return Ae.forEach(function(Wt){_t.observe(Wt.elementRef.nativeElement)}),function(){_t.disconnect()}})})}),(0,$.T)(1))}},{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(Se){if(!(0,ct.Vb)(Se))switch(Se.keyCode){case ct.K5:case ct.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Se));break;default:this._keyManager.onKeydown(Se)}}},{key:"_onContentChanges",value:function(){var Se=this,Ae=this._elementRef.nativeElement.textContent;Ae!==this._currentTextContent&&(this._currentTextContent=Ae||"",this._ngZone.run(function(){Se.updatePagination(),Se._alignInkBarToSelectedTab(),Se._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(Se){!this._isValidIndex(Se)||this.focusIndex===Se||!this._keyManager||this._keyManager.setActiveItem(Se)}},{key:"_isValidIndex",value:function(Se){if(!this._items)return!0;var Ae=this._items?this._items.toArray()[Se]:null;return!!Ae&&!Ae.disabled}},{key:"_setTabFocus",value:function(Se){if(this._showPaginationControls&&this._scrollToLabel(Se),this._items&&this._items.length){this._items.toArray()[Se].focus();var Ae=this._tabListContainer.nativeElement,Qe=this._getLayoutDirection();Ae.scrollLeft="ltr"==Qe?0:Ae.scrollWidth-Ae.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var Se=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-Se:Se;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(Ae),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(Se){this._scrollTo(Se)}},{key:"_scrollHeader",value:function(Se){var Qe=("before"==Se?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+Qe)}},{key:"_handlePaginatorClick",value:function(Se){this._stopInterval(),this._scrollHeader(Se)}},{key:"_scrollToLabel",value:function(Se){if(!this.disablePagination){var Ae=this._items?this._items.toArray()[Se]:null;if(Ae){var Ln,cr,Qe=this._tabListContainer.nativeElement.offsetWidth,_t=Ae.elementRef.nativeElement,Wt=_t.offsetLeft,vn=_t.offsetWidth;"ltr"==this._getLayoutDirection()?cr=(Ln=Wt)+vn:Ln=(cr=this._tabListInner.nativeElement.offsetWidth-Wt)-vn;var Rr=this.scrollDistance,$r=this.scrollDistance+Qe;Ln<Rr?this.scrollDistance-=Rr-Ln+60:cr>$r&&(this.scrollDistance+=cr-$r+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var Se=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Se||(this.scrollDistance=0),Se!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Se}}},{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 Se=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ae=Se?Se.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(Se,Ae){var Qe=this;Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,xe.H)(650,100).pipe((0,R.R)((0,ve.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var _t=Qe._scrollHeader(Se),Wt=_t.maxScrollDistance,vn=_t.distance;(0===vn||vn>=Wt)&&Qe._stopInterval()}))}},{key:"_scrollTo",value:function(Se){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,Se)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}]),pn}();Dn.\u0275fac=function(ut){return new(ut||Dn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Dn.\u0275dir=k.lG2({type:Dn,inputs:{disablePagination:"disablePagination"}});var zn=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln,cr){var Rr;return(0,D.Z)(this,Se),(Rr=ut.call(this,Ae,Qe,_t,Wt,vn,Ln,cr))._disableRipple=!1,Rr}return(0,y.Z)(Se,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Qe){this._disableRipple=(0,Fe.Ig)(Qe)}},{key:"_itemSelected",value:function(Qe){Qe.preventDefault()}}]),Se}(Dn);zn.\u0275fac=function(ut){return new(ut||zn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},zn.\u0275dir=k.lG2({type:zn,inputs:{disableRipple:"disableRipple"},features:[k.qOj]});var Zn=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln,cr){return(0,D.Z)(this,Se),ut.call(this,Ae,Qe,_t,Wt,vn,Ln,cr)}return(0,y.Z)(Se)}(zn);Zn.\u0275fac=function(ut){return new(ut||Zn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Zn.\u0275cmp=k.Xpm({type:Zn,selectors:[["mat-tab-header"]],contentQueries:function(ut,Se,Ae){var Qe;(1&ut&&k.Suo(Ae,tn,4),2&ut)&&(k.iGM(Qe=k.CRH())&&(Se._items=Qe))},viewQuery:function(ut,Se){var Ae;(1&ut&&(k.Gf(mt,7),k.Gf(it,7),k.Gf(vt,7),k.Gf(nt,7),k.Gf(Lt,5),k.Gf(It,5)),2&ut)&&(k.iGM(Ae=k.CRH())&&(Se._inkBar=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListContainer=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabList=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListInner=Ae.first),k.iGM(Ae=k.CRH())&&(Se._nextPaginator=Ae.first),k.iGM(Ae=k.CRH())&&(Se._previousPaginator=Ae.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ut,Se){2&ut&&k.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[k.qOj],ngContentSelectors:en,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(ut,Se){1&ut&&(k.F$t(),k.TgZ(0,"button",0,1),k.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(Qe){return Se._handlePaginatorPress("before",Qe)})("touchend",function(){return Se._stopInterval()}),k._UZ(2,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.NdJ("keydown",function(Qe){return Se._handleKeydown(Qe)}),k.TgZ(5,"div",5,6),k.NdJ("cdkObserveContent",function(){return Se._onContentChanges()}),k.TgZ(7,"div",7,8),k.Hsn(9),k.qZA(),k._UZ(10,"mat-ink-bar"),k.qZA()(),k.TgZ(11,"button",9,10),k.NdJ("mousedown",function(Qe){return Se._handlePaginatorPress("after",Qe)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),k._UZ(13,"div",2),k.qZA()),2&ut&&(k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),k.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),k.xp6(5),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(6),k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),k.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[I.wG,F.wD,mt],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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-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-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2});var jn=0,mn=(0,y.Z)(function pn(){(0,D.Z)(this,pn)}),Yn=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){var vn,Ln;return(0,D.Z)(this,Se),(vn=ut.call(this,Ae))._changeDetectorRef=Qe,vn._animationMode=Wt,vn._tabs=new k.n_E,vn._indexToSelect=0,vn._lastFocusedTabIndex=null,vn._tabBodyWrapperHeight=0,vn._tabsSubscription=se.w.EMPTY,vn._tabLabelSubscription=se.w.EMPTY,vn._selectedIndex=null,vn.headerPosition="above",vn.selectedIndexChange=new k.vpe,vn.focusChange=new k.vpe,vn.animationDone=new k.vpe,vn.selectedTabChange=new k.vpe(!0),vn._groupId=jn++,vn.animationDuration=_t&&_t.animationDuration?_t.animationDuration:"500ms",vn.disablePagination=!(!_t||null==_t.disablePagination)&&_t.disablePagination,vn.dynamicHeight=!(!_t||null==_t.dynamicHeight)&&_t.dynamicHeight,vn.contentTabIndex=null!==(Ln=null==_t?void 0:_t.contentTabIndex)&&void 0!==Ln?Ln:null,vn}return(0,y.Z)(Se,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(Qe){this._dynamicHeight=(0,Fe.Ig)(Qe)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Qe){this._indexToSelect=(0,Fe.su)(Qe,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(Qe){this._animationDuration=/^\d+$/.test(Qe+"")?Qe+"ms":Qe}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(Qe){this._contentTabIndex=(0,Fe.su)(Qe,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(Qe){var _t=this._elementRef.nativeElement;_t.classList.remove("mat-background-".concat(this.backgroundColor)),Qe&&_t.classList.add("mat-background-".concat(Qe)),this._backgroundColor=Qe}},{key:"ngAfterContentChecked",value:function(){var Qe=this,_t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=_t){var Wt=null==this._selectedIndex;if(!Wt){this.selectedTabChange.emit(this._createChangeEvent(_t));var vn=this._tabBodyWrapper.nativeElement;vn.style.minHeight=vn.clientHeight+"px"}Promise.resolve().then(function(){Qe._tabs.forEach(function(Ln,cr){return Ln.isActive=cr===_t}),Wt||(Qe.selectedIndexChange.emit(_t),Qe._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Ln,cr){Ln.position=cr-_t,null!=Qe._selectedIndex&&0==Ln.position&&!Ln.origin&&(Ln.origin=_t-Qe._selectedIndex)}),this._selectedIndex!==_t&&(this._selectedIndex=_t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var _t=Qe._clampTabIndex(Qe._indexToSelect);if(_t===Qe._selectedIndex){for(var vn,Wt=Qe._tabs.toArray(),Ln=0;Ln<Wt.length;Ln++)if(Wt[Ln].isActive){Qe._indexToSelect=Qe._selectedIndex=Ln,Qe._lastFocusedTabIndex=null,vn=Wt[Ln];break}!vn&&Wt[_t]&&Promise.resolve().then(function(){Wt[_t].isActive=!0,Qe.selectedTabChange.emit(Qe._createChangeEvent(_t))})}Qe._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var Qe=this;this._allTabs.changes.pipe((0,x.O)(this._allTabs)).subscribe(function(_t){Qe._tabs.reset(_t.filter(function(Wt){return Wt._closestTabGroup===Qe||!Wt._closestTabGroup})),Qe._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(Qe){var _t=this._tabHeader;_t&&(_t.focusIndex=Qe)}},{key:"_focusChanged",value:function(Qe){this._lastFocusedTabIndex=Qe,this.focusChange.emit(this._createChangeEvent(Qe))}},{key:"_createChangeEvent",value:function(Qe){var _t=new mn;return _t.index=Qe,this._tabs&&this._tabs.length&&(_t.tab=this._tabs.toArray()[Qe]),_t}},{key:"_subscribeToTabLabels",value:function(){var Qe=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ve.T.apply(void 0,(0,Y.Z)(this._tabs.map(function(_t){return _t._stateChanges}))).subscribe(function(){return Qe._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(Qe){return Math.min(this._tabs.length-1,Math.max(Qe||0,0))}},{key:"_getTabLabelId",value:function(Qe){return"mat-tab-label-".concat(this._groupId,"-").concat(Qe)}},{key:"_getTabContentId",value:function(Qe){return"mat-tab-content-".concat(this._groupId,"-").concat(Qe)}},{key:"_setTabBodyWrapperHeight",value:function(Qe){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var _t=this._tabBodyWrapper.nativeElement;_t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(_t.style.height=Qe+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var Qe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Qe.clientHeight,Qe.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(Qe,_t,Wt){Qe.disabled||(this.selectedIndex=_t.focusIndex=Wt)}},{key:"_getTabIndex",value:function(Qe,_t){var Wt;return Qe.disabled?null:_t===(null!==(Wt=this._lastFocusedTabIndex)&&void 0!==Wt?Wt:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(Qe,_t){Qe&&"mouse"!==Qe&&"touch"!==Qe&&(this._tabHeader.focusIndex=_t)}}]),Se}((0,I.pj)((0,I.Kr)(function(){return(0,y.Z)(function pn(ut){(0,D.Z)(this,pn),this._elementRef=ut})}()),"primary"));Yn.\u0275fac=function(ut){return new(ut||Yn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(lt,8),k.Y36(T.Qb,8))},Yn.\u0275dir=k.lG2({type:Yn,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[k.qOj]});var Kt=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){return(0,D.Z)(this,Se),ut.call(this,Ae,Qe,_t,Wt)}return(0,y.Z)(Se)}(Yn);Kt.\u0275fac=function(ut){return new(ut||Kt)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(lt,8),k.Y36(T.Qb,8))},Kt.\u0275cmp=k.Xpm({type:Kt,selectors:[["mat-tab-group"]],contentQueries:function(ut,Se,Ae){var Qe;(1&ut&&k.Suo(Ae,dt,5),2&ut)&&(k.iGM(Qe=k.CRH())&&(Se._allTabs=Qe))},viewQuery:function(ut,Se){var Ae;(1&ut&&(k.Gf(on,5),k.Gf(_n,5)),2&ut)&&(k.iGM(Ae=k.CRH())&&(Se._tabBodyWrapper=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabHeader=Ae.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ut,Se){2&ut&&k.ekj("mat-tab-group-dynamic-height",Se.dynamicHeight)("mat-tab-group-inverted-header","below"===Se.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[k._Bn([{provide:Bt,useExisting:Kt}]),k.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","_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","_onCentered","_onCentering"]],template:function(ut,Se){1&ut&&(k.TgZ(0,"mat-tab-header",0,1),k.NdJ("indexFocused",function(Qe){return Se._focusChanged(Qe)})("selectFocusedIndex",function(Qe){return Se.selectedIndex=Qe}),k.YNc(2,Et,5,15,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.YNc(5,Ut,1,10,"mat-tab-body",5),k.qZA()),2&ut&&(k.Q6J("selectedIndex",Se.selectedIndex||0)("disableRipple",Se.disableRipple)("disablePagination",Se.disablePagination),k.xp6(2),k.Q6J("ngForOf",Se._tabs),k.xp6(1),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(2),k.Q6J("ngForOf",Se._tabs))},directives:[Zn,We,O.sg,tn,I.wG,K.kH,O.mk,O.O5,M.Pl],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}\n"],encapsulation:2});var tt=0,Ue=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln,cr){var Rr;return(0,D.Z)(this,Se),(Rr=ut.call(this,Ae,Wt,vn,Qe,_t,Ln,cr))._disableRipple=!1,Rr.color="primary",Rr}return(0,y.Z)(Se,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(Qe){var _t=this._elementRef.nativeElement.classList;_t.remove("mat-background-".concat(this.backgroundColor)),Qe&&_t.add("mat-background-".concat(Qe)),this._backgroundColor=Qe}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(Qe){this._disableRipple=(0,Fe.Ig)(Qe)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._items.changes.pipe((0,x.O)(null),(0,R.R)(this._destroyed)).subscribe(function(){Qe.updateActiveLink()}),(0,S.Z)((0,U.Z)(Se.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var Qe=this._items.toArray(),_t=0;_t<Qe.length;_t++)if(Qe[_t].active)return this.selectedIndex=_t,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Qe[_t].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),Se}(Dn);Ue.\u0275fac=function(ut){return new(ut||Ue)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Ue.\u0275dir=k.lG2({type:Ue,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[k.qOj]});var Ee=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln,cr){return(0,D.Z)(this,Se),ut.call(this,Ae,Qe,_t,Wt,vn,Ln,cr)}return(0,y.Z)(Se)}(Ue);Ee.\u0275fac=function(ut){return new(ut||Ee)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Ee.\u0275cmp=k.Xpm({type:Ee,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ut,Se,Ae){var Qe;(1&ut&&k.Suo(Ae,Yt,5),2&ut)&&(k.iGM(Qe=k.CRH())&&(Se._items=Qe))},viewQuery:function(ut,Se){var Ae;(1&ut&&(k.Gf(mt,7),k.Gf(it,7),k.Gf(vt,7),k.Gf(nt,7),k.Gf(Lt,5),k.Gf(It,5)),2&ut)&&(k.iGM(Ae=k.CRH())&&(Se._inkBar=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListContainer=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabList=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListInner=Ae.first),k.iGM(Ae=k.CRH())&&(Se._nextPaginator=Ae.first),k.iGM(Ae=k.CRH())&&(Se._previousPaginator=Ae.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(ut,Se){2&ut&&(k.uIk("role",Se._getRole()),k.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())("mat-primary","warn"!==Se.color&&"accent"!==Se.color)("mat-accent","accent"===Se.color)("mat-warn","warn"===Se.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[k.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:en,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(ut,Se){1&ut&&(k.F$t(),k.TgZ(0,"button",0,1),k.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(Qe){return Se._handlePaginatorPress("before",Qe)})("touchend",function(){return Se._stopInterval()}),k._UZ(2,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.NdJ("keydown",function(Qe){return Se._handleKeydown(Qe)}),k.TgZ(5,"div",5,6),k.NdJ("cdkObserveContent",function(){return Se._onContentChanges()}),k.TgZ(7,"div",7,8),k.Hsn(9),k.qZA(),k._UZ(10,"mat-ink-bar"),k.qZA()(),k.TgZ(11,"button",9,10),k.NdJ("mousedown",function(Qe){return Se._handlePaginatorPress("after",Qe)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),k._UZ(13,"div",2),k.qZA()),2&ut&&(k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),k.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),k.xp6(5),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(6),k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),k.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[I.wG,F.wD,mt],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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-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:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.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}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2});var bt=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln){var cr;return(0,D.Z)(this,Se),(cr=ut.call(this))._tabNavBar=Ae,cr.elementRef=Qe,cr._focusMonitor=vn,cr._isActive=!1,cr.id="mat-tab-link-".concat(tt++),cr.rippleConfig=_t||{},cr.tabIndex=parseInt(Wt)||0,"NoopAnimations"===Ln&&(cr.rippleConfig.animation={enterDuration:0,exitDuration:0}),cr}return(0,y.Z)(Se,[{key:"active",get:function(){return this._isActive},set:function(Qe){var _t=(0,Fe.Ig)(Qe);_t!==this._isActive&&(this._isActive=_t,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(Qe){this._tabNavBar.tabPanel&&Qe.keyCode===ct.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var Qe;return this._tabNavBar.tabPanel?null===(Qe=this._tabNavBar.tabPanel)||void 0===Qe?void 0:Qe.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?0:-1:this.tabIndex}}]),Se}((0,I.sb)((0,I.Kr)((0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()))));bt.\u0275fac=function(ut){return new(ut||bt)(k.Y36(Ue),k.Y36(k.SBq),k.Y36(I.Y2,8),k.$8M("tabindex"),k.Y36(K.tE),k.Y36(T.Qb,8))},bt.\u0275dir=k.lG2({type:bt,inputs:{active:"active",id:"id"},features:[k.qOj]});var Yt=function(pn){(0,L.Z)(Se,pn);var ut=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,vn,Ln,cr,Rr){var $r;return(0,D.Z)(this,Se),($r=ut.call(this,Ae,Qe,vn,Ln,cr,Rr))._tabLinkRipple=new I.IR((0,z.Z)($r),_t,Qe,Wt),$r._tabLinkRipple.setupTriggerEvents(Qe.nativeElement),$r}return(0,y.Z)(Se,[{key:"ngOnDestroy",value:function(){(0,S.Z)((0,U.Z)(Se.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),Se}(bt);Yt.\u0275fac=function(ut){return new(ut||Yt)(k.Y36(Ee),k.Y36(k.SBq),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(I.Y2,8),k.$8M("tabindex"),k.Y36(K.tE),k.Y36(T.Qb,8))},Yt.\u0275dir=k.lG2({type:Yt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(ut,Se){1&ut&&k.NdJ("focus",function(){return Se._handleFocus()})("keydown",function(Qe){return Se._handleKeydown(Qe)}),2&ut&&(k.uIk("aria-controls",Se._getAriaControls())("aria-current",Se._getAriaCurrent())("aria-disabled",Se.disabled)("aria-selected",Se._getAriaSelected())("id",Se.id)("tabIndex",Se._getTabIndex())("role",Se._getRole()),k.ekj("mat-tab-disabled",Se.disabled)("mat-tab-label-active",Se.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[k.qOj]});var En=(0,y.Z)(function pn(){(0,D.Z)(this,pn),this.id="mat-tab-nav-panel-".concat(tt++)});En.\u0275fac=function(ut){return new(ut||En)},En.\u0275cmp=k.Xpm({type:En,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(ut,Se){2&ut&&k.uIk("aria-labelledby",Se._activeTabId)("id",Se.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:en,decls:1,vars:0,template:function(ut,Se){1&ut&&(k.F$t(),k.Hsn(0))},encapsulation:2,changeDetection:0});var rr=(0,y.Z)(function pn(){(0,D.Z)(this,pn)});rr.\u0275fac=function(ut){return new(ut||rr)},rr.\u0275mod=k.oAB({type:rr}),rr.\u0275inj=k.cJS({imports:[[O.ez,I.BQ,M.eL,I.si,F.Q8,K.rt],I.BQ]})},6360:function(qe,J,m){"use strict";m.d(J,{Qb:function(){return pi},PW:function(){return ji}});var z=m(7685),Y=m(5671),S=m(3144),U=m(136),L=m(9388),P=m(5e3),D=m(2313),y=m(1777),K=m(7762),F=m(4902),M=!1;function k(ze){return new P.vHH(3e3,M)}function en(ze){return new P.vHH(3502,M)}function Xe(){return new P.vHH(3300,M)}function jt(ze){return new P.vHH(3504,M)}function Zt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Et(ze){switch(ze.length){case 0:return new y.ZN;case 1:return ze[0];default:return new y.ZE(ze)}}function Ut(ze,me,ie,fe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},$e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},kt=[],Ft=[],Vt=-1,Qt=null;if(fe.forEach(function(bn){var Qn=bn.offset,ir=Qn==Vt,_r=ir&&Qt||{};Object.keys(bn).forEach(function(gr){var di=gr,Ne=bn[gr];if("offset"!==gr)switch(di=me.normalizePropertyName(di,kt),Ne){case y.k1:Ne=Ze[gr];break;case y.l3:Ne=$e[gr];break;default:Ne=me.normalizeStyleValue(gr,di,Ne,kt)}_r[di]=Ne}),ir||Ft.push(_r),Qt=_r,Vt=Qn}),kt.length)throw en();return Ft}function Ht(ze,me,ie,fe){switch(me){case"start":ze.onStart(function(){return fe(ie&&ln(ie,"start",ze))});break;case"done":ze.onDone(function(){return fe(ie&&ln(ie,"done",ze))});break;case"destroy":ze.onDestroy(function(){return fe(ie&&ln(ie,"destroy",ze))})}}function ln(ze,me,ie){var fe=ie.totalTime,Ze=!!ie.disabled,$e=yt(ze.element,ze.triggerName,ze.fromState,ze.toState,me||ze.phaseName,null==fe?ze.totalTime:fe,Ze),kt=ze._data;return null!=kt&&($e._data=kt),$e}function yt(ze,me,ie,fe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",$e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,kt=arguments.length>6?arguments[6]:void 0;return{element:ze,triggerName:me,fromState:ie,toState:fe,phaseName:Ze,totalTime:$e,disabled:!!kt}}function mt(ze,me,ie){var fe;return ze instanceof Map?(fe=ze.get(me))||ze.set(me,fe=ie):(fe=ze[me])||(fe=ze[me]=ie),fe}function cn(ze){var me=ze.indexOf(":");return[ze.substring(1,me),ze.substr(me+1)]}var $t=function(me,ie){return!1},j=function(me,ie,fe){return[]},V=null;function Jn(ze){var me=ze.parentNode||ze.host;return me===V?null:me}(Zt()||"undefined"!=typeof Element)&&(function Gt(){return"undefined"!=typeof window&&void 0!==window.document}()?(V=function(){return document.documentElement}(),$t=function(me,ie){for(;ie;){if(ie===me)return!0;ie=Jn(ie)}return!1}):$t=function(me,ie){return me.contains(ie)},j=function(me,ie,fe){if(fe)return Array.from(me.querySelectorAll(ie));var Ze=me.querySelector(ie);return Ze?[Ze]:[]});var dt=null,de=!1;function Te(ze){dt||(dt=function ue(){return"undefined"!=typeof document?document.body:null}()||{},de=!!dt.style&&"WebkitAppearance"in dt.style);var me=!0;dt.style&&!function Bt(ze){return"ebkit"==ze.substring(1,6)}(ze)&&(!(me=ze in dt.style)&&de)&&(me="Webkit"+ze.charAt(0).toUpperCase()+ze.substr(1)in dt.style);return me}var We=$t,lt=j;var tn=function(){function ze(){(0,Y.Z)(this,ze)}return(0,S.Z)(ze,[{key:"validateStyleProperty",value:function(ie){return Te(ie)}},{key:"matchesElement",value:function(ie,fe){return!1}},{key:"containsElement",value:function(ie,fe){return We(ie,fe)}},{key:"getParentElement",value:function(ie){return Jn(ie)}},{key:"query",value:function(ie,fe,Ze){return lt(ie,fe,Ze)}},{key:"computeStyle",value:function(ie,fe,Ze){return Ze||""}},{key:"animate",value:function(ie,fe,Ze,$e,kt){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new y.ZN(Ze,$e)}}]),ze}();tn.\u0275fac=function(me){return new(me||tn)},tn.\u0275prov=P.Yz7({token:tn,factory:tn.\u0275fac});var Jt=(0,S.Z)(function ze(){(0,Y.Z)(this,ze)});Jt.NOOP=new tn;var Dn="ng-enter",zn="ng-leave",Zn="ng-trigger",jn=".ng-trigger",mn="ng-animating",lr=".ng-animating";function Yn(ze){if("number"==typeof ze)return ze;var me=ze.match(/^(-?[\.\d]+)(m?s)/);return!me||me.length<2?0:Kt(parseFloat(me[1]),me[2])}function Kt(ze,me){return"s"===me?1e3*ze:ze}function tt(ze,me,ie){return ze.hasOwnProperty("duration")?ze:function Ue(ze,me,ie){var Ze,fe=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,$e=0,kt="";if("string"==typeof ze){var Ft=ze.match(fe);if(null===Ft)return me.push(k()),{duration:0,delay:0,easing:""};Ze=Kt(parseFloat(Ft[1]),Ft[2]);var Vt=Ft[3];null!=Vt&&($e=Kt(parseFloat(Vt),Ft[4]));var Qt=Ft[5];Qt&&(kt=Qt)}else Ze=ze;if(!ie){var bn=!1,Qn=me.length;Ze<0&&(me.push(function I(){return new P.vHH(3100,M)}()),bn=!0),$e<0&&(me.push(function T(){return new P.vHH(3101,M)}()),bn=!0),bn&&me.splice(Qn,0,k())}return{duration:Ze,delay:$e,easing:kt}}(ze,me,ie)}function Ee(ze){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(ze).forEach(function(ie){me[ie]=ze[ie]}),me}function bt(ze,me){var ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(me)for(var fe in ze)ie[fe]=ze[fe];else Ee(ze,ie);return ie}function Yt(ze,me,ie){return ie?me+":"+ie+";":""}function En(ze){for(var me="",ie=0;ie<ze.style.length;ie++){var fe=ze.style.item(ie);me+=Yt(0,fe,ze.style.getPropertyValue(fe))}for(var Ze in ze.style)if(ze.style.hasOwnProperty(Ze)&&!Ze.startsWith("_")){me+=Yt(0,cr(Ze),ze.style[Ze])}ze.setAttribute("style",me)}function rr(ze,me,ie){ze.style&&(Object.keys(me).forEach(function(fe){var Ze=Ln(fe);ie&&!ie.hasOwnProperty(fe)&&(ie[fe]=ze.style[Ze]),ze.style[Ze]=me[fe]}),Zt()&&En(ze))}function pn(ze,me){ze.style&&(Object.keys(me).forEach(function(ie){var fe=Ln(ie);ze.style[fe]=""}),Zt()&&En(ze))}function ut(ze){return Array.isArray(ze)?1==ze.length?ze[0]:(0,y.vP)(ze):ze}function Se(ze,me,ie){var fe=me.params||{},Ze=Qe(ze);Ze.length&&Ze.forEach(function($e){fe.hasOwnProperty($e)||ie.push(function w(ze){return new P.vHH(3001,M)}())})}var Ae=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Qe(ze){var me=[];if("string"==typeof ze){for(var ie;ie=Ae.exec(ze);)me.push(ie[1]);Ae.lastIndex=0}return me}function _t(ze,me,ie){var fe=ze.toString(),Ze=fe.replace(Ae,function($e,kt){var Ft=me[kt];return me.hasOwnProperty(kt)||(ie.push(function x(ze){return new P.vHH(3003,M)}()),Ft=""),Ft.toString()});return Ze==fe?ze:Ze}function Wt(ze){for(var me=[],ie=ze.next();!ie.done;)me.push(ie.value),ie=ze.next();return me}var vn=/-+([a-z0-9])/g;function Ln(ze){return ze.replace(vn,function(){for(var me=arguments.length,ie=new Array(me),fe=0;fe<me;fe++)ie[fe]=arguments[fe];return ie[1].toUpperCase()})}function cr(ze){return ze.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rr(ze,me){return 0===ze||0===me}function $r(ze,me,ie){var fe=Object.keys(ie);if(fe.length&&me.length){var Ze=me[0],$e=[];if(fe.forEach(function(Vt){Ze.hasOwnProperty(Vt)||$e.push(Vt),Ze[Vt]=ie[Vt]}),$e.length)for(var kt=function(){var Qt=me[Ft];$e.forEach(function(bn){Qt[bn]=Hi(ze,bn)})},Ft=1;Ft<me.length;Ft++)kt()}return me}function Mr(ze,me,ie){switch(me.type){case 7:return ze.visitTrigger(me,ie);case 0:return ze.visitState(me,ie);case 1:return ze.visitTransition(me,ie);case 2:return ze.visitSequence(me,ie);case 3:return ze.visitGroup(me,ie);case 4:return ze.visitAnimate(me,ie);case 5:return ze.visitKeyframes(me,ie);case 6:return ze.visitStyle(me,ie);case 8:return ze.visitReference(me,ie);case 9:return ze.visitAnimateChild(me,ie);case 10:return ze.visitAnimateRef(me,ie);case 11:return ze.visitQuery(me,ie);case 12:return ze.visitStagger(me,ie);default:throw function N(ze){return new P.vHH(3004,M)}(me.type)}}function Hi(ze,me){return window.getComputedStyle(ze)[me]}function Qa(ze,me){var ie=[];return"string"==typeof ze?ze.split(/\s*,\s*/).forEach(function(fe){return function zi(ze,me,ie){if(":"==ze[0]){var fe=function or(ze,me){switch(ze){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(ie,fe){return parseFloat(fe)>parseFloat(ie)};case":decrement":return function(ie,fe){return parseFloat(fe)<parseFloat(ie)};default:return me.push(function ct(ze){return new P.vHH(3016,M)}()),"* => *"}}(ze,ie);if("function"==typeof fe)return void me.push(fe);ze=fe}var Ze=ze.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ze||Ze.length<4)return ie.push(function Fe(ze){return new P.vHH(3015,M)}()),me;var $e=Ze[1],kt=Ze[2],Ft=Ze[3];me.push(lo($e,Ft));var Vt="*"==$e&&"*"==Ft;"<"==kt[0]&&!Vt&&me.push(lo(Ft,$e))}(fe,ie,me)}):ie.push(ze),ie}var Pr=new Set(["true","1"]),ci=new Set(["false","0"]);function lo(ze,me){var ie=Pr.has(ze)||ci.has(ze),fe=Pr.has(me)||ci.has(me);return function(Ze,$e){var kt="*"==ze||ze==Ze,Ft="*"==me||me==$e;return!kt&&ie&&"boolean"==typeof Ze&&(kt=Ze?Pr.has(ze):ci.has(ze)),!Ft&&fe&&"boolean"==typeof $e&&(Ft=$e?Pr.has(me):ci.has(me)),kt&&Ft}}var uo=":self",mi=new RegExp("s*".concat(":self","s*,?"),"g");function Bo(ze,me,ie,fe){return new Pi(ze).build(me,ie,fe)}var Pi=function(){function ze(me){(0,Y.Z)(this,ze),this._driver=me}return(0,S.Z)(ze,[{key:"build",value:function(ie,fe,Ze){var $e=new Js(fe);this._resetContextStyleTimingState($e);var kt=Mr(this,ut(ie),$e);return $e.unsupportedCSSPropertiesFound.size&&(0,F.Z)($e.unsupportedCSSPropertiesFound.keys()),kt}},{key:"_resetContextStyleTimingState",value:function(ie){ie.currentQuerySelector="",ie.collectedStyles={},ie.collectedStyles[""]={},ie.currentTime=0}},{key:"visitTrigger",value:function(ie,fe){var Ze=this,$e=fe.queryCount=0,kt=fe.depCount=0,Ft=[],Vt=[];return"@"==ie.name.charAt(0)&&fe.errors.push(function W(){return new P.vHH(3006,M)}()),ie.definitions.forEach(function(Qt){if(Ze._resetContextStyleTimingState(fe),0==Qt.type){var bn=Qt,Qn=bn.name;Qn.toString().split(/\s*,\s*/).forEach(function(_r){bn.name=_r,Ft.push(Ze.visitState(bn,fe))}),bn.name=Qn}else if(1==Qt.type){var ir=Ze.visitTransition(Qt,fe);$e+=ir.queryCount,kt+=ir.depCount,Vt.push(ir)}else fe.errors.push(function $(){return new P.vHH(3007,M)}())}),{type:7,name:ie.name,states:Ft,transitions:Vt,queryCount:$e,depCount:kt,options:null}}},{key:"visitState",value:function(ie,fe){var Ze=this.visitStyle(ie.styles,fe),$e=ie.options&&ie.options.params||null;if(Ze.containsDynamicStyles){var kt=new Set,Ft=$e||{};if(Ze.styles.forEach(function(Qt){if(Ri(Qt)){var bn=Qt;Object.keys(bn).forEach(function(Qn){Qe(bn[Qn]).forEach(function(ir){Ft.hasOwnProperty(ir)||kt.add(ir)})})}}),kt.size){Wt(kt.values());fe.errors.push(function ce(ze,me){return new P.vHH(3008,M)}(ie.name))}}return{type:0,name:ie.name,style:Ze,options:$e?{params:$e}:null}}},{key:"visitTransition",value:function(ie,fe){fe.queryCount=0,fe.depCount=0;var Ze=Mr(this,ut(ie.animation),fe);return{type:1,matchers:Qa(ie.expr,fe.errors),animation:Ze,queryCount:fe.queryCount,depCount:fe.depCount,options:_i(ie.options)}}},{key:"visitSequence",value:function(ie,fe){var Ze=this;return{type:2,steps:ie.steps.map(function($e){return Mr(Ze,$e,fe)}),options:_i(ie.options)}}},{key:"visitGroup",value:function(ie,fe){var Ze=this,$e=fe.currentTime,kt=0,Ft=ie.steps.map(function(Vt){fe.currentTime=$e;var Qt=Mr(Ze,Vt,fe);return kt=Math.max(kt,fe.currentTime),Qt});return fe.currentTime=kt,{type:3,steps:Ft,options:_i(ie.options)}}},{key:"visitAnimate",value:function(ie,fe){var Ze=function Do(ze,me){if(ze.hasOwnProperty("duration"))return ze;if("number"==typeof ze){return Jo(tt(ze,me).duration,0,"")}var fe=ze,Ze=fe.split(/\s+/).some(function(Ft){return"{"==Ft.charAt(0)&&"{"==Ft.charAt(1)});if(Ze){var $e=Jo(0,0,"");return $e.dynamic=!0,$e.strValue=fe,$e}var kt=tt(fe,me);return Jo(kt.duration,kt.delay,kt.easing)}(ie.timings,fe.errors);fe.currentAnimateTimings=Ze;var $e,kt=ie.styles?ie.styles:(0,y.oB)({});if(5==kt.type)$e=this.visitKeyframes(kt,fe);else{var Ft=ie.styles,Vt=!1;if(!Ft){Vt=!0;var Qt={};Ze.easing&&(Qt.easing=Ze.easing),Ft=(0,y.oB)(Qt)}fe.currentTime+=Ze.duration+Ze.delay;var bn=this.visitStyle(Ft,fe);bn.isEmptyStep=Vt,$e=bn}return fe.currentAnimateTimings=null,{type:4,timings:Ze,style:$e,options:null}}},{key:"visitStyle",value:function(ie,fe){var Ze=this._makeStyleAst(ie,fe);return this._validateStyleAst(Ze,fe),Ze}},{key:"_makeStyleAst",value:function(ie,fe){var Ze=[];Array.isArray(ie.styles)?ie.styles.forEach(function(Ft){"string"==typeof Ft?Ft==y.l3?Ze.push(Ft):fe.errors.push(function se(ze){return new P.vHH(3002,M)}()):Ze.push(Ft)}):Ze.push(ie.styles);var $e=!1,kt=null;return Ze.forEach(function(Ft){if(Ri(Ft)){var Vt=Ft,Qt=Vt.easing;if(Qt&&(kt=Qt,delete Vt.easing),!$e)for(var bn in Vt){if(Vt[bn].toString().indexOf("{{")>=0){$e=!0;break}}}}),{type:6,styles:Ze,easing:kt,offset:ie.offset,containsDynamicStyles:$e,options:null}}},{key:"_validateStyleAst",value:function(ie,fe){var Ze=this,$e=fe.currentAnimateTimings,kt=fe.currentTime,Ft=fe.currentTime;$e&&Ft>0&&(Ft-=$e.duration+$e.delay),ie.styles.forEach(function(Vt){"string"!=typeof Vt&&Object.keys(Vt).forEach(function(Qt){if(!Ze._driver.validateStyleProperty(Qt))return delete Vt[Qt],void fe.unsupportedCSSPropertiesFound.add(Qt);var bn=fe.collectedStyles[fe.currentQuerySelector],Qn=bn[Qt],ir=!0;Qn&&(Ft!=kt&&Ft>=Qn.startTime&&kt<=Qn.endTime&&(fe.errors.push(function oe(ze,me,ie,fe,Ze){return new P.vHH(3010,M)}(0,Qn.startTime,Qn.endTime)),ir=!1),Ft=Qn.startTime),ir&&(bn[Qt]={startTime:Ft,endTime:kt}),fe.options&&Se(Vt[Qt],fe.options,fe.errors)})})}},{key:"visitKeyframes",value:function(ie,fe){var Ze=this,$e={type:5,styles:[],options:null};if(!fe.currentAnimateTimings)return fe.errors.push(function ve(){return new P.vHH(3011,M)}()),$e;var Ft=0,Vt=[],Qt=!1,bn=!1,Qn=0,ir=ie.steps.map(function(je){var De=Ze._makeStyleAst(je,fe),ot=null!=De.offset?De.offset:function Xa(ze){if("string"==typeof ze)return null;var me=null;if(Array.isArray(ze))ze.forEach(function(fe){if(Ri(fe)&&fe.hasOwnProperty("offset")){var Ze=fe;me=parseFloat(Ze.offset),delete Ze.offset}});else if(Ri(ze)&&ze.hasOwnProperty("offset")){var ie=ze;me=parseFloat(ie.offset),delete ie.offset}return me}(De.styles),At=0;return null!=ot&&(Ft++,At=De.offset=ot),bn=bn||At<0||At>1,Qt=Qt||At<Qn,Qn=At,Vt.push(At),De});bn&&fe.errors.push(function Oe(){return new P.vHH(3012,M)}()),Qt&&fe.errors.push(function st(){return new P.vHH(3200,M)}());var _r=ie.steps.length,gr=0;Ft>0&&Ft<_r?fe.errors.push(function xe(){return new P.vHH(3202,M)}()):0==Ft&&(gr=1/(_r-1));var di=_r-1,Ne=fe.currentTime,we=fe.currentAnimateTimings,X=we.duration;return ir.forEach(function(je,De){var ot=gr>0?De==di?1:gr*De:Vt[De],At=ot*X;fe.currentTime=Ne+we.delay+At,we.duration=At,Ze._validateStyleAst(je,fe),je.offset=ot,$e.styles.push(je)}),$e}},{key:"visitReference",value:function(ie,fe){return{type:8,animation:Mr(this,ut(ie.animation),fe),options:_i(ie.options)}}},{key:"visitAnimateChild",value:function(ie,fe){return fe.depCount++,{type:9,options:_i(ie.options)}}},{key:"visitAnimateRef",value:function(ie,fe){return{type:10,animation:this.visitReference(ie.animation,fe),options:_i(ie.options)}}},{key:"visitQuery",value:function(ie,fe){var Ze=fe.currentQuerySelector,$e=ie.options||{};fe.queryCount++,fe.currentQuery=ie;var kt=function Wi(ze){var me=!!ze.split(/\s*,\s*/).find(function(ie){return ie==uo});return me&&(ze=ze.replace(mi,"")),ze=ze.replace(/@\*/g,jn).replace(/@\w+/g,function(ie){return jn+"-"+ie.substr(1)}).replace(/:animating/g,lr),[ze,me]}(ie.selector),Ft=(0,z.Z)(kt,2),Vt=Ft[0],Qt=Ft[1];fe.currentQuerySelector=Ze.length?Ze+" "+Vt:Vt,mt(fe.collectedStyles,fe.currentQuerySelector,{});var bn=Mr(this,ut(ie.animation),fe);return fe.currentQuery=null,fe.currentQuerySelector=Ze,{type:11,selector:Vt,limit:$e.limit||0,optional:!!$e.optional,includeSelf:Qt,animation:bn,originalSelector:ie.selector,options:_i(ie.options)}}},{key:"visitStagger",value:function(ie,fe){fe.currentQuery||fe.errors.push(function _e(){return new P.vHH(3013,M)}());var Ze="full"===ie.timings?{duration:0,delay:0,easing:"full"}:tt(ie.timings,fe.errors,!0);return{type:12,animation:Mr(this,ut(ie.animation),fe),timings:Ze,options:null}}}]),ze}();var Js=(0,S.Z)(function ze(me){(0,Y.Z)(this,ze),this.errors=me,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Ri(ze){return!Array.isArray(ze)&&"object"==typeof ze}function _i(ze){return ze?(ze=Ee(ze)).params&&(ze.params=function hr(ze){return ze?Ee(ze):null}(ze.params)):ze={},ze}function Jo(ze,me,ie){return{duration:ze,delay:me,easing:ie}}function ga(ze,me,ie,fe,Ze,$e){var kt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Ft=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:ze,keyframes:me,preStyleProps:ie,postStyleProps:fe,duration:Ze,delay:$e,totalTime:Ze+$e,easing:kt,subTimeline:Ft}}var bi=function(){function ze(){(0,Y.Z)(this,ze),this._map=new Map}return(0,S.Z)(ze,[{key:"get",value:function(ie){return this._map.get(ie)||[]}},{key:"append",value:function(ie,fe){var Ze,$e=this._map.get(ie);$e||this._map.set(ie,$e=[]),(Ze=$e).push.apply(Ze,(0,F.Z)(fe))}},{key:"has",value:function(ie){return this._map.has(ie)}},{key:"clear",value:function(){this._map.clear()}}]),ze}(),oa=new RegExp(":enter","g"),yn=new RegExp(":leave","g");function Cn(ze,me,ie,fe,Ze){var $e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},kt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},Ft=arguments.length>7?arguments[7]:void 0,Vt=arguments.length>8?arguments[8]:void 0,Qt=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new oi).buildKeyframes(ze,me,ie,fe,Ze,$e,kt,Ft,Vt,Qt)}var oi=function(){function ze(){(0,Y.Z)(this,ze)}return(0,S.Z)(ze,[{key:"buildKeyframes",value:function(ie,fe,Ze,$e,kt,Ft,Vt,Qt,bn){var Qn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];bn=bn||new bi;var ir=new Ki(ie,fe,bn,$e,kt,Qn,[]);ir.options=Qt,ir.currentTimeline.setStyles([Ft],null,ir.errors,Qt),Mr(this,Ze,ir);var _r=ir.timelines.filter(function(we){return we.containsAnimation()});if(Object.keys(Vt).length){for(var gr,di=_r.length-1;di>=0;di--){var Ne=_r[di];if(Ne.element===fe){gr=Ne;break}}gr&&!gr.allowOnlyTimelineStyles()&&gr.setStyles([Vt],null,ir.errors,Qt)}return _r.length?_r.map(function(we){return we.buildKeyframes()}):[ga(fe,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(ie,fe){}},{key:"visitState",value:function(ie,fe){}},{key:"visitTransition",value:function(ie,fe){}},{key:"visitAnimateChild",value:function(ie,fe){var Ze=fe.subInstructions.get(fe.element);if(Ze){var $e=fe.createSubContext(ie.options),kt=fe.currentTimeline.currentTime,Ft=this._visitSubInstructions(Ze,$e,$e.options);kt!=Ft&&fe.transformIntoNewTimeline(Ft)}fe.previousNode=ie}},{key:"visitAnimateRef",value:function(ie,fe){var Ze=fe.createSubContext(ie.options);Ze.transformIntoNewTimeline(),this.visitReference(ie.animation,Ze),fe.transformIntoNewTimeline(Ze.currentTimeline.currentTime),fe.previousNode=ie}},{key:"_visitSubInstructions",value:function(ie,fe,Ze){var kt=fe.currentTimeline.currentTime,Ft=null!=Ze.duration?Yn(Ze.duration):null,Vt=null!=Ze.delay?Yn(Ze.delay):null;return 0!==Ft&&ie.forEach(function(Qt){var bn=fe.appendInstructionToTimeline(Qt,Ft,Vt);kt=Math.max(kt,bn.duration+bn.delay)}),kt}},{key:"visitReference",value:function(ie,fe){fe.updateOptions(ie.options,!0),Mr(this,ie.animation,fe),fe.previousNode=ie}},{key:"visitSequence",value:function(ie,fe){var Ze=this,$e=fe.subContextCount,kt=fe,Ft=ie.options;if(Ft&&(Ft.params||Ft.delay)&&((kt=fe.createSubContext(Ft)).transformIntoNewTimeline(),null!=Ft.delay)){6==kt.previousNode.type&&(kt.currentTimeline.snapshotCurrentStyles(),kt.previousNode=Li);var Vt=Yn(Ft.delay);kt.delayNextStep(Vt)}ie.steps.length&&(ie.steps.forEach(function(Qt){return Mr(Ze,Qt,kt)}),kt.currentTimeline.applyStylesToKeyframe(),kt.subContextCount>$e&&kt.transformIntoNewTimeline()),fe.previousNode=ie}},{key:"visitGroup",value:function(ie,fe){var Ze=this,$e=[],kt=fe.currentTimeline.currentTime,Ft=ie.options&&ie.options.delay?Yn(ie.options.delay):0;ie.steps.forEach(function(Vt){var Qt=fe.createSubContext(ie.options);Ft&&Qt.delayNextStep(Ft),Mr(Ze,Vt,Qt),kt=Math.max(kt,Qt.currentTimeline.currentTime),$e.push(Qt.currentTimeline)}),$e.forEach(function(Vt){return fe.currentTimeline.mergeTimelineCollectedStyles(Vt)}),fe.transformIntoNewTimeline(kt),fe.previousNode=ie}},{key:"_visitTiming",value:function(ie,fe){if(ie.dynamic){var Ze=ie.strValue;return tt(fe.params?_t(Ze,fe.params,fe.errors):Ze,fe.errors)}return{duration:ie.duration,delay:ie.delay,easing:ie.easing}}},{key:"visitAnimate",value:function(ie,fe){var Ze=fe.currentAnimateTimings=this._visitTiming(ie.timings,fe),$e=fe.currentTimeline;Ze.delay&&(fe.incrementTime(Ze.delay),$e.snapshotCurrentStyles());var kt=ie.style;5==kt.type?this.visitKeyframes(kt,fe):(fe.incrementTime(Ze.duration),this.visitStyle(kt,fe),$e.applyStylesToKeyframe()),fe.currentAnimateTimings=null,fe.previousNode=ie}},{key:"visitStyle",value:function(ie,fe){var Ze=fe.currentTimeline,$e=fe.currentAnimateTimings;!$e&&Ze.getCurrentStyleProperties().length&&Ze.forwardFrame();var kt=$e&&$e.easing||ie.easing;ie.isEmptyStep?Ze.applyEmptyStep(kt):Ze.setStyles(ie.styles,kt,fe.errors,fe.options),fe.previousNode=ie}},{key:"visitKeyframes",value:function(ie,fe){var Ze=fe.currentAnimateTimings,$e=fe.currentTimeline.duration,kt=Ze.duration,Vt=fe.createSubContext().currentTimeline;Vt.easing=Ze.easing,ie.styles.forEach(function(Qt){var bn=Qt.offset||0;Vt.forwardTime(bn*kt),Vt.setStyles(Qt.styles,Qt.easing,fe.errors,fe.options),Vt.applyStylesToKeyframe()}),fe.currentTimeline.mergeTimelineCollectedStyles(Vt),fe.transformIntoNewTimeline($e+kt),fe.previousNode=ie}},{key:"visitQuery",value:function(ie,fe){var Ze=this,$e=fe.currentTimeline.currentTime,kt=ie.options||{},Ft=kt.delay?Yn(kt.delay):0;Ft&&(6===fe.previousNode.type||0==$e&&fe.currentTimeline.getCurrentStyleProperties().length)&&(fe.currentTimeline.snapshotCurrentStyles(),fe.previousNode=Li);var Vt=$e,Qt=fe.invokeQuery(ie.selector,ie.originalSelector,ie.limit,ie.includeSelf,!!kt.optional,fe.errors);fe.currentQueryTotal=Qt.length;var bn=null;Qt.forEach(function(Qn,ir){fe.currentQueryIndex=ir;var _r=fe.createSubContext(ie.options,Qn);Ft&&_r.delayNextStep(Ft),Qn===fe.element&&(bn=_r.currentTimeline),Mr(Ze,ie.animation,_r),_r.currentTimeline.applyStylesToKeyframe();var gr=_r.currentTimeline.currentTime;Vt=Math.max(Vt,gr)}),fe.currentQueryIndex=0,fe.currentQueryTotal=0,fe.transformIntoNewTimeline(Vt),bn&&(fe.currentTimeline.mergeTimelineCollectedStyles(bn),fe.currentTimeline.snapshotCurrentStyles()),fe.previousNode=ie}},{key:"visitStagger",value:function(ie,fe){var Ze=fe.parentContext,$e=fe.currentTimeline,kt=ie.timings,Ft=Math.abs(kt.duration),Vt=Ft*(fe.currentQueryTotal-1),Qt=Ft*fe.currentQueryIndex;switch(kt.duration<0?"reverse":kt.easing){case"reverse":Qt=Vt-Qt;break;case"full":Qt=Ze.currentStaggerTime}var Qn=fe.currentTimeline;Qt&&Qn.delayNextStep(Qt);var ir=Qn.currentTime;Mr(this,ie.animation,fe),fe.previousNode=ie,Ze.currentStaggerTime=$e.currentTime-ir+($e.startTime-Ze.currentTimeline.startTime)}}]),ze}(),Li={},Ki=function(){function ze(me,ie,fe,Ze,$e,kt,Ft,Vt){(0,Y.Z)(this,ze),this._driver=me,this.element=ie,this.subInstructions=fe,this._enterClassName=Ze,this._leaveClassName=$e,this.errors=kt,this.timelines=Ft,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Vt||new ti(this._driver,ie,0),Ft.push(this.currentTimeline)}return(0,S.Z)(ze,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(ie,fe){var Ze=this;if(ie){var $e=ie,kt=this.options;null!=$e.duration&&(kt.duration=Yn($e.duration)),null!=$e.delay&&(kt.delay=Yn($e.delay));var Ft=$e.params;if(Ft){var Vt=kt.params;Vt||(Vt=this.options.params={}),Object.keys(Ft).forEach(function(Qt){(!fe||!Vt.hasOwnProperty(Qt))&&(Vt[Qt]=_t(Ft[Qt],Vt,Ze.errors))})}}}},{key:"_copyOptions",value:function(){var ie={};if(this.options){var fe=this.options.params;if(fe){var Ze=ie.params={};Object.keys(fe).forEach(function($e){Ze[$e]=fe[$e]})}}return ie}},{key:"createSubContext",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,fe=arguments.length>1?arguments[1]:void 0,Ze=arguments.length>2?arguments[2]:void 0,$e=fe||this.element,kt=new ze(this._driver,$e,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork($e,Ze||0));return kt.previousNode=this.previousNode,kt.currentAnimateTimings=this.currentAnimateTimings,kt.options=this._copyOptions(),kt.updateOptions(ie),kt.currentQueryIndex=this.currentQueryIndex,kt.currentQueryTotal=this.currentQueryTotal,kt.parentContext=this,this.subContextCount++,kt}},{key:"transformIntoNewTimeline",value:function(ie){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,ie),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(ie,fe,Ze){var $e={duration:null!=fe?fe:ie.duration,delay:this.currentTimeline.currentTime+(null!=Ze?Ze:0)+ie.delay,easing:""},kt=new Fo(this._driver,ie.element,ie.keyframes,ie.preStyleProps,ie.postStyleProps,$e,ie.stretchStartingKeyframe);return this.timelines.push(kt),$e}},{key:"incrementTime",value:function(ie){this.currentTimeline.forwardTime(this.currentTimeline.duration+ie)}},{key:"delayNextStep",value:function(ie){ie>0&&this.currentTimeline.delayNextStep(ie)}},{key:"invokeQuery",value:function(ie,fe,Ze,$e,kt,Ft){var Vt=[];if($e&&Vt.push(this.element),ie.length>0){ie=(ie=ie.replace(oa,"."+this._enterClassName)).replace(yn,"."+this._leaveClassName);var Qt=1!=Ze,bn=this._driver.query(this.element,ie,Qt);0!==Ze&&(bn=Ze<0?bn.slice(bn.length+Ze,bn.length):bn.slice(0,Ze)),Vt.push.apply(Vt,(0,F.Z)(bn))}return!kt&&0==Vt.length&&Ft.push(function ke(ze){return new P.vHH(3014,M)}()),Vt}}]),ze}(),ti=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this._driver=me,this.element=ie,this.startTime=fe,this._elementTimelineStylesLookup=Ze,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ie),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ie,this._localTimelineStyles)),this._loadKeyframe()}return(0,S.Z)(ze,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(ie){var fe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||fe?(this.forwardTime(this.currentTime+ie),fe&&this.snapshotCurrentStyles()):this.startTime+=ie}},{key:"fork",value:function(ie,fe){return this.applyStylesToKeyframe(),new ze(this._driver,ie,fe||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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(ie){this.applyStylesToKeyframe(),this.duration=ie,this._loadKeyframe()}},{key:"_updateStyle",value:function(ie,fe){this._localTimelineStyles[ie]=fe,this._globalTimelineStyles[ie]=fe,this._styleSummary[ie]={time:this.currentTime,value:fe}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(ie){var fe=this;ie&&(this._previousKeyframe.easing=ie),Object.keys(this._globalTimelineStyles).forEach(function(Ze){fe._backFill[Ze]=fe._globalTimelineStyles[Ze]||y.l3,fe._currentKeyframe[Ze]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(ie,fe,Ze,$e){var kt=this;fe&&(this._previousKeyframe.easing=fe);var Ft=$e&&$e.params||{},Vt=function Ji(ze,me){var fe,ie={};return ze.forEach(function(Ze){"*"===Ze?(fe=fe||Object.keys(me)).forEach(function($e){ie[$e]=y.l3}):bt(Ze,!1,ie)}),ie}(ie,this._globalTimelineStyles);Object.keys(Vt).forEach(function(Qt){var bn=_t(Vt[Qt],Ft,Ze);kt._pendingStyles[Qt]=bn,kt._localTimelineStyles.hasOwnProperty(Qt)||(kt._backFill[Qt]=kt._globalTimelineStyles.hasOwnProperty(Qt)?kt._globalTimelineStyles[Qt]:y.l3),kt._updateStyle(Qt,bn)})}},{key:"applyStylesToKeyframe",value:function(){var ie=this,fe=this._pendingStyles,Ze=Object.keys(fe);0!=Ze.length&&(this._pendingStyles={},Ze.forEach(function($e){var kt=fe[$e];ie._currentKeyframe[$e]=kt}),Object.keys(this._localTimelineStyles).forEach(function($e){ie._currentKeyframe.hasOwnProperty($e)||(ie._currentKeyframe[$e]=ie._localTimelineStyles[$e])}))}},{key:"snapshotCurrentStyles",value:function(){var ie=this;Object.keys(this._localTimelineStyles).forEach(function(fe){var Ze=ie._localTimelineStyles[fe];ie._pendingStyles[fe]=Ze,ie._updateStyle(fe,Ze)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var ie=[];for(var fe in this._currentKeyframe)ie.push(fe);return ie}},{key:"mergeTimelineCollectedStyles",value:function(ie){var fe=this;Object.keys(ie._styleSummary).forEach(function(Ze){var $e=fe._styleSummary[Ze],kt=ie._styleSummary[Ze];(!$e||kt.time>$e.time)&&fe._updateStyle(Ze,kt.value)})}},{key:"buildKeyframes",value:function(){var ie=this;this.applyStylesToKeyframe();var fe=new Set,Ze=new Set,$e=1===this._keyframes.size&&0===this.duration,kt=[];this._keyframes.forEach(function(Qn,ir){var _r=bt(Qn,!0);Object.keys(_r).forEach(function(gr){var di=_r[gr];di==y.k1?fe.add(gr):di==y.l3&&Ze.add(gr)}),$e||(_r.offset=ir/ie.duration),kt.push(_r)});var Ft=fe.size?Wt(fe.values()):[],Vt=Ze.size?Wt(Ze.values()):[];if($e){var Qt=kt[0],bn=Ee(Qt);Qt.offset=0,bn.offset=1,kt=[Qt,bn]}return ga(this.element,kt,Ft,Vt,this.duration,this.startTime,this.easing,!1)}}]),ze}(),Fo=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e,kt,Ft,Vt){var Qt,bn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,Y.Z)(this,ie),(Qt=me.call(this,fe,Ze,Vt.delay)).keyframes=$e,Qt.preStyleProps=kt,Qt.postStyleProps=Ft,Qt._stretchStartingKeyframe=bn,Qt.timings={duration:Vt.duration,delay:Vt.delay,easing:Vt.easing},Qt}return(0,S.Z)(ie,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var Ze=this.keyframes,$e=this.timings,kt=$e.delay,Ft=$e.duration,Vt=$e.easing;if(this._stretchStartingKeyframe&&kt){var Qt=[],bn=Ft+kt,Qn=kt/bn,ir=bt(Ze[0],!1);ir.offset=0,Qt.push(ir);var _r=bt(Ze[0],!1);_r.offset=va(Qn),Qt.push(_r);for(var gr=Ze.length-1,di=1;di<=gr;di++){var Ne=bt(Ze[di],!1),X=kt+Ne.offset*Ft;Ne.offset=va(X/bn),Qt.push(Ne)}Ft=bn,kt=0,Vt="",Ze=Qt}return ga(this.element,Ze,this.preStyleProps,this.postStyleProps,Ft,kt,Vt,!0)}}]),ie}(ti);function va(ze){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,ie=Math.pow(10,me-1);return Math.round(ze*ie)/ie}var Co=(0,S.Z)(function ze(){(0,Y.Z)(this,ze)}),Uo=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(){return(0,Y.Z)(this,ie),me.apply(this,arguments)}return(0,S.Z)(ie,[{key:"normalizePropertyName",value:function(Ze,$e){return Ln(Ze)}},{key:"normalizeStyleValue",value:function(Ze,$e,kt,Ft){var Vt="",Qt=kt.toString().trim();if(ya[$e]&&0!==kt&&"0"!==kt)if("number"==typeof kt)Vt="px";else{var bn=kt.match(/^[+-]?[\d\.]+([a-z]*)$/);bn&&0==bn[1].length&&Ft.push(function R(ze,me){return new P.vHH(3005,M)}())}return Qt+Vt}}]),ie}(Co),ya=function Ho(ze){var me={};return ze.forEach(function(ie){return me[ie]=!0}),me}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Qi(ze,me,ie,fe,Ze,$e,kt,Ft,Vt,Qt,bn,Qn,ir){return{type:0,element:ze,triggerName:me,isRemovalTransition:Ze,fromState:ie,fromStyles:$e,toState:fe,toStyles:kt,timelines:Ft,queriedElements:Vt,preStyleProps:Qt,postStyleProps:bn,totalTime:Qn,errors:ir}}var mo={},tr=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this._triggerName=me,this.ast=ie,this._stateStyles=fe}return(0,S.Z)(ze,[{key:"match",value:function(ie,fe,Ze,$e){return function Fa(ze,me,ie,fe,Ze){return ze.some(function($e){return $e(me,ie,fe,Ze)})}(this.ast.matchers,ie,fe,Ze,$e)}},{key:"buildStyles",value:function(ie,fe,Ze){var $e=this._stateStyles["*"],kt=this._stateStyles[ie],Ft=$e?$e.buildStyles(fe,Ze):{};return kt?kt.buildStyles(fe,Ze):Ft}},{key:"build",value:function(ie,fe,Ze,$e,kt,Ft,Vt,Qt,bn,Qn){var ir=[],_r=this.ast.options&&this.ast.options.params||mo,gr=Vt&&Vt.params||mo,di=this.buildStyles(Ze,gr,ir),Ne=Qt&&Qt.params||mo,we=this.buildStyles($e,Ne,ir),X=new Set,je=new Map,De=new Map,ot="void"===$e,At={params:Object.assign(Object.assign({},_r),Ne)},fn=Qn?[]:Cn(ie,fe,this.ast.animation,kt,Ft,di,we,At,bn,ir),Sn=0;if(fn.forEach(function(Ti){Sn=Math.max(Ti.duration+Ti.delay,Sn)}),ir.length)return Qi(fe,this._triggerName,Ze,$e,ot,di,we,[],[],je,De,Sn,ir);fn.forEach(function(Ti){var jo=Ti.element,eo=mt(je,jo,{});Ti.preStyleProps.forEach(function(to){return eo[to]=!0});var Ts=mt(De,jo,{});Ti.postStyleProps.forEach(function(to){return Ts[to]=!0}),jo!==fe&&X.add(jo)});var Sr=Wt(X.values());return Qi(fe,this._triggerName,Ze,$e,ot,di,we,fn,Sr,je,De,Sn)}}]),ze}();var Oo=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.styles=me,this.defaultParams=ie,this.normalizer=fe}return(0,S.Z)(ze,[{key:"buildStyles",value:function(ie,fe){var Ze=this,$e={},kt=Ee(this.defaultParams);return Object.keys(ie).forEach(function(Ft){var Vt=ie[Ft];null!=Vt&&(kt[Ft]=Vt)}),this.styles.styles.forEach(function(Ft){if("string"!=typeof Ft){var Vt=Ft;Object.keys(Vt).forEach(function(Qt){var bn=Vt[Qt];bn.length>1&&(bn=_t(bn,kt,fe));var Qn=Ze.normalizer.normalizePropertyName(Qt,fe);bn=Ze.normalizer.normalizeStyleValue(Qt,Qn,bn,fe),$e[Qn]=bn})}}),$e}}]),ze}();var Kr=function(){function ze(me,ie,fe){var Ze=this;(0,Y.Z)(this,ze),this.name=me,this.ast=ie,this._normalizer=fe,this.transitionFactories=[],this.states={},ie.states.forEach(function($e){var kt=$e.options&&$e.options.params||{};Ze.states[$e.name]=new Oo($e.style,kt,fe)}),Qo(this.states,"true","1"),Qo(this.states,"false","0"),ie.transitions.forEach(function($e){Ze.transitionFactories.push(new tr(me,$e,Ze.states))}),this.fallbackTransition=function la(ze,me,ie){return new tr(ze,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(kt,Ft){return!0}],options:null,queryCount:0,depCount:0},me)}(me,this.states,this._normalizer)}return(0,S.Z)(ze,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(ie,fe,Ze,$e){return this.transitionFactories.find(function(Ft){return Ft.match(ie,fe,Ze,$e)})||null}},{key:"matchStyles",value:function(ie,fe,Ze){return this.fallbackTransition.buildStyles(ie,fe,Ze)}}]),ze}();function Qo(ze,me,ie){ze.hasOwnProperty(me)?ze.hasOwnProperty(ie)||(ze[ie]=ze[me]):ze.hasOwnProperty(ie)&&(ze[me]=ze[ie])}var br=new bi,Is=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.bodyNode=me,this._driver=ie,this._normalizer=fe,this._animations={},this._playersById={},this.players=[]}return(0,S.Z)(ze,[{key:"register",value:function(ie,fe){var Ze=[],$e=[],kt=Bo(this._driver,fe,Ze,$e);if(Ze.length)throw function qt(ze){return new P.vHH(3503,M)}();$e.length,this._animations[ie]=kt}},{key:"_buildPlayer",value:function(ie,fe,Ze){var $e=ie.element,kt=Ut(this._driver,this._normalizer,$e,ie.keyframes,fe,Ze);return this._driver.animate($e,kt,ie.duration,ie.delay,ie.easing,[],!0)}},{key:"create",value:function(ie,fe){var Vt,Ze=this,$e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},kt=[],Ft=this._animations[ie],Qt=new Map;if(Ft?(Vt=Cn(this._driver,fe,Ft,Dn,zn,{},{},$e,br,kt)).forEach(function(ir){var _r=mt(Qt,ir.element,{});ir.postStyleProps.forEach(function(gr){return _r[gr]=null})}):(kt.push(Xe()),Vt=[]),kt.length)throw jt();Qt.forEach(function(ir,_r){Object.keys(ir).forEach(function(gr){ir[gr]=Ze._driver.computeStyle(_r,gr,y.l3)})});var bn=Vt.map(function(ir){var _r=Qt.get(ir.element);return Ze._buildPlayer(ir,{},_r)}),Qn=Et(bn);return this._playersById[ie]=Qn,Qn.onDestroy(function(){return Ze.destroy(ie)}),this.players.push(Qn),Qn}},{key:"destroy",value:function(ie){var fe=this._getPlayer(ie);fe.destroy(),delete this._playersById[ie];var Ze=this.players.indexOf(fe);Ze>=0&&this.players.splice(Ze,1)}},{key:"_getPlayer",value:function(ie){var fe=this._playersById[ie];if(!fe)throw function it(ze){return new P.vHH(3301,M)}();return fe}},{key:"listen",value:function(ie,fe,Ze,$e){var kt=yt(fe,"","","");return Ht(this._getPlayer(ie),Ze,kt,$e),function(){}}},{key:"command",value:function(ie,fe,Ze,$e){if("register"!=Ze)if("create"!=Ze){var Ft=this._getPlayer(ie);switch(Ze){case"play":Ft.play();break;case"pause":Ft.pause();break;case"reset":Ft.reset();break;case"restart":Ft.restart();break;case"finish":Ft.finish();break;case"init":Ft.init();break;case"setPosition":Ft.setPosition(parseFloat($e[0]));break;case"destroy":this.destroy(ie)}}else{var kt=$e[0]||{};this.create(ie,fe,kt)}else this.register(ie,$e[0])}}]),ze}(),cs="ng-animate-queued",Xi="ng-animate-disabled",Ps="ng-star-inserted",Ua=[],Mu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ha={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xo="__ng_removed",ts=function(){function ze(me){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,Y.Z)(this,ze),this.namespaceId=ie;var fe=me&&me.hasOwnProperty("value"),Ze=fe?me.value:me;if(this.value=Re(Ze),fe){var $e=Ee(me);delete $e.value,this.options=$e}else this.options={};this.options.params||(this.options.params={})}return(0,S.Z)(ze,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(ie){var fe=ie.params;if(fe){var Ze=this.options.params;Object.keys(fe).forEach(function($e){null==Ze[$e]&&(Ze[$e]=fe[$e])})}}}]),ze}(),Rs="void",iu=new ts(Rs),wo=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.id=me,this.hostElement=ie,this._engine=fe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+me,Pn(ie,this._hostClassName)}return(0,S.Z)(ze,[{key:"listen",value:function(ie,fe,Ze,$e){var kt=this;if(!this._triggers.hasOwnProperty(fe))throw function vt(ze,me){return new P.vHH(3302,M)}();if(null==Ze||0==Ze.length)throw function nt(ze){return new P.vHH(3303,M)}();if(!function gt(ze){return"start"==ze||"done"==ze}(Ze))throw function Lt(ze,me){return new P.vHH(3400,M)}();var Ft=mt(this._elementListeners,ie,[]),Vt={name:fe,phase:Ze,callback:$e};Ft.push(Vt);var Qt=mt(this._engine.statesByElement,ie,{});return Qt.hasOwnProperty(fe)||(Pn(ie,Zn),Pn(ie,Zn+"-"+fe),Qt[fe]=iu),function(){kt._engine.afterFlush(function(){var bn=Ft.indexOf(Vt);bn>=0&&Ft.splice(bn,1),kt._triggers[fe]||delete Qt[fe]})}}},{key:"register",value:function(ie,fe){return!this._triggers[ie]&&(this._triggers[ie]=fe,!0)}},{key:"_getTrigger",value:function(ie){var fe=this._triggers[ie];if(!fe)throw function It(ze){return new P.vHH(3401,M)}();return fe}},{key:"trigger",value:function(ie,fe,Ze){var $e=this,kt=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Ft=this._getTrigger(fe),Vt=new Su(this.id,fe,ie),Qt=this._engine.statesByElement.get(ie);Qt||(Pn(ie,Zn),Pn(ie,Zn+"-"+fe),this._engine.statesByElement.set(ie,Qt={}));var bn=Qt[fe],Qn=new ts(Ze,this.id),ir=Ze&&Ze.hasOwnProperty("value");!ir&&bn&&Qn.absorbOptions(bn.options),Qt[fe]=Qn,bn||(bn=iu);var _r=Qn.value===Rs;if(_r||bn.value!==Qn.value){var we=mt(this._engine.playersByElement,ie,[]);we.forEach(function(De){De.namespaceId==$e.id&&De.triggerName==fe&&De.queued&&De.destroy()});var X=Ft.matchTransition(bn.value,Qn.value,ie,Qn.params),je=!1;if(!X){if(!kt)return;X=Ft.fallbackTransition,je=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:fe,transition:X,fromState:bn,toState:Qn,player:Vt,isFallbackTransition:je}),je||(Pn(ie,cs),Vt.onStart(function(){Or(ie,cs)})),Vt.onDone(function(){var De=$e.players.indexOf(Vt);De>=0&&$e.players.splice(De,1);var ot=$e._engine.playersByElement.get(ie);if(ot){var At=ot.indexOf(Vt);At>=0&&ot.splice(At,1)}}),this.players.push(Vt),we.push(Vt),Vt}if(!$i(bn.params,Qn.params)){var gr=[],di=Ft.matchStyles(bn.value,bn.params,gr),Ne=Ft.matchStyles(Qn.value,Qn.params,gr);gr.length?this._engine.reportError(gr):this._engine.afterFlush(function(){pn(ie,di),rr(ie,Ne)})}}},{key:"deregister",value:function(ie){var fe=this;delete this._triggers[ie],this._engine.statesByElement.forEach(function(Ze,$e){delete Ze[ie]}),this._elementListeners.forEach(function(Ze,$e){fe._elementListeners.set($e,Ze.filter(function(kt){return kt.name!=ie}))})}},{key:"clearElementCache",value:function(ie){this._engine.statesByElement.delete(ie),this._elementListeners.delete(ie);var fe=this._engine.playersByElement.get(ie);fe&&(fe.forEach(function(Ze){return Ze.destroy()}),this._engine.playersByElement.delete(ie))}},{key:"_signalRemovalForInnerTriggers",value:function(ie,fe){var Ze=this,$e=this._engine.driver.query(ie,jn,!0);$e.forEach(function(kt){if(!kt[Xo]){var Ft=Ze._engine.fetchNamespacesByElement(kt);Ft.size?Ft.forEach(function(Vt){return Vt.triggerLeaveAnimation(kt,fe,!1,!0)}):Ze.clearElementCache(kt)}}),this._engine.afterFlushAnimationsDone(function(){return $e.forEach(function(kt){return Ze.clearElementCache(kt)})})}},{key:"triggerLeaveAnimation",value:function(ie,fe,Ze,$e){var kt=this,Ft=this._engine.statesByElement.get(ie),Vt=new Map;if(Ft){var Qt=[];if(Object.keys(Ft).forEach(function(bn){if(Vt.set(bn,Ft[bn].value),kt._triggers[bn]){var Qn=kt.trigger(ie,bn,Rs,$e);Qn&&Qt.push(Qn)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,ie,!0,fe,Vt),Ze&&Et(Qt).onDone(function(){return kt._engine.processLeaveNode(ie)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(ie){var fe=this,Ze=this._elementListeners.get(ie),$e=this._engine.statesByElement.get(ie);if(Ze&&$e){var kt=new Set;Ze.forEach(function(Ft){var Vt=Ft.name;if(!kt.has(Vt)){kt.add(Vt);var bn=fe._triggers[Vt].fallbackTransition,Qn=$e[Vt]||iu,ir=new ts(Rs),_r=new Su(fe.id,Vt,ie);fe._engine.totalQueuedPlayers++,fe._queue.push({element:ie,triggerName:Vt,transition:bn,fromState:Qn,toState:ir,player:_r,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(ie,fe){var Ze=this,$e=this._engine;if(ie.childElementCount&&this._signalRemovalForInnerTriggers(ie,fe),!this.triggerLeaveAnimation(ie,fe,!0)){var kt=!1;if($e.totalAnimations){var Ft=$e.players.length?$e.playersByQueriedElement.get(ie):[];if(Ft&&Ft.length)kt=!0;else for(var Vt=ie;Vt=Vt.parentNode;){if($e.statesByElement.get(Vt)){kt=!0;break}}}if(this.prepareLeaveAnimationListeners(ie),kt)$e.markElementAsRemoved(this.id,ie,!1,fe);else{var bn=ie[Xo];(!bn||bn===Mu)&&($e.afterFlush(function(){return Ze.clearElementCache(ie)}),$e.destroyInnerAnimations(ie),$e._onRemovalComplete(ie,fe))}}}},{key:"insertNode",value:function(ie,fe){Pn(ie,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(ie){var fe=this,Ze=[];return this._queue.forEach(function($e){var kt=$e.player;if(!kt.destroyed){var Ft=$e.element,Vt=fe._elementListeners.get(Ft);Vt&&Vt.forEach(function(Qt){if(Qt.name==$e.triggerName){var bn=yt(Ft,$e.triggerName,$e.fromState.value,$e.toState.value);bn._data=ie,Ht($e.player,Qt.phase,bn,Qt.callback)}}),kt.markedForDestroy?fe._engine.afterFlush(function(){kt.destroy()}):Ze.push($e)}}),this._queue=[],Ze.sort(function($e,kt){var Ft=$e.transition.ast.depCount,Vt=kt.transition.ast.depCount;return 0==Ft||0==Vt?Ft-Vt:fe._engine.driver.containsElement($e.element,kt.element)?1:-1})}},{key:"destroy",value:function(ie){this.players.forEach(function(fe){return fe.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,ie)}},{key:"elementContainsData",value:function(ie){var fe=!1;return this._elementListeners.has(ie)&&(fe=!0),fe=!!this._queue.find(function(Ze){return Ze.element===ie})||fe}}]),ze}(),ja=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.bodyNode=me,this.driver=ie,this._normalizer=fe,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(Ze,$e){}}return(0,S.Z)(ze,[{key:"_onRemovalComplete",value:function(ie,fe){this.onRemovalComplete(ie,fe)}},{key:"queuedPlayers",get:function(){var ie=[];return this._namespaceList.forEach(function(fe){fe.players.forEach(function(Ze){Ze.queued&&ie.push(Ze)})}),ie}},{key:"createNamespace",value:function(ie,fe){var Ze=new wo(ie,fe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,fe)?this._balanceNamespaceList(Ze,fe):(this.newHostElements.set(fe,Ze),this.collectEnterElement(fe)),this._namespaceLookup[ie]=Ze}},{key:"_balanceNamespaceList",value:function(ie,fe){var Ze=this._namespaceList,$e=this.namespacesByHostElement,kt=Ze.length-1;if(kt>=0){var Ft=!1;if(void 0!==this.driver.getParentElement)for(var Vt=this.driver.getParentElement(fe);Vt;){var Qt=$e.get(Vt);if(Qt){var bn=Ze.indexOf(Qt);Ze.splice(bn+1,0,ie),Ft=!0;break}Vt=this.driver.getParentElement(Vt)}else for(var Qn=kt;Qn>=0;Qn--){var ir=Ze[Qn];if(this.driver.containsElement(ir.hostElement,fe)){Ze.splice(Qn+1,0,ie),Ft=!0;break}}Ft||Ze.unshift(ie)}else Ze.push(ie);return $e.set(fe,ie),ie}},{key:"register",value:function(ie,fe){var Ze=this._namespaceLookup[ie];return Ze||(Ze=this.createNamespace(ie,fe)),Ze}},{key:"registerTrigger",value:function(ie,fe,Ze){var $e=this._namespaceLookup[ie];$e&&$e.register(fe,Ze)&&this.totalAnimations++}},{key:"destroy",value:function(ie,fe){var Ze=this;if(ie){var $e=this._fetchNamespace(ie);this.afterFlush(function(){Ze.namespacesByHostElement.delete($e.hostElement),delete Ze._namespaceLookup[ie];var kt=Ze._namespaceList.indexOf($e);kt>=0&&Ze._namespaceList.splice(kt,1)}),this.afterFlushAnimationsDone(function(){return $e.destroy(fe)})}}},{key:"_fetchNamespace",value:function(ie){return this._namespaceLookup[ie]}},{key:"fetchNamespacesByElement",value:function(ie){var fe=new Set,Ze=this.statesByElement.get(ie);if(Ze)for(var $e=Object.keys(Ze),kt=0;kt<$e.length;kt++){var Ft=Ze[$e[kt]].namespaceId;if(Ft){var Vt=this._fetchNamespace(Ft);Vt&&fe.add(Vt)}}return fe}},{key:"trigger",value:function(ie,fe,Ze,$e){if(Ge(fe)){var kt=this._fetchNamespace(ie);if(kt)return kt.trigger(fe,Ze,$e),!0}return!1}},{key:"insertNode",value:function(ie,fe,Ze,$e){if(Ge(fe)){var kt=fe[Xo];if(kt&&kt.setForRemoval){kt.setForRemoval=!1,kt.setForMove=!0;var Ft=this.collectedLeaveElements.indexOf(fe);Ft>=0&&this.collectedLeaveElements.splice(Ft,1)}if(ie){var Vt=this._fetchNamespace(ie);Vt&&Vt.insertNode(fe,Ze)}$e&&this.collectEnterElement(fe)}}},{key:"collectEnterElement",value:function(ie){this.collectedEnterElements.push(ie)}},{key:"markElementAsDisabled",value:function(ie,fe){fe?this.disabledNodes.has(ie)||(this.disabledNodes.add(ie),Pn(ie,Xi)):this.disabledNodes.has(ie)&&(this.disabledNodes.delete(ie),Or(ie,Xi))}},{key:"removeNode",value:function(ie,fe,Ze,$e){if(Ge(fe)){var kt=ie?this._fetchNamespace(ie):null;if(kt?kt.removeNode(fe,$e):this.markElementAsRemoved(ie,fe,!1,$e),Ze){var Ft=this.namespacesByHostElement.get(fe);Ft&&Ft.id!==ie&&Ft.removeNode(fe,$e)}}else this._onRemovalComplete(fe,$e)}},{key:"markElementAsRemoved",value:function(ie,fe,Ze,$e,kt){this.collectedLeaveElements.push(fe),fe[Xo]={namespaceId:ie,setForRemoval:$e,hasAnimation:Ze,removedBeforeQueried:!1,previousTriggersValues:kt}}},{key:"listen",value:function(ie,fe,Ze,$e,kt){return Ge(fe)?this._fetchNamespace(ie).listen(fe,Ze,$e,kt):function(){}}},{key:"_buildInstruction",value:function(ie,fe,Ze,$e,kt){return ie.transition.build(this.driver,ie.element,ie.fromState.value,ie.toState.value,Ze,$e,ie.fromState.options,ie.toState.options,fe,kt)}},{key:"destroyInnerAnimations",value:function(ie){var fe=this,Ze=this.driver.query(ie,jn,!0);Ze.forEach(function($e){return fe.destroyActiveAnimationsForElement($e)}),0!=this.playersByQueriedElement.size&&(Ze=this.driver.query(ie,lr,!0)).forEach(function($e){return fe.finishActiveQueriedAnimationOnElement($e)})}},{key:"destroyActiveAnimationsForElement",value:function(ie){var fe=this.playersByElement.get(ie);fe&&fe.forEach(function(Ze){Ze.queued?Ze.markedForDestroy=!0:Ze.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(ie){var fe=this.playersByQueriedElement.get(ie);fe&&fe.forEach(function(Ze){return Ze.finish()})}},{key:"whenRenderingDone",value:function(){var ie=this;return new Promise(function(fe){if(ie.players.length)return Et(ie.players).onDone(function(){return fe()});fe()})}},{key:"processLeaveNode",value:function(ie){var Ze,fe=this,$e=ie[Xo];if($e&&$e.setForRemoval){if(ie[Xo]=Mu,$e.namespaceId){this.destroyInnerAnimations(ie);var kt=this._fetchNamespace($e.namespaceId);kt&&kt.clearElementCache(ie)}this._onRemovalComplete(ie,$e.setForRemoval)}(null===(Ze=ie.classList)||void 0===Ze?void 0:Ze.contains(Xi))&&this.markElementAsDisabled(ie,!1),this.driver.query(ie,".ng-animate-disabled",!0).forEach(function(Ft){fe.markElementAsDisabled(Ft,!1)})}},{key:"flush",value:function(){var ie=this,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,Ze=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(ir,_r){return ie._balanceNamespaceList(ir,_r)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var $e=0;$e<this.collectedEnterElements.length;$e++){var kt=this.collectedEnterElements[$e];Pn(kt,Ps)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var Ft=[];try{Ze=this._flushAnimations(Ft,fe)}finally{for(var Vt=0;Vt<Ft.length;Vt++)Ft[Vt]()}}else for(var Qt=0;Qt<this.collectedLeaveElements.length;Qt++){var bn=this.collectedLeaveElements[Qt];this.processLeaveNode(bn)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(ir){return ir()}),this._flushFns=[],this._whenQuietFns.length){var Qn=this._whenQuietFns;this._whenQuietFns=[],Ze.length?Et(Ze).onDone(function(){Qn.forEach(function(ir){return ir()})}):Qn.forEach(function(ir){return ir()})}}},{key:"reportError",value:function(ie){throw function on(ze){return new P.vHH(3402,M)}()}},{key:"_flushAnimations",value:function(ie,fe){var Ze=this,$e=new bi,kt=[],Ft=new Map,Vt=[],Qt=new Map,bn=new Map,Qn=new Map,ir=new Set;this.disabledNodes.forEach(function(ur){ir.add(ur);for(var Wr=Ze.driver.query(ur,".ng-animate-queued",!0),li=0;li<Wr.length;li++)ir.add(Wr[li])});var _r=this.bodyNode,gr=Array.from(this.statesByElement.keys()),di=Mn(gr,this.collectedEnterElements),Ne=new Map,we=0;di.forEach(function(ur,Wr){var li=Dn+we++;Ne.set(Wr,li),ur.forEach(function(ea){return Pn(ea,li)})});for(var X=[],je=new Set,De=new Set,ot=0;ot<this.collectedLeaveElements.length;ot++){var At=this.collectedLeaveElements[ot],fn=At[Xo];fn&&fn.setForRemoval&&(X.push(At),je.add(At),fn.hasAnimation?this.driver.query(At,".ng-star-inserted",!0).forEach(function(ur){return je.add(ur)}):De.add(At))}var Sn=new Map,Sr=Mn(gr,Array.from(je));Sr.forEach(function(ur,Wr){var li=zn+we++;Sn.set(Wr,li),ur.forEach(function(ea){return Pn(ea,li)})}),ie.push(function(){di.forEach(function(ur,Wr){var li=Ne.get(Wr);ur.forEach(function(ea){return Or(ea,li)})}),Sr.forEach(function(ur,Wr){var li=Sn.get(Wr);ur.forEach(function(ea){return Or(ea,li)})}),X.forEach(function(ur){Ze.processLeaveNode(ur)})});for(var Ti=[],jo=[],eo=this._namespaceList.length-1;eo>=0;eo--){this._namespaceList[eo].drainQueuedTransitions(fe).forEach(function(ur){var Wr=ur.player,li=ur.element;if(Ti.push(Wr),Ze.collectedEnterElements.length){var ea=li[Xo];if(ea&&ea.setForMove){if(ea.previousTriggersValues&&ea.previousTriggersValues.has(ur.triggerName)){var Au=ea.previousTriggersValues.get(ur.triggerName),Ou=Ze.statesByElement.get(ur.element);Ou&&Ou[ur.triggerName]&&(Ou[ur.triggerName].value=Au)}return void Wr.destroy()}}var ad=!_r||!Ze.driver.containsElement(_r,li),uc=Sn.get(li),xm=Ne.get(li),Ca=Ze._buildInstruction(ur,$e,xm,uc,ad);if(Ca.errors&&Ca.errors.length)jo.push(Ca);else{if(ad)return Wr.onStart(function(){return pn(li,Ca.fromStyles)}),Wr.onDestroy(function(){return rr(li,Ca.toStyles)}),void kt.push(Wr);if(ur.isFallbackTransition)return Wr.onStart(function(){return pn(li,Ca.fromStyles)}),Wr.onDestroy(function(){return rr(li,Ca.toStyles)}),void kt.push(Wr);var Iu=[];Ca.timelines.forEach(function(ds){ds.stretchStartingKeyframe=!0,Ze.disabledNodes.has(ds.element)||Iu.push(ds)}),Ca.timelines=Iu,$e.append(li,Ca.timelines);var Dm={instruction:Ca,player:Wr,element:li};Vt.push(Dm),Ca.queriedElements.forEach(function(ds){return mt(Qt,ds,[]).push(Wr)}),Ca.preStyleProps.forEach(function(ds,Pu){var cc=Object.keys(ds);if(cc.length){var dc=bn.get(Pu);dc||bn.set(Pu,dc=new Set),cc.forEach(function(sd){return dc.add(sd)})}}),Ca.postStyleProps.forEach(function(ds,Pu){var cc=Object.keys(ds),dc=Qn.get(Pu);dc||Qn.set(Pu,dc=new Set),cc.forEach(function(sd){return dc.add(sd)})})}})}if(jo.length){var to=[];jo.forEach(function(ur){to.push(function An(ze,me){return new P.vHH(3505,M)}(ur.triggerName,ur.errors))}),Ti.forEach(function(ur){return ur.destroy()}),this.reportError(to)}var df=new Map,au=new Map;Vt.forEach(function(ur){var Wr=ur.element;$e.has(Wr)&&(au.set(Wr,Wr),Ze._beforeAnimationBuild(ur.player.namespaceId,ur.instruction,df))}),kt.forEach(function(ur){var Wr=ur.element;Ze._getPreviousPlayers(Wr,!1,ur.namespaceId,ur.triggerName,null).forEach(function(ea){mt(df,Wr,[]).push(ea),ea.destroy()})});var Em=X.filter(function(ur){return So(ur,bn,Qn)}),id=new Map;un(id,this.driver,De,Qn,y.l3).forEach(function(ur){So(ur,bn,Qn)&&Em.push(ur)});var Mm=new Map;di.forEach(function(ur,Wr){un(Mm,Ze.driver,new Set(ur),bn,y.k1)}),Em.forEach(function(ur){var Wr=id.get(ur),li=Mm.get(ur);id.set(ur,Object.assign(Object.assign({},Wr),li))});var ff=[],Ip=[],pf={};Vt.forEach(function(ur){var Wr=ur.element,li=ur.player,ea=ur.instruction;if($e.has(Wr)){if(ir.has(Wr))return li.onDestroy(function(){return rr(Wr,ea.toStyles)}),li.disabled=!0,li.overrideTotalTime(ea.totalTime),void kt.push(li);var Au=pf;if(au.size>1){for(var Ou=Wr,ad=[];Ou=Ou.parentNode;){var uc=au.get(Ou);if(uc){Au=uc;break}ad.push(Ou)}ad.forEach(function(Iu){return au.set(Iu,Au)})}var xm=Ze._buildAnimation(li.namespaceId,ea,df,Ft,Mm,id);if(li.setRealPlayer(xm),Au===pf)ff.push(li);else{var Ca=Ze.playersByElement.get(Au);Ca&&Ca.length&&(li.parentPlayer=Et(Ca)),kt.push(li)}}else pn(Wr,ea.fromStyles),li.onDestroy(function(){return rr(Wr,ea.toStyles)}),Ip.push(li),ir.has(Wr)&&kt.push(li)}),Ip.forEach(function(ur){var Wr=Ft.get(ur.element);if(Wr&&Wr.length){var li=Et(Wr);ur.setRealPlayer(li)}}),kt.forEach(function(ur){ur.parentPlayer?ur.syncPlayerEvents(ur.parentPlayer):ur.destroy()});for(var Pp=0;Pp<X.length;Pp++){var od=X[Pp],iv=od[Xo];if(Or(od,zn),!iv||!iv.hasAnimation){var ko=[];if(Qt.size){var ns=Qt.get(od);ns&&ns.length&&ko.push.apply(ko,(0,F.Z)(ns));for(var Sm=this.driver.query(od,lr,!0),sc=0;sc<Sm.length;sc++){var Du=Qt.get(Sm[sc]);Du&&Du.length&&ko.push.apply(ko,(0,F.Z)(Du))}}var lc=ko.filter(function(ur){return!ur.destroyed});lc.length?jr(this,od,lc):this.processLeaveNode(od)}}return X.length=0,ff.forEach(function(ur){Ze.players.push(ur),ur.onDone(function(){ur.destroy();var Wr=Ze.players.indexOf(ur);Ze.players.splice(Wr,1)}),ur.play()}),ff}},{key:"elementContainsData",value:function(ie,fe){var Ze=!1,$e=fe[Xo];return $e&&$e.setForRemoval&&(Ze=!0),this.playersByElement.has(fe)&&(Ze=!0),this.playersByQueriedElement.has(fe)&&(Ze=!0),this.statesByElement.has(fe)&&(Ze=!0),this._fetchNamespace(ie).elementContainsData(fe)||Ze}},{key:"afterFlush",value:function(ie){this._flushFns.push(ie)}},{key:"afterFlushAnimationsDone",value:function(ie){this._whenQuietFns.push(ie)}},{key:"_getPreviousPlayers",value:function(ie,fe,Ze,$e,kt){var Ft=[];if(fe){var Vt=this.playersByQueriedElement.get(ie);Vt&&(Ft=Vt)}else{var Qt=this.playersByElement.get(ie);if(Qt){var bn=!kt||kt==Rs;Qt.forEach(function(Qn){Qn.queued||!bn&&Qn.triggerName!=$e||Ft.push(Qn)})}}return(Ze||$e)&&(Ft=Ft.filter(function(Qn){return!(Ze&&Ze!=Qn.namespaceId||$e&&$e!=Qn.triggerName)})),Ft}},{key:"_beforeAnimationBuild",value:function(ie,fe,Ze){var Qn,$e=this,kt=fe.triggerName,Ft=fe.element,Vt=fe.isRemovalTransition?void 0:ie,Qt=fe.isRemovalTransition?void 0:kt,bn=(0,K.Z)(fe.timelines);try{var ir=function(){var di=Qn.value.element,Ne=di!==Ft,we=mt(Ze,di,[]);$e._getPreviousPlayers(di,Ne,Vt,Qt,fe.toState).forEach(function(je){var De=je.getRealPlayer();De.beforeDestroy&&De.beforeDestroy(),je.destroy(),we.push(je)})};for(bn.s();!(Qn=bn.n()).done;)ir()}catch(_r){bn.e(_r)}finally{bn.f()}pn(Ft,fe.fromStyles)}},{key:"_buildAnimation",value:function(ie,fe,Ze,$e,kt,Ft){var Vt=this,Qt=fe.triggerName,bn=fe.element,Qn=[],ir=new Set,_r=new Set,gr=fe.timelines.map(function(Ne){var we=Ne.element;ir.add(we);var X=we[Xo];if(X&&X.removedBeforeQueried)return new y.ZN(Ne.duration,Ne.delay);var je=we!==bn,De=function ar(ze){var me=[];return ai(ze,me),me}((Ze.get(we)||Ua).map(function(Ti){return Ti.getRealPlayer()})).filter(function(Ti){var jo=Ti;return!!jo.element&&jo.element===we}),ot=kt.get(we),At=Ft.get(we),fn=Ut(Vt.driver,Vt._normalizer,we,Ne.keyframes,ot,At),Sn=Vt._buildPlayer(Ne,fn,De);if(Ne.subTimeline&&$e&&_r.add(we),je){var Sr=new Su(ie,Qt,we);Sr.setRealPlayer(Sn),Qn.push(Sr)}return Sn});Qn.forEach(function(Ne){mt(Vt.playersByQueriedElement,Ne.element,[]).push(Ne),Ne.onDone(function(){return function ye(ze,me,ie){var fe;if(ze instanceof Map){if(fe=ze.get(me)){if(fe.length){var Ze=fe.indexOf(ie);fe.splice(Ze,1)}0==fe.length&&ze.delete(me)}}else if(fe=ze[me]){if(fe.length){var $e=fe.indexOf(ie);fe.splice($e,1)}0==fe.length&&delete ze[me]}return fe}(Vt.playersByQueriedElement,Ne.element,Ne)})}),ir.forEach(function(Ne){return Pn(Ne,mn)});var di=Et(gr);return di.onDestroy(function(){ir.forEach(function(Ne){return Or(Ne,mn)}),rr(bn,fe.toStyles)}),_r.forEach(function(Ne){mt($e,Ne,[]).push(di)}),di}},{key:"_buildPlayer",value:function(ie,fe,Ze){return fe.length>0?this.driver.animate(ie.element,fe,ie.duration,ie.delay,ie.easing,Ze):new y.ZN(ie.duration,ie.delay)}}]),ze}(),Su=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.namespaceId=me,this.triggerName=ie,this.element=fe,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,S.Z)(ze,[{key:"setRealPlayer",value:function(ie){var fe=this;this._containsRealPlayer||(this._player=ie,Object.keys(this._queuedCallbacks).forEach(function(Ze){fe._queuedCallbacks[Ze].forEach(function($e){return Ht(ie,Ze,void 0,$e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ie.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(ie){this.totalTime=ie}},{key:"syncPlayerEvents",value:function(ie){var fe=this,Ze=this._player;Ze.triggerCallback&&ie.onStart(function(){return Ze.triggerCallback("start")}),ie.onDone(function(){return fe.finish()}),ie.onDestroy(function(){return fe.destroy()})}},{key:"_queueEvent",value:function(ie,fe){mt(this._queuedCallbacks,ie,[]).push(fe)}},{key:"onDone",value:function(ie){this.queued&&this._queueEvent("done",ie),this._player.onDone(ie)}},{key:"onStart",value:function(ie){this.queued&&this._queueEvent("start",ie),this._player.onStart(ie)}},{key:"onDestroy",value:function(ie){this.queued&&this._queueEvent("destroy",ie),this._player.onDestroy(ie)}},{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(ie){this.queued||this._player.setPosition(ie)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(ie){var fe=this._player;fe.triggerCallback&&fe.triggerCallback(ie)}}]),ze}();function Re(ze){return null!=ze?ze:null}function Ge(ze){return ze&&1===ze.nodeType}function xt(ze,me){var ie=ze.style.display;return ze.style.display=null!=me?me:"none",ie}function un(ze,me,ie,fe,Ze){var $e=[];ie.forEach(function(Vt){return $e.push(xt(Vt))});var kt=[];fe.forEach(function(Vt,Qt){var bn={};Vt.forEach(function(Qn){var ir=bn[Qn]=me.computeStyle(Qt,Qn,Ze);(!ir||0==ir.length)&&(Qt[Xo]=Ha,kt.push(Qt))}),ze.set(Qt,bn)});var Ft=0;return ie.forEach(function(Vt){return xt(Vt,$e[Ft++])}),kt}function Mn(ze,me){var ie=new Map;if(ze.forEach(function(Ft){return ie.set(Ft,[])}),0==me.length)return ie;var Ze=new Set(me),$e=new Map;function kt(Ft){if(!Ft)return 1;var Vt=$e.get(Ft);if(Vt)return Vt;var Qt=Ft.parentNode;return Vt=ie.has(Qt)?Qt:Ze.has(Qt)?1:kt(Qt),$e.set(Ft,Vt),Vt}return me.forEach(function(Ft){var Vt=kt(Ft);1!==Vt&&ie.get(Vt).push(Ft)}),ie}function Pn(ze,me){var ie;null===(ie=ze.classList)||void 0===ie||ie.add(me)}function Or(ze,me){var ie;null===(ie=ze.classList)||void 0===ie||ie.remove(me)}function jr(ze,me,ie){Et(ie).onDone(function(){return ze.processLeaveNode(me)})}function ai(ze,me){for(var ie=0;ie<ze.length;ie++){var fe=ze[ie];fe instanceof y.ZE?ai(fe.players,me):me.push(fe)}}function $i(ze,me){var ie=Object.keys(ze),fe=Object.keys(me);if(ie.length!=fe.length)return!1;for(var Ze=0;Ze<ie.length;Ze++){var $e=ie[Ze];if(!me.hasOwnProperty($e)||ze[$e]!==me[$e])return!1}return!0}function So(ze,me,ie){var fe=ie.get(ze);if(!fe)return!1;var Ze=me.get(ze);return Ze?fe.forEach(function($e){return Ze.add($e)}):me.set(ze,fe),ie.delete(ze),!0}var Di=function(){function ze(me,ie,fe){var Ze=this;(0,Y.Z)(this,ze),this.bodyNode=me,this._driver=ie,this._normalizer=fe,this._triggerCache={},this.onRemovalComplete=function($e,kt){},this._transitionEngine=new ja(me,ie,fe),this._timelineEngine=new Is(me,ie,fe),this._transitionEngine.onRemovalComplete=function($e,kt){return Ze.onRemovalComplete($e,kt)}}return(0,S.Z)(ze,[{key:"registerTrigger",value:function(ie,fe,Ze,$e,kt){var Ft=ie+"-"+$e,Vt=this._triggerCache[Ft];if(!Vt){var Qt=[],bn=[],Qn=Bo(this._driver,kt,Qt,bn);if(Qt.length)throw function Xt(ze,me){return new P.vHH(3404,M)}();bn.length,Vt=function io(ze,me,ie){return new Kr(ze,me,ie)}($e,Qn,this._normalizer),this._triggerCache[Ft]=Vt}this._transitionEngine.registerTrigger(fe,$e,Vt)}},{key:"register",value:function(ie,fe){this._transitionEngine.register(ie,fe)}},{key:"destroy",value:function(ie,fe){this._transitionEngine.destroy(ie,fe)}},{key:"onInsert",value:function(ie,fe,Ze,$e){this._transitionEngine.insertNode(ie,fe,Ze,$e)}},{key:"onRemove",value:function(ie,fe,Ze,$e){this._transitionEngine.removeNode(ie,fe,$e||!1,Ze)}},{key:"disableAnimations",value:function(ie,fe){this._transitionEngine.markElementAsDisabled(ie,fe)}},{key:"process",value:function(ie,fe,Ze,$e){if("@"==Ze.charAt(0)){var kt=cn(Ze),Ft=(0,z.Z)(kt,2),Vt=Ft[0],Qt=Ft[1],bn=$e;this._timelineEngine.command(Vt,fe,Qt,bn)}else this._transitionEngine.trigger(ie,fe,Ze,$e)}},{key:"listen",value:function(ie,fe,Ze,$e,kt){if("@"==Ze.charAt(0)){var Ft=cn(Ze),Vt=(0,z.Z)(Ft,2),Qt=Vt[0],bn=Vt[1];return this._timelineEngine.listen(Qt,fe,bn,kt)}return this._transitionEngine.listen(ie,fe,Ze,$e,kt)}},{key:"flush",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(ie)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),ze}();function $o(ze,me){var ie=null,fe=null;return Array.isArray(me)&&me.length?(ie=Le(me[0]),me.length>1&&(fe=Le(me[me.length-1]))):me&&(ie=Le(me)),ie||fe?new Ye(ze,ie,fe):null}var Ye=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this._element=me,this._startStyles=ie,this._endStyles=fe,this._state=0;var Ze=ze.initialStylesByElement.get(me);Ze||ze.initialStylesByElement.set(me,Ze={}),this._initialStyles=Ze}return(0,S.Z)(ze,[{key:"start",value:function(){this._state<1&&(this._startStyles&&rr(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(rr(this._element,this._initialStyles),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(ze.initialStylesByElement.delete(this._element),this._startStyles&&(pn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pn(this._element,this._endStyles),this._endStyles=null),rr(this._element,this._initialStyles),this._state=3)}}]),ze}();function Le(ze){for(var me=null,ie=Object.keys(ze),fe=0;fe<ie.length;fe++){var Ze=ie[fe];Ce(Ze)&&((me=me||{})[Ze]=ze[Ze])}return me}function Ce(ze){return"display"===ze||"position"===ze}Ye.initialStylesByElement=new WeakMap;var Je=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this.element=me,this.keyframes=ie,this.options=fe,this._specialStyles=Ze,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=fe.duration,this._delay=fe.delay||0,this.time=this._duration+this._delay}return(0,S.Z)(ze,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(ie){return ie()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var ie=this;if(!this._initialized){this._initialized=!0;var fe=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,fe,this.options),this._finalKeyframe=fe.length?fe[fe.length-1]:{},this.domPlayer.addEventListener("finish",function(){return ie._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(ie,fe,Ze){return ie.animate(fe,Ze)}},{key:"onStart",value:function(ie){this._onStartFns.push(ie)}},{key:"onDone",value:function(ie){this._onDoneFns.push(ie)}},{key:"onDestroy",value:function(ie){this._onDestroyFns.push(ie)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(ie){return ie()}),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}},{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(ie){return ie()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(ie){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ie*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 ie=this,fe={};if(this.hasStarted()){var Ze=this._finalKeyframe;Object.keys(Ze).forEach(function($e){"offset"!=$e&&(fe[$e]=ie._finished?Ze[$e]:Hi(ie.element,$e))})}this.currentSnapshot=fe}},{key:"triggerCallback",value:function(ie){var fe="start"==ie?this._onStartFns:this._onDoneFns;fe.forEach(function(Ze){return Ze()}),fe.length=0}}]),ze}(),Ke=function(){function ze(){(0,Y.Z)(this,ze)}return(0,S.Z)(ze,[{key:"validateStyleProperty",value:function(ie){return Te(ie)}},{key:"matchesElement",value:function(ie,fe){return!1}},{key:"containsElement",value:function(ie,fe){return We(ie,fe)}},{key:"getParentElement",value:function(ie){return Jn(ie)}},{key:"query",value:function(ie,fe,Ze){return lt(ie,fe,Ze)}},{key:"computeStyle",value:function(ie,fe,Ze){return window.getComputedStyle(ie)[fe]}},{key:"animate",value:function(ie,fe,Ze,$e,kt){var Ft=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Vt=0==$e?"both":"forwards",Qt={duration:Ze,delay:$e,fill:Vt};kt&&(Qt.easing=kt);var bn={},Qn=Ft.filter(function(_r){return _r instanceof Je});Rr(Ze,$e)&&Qn.forEach(function(_r){var gr=_r.currentSnapshot;Object.keys(gr).forEach(function(di){return bn[di]=gr[di]})});var ir=$o(ie,fe=$r(ie,fe=fe.map(function(_r){return bt(_r,!1)}),bn));return new Je(ie,fe,Qt,ir)}}]),ze}(),Rt=m(9808),an=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze){var $e;(0,Y.Z)(this,ie),($e=me.call(this))._nextAnimationId=0;var kt={id:"0",encapsulation:P.ifc.None,styles:[],data:{animation:[]}};return $e._renderer=fe.createRenderer(Ze.body,kt),$e}return(0,S.Z)(ie,[{key:"build",value:function(Ze){var $e=this._nextAnimationId.toString();this._nextAnimationId++;var kt=Array.isArray(Ze)?(0,y.vP)(Ze):Ze;return Ir(this._renderer,null,$e,"register",[kt]),new nr($e,this._renderer)}}]),ie}(y._j);an.\u0275fac=function(me){return new(me||an)(P.LFG(P.FYo),P.LFG(Rt.K0))},an.\u0275prov=P.Yz7({token:an,factory:an.\u0275fac});var nr=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze){var $e;return(0,Y.Z)(this,ie),($e=me.call(this))._id=fe,$e._renderer=Ze,$e}return(0,S.Z)(ie,[{key:"create",value:function(Ze,$e){return new Lr(this._id,Ze,$e||{},this._renderer)}}]),ie}(y.LC),Lr=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this.id=me,this.element=ie,this._renderer=Ze,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",fe)}return(0,S.Z)(ze,[{key:"_listen",value:function(ie,fe){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(ie),fe)}},{key:"_command",value:function(ie){for(var fe=arguments.length,Ze=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)Ze[$e-1]=arguments[$e];return Ir(this._renderer,this.element,this.id,ie,Ze)}},{key:"onDone",value:function(ie){this._listen("done",ie)}},{key:"onStart",value:function(ie){this._listen("start",ie)}},{key:"onDestroy",value:function(ie){this._listen("destroy",ie)}},{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(ie){this._command("setPosition",ie)}},{key:"getPosition",value:function(){var ie,fe;return null!==(fe=null===(ie=this._renderer.engine.players[+this.id])||void 0===ie?void 0:ie.getPosition())&&void 0!==fe?fe:0}}]),ze}();function Ir(ze,me,ie,fe,Ze){return ze.setProperty(me,"@@".concat(ie,":").concat(fe),Ze)}var uf="@.disabled",ou=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.delegate=me,this.engine=ie,this._zone=fe,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ie.onRemovalComplete=function(Ze,$e){var kt=null==$e?void 0:$e.parentNode(Ze);kt&&$e.removeChild(kt,Ze)}}return(0,S.Z)(ze,[{key:"createRenderer",value:function(ie,fe){var Ze=this,kt=this.delegate.createRenderer(ie,fe);if(!(ie&&fe&&fe.data&&fe.data.animation)){var Ft=this._rendererCache.get(kt);return Ft||(Ft=new rd("",kt,this.engine),this._rendererCache.set(kt,Ft)),Ft}var Vt=fe.id,Qt=fe.id+"-"+this._currentId;this._currentId++,this.engine.register(Qt,ie);return fe.data.animation.forEach(function ir(_r){Array.isArray(_r)?_r.forEach(ir):Ze.engine.registerTrigger(Vt,Qt,ie,_r.name,_r)}),new oc(this,Qt,kt,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var ie=this;this.promise.then(function(){ie._microtaskId++})}},{key:"scheduleListenerCallback",value:function(ie,fe,Ze){var $e=this;ie>=0&&ie<this._microtaskId?this._zone.run(function(){return fe(Ze)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){$e._zone.run(function(){$e._animationCallbacksBuffer.forEach(function(kt){var Ft=(0,z.Z)(kt,2);(0,Ft[0])(Ft[1])}),$e._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([fe,Ze]))}},{key:"end",value:function(){var ie=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){ie._scheduleCountTask(),ie.engine.flush(ie._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),ze}();ou.\u0275fac=function(me){return new(me||ou)(P.LFG(P.FYo),P.LFG(Di),P.LFG(P.R0b))},ou.\u0275prov=P.Yz7({token:ou,factory:ou.\u0275fac});var rd=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.namespaceId=me,this.delegate=ie,this.engine=fe,this.destroyNode=this.delegate.destroyNode?function(Ze){return ie.destroyNode(Ze)}:null}return(0,S.Z)(ze,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(ie,fe){return this.delegate.createElement(ie,fe)}},{key:"createComment",value:function(ie){return this.delegate.createComment(ie)}},{key:"createText",value:function(ie){return this.delegate.createText(ie)}},{key:"appendChild",value:function(ie,fe){this.delegate.appendChild(ie,fe),this.engine.onInsert(this.namespaceId,fe,ie,!1)}},{key:"insertBefore",value:function(ie,fe,Ze){var $e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(ie,fe,Ze),this.engine.onInsert(this.namespaceId,fe,ie,$e)}},{key:"removeChild",value:function(ie,fe,Ze){this.engine.onRemove(this.namespaceId,fe,this.delegate,Ze)}},{key:"selectRootElement",value:function(ie,fe){return this.delegate.selectRootElement(ie,fe)}},{key:"parentNode",value:function(ie){return this.delegate.parentNode(ie)}},{key:"nextSibling",value:function(ie){return this.delegate.nextSibling(ie)}},{key:"setAttribute",value:function(ie,fe,Ze,$e){this.delegate.setAttribute(ie,fe,Ze,$e)}},{key:"removeAttribute",value:function(ie,fe,Ze){this.delegate.removeAttribute(ie,fe,Ze)}},{key:"addClass",value:function(ie,fe){this.delegate.addClass(ie,fe)}},{key:"removeClass",value:function(ie,fe){this.delegate.removeClass(ie,fe)}},{key:"setStyle",value:function(ie,fe,Ze,$e){this.delegate.setStyle(ie,fe,Ze,$e)}},{key:"removeStyle",value:function(ie,fe,Ze){this.delegate.removeStyle(ie,fe,Ze)}},{key:"setProperty",value:function(ie,fe,Ze){"@"==fe.charAt(0)&&fe==uf?this.disableAnimations(ie,!!Ze):this.delegate.setProperty(ie,fe,Ze)}},{key:"setValue",value:function(ie,fe){this.delegate.setValue(ie,fe)}},{key:"listen",value:function(ie,fe,Ze){return this.delegate.listen(ie,fe,Ze)}},{key:"disableAnimations",value:function(ie,fe){this.engine.disableAnimations(ie,fe)}}]),ze}(),oc=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e,kt){var Ft;return(0,Y.Z)(this,ie),(Ft=me.call(this,Ze,$e,kt)).factory=fe,Ft.namespaceId=Ze,Ft}return(0,S.Z)(ie,[{key:"setProperty",value:function(Ze,$e,kt){"@"==$e.charAt(0)?"."==$e.charAt(1)&&$e==uf?(kt=void 0===kt||!!kt,this.disableAnimations(Ze,kt)):this.engine.process(this.namespaceId,Ze,$e.substr(1),kt):this.delegate.setProperty(Ze,$e,kt)}},{key:"listen",value:function(Ze,$e,kt){var Ft=this;if("@"==$e.charAt(0)){var Vt=function si(ze){switch(ze){case"body":return document.body;case"document":return document;case"window":return window;default:return ze}}(Ze),Qt=$e.substr(1),bn="";if("@"!=Qt.charAt(0)){var Qn=function dr(ze){var me=ze.indexOf("."),ie=ze.substring(0,me),fe=ze.substr(me+1);return[ie,fe]}(Qt),ir=(0,z.Z)(Qn,2);Qt=ir[0],bn=ir[1]}return this.engine.listen(this.namespaceId,Vt,Qt,bn,function(_r){var gr=_r._data||-1;Ft.factory.scheduleListenerCallback(gr,kt,_r)})}return this.delegate.listen(Ze,$e,kt)}}]),ie}(rd);var ac=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e){return(0,Y.Z)(this,ie),me.call(this,fe.body,Ze,$e)}return(0,S.Z)(ie,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ie}(Di);ac.\u0275fac=function(me){return new(me||ac)(P.LFG(Rt.K0),P.LFG(Jt),P.LFG(Co))},ac.\u0275prov=P.Yz7({token:ac,factory:ac.\u0275fac});var pi=new P.OlP("AnimationModuleType"),Ai=[{provide:y._j,useClass:an},{provide:Co,useFactory:function Nn(){return new Uo}},{provide:Di,useClass:ac},{provide:P.FYo,useFactory:function wi(ze,me,ie){return new ou(ze,me,ie)},deps:[D.se,Di,P.R0b]}],cf=[{provide:Jt,useFactory:function(){return new Ke}},{provide:pi,useValue:"BrowserAnimations"}].concat(Ai),xu=[{provide:Jt,useClass:tn},{provide:pi,useValue:"NoopAnimations"}].concat(Ai),ji=function(){function ze(){(0,Y.Z)(this,ze)}return(0,S.Z)(ze,null,[{key:"withConfig",value:function(ie){return{ngModule:ze,providers:ie.disableAnimations?xu:cf}}}]),ze}();ji.\u0275fac=function(me){return new(me||ji)},ji.\u0275mod=P.oAB({type:ji}),ji.\u0275inj=P.cJS({providers:cf,imports:[D.b2]});var ml=(0,S.Z)(function ze(){(0,Y.Z)(this,ze)});ml.\u0275fac=function(me){return new(me||ml)},ml.\u0275mod=P.oAB({type:ml}),ml.\u0275inj=P.cJS({providers:xu,imports:[D.b2]})},2313:function(qe,J,m){"use strict";m.d(J,{Dx:function(){return wn},H7:function(){return Yt},HJ:function(){return nn},b2:function(){return cn},q6:function(){return yt},se:function(){return en}});var k,z=m(3237),Y=m(1120),S=m(3144),U=m(5671),L=m(136),P=m(9388),D=m(9808),y=m(5e3),K=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(){var Qe;return(0,U.Z)(this,Ae),(Qe=Se.apply(this,arguments)).supportsDOMEvents=!0,Qe}return(0,S.Z)(Ae)}(D.w_),F=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(){return(0,U.Z)(this,Ae),Se.apply(this,arguments)}return(0,S.Z)(Ae,[{key:"onAndCancel",value:function(_t,Wt,vn){return _t.addEventListener(Wt,vn,!1),function(){_t.removeEventListener(Wt,vn,!1)}}},{key:"dispatchEvent",value:function(_t,Wt){_t.dispatchEvent(Wt)}},{key:"remove",value:function(_t){_t.parentNode&&_t.parentNode.removeChild(_t)}},{key:"createElement",value:function(_t,Wt){return(Wt=Wt||this.getDefaultDocument()).createElement(_t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(_t){return _t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(_t){return _t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(_t,Wt){return"window"===Wt?window:"document"===Wt?_t:"body"===Wt?_t.body:null}},{key:"getBaseHref",value:function(_t){var Wt=function O(){return(M=M||document.querySelector("base"))?M.getAttribute("href"):null}();return null==Wt?null:function I(ut){(k=k||document.createElement("a")).setAttribute("href",ut);var Se=k.pathname;return"/"===Se.charAt(0)?Se:"/".concat(Se)}(Wt)}},{key:"resetBaseElement",value:function(){M=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(_t){return(0,D.Mx)(document.cookie,_t)}}],[{key:"makeCurrent",value:function(){(0,D.HT)(new Ae)}}]),Ae}(K),M=null;var T=new y.OlP("TRANSITION_ID");var x=[{provide:y.ip1,useFactory:function w(ut,Se,Ae){return function(){Ae.get(y.CZH).donePromise.then(function(){for(var Qe=(0,D.q)(),_t=Se.querySelectorAll('style[ng-transition="'.concat(ut,'"]')),Wt=0;Wt<_t.length;Wt++)Qe.remove(_t[Wt])})}},deps:[T,D.K0,y.zs3],multi:!0}],N=function(){function ut(){(0,U.Z)(this,ut)}return(0,S.Z)(ut,[{key:"addToWindow",value:function(Ae){y.dqk.getAngularTestability=function(_t){var Wt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],vn=Ae.findTestabilityInTree(_t,Wt);if(null==vn)throw new Error("Could not find testability for element.");return vn},y.dqk.getAllAngularTestabilities=function(){return Ae.getAllTestabilities()},y.dqk.getAllAngularRootElements=function(){return Ae.getAllRootElements()};y.dqk.frameworkStabilizers||(y.dqk.frameworkStabilizers=[]),y.dqk.frameworkStabilizers.push(function(Wt){var vn=y.dqk.getAllAngularTestabilities(),Ln=vn.length,cr=!1,Rr=function(Mr){cr=cr||Mr,0==--Ln&&Wt(cr)};vn.forEach(function($r){$r.whenStable(Rr)})})}},{key:"findTestabilityInTree",value:function(Ae,Qe,_t){if(null==Qe)return null;var Wt=Ae.getTestability(Qe);return null!=Wt?Wt:_t?(0,D.q)().isShadowRoot(Qe)?this.findTestabilityInTree(Ae,Qe.host,!0):this.findTestabilityInTree(Ae,Qe.parentElement,!0):null}}],[{key:"init",value:function(){(0,y.VLi)(new ut)}}]),ut}(),R=function(){function ut(){(0,U.Z)(this,ut)}return(0,S.Z)(ut,[{key:"build",value:function(){return new XMLHttpRequest}}]),ut}();R.\u0275fac=function(Se){return new(Se||R)},R.\u0275prov=y.Yz7({token:R,factory:R.\u0275fac});var W=new y.OlP("EventManagerPlugins"),$=function(){function ut(Se,Ae){var Qe=this;(0,U.Z)(this,ut),this._zone=Ae,this._eventNameToPlugin=new Map,Se.forEach(function(_t){return _t.manager=Qe}),this._plugins=Se.slice().reverse()}return(0,S.Z)(ut,[{key:"addEventListener",value:function(Ae,Qe,_t){return this._findPluginFor(Qe).addEventListener(Ae,Qe,_t)}},{key:"addGlobalEventListener",value:function(Ae,Qe,_t){return this._findPluginFor(Qe).addGlobalEventListener(Ae,Qe,_t)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(Ae){var Qe=this._eventNameToPlugin.get(Ae);if(Qe)return Qe;for(var _t=this._plugins,Wt=0;Wt<_t.length;Wt++){var vn=_t[Wt];if(vn.supports(Ae))return this._eventNameToPlugin.set(Ae,vn),vn}throw new Error("No event manager plugin found for event ".concat(Ae))}}]),ut}();$.\u0275fac=function(Se){return new(Se||$)(y.LFG(W),y.LFG(y.R0b))},$.\u0275prov=y.Yz7({token:$,factory:$.\u0275fac});var ce=function(){function ut(Se){(0,U.Z)(this,ut),this._doc=Se}return(0,S.Z)(ut,[{key:"addGlobalEventListener",value:function(Ae,Qe,_t){var Wt=(0,D.q)().getGlobalEventTarget(this._doc,Ae);if(!Wt)throw new Error("Unsupported event target ".concat(Wt," for event ").concat(Qe));return this.addEventListener(Wt,Qe,_t)}}]),ut}(),se=function(){function ut(){(0,U.Z)(this,ut),this._stylesSet=new Set}return(0,S.Z)(ut,[{key:"addStyles",value:function(Ae){var Qe=this,_t=new Set;Ae.forEach(function(Wt){Qe._stylesSet.has(Wt)||(Qe._stylesSet.add(Wt),_t.add(Wt))}),this.onStylesAdded(_t)}},{key:"onStylesAdded",value:function(Ae){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),ut}();se.\u0275fac=function(Se){return new(Se||se)},se.\u0275prov=y.Yz7({token:se,factory:se.\u0275fac});var te=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe){var _t;return(0,U.Z)(this,Ae),(_t=Se.call(this))._doc=Qe,_t._hostNodes=new Map,_t._hostNodes.set(Qe.head,[]),_t}return(0,S.Z)(Ae,[{key:"_addStylesToHost",value:function(_t,Wt,vn){var Ln=this;_t.forEach(function(cr){var Rr=Ln._doc.createElement("style");Rr.textContent=cr,vn.push(Wt.appendChild(Rr))})}},{key:"addHost",value:function(_t){var Wt=[];this._addStylesToHost(this._stylesSet,_t,Wt),this._hostNodes.set(_t,Wt)}},{key:"removeHost",value:function(_t){var Wt=this._hostNodes.get(_t);Wt&&Wt.forEach(oe),this._hostNodes.delete(_t)}},{key:"onStylesAdded",value:function(_t){var Wt=this;this._hostNodes.forEach(function(vn,Ln){Wt._addStylesToHost(_t,Ln,vn)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(_t){return _t.forEach(oe)})}}]),Ae}(se);function oe(ut){(0,D.q)().remove(ut)}te.\u0275fac=function(Se){return new(Se||te)(y.LFG(D.K0))},te.\u0275prov=y.Yz7({token:te,factory:te.\u0275fac});var ve={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Oe=/%COMP%/g,_e="_nghost-".concat("%COMP%"),ke="_ngcontent-".concat("%COMP%");function Mt(ut,Se,Ae){for(var Qe=0;Qe<Se.length;Qe++){var _t=Se[Qe];Array.isArray(_t)?Mt(ut,_t,Ae):(_t=_t.replace(Oe,ut),Ae.push(_t))}return Ae}function Nt(ut){return function(Se){if("__ngUnwrap__"===Se)return ut;!1===ut(Se)&&(Se.preventDefault(),Se.returnValue=!1)}}var en=function(){function ut(Se,Ae,Qe){(0,U.Z)(this,ut),this.eventManager=Se,this.sharedStylesHost=Ae,this.appId=Qe,this.rendererByCompId=new Map,this.defaultRenderer=new qt(Se)}return(0,S.Z)(ut,[{key:"createRenderer",value:function(Ae,Qe){if(!Ae||!Qe)return this.defaultRenderer;switch(Qe.encapsulation){case y.ifc.Emulated:var _t=this.rendererByCompId.get(Qe.id);return _t||(_t=new it(this.eventManager,this.sharedStylesHost,Qe,this.appId),this.rendererByCompId.set(Qe.id,_t)),_t.applyToHost(Ae),_t;case 1:case y.ifc.ShadowDom:return new vt(this.eventManager,this.sharedStylesHost,Ae,Qe);default:if(!this.rendererByCompId.has(Qe.id)){var Wt=Mt(Qe.id,Qe.styles,[]);this.sharedStylesHost.addStyles(Wt),this.rendererByCompId.set(Qe.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),ut}();en.\u0275fac=function(Se){return new(Se||en)(y.LFG($),y.LFG(te),y.LFG(y.AFp))},en.\u0275prov=y.Yz7({token:en,factory:en.\u0275fac});var qt=function(){function ut(Se){(0,U.Z)(this,ut),this.eventManager=Se,this.data=Object.create(null),this.destroyNode=null}return(0,S.Z)(ut,[{key:"destroy",value:function(){}},{key:"createElement",value:function(Ae,Qe){return Qe?document.createElementNS(ve[Qe]||Qe,Ae):document.createElement(Ae)}},{key:"createComment",value:function(Ae){return document.createComment(Ae)}},{key:"createText",value:function(Ae){return document.createTextNode(Ae)}},{key:"appendChild",value:function(Ae,Qe){Ae.appendChild(Qe)}},{key:"insertBefore",value:function(Ae,Qe,_t){Ae&&Ae.insertBefore(Qe,_t)}},{key:"removeChild",value:function(Ae,Qe){Ae&&Ae.removeChild(Qe)}},{key:"selectRootElement",value:function(Ae,Qe){var _t="string"==typeof Ae?document.querySelector(Ae):Ae;if(!_t)throw new Error('The selector "'.concat(Ae,'" did not match any elements'));return Qe||(_t.textContent=""),_t}},{key:"parentNode",value:function(Ae){return Ae.parentNode}},{key:"nextSibling",value:function(Ae){return Ae.nextSibling}},{key:"setAttribute",value:function(Ae,Qe,_t,Wt){if(Wt){Qe=Wt+":"+Qe;var vn=ve[Wt];vn?Ae.setAttributeNS(vn,Qe,_t):Ae.setAttribute(Qe,_t)}else Ae.setAttribute(Qe,_t)}},{key:"removeAttribute",value:function(Ae,Qe,_t){if(_t){var Wt=ve[_t];Wt?Ae.removeAttributeNS(Wt,Qe):Ae.removeAttribute("".concat(_t,":").concat(Qe))}else Ae.removeAttribute(Qe)}},{key:"addClass",value:function(Ae,Qe){Ae.classList.add(Qe)}},{key:"removeClass",value:function(Ae,Qe){Ae.classList.remove(Qe)}},{key:"setStyle",value:function(Ae,Qe,_t,Wt){Wt&(y.JOm.DashCase|y.JOm.Important)?Ae.style.setProperty(Qe,_t,Wt&y.JOm.Important?"important":""):Ae.style[Qe]=_t}},{key:"removeStyle",value:function(Ae,Qe,_t){_t&y.JOm.DashCase?Ae.style.removeProperty(Qe):Ae.style[Qe]=""}},{key:"setProperty",value:function(Ae,Qe,_t){Ae[Qe]=_t}},{key:"setValue",value:function(Ae,Qe){Ae.nodeValue=Qe}},{key:"listen",value:function(Ae,Qe,_t){return"string"==typeof Ae?this.eventManager.addGlobalEventListener(Ae,Qe,Nt(_t)):this.eventManager.addEventListener(Ae,Qe,Nt(_t))}}]),ut}();"@".charCodeAt(0);var it=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,vn){var Ln;(0,U.Z)(this,Ae),(Ln=Se.call(this,Qe)).component=Wt;var cr=Mt(vn+"-"+Wt.id,Wt.styles,[]);return _t.addStyles(cr),Ln.contentAttr=function Fe(ut){return ke.replace(Oe,ut)}(vn+"-"+Wt.id),Ln.hostAttr=function ct(ut){return _e.replace(Oe,ut)}(vn+"-"+Wt.id),Ln}return(0,S.Z)(Ae,[{key:"applyToHost",value:function(_t){(0,z.Z)((0,Y.Z)(Ae.prototype),"setAttribute",this).call(this,_t,this.hostAttr,"")}},{key:"createElement",value:function(_t,Wt){var vn=(0,z.Z)((0,Y.Z)(Ae.prototype),"createElement",this).call(this,_t,Wt);return(0,z.Z)((0,Y.Z)(Ae.prototype),"setAttribute",this).call(this,vn,this.contentAttr,""),vn}}]),Ae}(qt),vt=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,vn){var Ln;(0,U.Z)(this,Ae),(Ln=Se.call(this,Qe)).sharedStylesHost=_t,Ln.hostEl=Wt,Ln.shadowRoot=Wt.attachShadow({mode:"open"}),Ln.sharedStylesHost.addHost(Ln.shadowRoot);for(var cr=Mt(vn.id,vn.styles,[]),Rr=0;Rr<cr.length;Rr++){var $r=document.createElement("style");$r.textContent=cr[Rr],Ln.shadowRoot.appendChild($r)}return Ln}return(0,S.Z)(Ae,[{key:"nodeOrShadowRoot",value:function(_t){return _t===this.hostEl?this.shadowRoot:_t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(_t,Wt){return(0,z.Z)((0,Y.Z)(Ae.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(_t),Wt)}},{key:"insertBefore",value:function(_t,Wt,vn){return(0,z.Z)((0,Y.Z)(Ae.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(_t),Wt,vn)}},{key:"removeChild",value:function(_t,Wt){return(0,z.Z)((0,Y.Z)(Ae.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(_t),Wt)}},{key:"parentNode",value:function(_t){return this.nodeOrShadowRoot((0,z.Z)((0,Y.Z)(Ae.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(_t)))}}]),Ae}(qt),nt=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe){return(0,U.Z)(this,Ae),Se.call(this,Qe)}return(0,S.Z)(Ae,[{key:"supports",value:function(_t){return!0}},{key:"addEventListener",value:function(_t,Wt,vn){var Ln=this;return _t.addEventListener(Wt,vn,!1),function(){return Ln.removeEventListener(_t,Wt,vn)}}},{key:"removeEventListener",value:function(_t,Wt,vn){return _t.removeEventListener(Wt,vn)}}]),Ae}(ce);nt.\u0275fac=function(Se){return new(Se||nt)(y.LFG(D.K0))},nt.\u0275prov=y.Yz7({token:nt,factory:nt.\u0275fac});var Lt=["alt","control","meta","shift"],on={"\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"},_n={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},An={alt:function(Se){return Se.altKey},control:function(Se){return Se.ctrlKey},meta:function(Se){return Se.metaKey},shift:function(Se){return Se.shiftKey}},Gt=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe){return(0,U.Z)(this,Ae),Se.call(this,Qe)}return(0,S.Z)(Ae,[{key:"supports",value:function(_t){return null!=Ae.parseEventName(_t)}},{key:"addEventListener",value:function(_t,Wt,vn){var Ln=Ae.parseEventName(Wt),cr=Ae.eventCallback(Ln.fullKey,vn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,D.q)().onAndCancel(_t,Ln.domEventName,cr)})}}],[{key:"parseEventName",value:function(_t){var Wt=_t.toLowerCase().split("."),vn=Wt.shift();if(0===Wt.length||"keydown"!==vn&&"keyup"!==vn)return null;var Ln=Ae._normalizeKey(Wt.pop()),cr="";if(Lt.forEach(function($r){var Mr=Wt.indexOf($r);Mr>-1&&(Wt.splice(Mr,1),cr+=$r+".")}),cr+=Ln,0!=Wt.length||0===Ln.length)return null;var Rr={};return Rr.domEventName=vn,Rr.fullKey=cr,Rr}},{key:"getEventFullKey",value:function(_t){var Wt="",vn=function Zt(ut){var Se=ut.key;if(null==Se){if(null==(Se=ut.keyIdentifier))return"Unidentified";Se.startsWith("U+")&&(Se=String.fromCharCode(parseInt(Se.substring(2),16)),3===ut.location&&_n.hasOwnProperty(Se)&&(Se=_n[Se]))}return on[Se]||Se}(_t);return" "===(vn=vn.toLowerCase())?vn="space":"."===vn&&(vn="dot"),Lt.forEach(function(Ln){Ln!=vn&&((0,An[Ln])(_t)&&(Wt+=Ln+"."))}),Wt+=vn}},{key:"eventCallback",value:function(_t,Wt,vn){return function(Ln){Ae.getEventFullKey(Ln)===_t&&vn.runGuarded(function(){return Wt(Ln)})}}},{key:"_normalizeKey",value:function(_t){return"esc"===_t?"escape":_t}}]),Ae}(ce);Gt.\u0275fac=function(Se){return new(Se||Gt)(y.LFG(D.K0))},Gt.\u0275prov=y.Yz7({token:Gt,factory:Gt.\u0275fac});var ln=[{provide:y.Lbi,useValue:D.bD},{provide:y.g9A,useValue:function Et(){F.makeCurrent(),N.init()},multi:!0},{provide:D.K0,useFactory:function Ht(){return(0,y.RDi)(document),document},deps:[]}],yt=(0,y.eFA)(y._c5,"browser",ln),mt=[{provide:y.zSh,useValue:"root"},{provide:y.qLn,useFactory:function Ut(){return new y.qLn},deps:[]},{provide:W,useClass:nt,multi:!0,deps:[D.K0,y.R0b,y.Lbi]},{provide:W,useClass:Gt,multi:!0,deps:[D.K0]},{provide:en,useClass:en,deps:[$,te,y.AFp]},{provide:y.FYo,useExisting:en},{provide:se,useExisting:te},{provide:te,useClass:te,deps:[D.K0]},{provide:y.dDg,useClass:y.dDg,deps:[y.R0b]},{provide:$,useClass:$,deps:[W,y.R0b]},{provide:D.JF,useClass:R,deps:[]}],cn=function(){function ut(Se){if((0,U.Z)(this,ut),Se)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return(0,S.Z)(ut,null,[{key:"withServerTransition",value:function(Ae){return{ngModule:ut,providers:[{provide:y.AFp,useValue:Ae.appId},{provide:T,useExisting:y.AFp},x]}}}]),ut}();cn.\u0275fac=function(Se){return new(Se||cn)(y.LFG(cn,12))},cn.\u0275mod=y.oAB({type:cn}),cn.\u0275inj=y.cJS({providers:mt,imports:[D.ez,y.hGG]});var j=function(){function ut(Se){(0,U.Z)(this,ut),this._doc=Se,this._dom=(0,D.q)()}return(0,S.Z)(ut,[{key:"addTag",value:function(Ae){var Qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ae?this._getOrCreateElement(Ae,Qe):null}},{key:"addTags",value:function(Ae){var Qe=this,_t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ae?Ae.reduce(function(Wt,vn){return vn&&Wt.push(Qe._getOrCreateElement(vn,_t)),Wt},[]):[]}},{key:"getTag",value:function(Ae){return Ae&&this._doc.querySelector("meta[".concat(Ae,"]"))||null}},{key:"getTags",value:function(Ae){if(!Ae)return[];var Qe=this._doc.querySelectorAll("meta[".concat(Ae,"]"));return Qe?[].slice.call(Qe):[]}},{key:"updateTag",value:function(Ae,Qe){if(!Ae)return null;Qe=Qe||this._parseSelector(Ae);var _t=this.getTag(Qe);return _t?this._setMetaElementAttributes(Ae,_t):this._getOrCreateElement(Ae,!0)}},{key:"removeTag",value:function(Ae){this.removeTagElement(this.getTag(Ae))}},{key:"removeTagElement",value:function(Ae){Ae&&this._dom.remove(Ae)}},{key:"_getOrCreateElement",value:function(Ae){var Qe=this,_t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!_t){var Wt=this._parseSelector(Ae),vn=this.getTags(Wt).filter(function(Rr){return Qe._containsAttributes(Ae,Rr)})[0];if(void 0!==vn)return vn}var Ln=this._dom.createElement("meta");this._setMetaElementAttributes(Ae,Ln);var cr=this._doc.getElementsByTagName("head")[0];return cr.appendChild(Ln),Ln}},{key:"_setMetaElementAttributes",value:function(Ae,Qe){var _t=this;return Object.keys(Ae).forEach(function(Wt){return Qe.setAttribute(_t._getMetaKeyMap(Wt),Ae[Wt])}),Qe}},{key:"_parseSelector",value:function(Ae){var Qe=Ae.name?"name":"property";return"".concat(Qe,'="').concat(Ae[Qe],'"')}},{key:"_containsAttributes",value:function(Ae,Qe){var _t=this;return Object.keys(Ae).every(function(Wt){return Qe.getAttribute(_t._getMetaKeyMap(Wt))===Ae[Wt]})}},{key:"_getMetaKeyMap",value:function(Ae){return V[Ae]||Ae}}]),ut}();j.\u0275fac=function(Se){return new(Se||j)(y.LFG(D.K0))},j.\u0275prov=y.Yz7({token:j,factory:function(Se){return Se?new Se:function $t(){return new j((0,y.LFG)(D.K0))}()},providedIn:"root"});var V={httpEquiv:"http-equiv"};var wn=function(){function ut(Se){(0,U.Z)(this,ut),this._doc=Se}return(0,S.Z)(ut,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(Ae){this._doc.title=Ae||""}}]),ut}();wn.\u0275fac=function(Se){return new(Se||wn)(y.LFG(D.K0))},wn.\u0275prov=y.Yz7({token:wn,factory:function(Se){return Se?new Se:function Jn(){return new wn((0,y.LFG)(D.K0))}()},providedIn:"root"});function ue(ut,Se){"undefined"!=typeof COMPILED&&COMPILED||((y.dqk.ng=y.dqk.ng||{})[ut]=Se)}var We="undefined"!=typeof window&&window||{},lt=(0,S.Z)(function ut(Se,Ae){(0,U.Z)(this,ut),this.msPerTick=Se,this.numTicks=Ae}),Dt=function(){function ut(Se){(0,U.Z)(this,ut),this.appRef=Se.injector.get(y.z2F)}return(0,S.Z)(ut,[{key:"timeChangeDetection",value:function(Ae){var Qe=Ae&&Ae.record,_t="Change Detection",Wt=null!=We.console.profile;Qe&&Wt&&We.console.profile(_t);for(var vn=tn(),Ln=0;Ln<5||tn()-vn<500;)this.appRef.tick(),Ln++;var cr=tn();Qe&&Wt&&We.console.profileEnd(_t);var Rr=(cr-vn)/Ln;return We.console.log("ran ".concat(Ln," change detection cycles")),We.console.log("".concat(Rr.toFixed(2)," ms per check")),new lt(Rr,Ln)}}]),ut}();function tn(){return We.performance&&We.performance.now?We.performance.now():(new Date).getTime()}var Jt="profiler";function nn(ut){return ue(Jt,new Dt(ut)),ut}var Zn=function(){function ut(){(0,U.Z)(this,ut),this.store={},this.onSerializeCallbacks={}}return(0,S.Z)(ut,[{key:"get",value:function(Ae,Qe){return void 0!==this.store[Ae]?this.store[Ae]:Qe}},{key:"set",value:function(Ae,Qe){this.store[Ae]=Qe}},{key:"remove",value:function(Ae){delete this.store[Ae]}},{key:"hasKey",value:function(Ae){return this.store.hasOwnProperty(Ae)}},{key:"onSerialize",value:function(Ae,Qe){this.onSerializeCallbacks[Ae]=Qe}},{key:"toJson",value:function(){for(var Ae in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(Ae))try{this.store[Ae]=this.onSerializeCallbacks[Ae]()}catch(Qe){console.warn("Exception in onSerialize callback: ",Qe)}return JSON.stringify(this.store)}}],[{key:"init",value:function(Ae){var Qe=new ut;return Qe.store=Ae,Qe}}]),ut}();Zn.\u0275fac=function(Se){return new(Se||Zn)},Zn.\u0275prov=y.Yz7({token:Zn,factory:Zn.\u0275fac});var mn=(0,S.Z)(function ut(){(0,U.Z)(this,ut)});mn.\u0275fac=function(Se){return new(Se||mn)},mn.\u0275mod=y.oAB({type:mn}),mn.\u0275inj=y.cJS({providers:[{provide:Zn,useFactory:function jn(ut,Se){var Ae=ut.getElementById(Se+"-state"),Qe={};if(Ae&&Ae.textContent)try{Qe=JSON.parse(function Dn(ut){var Se={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return ut.replace(/&[^;]+;/g,function(Ae){return Se[Ae]})}(Ae.textContent))}catch(_t){console.warn("Exception while restoring TransferState for app "+Se,_t)}return Zn.init(Qe)},deps:[D.K0,y.AFp]}]});var Kt={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},tt=new y.OlP("HammerGestureConfig"),Ue=new y.OlP("HammerLoader"),Ee=function(){function ut(){(0,U.Z)(this,ut),this.events=[],this.overrides={}}return(0,S.Z)(ut,[{key:"buildHammer",value:function(Ae){var Qe=new Hammer(Ae,this.options);for(var _t in Qe.get("pinch").set({enable:!0}),Qe.get("rotate").set({enable:!0}),this.overrides)Qe.get(_t).set(this.overrides[_t]);return Qe}}]),ut}();Ee.\u0275fac=function(Se){return new(Se||Ee)},Ee.\u0275prov=y.Yz7({token:Ee,factory:Ee.\u0275fac});var He=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,vn){var Ln;return(0,U.Z)(this,Ae),(Ln=Se.call(this,Qe))._config=_t,Ln.console=Wt,Ln.loader=vn,Ln._loaderPromise=null,Ln}return(0,S.Z)(Ae,[{key:"supports",value:function(_t){return!(!Kt.hasOwnProperty(_t.toLowerCase())&&!this.isCustomEvent(_t)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(_t,Wt,vn){var Ln=this,cr=this.manager.getZone();if(Wt=Wt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var Rr=!1,$r=function(){Rr=!0};return this._loaderPromise.then(function(){window.Hammer?Rr||($r=Ln.addEventListener(_t,Wt,vn)):$r=function(){}}).catch(function(){$r=function(){}}),function(){$r()}}return cr.runOutsideAngular(function(){var Mr=Ln._config.buildHammer(_t),Hi=function(qi){cr.runGuarded(function(){vn(qi)})};return Mr.on(Wt,Hi),function(){Mr.off(Wt,Hi),"function"==typeof Mr.destroy&&Mr.destroy()}})}},{key:"isCustomEvent",value:function(_t){return this._config.events.indexOf(_t)>-1}}]),Ae}(ce);He.\u0275fac=function(Se){return new(Se||He)(y.LFG(D.K0),y.LFG(tt),y.LFG(y.c2e),y.LFG(Ue,8))},He.\u0275prov=y.Yz7({token:He,factory:He.\u0275fac});var bt=(0,S.Z)(function ut(){(0,U.Z)(this,ut)});bt.\u0275fac=function(Se){return new(Se||bt)},bt.\u0275mod=y.oAB({type:bt}),bt.\u0275inj=y.cJS({providers:[{provide:W,useClass:He,multi:!0,deps:[D.K0,tt,y.c2e,[new y.FiY,Ue]]},{provide:tt,useClass:Ee,deps:[]}]});var Yt=(0,S.Z)(function ut(){(0,U.Z)(this,ut)});Yt.\u0275fac=function(Se){return new(Se||Yt)},Yt.\u0275prov=y.Yz7({token:Yt,factory:function(Se){return Se?new(Se||Yt):y.LFG(rr)},providedIn:"root"});var rr=function(ut){(0,L.Z)(Ae,ut);var Se=(0,P.Z)(Ae);function Ae(Qe){var _t;return(0,U.Z)(this,Ae),(_t=Se.call(this))._doc=Qe,_t}return(0,S.Z)(Ae,[{key:"sanitize",value:function(_t,Wt){if(null==Wt)return null;switch(_t){case y.q3G.NONE:return Wt;case y.q3G.HTML:return(0,y.qzn)(Wt,"HTML")?(0,y.z3N)(Wt):(0,y.EiD)(this._doc,String(Wt)).toString();case y.q3G.STYLE:return(0,y.qzn)(Wt,"Style")?(0,y.z3N)(Wt):Wt;case y.q3G.SCRIPT:if((0,y.qzn)(Wt,"Script"))return(0,y.z3N)(Wt);throw new Error("unsafe value used in a script context");case y.q3G.URL:(0,y.yhl)(Wt);return(0,y.qzn)(Wt,"URL")?(0,y.z3N)(Wt):(0,y.mCW)(String(Wt));case y.q3G.RESOURCE_URL:if((0,y.qzn)(Wt,"ResourceURL"))return(0,y.z3N)(Wt);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(_t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(_t){return(0,y.JVY)(_t)}},{key:"bypassSecurityTrustStyle",value:function(_t){return(0,y.L6k)(_t)}},{key:"bypassSecurityTrustScript",value:function(_t){return(0,y.eBb)(_t)}},{key:"bypassSecurityTrustUrl",value:function(_t){return(0,y.LAX)(_t)}},{key:"bypassSecurityTrustResourceUrl",value:function(_t){return(0,y.pB0)(_t)}}]),Ae}(Yt);rr.\u0275fac=function(Se){return new(Se||rr)(y.LFG(D.K0))},rr.\u0275prov=y.Yz7({token:rr,factory:function(Se){return Se?new Se:function En(ut){return new rr(ut.get(D.K0))}(y.LFG(y.zs3))},providedIn:"root"});new y.GfV("13.3.11")},907:function(qe,J,m){"use strict";function z(Y,S){(null==S||S>Y.length)&&(S=Y.length);for(var U=0,L=new Array(S);U<S;U++)L[U]=Y[U];return L}m.d(J,{Z:function(){return z}})},3878:function(qe,J,m){"use strict";function z(Y){if(Array.isArray(Y))return Y}m.d(J,{Z:function(){return z}})},7326:function(qe,J,m){"use strict";function z(Y){if(void 0===Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}m.d(J,{Z:function(){return z}})},5671:function(qe,J,m){"use strict";function z(Y,S){if(!(Y instanceof S))throw new TypeError("Cannot call a class as a function")}m.d(J,{Z:function(){return z}})},5647:function(qe,J,m){"use strict";m.d(J,{Z:function(){return S}});var z=m(9611),Y=m(8814);function S(U,L,P){return(S=(0,Y.Z)()?Reflect.construct:function(y,K,F){var M=[null];M.push.apply(M,K);var k=new(Function.bind.apply(y,M));return F&&(0,z.Z)(k,F.prototype),k}).apply(null,arguments)}},3144:function(qe,J,m){"use strict";function z(S,U){for(var L=0;L<U.length;L++){var P=U[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(S,P.key,P)}}function Y(S,U,L){return U&&z(S.prototype,U),L&&z(S,L),Object.defineProperty(S,"prototype",{writable:!1}),S}m.d(J,{Z:function(){return Y}})},7762:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(181);function Y(S,U){var L="undefined"!=typeof Symbol&&S[Symbol.iterator]||S["@@iterator"];if(!L){if(Array.isArray(S)||(L=(0,z.Z)(S))||U&&S&&"number"==typeof S.length){L&&(S=L);var P=0,D=function(){};return{s:D,n:function(){return P>=S.length?{done:!0}:{done:!1,value:S[P++]}},e:function(O){throw O},f:D}}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 F,y=!0,K=!1;return{s:function(){L=L.call(S)},n:function(){var O=L.next();return y=O.done,O},e:function(O){K=!0,F=O},f:function(){try{!y&&null!=L.return&&L.return()}finally{if(K)throw F}}}}},9388:function(qe,J,m){"use strict";m.d(J,{Z:function(){return U}});var z=m(1120),Y=m(8814),S=m(245);function U(L){var P=(0,Y.Z)();return function(){var K,y=(0,z.Z)(L);if(P){var F=(0,z.Z)(this).constructor;K=Reflect.construct(y,arguments,F)}else K=y.apply(this,arguments);return(0,S.Z)(this,K)}}},4942:function(qe,J,m){"use strict";function z(Y,S,U){return S in Y?Object.defineProperty(Y,S,{value:U,enumerable:!0,configurable:!0,writable:!0}):Y[S]=U,Y}m.d(J,{Z:function(){return z}})},3237:function(qe,J,m){"use strict";m.d(J,{Z:function(){return S}});var z=m(1120);function Y(U,L){for(;!Object.prototype.hasOwnProperty.call(U,L)&&null!==(U=(0,z.Z)(U)););return U}function S(){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(L,P,D){var y=Y(L,P);if(y){var K=Object.getOwnPropertyDescriptor(y,P);return K.get?K.get.call(arguments.length<3?L:D):K.value}},S.apply(this,arguments)}},1120:function(qe,J,m){"use strict";function z(Y){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)})(Y)}m.d(J,{Z:function(){return z}})},136:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(9611);function Y(S,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(U&&U.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),U&&(0,z.Z)(S,U)}},8814:function(qe,J,m){"use strict";function z(){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(Y){return!1}}m.d(J,{Z:function(){return z}})},9199:function(qe,J,m){"use strict";function z(Y){if("undefined"!=typeof Symbol&&null!=Y[Symbol.iterator]||null!=Y["@@iterator"])return Array.from(Y)}m.d(J,{Z:function(){return z}})},5267:function(qe,J,m){"use strict";function z(){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(J,{Z:function(){return z}})},245:function(qe,J,m){"use strict";function z(U){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(U)}m.d(J,{Z:function(){return S}});var Y=m(7326);function S(U,L){if(L&&("object"===z(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return(0,Y.Z)(U)}},9611:function(qe,J,m){"use strict";function z(Y,S){return(z=Object.setPrototypeOf||function(L,P){return L.__proto__=P,L})(Y,S)}m.d(J,{Z:function(){return z}})},7685:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(3878);var S=m(181),U=m(5267);function L(P,D){return(0,z.Z)(P)||function Y(P,D){var y=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=y){var O,k,K=[],F=!0,M=!1;try{for(y=y.call(P);!(F=(O=y.next()).done)&&(K.push(O.value),!D||K.length!==D);F=!0);}catch(I){M=!0,k=I}finally{try{!F&&null!=y.return&&y.return()}finally{if(M)throw k}}return K}}(P,D)||(0,S.Z)(P,D)||(0,U.Z)()}},4506:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(3878),Y=m(9199),S=m(181),U=m(5267);function L(P){return(0,z.Z)(P)||(0,Y.Z)(P)||(0,S.Z)(P)||(0,U.Z)()}},4902:function(qe,J,m){"use strict";m.d(J,{Z:function(){return P}});var z=m(907);var S=m(9199),U=m(181);function P(D){return function Y(D){if(Array.isArray(D))return(0,z.Z)(D)}(D)||(0,S.Z)(D)||(0,U.Z)(D)||function L(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(907);function Y(S,U){if(S){if("string"==typeof S)return(0,z.Z)(S,U);var L=Object.prototype.toString.call(S).slice(8,-1);if("Object"===L&&S.constructor&&(L=S.constructor.name),"Map"===L||"Set"===L)return Array.from(S);if("Arguments"===L||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return(0,z.Z)(S,U)}}},5724:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(1120),Y=m(9611);var U=m(5647);function L(P){var D="function"==typeof Map?new Map:void 0;return L=function(K){if(null===K||!function S(P){return-1!==Function.toString.call(P).indexOf("[native code]")}(K))return K;if("function"!=typeof K)throw new TypeError("Super expression must either be null or a function");if(void 0!==D){if(D.has(K))return D.get(K);D.set(K,F)}function F(){return(0,U.Z)(K,arguments,(0,z.Z)(this).constructor)}return F.prototype=Object.create(K.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),(0,Y.Z)(F,K)},L(P)}},4147:function(qe){"use strict";qe.exports={i8:"3.0.0a3"}}},function(qe){var z;z=2427,qe(qe.s=z)}]);