diff --git a/README.md b/README.md
index 7f78d7e..bc50ab4 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,8 @@ FusionChartsModule.fcRoot(FusionCharts, Column2d, FusionTheme);
})
export class AppModule { }
```
+NOTE : If you are using angular 2, please refer [Rendering chart in Angular 2](#Rendering-chart-in-Angular-2)
+
Once the library is imported, you can use its components, directives in your Angular application:
@@ -103,6 +105,131 @@ export class AppComponent {
>
```
+## Listening to events
+Fusincharts events can be subscribed from component's output params.
+Usage in template :
+```xml
+
Ce?B.height-B.marginBottom-Ce+me/2:B.height-B.marginBottom-me/2,n-=B.borderWidth,n-=(V._manageActionBarSpace&&V._manageActionBarSpace(.225*x.availableHeight)||{}).bottom,q!==o&&void 0!==q&&_.showValue?(r={text:q,"text-anchor":I,x:U/2+j,y:n,"vertical-align":I,fill:K.color,direction:x.textDirection,"text-bound":[K.backgroundColor,K.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash]},F.graphics.label?(F.graphics.label.show(),F.graphics.label.animateWith(oe,re,{x:U/2+j,y:n},ee,te),F.graphics.label.attr({text:q,"text-anchor":I,"vertical-align":I,fill:K.color,direction:x.textDirection,"text-bound":[K.backgroundColor,K.borderColor,K.borderThickness,K.borderPadding,K.borderRadius,K.borderDash]})):F.graphics.label=X.text(r,ge),q=F.graphics.label.getBBox(),0>q.x+B.marginLeft&&(q=q.width-B.marginLeft,B.widthi&&(e=i),n&&t=h[L].minvalue&&Ce<=h[L].maxvalue){U=h[L].code||xe.getPlotColor(L),ke=L;break}for(h&&0 ke?we:we=_.code||xe.getPlotColor(L),P=c(n(o(_.bordercolor,D),fe),a(_.borderalpha,f)),I=xe.parseColorMix(_.code,e),E=xe.parseAlphaList(_.alpha,I.length),I=a(_.borderAlpha,f),O=E.split(m),O=y.apply(Math,O),O=y(S&&I||0,O),I={x:T.x,y:T.y,width:0>T.width?0:T.width,height:0>T.height?0:T.height,r:0,"stroke-width":0,stroke:P,fill:C({FCcolor:{color:D,ratio:r,alpha:E,angle:180}})},ne.colorRangeElems[L]?(ne.colorRangeElems[L].show(),ne.colorRangeElems[L].animateWith(ae,oe,{x:T.x,y:T.y,width:0>T.width?0:T.width,height:0>T.height?0:T.height,r:0},re,Q),ne.colorRangeElems[L].attr({"stroke-width":0,stroke:P,fill:C({FCcolor:{color:D,ratio:r,alpha:E,angle:180}})})):ne.colorRangeElems[L]=Z.rect(I,J).toBack(),ne.colorRangeElems[L].shadow({apply:q,opacity:O/100}),Te.push({"stroke-width":0,fill:C({FCcolor:{color:s(o(D,d),80)+m+l(o(D,d),80),alpha:a(_.alpha,100),angle:ye?90:0}})}),De.push({"stroke-width":0,fill:C({FCcolor:{color:o(D,d),alpha:a(_.alpha,100)}})});if(h&&0===h.length)for(L=0,A=ne.colorRangeElems.length;LA?s.height-s.marginBottom-A+h/2:s.height-s.marginBottom-h/2,h-=s.borderWidth,h-=(n._manageActionBarSpace&&n._manageActionBarSpace(.225*T.availableHeight)||{}).bottom,A=i.graphics,T.displayValue!==r&&void 0!==T.displayValue&&o.showValue?(w={text:T.displayValue,"text-anchor":f,x:g/2+l,y:h,"vertical-align":f,fill:I.color,direction:T.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]},A.label?(A.label.animateWith(L,_,{x:g/2+l,y:h},k,S),A.label.attr({text:T.displayValue,"text-anchor":f,"vertical-align":f,fill:I.color,direction:T.textDirection,"text-bound":[I.backgroundColor,I.borderColor,I.borderThickness,I.borderPadding,I.borderRadius,I.borderDash]})):A.label=m.text(w,D),o=A.label.getBBox(),0>o.x+s.marginLeft&&(o=o.width-s.marginLeft,s.width o&&(i=o-t),x+=o-i-t,c&&(p*=e),d?(f*=e,c?m+=p-f-s:p=s+f):c||(f=Math.max(a-1.766*g,3*g),p=s+f),{top:m,bottom:v+(s+a-p),left:b+i,right:x}},draw:function(){var e,t=this.config,o=this.chart,i=o.graphics.datalabelsGroup,n=o.get("graphics","trackerGroup"),s=this.graphics||(this.graphics={}),c=o.get("components","scale"),u=o.get("graphics","datasetGroup"),v=o.get(p),b=o.get("components","paper"),C=v.canvasLeft,k=v.canvasTop,S=v.canvasHeight,_=v.effectiveR||10,L=.643*_,A=v.use3DLighting,T=C+L,D=k-L,P=D+L,I=P+S,E=I+.766*_,O=r(t.value,c.getLimit().min),M=c.getPixel(O),c=.33*L,O=D+c,R=.9*L,F=L-c,V=_+R-L,N=T-L,B=T+L,j=T-F,F=T+F,H=T-R,W=T+R,G=parseInt(T-.6*L,10),L=T+L/2,z=E-Math.abs(Math.sqrt(V*V-R*R)),U=s.container,X=s.fluid,Y=s.topLightGlow,q=s.topLight,K=s.label,$=s.dataLabelContainer,K=s.canvasBorderElement,R=s.bulbBorderLight,J=s.bulbTopLight,Z=s.bulbCenterLight,Q=s.trackerContainer,ee=s.cylLeftLight,te=s.cylRightLight,re=s.cylLeftLight1,oe=s.cylRightLight1,Q=s.hotElement,ae=h(t.gaugeFillColor,A?70:80),ie=t.gaugeFillAlpha,ne=t.gaugeContainerColor,se=h(ne,80),ne=d(ne,80),le=t.gaugeBorderThickness,ce=t.gaugeBorderColor,he=t.showHoverEffect,de=t.plotFillHoverAlpha,ue=t.plotFillHoverColor,pe=o.get(p,g),ge=pe.animType,fe=pe.animObj,me=pe.dummyObj,ve=pe.duration,be=pe&&pe.duration,ye=v.canvasRight,xe=v.canvasBottom,we=v.canvasWidth,Ce=o.config.dataLabelStyle,pe=function(){o._animCallBack&&o._animCallBack()},ke=function(e,t,r,o){return"attr"===t?e.attr(r):e.animateWith(me,fe,r,ve,ge,o),e},Se=t.fluidAttr;Se||(Se=t.fluidAttr={}),he&&(Se.hover={fill:l(h(ue,A?70:80),de)}),Se.out={fill:l(ae,ie)},ie=["M",j,D,"A",c,c,0,0,0,N,O,"L",N,I,"A",_,_,0,1,0,B,I,"L",B,O,"A",c,c,0,0,0,F,D,"Z"],v.gaugeStartX=C,v.gaugeEndX=ye,v.gaugeStartY=k,v.gaugeEndY=xe,v.gaugeCenterX=C+.5*we,v.gaugeCenterY=k+.5*S,v.gaugeRadius=.5*we,v={value:t.value,displayValue:t.displayValue,toolText:t.toolText},U?be?(i=n="animate",e=pe):i=n="attr":(U=s.container=b.group("thermometer",u),K=s.canvasBorderElement=b.path(U),X=s.fluid=b.path(U).attr({"stroke-width":0}),q=s.topLight=b.path(U).attr({"stroke-width":1}),Y=s.topLightGlow=b.path(U).attr({"stroke-width":0}),R=s.bulbBorderLight=b.path(U).attr({"stroke-width":0,stroke:"#00FF00"}),J=s.bulbTopLight=b.path(U).attr({"stroke-width":0}),Z=s.bulbCenterLight=b.path(U).attr({"stroke-width":0}),ee=s.cylLeftLight=b.path(U).attr({"stroke-width":0}),te=s.cylRightLight=b.path(U).attr({"stroke-width":0}),re=s.cylLeftLight1=b.path(U).attr({"stroke-width":0}),oe=s.cylRightLight1=b.path(U).attr({"stroke-width":0}),Q=s.trackerContainer=b.group("col-hot",n),Q=s.hotElement=b.path({stroke:w,fill:w,ishot:!0},Q).click(function(e){y.call(this,o,e)}).hover(function(e){t.showHoverEffect&&s.fluid&&s.fluid.attr(Se.hover),y.call(this,o,e,"DataPlotRollOver")},function(e){t.showHoverEffect&&s.fluid&&s.fluid.attr(Se.out),y.call(this,o,e,"DataPlotRollOut")}),$=s.dataLabelContainer=b.group("datalabel",i),be?(n="animate",e=pe,X.attr({path:["M",H,z,"A",V,V,0,1,0,W,z,"L",W,z,H,z,"Z"]})):n="attr",i="attr"),ke(X,n,{path:["M",H,z,"A",V,V,0,1,0,W,z,"L",W,M,H,M,"Z"]},e).attr(Se.out),ke(K,i,{path:ie}).attr({"stroke-width":le,stroke:ce}),ke(q,i,{path:["M",H,P,"L",W,P]}).attr({stroke:l(ae,40)}),ke(Q,i,{path:ie}).tooltip(t.toolText),Q.data("eventArgs",v),t.showValue?(K=s.label)?ke(K.show(),i,{x:T,y:E+_+(t.valuePadding||0),fill:Ce.color,"text-bound":[Ce.backgroundColor,Ce.borderColor,Ce.borderThickness,Ce.borderPadding,Ce.borderRadius,Ce.borderDash]}).attr({text:t.displayValue}):(K=s.label=b.text({text:t.displayValue,x:T,y:E+_+(t.valuePadding||0),"text-anchor":m,"vertical-align":f,fill:Ce.color,"text-bound":[Ce.backgroundColor,Ce.borderColor,Ce.borderThickness,Ce.borderPadding,Ce.borderRadius,Ce.borderDash]},$),K.show()):(K=s.label)&&K.hide(),A?(ke(Y.show(),i,{path:["M",H,P,"L",W,P,W,O,H,O,"Z"]}).attr({fill:x({FCcolor:{color:ae+a+ae,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})}),b=["M",N,I,"A",_,_,0,0,1,B,I,"A",_,_,0,0,0,N,I,"A",_,_,0,1,0,B,I,"Z"],ke(R.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.5,cy:.5,r:"50%",color:se+a+ne,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),ke(J.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.3,cy:.1,r:"100%",color:ne+a+se,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),ke(Z.show(),i,{path:b}).attr({fill:x({FCcolor:{cx:.25,cy:.7,r:"100%",color:ne+a+se,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),ke(ee.show(),i,{path:["M",T,D,"L",j,D,"A",c,c,0,0,0,N,O,"L",N,I,T,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"50,0",ratio:"0,80",angle:0}})}),ke(te.show(),i,{path:["M",N,D,"L",F,D,"A",c,c,0,0,1,B,O,"L",B,I,N,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se+a+se,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),ke(re.show(),i,{path:["M",G,O,"L",N,O,N,I,G,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"60,0",ratio:"0,100",angle:180}})}),ke(oe.show(),i,{path:["M",G-.01,O,"L",L,O,L,I,G-.01,I,"Z"]}).attr({fill:x({FCcolor:{color:ne+a+se,alpha:"60,0",ratio:"0,100",angle:0}})})):(Y.hide(),R.hide(),J.hide(),Z.hide(),ee.hide(),te.hide(),re.hide(),oe.hide()),e||pe()},getDataLimits:function(){var e,t,r=this.config;return t=e=r.value,r.maxValue=t,r.minValue=e,{forceMin:!0,forceMax:!0,max:t,min:e}},updateData:function(e,t,r){t=this.config;var o=t.maxValue,a=t.prevMin,i=t.value,n=this.chart,s=this.groupManager||this,l=n.components.scale;this.setValue(e.data[0]),t.maxValue=i,t.minValue=i,t.maxValue===o&&t.minValue===a||(this.maxminFlag=!0),r&&(n._setAxisLimits(),l.draw(),s.draw())},addData:function(){},removeData:function(){}}])}]),e.register("module",["private","modules.renderer.js-dataset-cylinder",function(){var t=this.hcLib,r=t.preDefStr,o=t.COMMASTRING,a=t.plotEventHandler,i=r.configStr,n=r.animationObjStr,s=Math,l=s.max,c=s.min,h=t.graphics.convertColor,d=t.toRaphaelColor,u=t.graphics.getDarkColor,s=this.window,p="rgba(192,192,192,"+(/msie/i.test(s.navigator.userAgent)&&!s.opera?.002:1e-6)+")",g=r.POSITION_TOP,f=r.POSITION_MIDDLE,m=t.pluckNumber,v=t.graphics.getLightColor;e.register("component",["dataset","cylinder",{_manageSpace:function(){var e,t=this.chart.config,r=t.canvasWidth,o=t.canvasHeight,a=t.canvasLeft,i=t.canvasTop,n=t.canvasRight,s=t.xDefined,h=t.yDefined,d=t.rDefined,u=t.hDefined,p=t.gaugeOriginX,g=t.gaugeOriginY,f=t.gaugeRadius,v=t.gaugeHeight,b=t.gaugeYScale;e=t.origW;var y=t.origH,x=t.width,w=t.height,y=m(y,w);e=m(e,x),e=y&&e?e/x==y/w?x/e:Math.min(x/e,w/y):1;var C,k=w=x=y=0;return C=this._getLabelSpace(),o-=C,x+=C,f=d?f*e:l(c(r,1.2*o)/2,5),t.effectiveR=f,t=2*f,b*=f,y+=b,i+=b,o-=2*b,s?a=p*e-f-a:(a=(n-a)/2-f)+t>r&&(a=r-t),k+=r-a-t,h&&(g*=e),u?(v*=e,h?y+=g-v-i:g=i+v):h||(g=i+o),x=x+b+(i+o-g),{top:y,bottom:x+8,left:w+a,right:k}},draw:function(){var e,t=this.config,r=this.chart,s=this.graphics||(this.graphics={}),c=r.graphics,b=c.datalabelsGroup,y=c.trackerGroup,x=c.datasetGroup,c=s.fluidTop,w=s.fluid,C=s.cylinterTop,k=s.frontLight1,S=s.frontLight,_=s.front,L=s.back,A=s.btnBorderLight,T=s.btnBorder1,D=s.btnBorder,P=s.label,I=s.dataLabelContainer,P=s.trackerContainer,P=s.hotElement,E=r.components,O=E.scale,M=r.config,E=E.paper,R=M.canvasLeft,F=M.canvasTop,V=M.canvasHeight,N=M.effectiveR||40,B=m(t.value,O.getLimit().min),j=O.getPixel(B),O=R+N,B=r.config.dataLabelStyle,H=t.gaugeFillColor,W=u(H,70),G=v(H,70),z=u(W,90),U=M.gaugeFillAlpha,X=t.gaugeContainerColor,H=u(X,80),Y=u(X,90),q=v(X,80),K=s.container,X=N*M.gaugeYScale,$=N-1.5,J=F+V,Z=O-N,Q=O+N,ee=Z+1.5,te=Q-1.5,re=Z-2,oe=Q+2,ae=N+2,ie=X+2,ne=J+4,se=ne+.001,le=.85*N,ce=O-le,he=O+le,le=Math.sqrt((1-le*le/(N*N))*X*X),de=F+le,ue=J+le,le=F-1,pe=M.use3DLighting,ge=t.showHoverEffect,fe=t.plotFillHoverAlpha,me=t.plotFillHoverColor,ve=r.get(i,n),be=ve.animType,ye=ve.animObj,xe=ve.dummyObj,we=ve.duration,Ce=ve&&ve.duration,ve=function(){r._animCallBack&&r._animCallBack()},ke=function(e,t,r,o){return"attr"===t?e.attr(r):e.animateWith(xe,ye,r,we,be,o),e},Se=t.fluidAttr,_e=M.canvasRight,Le=M.canvasBottom,Ae=M.canvasWidth,Te=h(H,50);M.gaugeStartX=R,M.gaugeEndX=_e,M.gaugeStartY=F,M.gaugeEndY=Le,M.gaugeCenterX=R+.5*Ae,M.gaugeCenterY=F+.5*V,M.gaugeRadius=.5*Ae,Se||(Se=t.fluidAttr={}),M={value:t.value,displayValue:t.displayValue,toolText:t.toolText},K?Ce?(b=y="animate",e=ve):b=y="attr":(K=s.container=E.group("thermometer",x),D=s.btnBorder=E.path(K).attr({"stroke-width":4}),T=s.btnBorder1=E.path(K).attr({"stroke-width":4}),A=s.btnBorderLight=E.path(K).attr({"stroke-width":0}),L=s.back=E.path(K).attr({"stroke-width":1}),w=s.fluid=E.path(K).attr({"stroke-width":0}),c=s.fluidTop=E.path(K).attr({"stroke-width":2}),_=s.front=E.path(K).attr({"stroke-width":1}),S=s.frontLight=E.path(K).attr({"stroke-width":0}),k=s.frontLight1=E.path(K).attr({"stroke-width":0}),C=s.cylinterTop=E.path(K).attr({"stroke-width":2}),P=s.trackerContainer=E.group("col-hot",y),P=s.hotElement=E.path({stroke:p,fill:p,ishot:!0},P).click(function(e){a.call(this,r,e)}).hover(function(e){t.showHoverEffect&&(s.fluid&&s.fluid.attr(Se.bodyHover),s.fluidTop&&s.fluidTop.attr(Se.topHover)),a.call(this,r,e,"DataPlotRollOver")},function(e){t.showHoverEffect&&(s.fluid&&s.fluid.attr(Se.bodyOut),s.fluidTop&&s.fluidTop.attr(Se.topOut)),a.call(this,r,e,"DataPlotRollOut")}),I=s.dataLabelContainer=E.group("datalabel",b),Ce?(y="animate",e=ve,w.attr({path:["M",Z,J,"A",N,l(X,1),0,0,0,Q,J,"L",Q,J,"A",N,l(X,1),0,0,1,Z,J,"Z"]}),c.attr({path:["M",ee,J,"A",$,X,0,0,0,te,J,"L",te,J,"A",$,X,0,0,0,ee,J,"Z"]})):y="attr",b="attr"),pe?(x=q+o+H+o+q+o+H+o+Y+o+Y+o+H+o+q,R=d({FCcolor:{cx:.5,cy:0,r:"100%",color:G+o+W,alpha:U+o+U,ratio:"0,100",radialGradient:!0}}),Y=d({FCcolor:{cx:.5,cy:.7,r:"100%",color:G+o+W,alpha:U+o+U,ratio:"0,100",radialGradient:!0}}),z=h(G,U),G=q+o+H+o+q+o+q+o+H+o+q+o+H+o+q,S.show().attr({fill:d({FCcolor:{color:G,alpha:"40,0",ratio:"0,100",angle:0}})}),ke(S,b,{path:["M",Z,J,"A",N,X,1,0,0,ce,ue,"L",ce,de,"A",N,X,0,0,1,Z,F,"Z"]}),k.show().attr({fill:d({FCcolor:{color:G,alpha:"40,0",ratio:"0,100",angle:180}})}),ke(k,b,{path:["M",he,ue,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,1,0,0,he,de,"Z"]})):(x=q+o+H+o+H+o+H+o+H+o+H+o+H+o+q,Y=R=h(W,U),z=h(z),G=H+o+H+o+H+o+H+o+H+o+H+o+H+o+H,S.hide(),k.hide()),Se.bodyOut={fill:R},Se.topOut={stroke:z,fill:Y},ge&&(k=u(me,70),S=v(me,70),ce=u(k,90),pe?(Se.bodyHover={fill:d({FCcolor:{cx:.5,cy:0,r:"100%",color:S+o+k,alpha:fe+o+fe,ratio:"0,100",radialGradient:!0}})},Se.topHover={stroke:h(S,fe),fill:d({FCcolor:{cx:.5,cy:.7,r:"100%",color:S+o+k,alpha:fe+o+fe,ratio:"0,100",radialGradient:!0}})}):(Se.bodyHover={fill:h(k,fe)},Se.topHover={stroke:h(ce),fill:h(k,fe)})),w.attr(Se.bodyOut),c.attr(Se.topOut),ke(w,y,{path:["M",Z,J,"A",N,l(X,1),0,0,0,Q,J,"L",Q,j,"A",N,l(X,1),0,0,1,Z,j,"Z"]},e),ke(c,y,{path:["M",ee,j,"A",$,X,0,0,0,te,j,"L",te,j,"A",$,X,0,0,0,ee,j,"Z"]}),D.attr({stroke:h(H,80)}),ke(D,b,{path:["M",re,ne,"A",ae,ie,0,0,0,oe,ne,"L",oe,se,"A",ae,ie,0,0,0,re,se,"Z"]}),T.attr({stroke:Te}),ke(T,b,{path:["M",Z,ne,"A",N,X,0,0,0,Q,ne,"L",Q,se,"A",N,X,0,0,0,Z,se,"Z"]}),A.attr({fill:d({FCcolor:{color:q+o+H+o+q+o+q+o+H+o+W+o+H+o+q,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),ke(A,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"A",N,X,0,0,0,Z,J,"Z"]}),L.attr({stroke:Te,fill:d({FCcolor:{color:x,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})}),ke(L,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,0,0,0,Z,F,"Z"]}),_.attr({stroke:Te,fill:d({FCcolor:{color:G,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})}),ke(_,b,{path:["M",Z,J,"A",N,X,0,0,0,Q,J,"L",Q,F,"A",N,X,0,0,1,Z,F,"Z"]}),C.attr({stroke:h(H,40)}),ke(C,b,{path:["M",Z,le,"A",N,X,0,0,0,Q,le,"L",Q,le,"A",N,X,0,0,0,Z,le,"Z"]}),ke(P,b,{path:["M",Z,J,Z,ne+4,"A",N,X,0,0,0,Q,ne+4,"L",Q,J,Q,F,"A",N,X,0,0,0,Z,F,"Z"]}).tooltip(t.toolText),P.data("eventArgs",M),t.showValue?(P=s.label)?(P.show().attr({text:t.displayValue}),ke(P,b,{x:O,y:J+X+(t.valuePadding||0)+8,fill:B.color,"text-bound":[B.backgroundColor,B.borderColor,B.borderThickness,B.borderPadding,B.borderRadius,B.borderDash]})):(P=s.label=E.text({text:t.displayValue,x:O,y:J+X+(t.valuePadding||0)+8,"text-anchor":f,"vertical-align":g,fill:B.color,"text-bound":[B.backgroundColor,B.borderColor,B.borderThickness,B.borderPadding,B.borderRadius,B.borderDash]},I),P.show()):(P=s.label)&&P.hide(),e||ve()}},"thermometer"])}]),e.register("module",["private","modules.renderer.js-dataset-angulargauge",function(){var t=this,r=t.hcLib,o=r.Raphael,a=r.BLANKSTRING,i=r.pluck,n=r.toPrecision,s=r.getValidValue,l=r.pluckNumber,c=r.hasSVG,h=r.getFirstValue,d=r.graphics.convertColor,u=r.preDefStr,p=u.configStr,g=u.animationObjStr,f=r.getDashStyle,m=r.parseTooltext,v=r.COMMASTRING,b=r.ZEROSTRING,y=r.parseUnsafeString,x=t.window,u=Math,w=u.abs,C=u.atan2,u=u.PI,k=2*u,S=u/180,_=r.toRaphaelColor,L=void 0!==x.document.documentElement.ontouchstart,A=r.getPosition,T=r.plotEventHandler,D=function(e){return void 0!==e&&null!==e},P=r.setLineHeight,I=r.HUNDREDSTRING,E=function(){return function(e,t,r){var a,i,n=this,s=this._Attr,l=o.vml?-1.5:0,c=o.vml?-1.5:0;if(s||(s=n._Attr={}),"string"==typeof e&&D(t)&&(a=e,e={},e[a]=t),"string"==typeof e||void 0===e)n="angle"==e?n._Attr[e]:n._attr(e);else for(a in e)t=e[a],"angle"===a?(s[a]=t,i=t*S,s.tooltipPos[0]=s.cx+s.toolTipRadius*Math.cos(i),s.tooltipPos[1]=s.cy+s.toolTipRadius*Math.sin(i),s.prevValue=t,r&&r.duration?n.animate({transform:"R"+t+v+l+v+c},r.duration,"easeIn"):n.attr({transform:"R"+t+v+l+v+c})):n._attr(a,t);return n}};e.register("component",["dataset","angulargauge",{type:"angulargauge",pIndex:2,customConfigFn:"_createDatasets",init:function(){this.components=this.components||{},this.idMap={},this.configure()},configure:function(){var e,t,o,n,u=this.chart,p=u.config,g=u.jsonData,m=g.chart,y=g.pointers||g.dials,x=y.pointer||y.dial,w=this.components.data||(this.components.data=[]),g=u.components,C=g.scale,g=g.colorManager,k=this.config||(this.config={}),_=l(m.gaugescaleangle,180),L=l(m.gaugestartangle),A=l(m.gaugeendangle),T=D(L),E=c?.001:.01,O=D(A);for(o=p.displayValueCount=0,n=x.length;o _)&&(_=0<_?360:-360),(360A)&&(A%=360),(360 L)&&(L%=360),T&&O?(360<(_=L-A)||-360>_)&&(_%=360,A=L-_):T?(360<(A=L-_)||-360>A)&&(A%=360,L+=0L)&&(L%=360,A+=0 r?k+r:r-k,r=n.config.dragStartY-r*Ze,o=n.config.dragStartY-o*Ze,(r Ye)&&o>=Xe&&o<=Ye&&(r=o),r Ye&&(r=w(r-Ye) =Xe&&Z<=Ye&&($=(Z-Xe)/$e*Je,R=(He+$)/S,F.attr({angle:R},null,e),ze&&xe!==a?(F.tooltip(xe),F.trackTooltip(!0)):F.trackTooltip(!1)),pt+=1,D(ee)&&ee!==a&&(Ce=je+(nt?it/2+be+2:-it/2-be-2),ke=re,Se=l(ye,Be),D(ke)||(ke=nt?Ce+it*ut:Ce-it*ut),Oe.dataLabel[tt]?(Oe.dataLabel[tt].attr({text:ee,title:u.originalText||a,fill:rt.color,"text-bound":[rt.backgroundColor,rt.borderColor,rt.borderThickness,rt.borderPadding,rt.borderRadius,rt.borderDash]}).css(ot).tooltip(u.originalText),Oe.dataLabel[tt].animateWith(ct,ht,{x:Se,y:ke},lt,dt)):Oe.dataLabel[tt]=Fe.text(Ke).attr({x:Se,y:ke,text:ee,direction:De.textDirection,fill:rt.color,"text-bound":[rt.backgroundColor,rt.borderColor,rt.borderThickness,rt.borderPadding,rt.borderRadius,rt.borderDash]}).css(ot).tooltip(u.originalText),ut+=1);for(tt=pt,mt=Oe.pointersPath.length;tt e&&(h=e)),t.heightUsed=h,{top:0,bottom:h}},configure:function(){var e=s({},this.JSONData),t=this.chart,a=this.config,i=t.config,n=t.jsonData.chart;r(n.is3d,1),r(n.showtooltip,1),this.__setDefaultConfig(),f(e,a,t.config,{data:!0}),r(n.is3d,1),a.origW=r(n.origw,i.autoscale?t.origRenderWidth:i.width||t.origRenderWidth),a.origH=r(n.origh,i.autoscale?t.origRenderHeight:i.height||t.origRenderHeight),r(n.showtooltip,1),a.setToolText=h(m(o(n.plottooltext,void 0))),a.useColorNameAsValue=r(n.usecolornameasvalue,0),a.enableAnimation=e=r(n.animation,n.defaultanimation,1),a.animation=!!e&&{duration:1e3*r(n.animationduration,1)},a.showValue=r(n.showvalue,1),this._setConfigure()},_setConfigure:function(e){var n=this.chart,s=this.config,c=n.config,g=this.JSONData,f=e||g.data,m=f&&f.length,m=e&&e.data.length||m,v=n.jsonData.chart,b=n.components.colorManager,y=r(v.showtooltip,1),x=t.parseUnsafeString;x(o(v.tooltipsepchar,i));var w,C,k,S,_,L,A,T,D,P,I,E,O,M,R,F,V,N,B,j,H,W,G=t.parseTooltext,z=c.showhovereffect,U=this.components.data,X=r(v.is3d,1),Y=n.components.numberFormatter,q=function(e,t,r){return r?{FCcolor:{cx:.4,cy:.4,r:"80%",color:p(e,65)+a+p(e,75)+a+u(e,65),alpha:t+a+t+a+t,ratio:"0,30,70",radialGradient:!0}}:d(e,t)};for(U||(U=this.components.data=[]),L=0;L h&&!Q&&(p=te,te=ie?180-te:360-te),R.colorArr=c=t.graphics.getColumnColor(z,b,x,te,Q,F.plotBorderColor,k,ie?1:0,!!ne),h=a(X(o(g.tooltext,g.label))),0!==ee&&(S=o(g.hovercolor,V.hovercolor,j.plotfillhovercolor,j.columnhovercolor,z),_=o(g.hoveralpha,V.hoveralpha,j.plotfillhoveralpha,j.columnhoveralpha,b),L=o(g.hovergradientcolor,V.hovergradientcolor,j.plothovergradientcolor,F.plotgradientcolor),!L&&(L=r),A=o(g.hoverratio,V.hoverratio,j.plothoverratio,x),T=i(360-g.hoverangle,360-V.hoverangle,360-j.plothoverangle,te),D=o(g.borderhovercolor,V.borderhovercolor,j.plotborderhovercolor,F.plotBorderColor),k=o(g.borderhoveralpha,V.borderhoveralpha,j.plotborderhoveralpha,k,b),b=i(g.borderhoverthickness,V.borderhoverthickness,j.plotborderhoverthickness,Z),P=i(g.borderhoverdashed,V.borderhoverdashed,j.plotborderhoverdashed),I=i(g.borderhoverdashgap,V.borderhoverdashgap,j.plotborderhoverdashgap,void 0),E=i(g.borderhoverdashlen,V.borderhoverdashlen,j.plotborderhoverdashlen,v),P=P?oe(E,I,b):u,1==ee&&S===z&&(S=s(S,70)),z=t.graphics.getColumnColor(S+C+L,_,A,T,Q,D,k.toString(),ie?1:0,!!ne),R.setRolloutAttr={fill:ne?[y(c[0]),!F.use3DLighting]:y(c[0]),stroke:G&&y(c[1]),"stroke-width":Z,"stroke-dasharray":u},R.setRolloverAttr={fill:ne?[y(z[0]),!F.use3DLighting]:y(z[0]),stroke:G&&y(z[1]),"stroke-width":b,"stroke-dasharray":P}),c=R.toolTipValue,z=a(X(o(g.tooltext,V.plottooltext,j.plottooltext))),U?null===c?g=!1:void 0!==z?(u=[1,2,3,4,5,6,7],h={yaxisName:Y,xaxisName:q,formattedValue:c,label:h},g=J(z,u,h,g,j,V)):($&&(d=n(V&&V.seriesname)),g=d?d+K:r,g+=h?h+K:r):g=!1,R.toolText=g,R.setTooltext=g,p&&(te=p),M++;F.maxValue=se,F.minValue=le},init:function(e){var t=this.chart;if(!e)return!1;this.JSONData=e,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===i(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure(),this.config.showLegend&&this._addLegend()},_addLegend:function(){var e,t,r,o,a=this.chart,n=a.jsonData.chart,l=this.JSONData.data,c=this.components.data;for(t=0;t e&&(h.duration=e),l&&this._setRTmenu()},_setRealTimeCategories:function(){var e=this.components.xAxis[0],t=[],r=this.config.realTimeConfig,o=r&&r.clear?void 0:this.jsonData.categories&&this.jsonData.categories[0]&&this.jsonData.categories[0].category,a=e.getCategoryLen(),r=r.numDisplaySets,a=e.getCategoryLen();a r&&(o.splice(r,a-r),e.setCategory(o))},_realTimeValuePositioning:function(e){var r,o=this.components,a=this.linkedItems.smartLabel;r=this.config;var i=r.realTimeConfig||(r.realTimeConfig={}),n=i.realTimeValuePadding,o=o.xAxis[0].config,s=o.trend.trendStyle,o=i.style={color:l(p(i.realtimeValueFontColor,s.color),p(o.trendlineAlpha,99)),fontFamily:p(i.realtimeValueFont,s.fontFamily),fontSize:p(i.realtimeValueFontSize,s.fontSize),fontWeight:p(i.fontWeight,s.fontWeight),lineHeight:g(s.lineHeight)};return a.useEllipsesOnOverflow(r.useEllipsesWhenOverflow),a.setStyle(o),i.height=a=a.getOriSize(t.TESTSTR).height,i.canvasBottom=r.canvasBottom,r=a+n,r>e&&(r=e),{bottom:r}},_drawRealTimeValue:function(){var e,t=this.components,r=this.config,a=t.dataset,i=t.paper,n=this.linkedItems.smartLabel,s=r.realTimeConfig,l=s.realtimeValueSeparator,c=a.length,p=o,g=this.get(u,h),f=g.animObj,m=g.dummyObj,g=g.duration,v=s.canvasBottom,b=s.height,y=r.canvasLeft,x=r.canvasRight,w=s.style||{},t=t.realTimeValue||(t.realTimeValue={}),C=t.graphics,k=this.graphics,S=k.parentGroup,_=k.realTimeValueGroup;if(s.clear&&t.graphics&&t.graphics.attr({text:o}),_){for(s=0;s s&&a[0].removeData(s-1,o-s,!1),a[0].JSONData=i,a[0].configure()):(o=new r,a.push(o),o.chart=this,s&&s.addDataSet(o,0,0),o.init(i)))},_createAxes:function(){var t=this.components,r=e.register("component",["axis","gauge"]);t.scale=t=new r,t.chart=this,t.init()}},t.axisgaugebase)}]),e.register("module",["private","modules.renderer.js-vbullet",function(){var t=this.hcLib,r=t.pluck,o=t.pluckNumber,a=t.chartAPI,i=t.pluckFontSize;a("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!t.CREDIT_REGEX.test(this.window.location.hostname),defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,standaloneInit:!0,hasCanvas:!0,singleseries:!0,isHorizontal:!1,isAxisOpposite:!1,isAxisReverse:!1,defaultDatasetType:"bullet",applicableDSList:{bullet:!0},defaultPaletteOptions:{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},_createAxes:function(){var t=this.components,r=e.register("component",["axis","gauge"]);t.scale=t=new r,t.chart=this,t.init()},_feedAxesRawData:function(){var e=this.components,a=e.colorManager,n=this.jsonData.chart,s=t.chartPaletteStr.chart2D,l=o(n.ticksbelowgraph,1),l=o(n.ticksonright,n.axisontop,void 0!==n.axisonleft?!o(n.axisonleft):void 0,!l,this.isAxisOpposite),a={outCanfontFamily:r(n.outcnvbasefont,n.basefont,"Verdana,sans"),outCanfontSize:i(n.outcnvbasefontsize,n.basefontsize,10),outCancolor:r(n.outcnvbasefontcolor,n.basefontcolor,a.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:n.useellipseswhenoverflow,divLineColor:r(n.vdivlinecolor,a.getColor(s.divLineColor)),divLineAlpha:r(n.vdivlinealpha,a.getColor("divLineAlpha")),divLineThickness:o(n.vdivlinethickness,1),divLineIsDashed:!!o(n.vdivlinedashed,n.vdivlineisdashed,0),divLineDashLen:o(n.vdivlinedashlen,4),divLineDashGap:o(n.vdivlinedashgap,2),showAlternateGridColor:o(n.showalternatevgridcolor,0),alternateGridColor:r(n.alternatevgridcolor,a.getColor("altVGridColor")),alternateGridAlpha:r(n.alternatevgridalpha,a.getColor("altVGridAlpha")),numDivLines:n.numvdivlines,labelFont:n.labelfont,labelFontSize:n.labelfontsize,labelFontColor:n.labelfontcolor,labelFontAlpha:n.labelalpha,labelFontBold:n.labelfontbold,labelFontItalic:n.labelfontitalic,axisName:n.xaxisname,axisMinValue:n.lowerlimit,axisMaxValue:n.upperlimit,setAdaptiveMin:n.setadaptivexmin,adjustDiv:n.adjustvdiv,labelDisplay:n.labeldisplay,showLabels:n.showlabels,rotateLabels:n.rotatelabels,slantLabel:o(n.slantlabels,n.slantlabel),labelStep:o(n.labelstep,n.xaxisvaluesstep),showAxisValues:o(n.showxaxisvalues,n.showxaxisvalue),showDivLineValues:o(n.showvdivlinevalues,n.showvdivlinevalues),showZeroPlane:n.showvzeroplane,zeroPlaneColor:n.vzeroplanecolor,zeroPlaneThickness:n.vzeroplanethickness,zeroPlaneAlpha:n.vzeroplanealpha,showZeroPlaneValue:n.showvzeroplanevalue,trendlineColor:n.trendlinecolor,trendlineToolText:n.trendlinetooltext,trendlineThickness:n.trendlinethickness,trendlineAlpha:n.trendlinealpha,showTrendlinesOnTop:n.showtrendlinesontop,showAxisLine:o(n.showxaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:o(n.xaxislinethickness,n.axislinethickness,1),axisLineAlpha:o(n.xaxislinealpha,n.axislinealpha,100),axisLineColor:r(n.xaxislinecolor,n.axislinecolor,"#000000"),majorTMNumber:n.majortmnumber,majorTMColor:n.majortmcolor,majorTMAlpha:n.majortmalpha,majorTMHeight:n.majortmheight,tickValueStep:n.tickvaluestep,showTickMarks:n.showtickmarks,connectTickMarks:n.connecttickmarks,showTickValues:n.showtickvalues,majorTMThickness:n.majortmthickness,upperlimit:e.numberFormatter.getCleanValue(n.upperlimit),lowerlimit:e.numberFormatter.getCleanValue(n.lowerlimit),reverseScale:n.reversescale,showLimits:o(n.showlimits,n.showtickmarks),adjustTM:n.adjusttm,minorTMNumber:o(n.minortmnumber,0),minorTMColor:n.minortmcolor,minorTMAlpha:n.minortmalpha,minorTMHeight:o(n.minortmheight,n.minortmwidth),minorTMThickness:n.minortmthickness,tickMarkDistance:o(n.tickmarkdistance,n.tickmarkgap),tickValueDistance:o(n.tickvaluedistance,n.displayvaluedistance),placeTicksInside:n.placeticksinside,placeValuesInside:n.placevaluesinside,upperLimitDisplay:n.upperlimitdisplay,lowerLimitDisplay:n.lowerlimitdisplay},e=e.scale;e.chart=this,e.setCommonConfigArr(a,!this.isHorizontal,!1,l),e.configure()},_drawCanvas:function(){}},a.vled)}]),e.register("module",["private","modules.renderer.js-hled",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("hled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,isHorizontal:!0,isAxisOpposite:!1,creditLabel:t},e.vled)}]),e.register("module",["private","modules.renderer.js-hlineargauge",function(){var t=this.hcLib,r=t.pluck,o=t.getValidValue,a=t.BLANKSTRING,i=t.getDashStyle,n=t.getFirstValue,s=t.parseUnsafeString,l=t.preDefStr,c=l.animationObjStr,h=l.configStr,d=t.pluckNumber,u=t.getFirstDefinedValue,p=t.graphics.convertColor,g=t.getColorCodeString,f=t.COMMASTRING,m=Math.max,v=t.toRaphaelColor,b=t.priorityList,y=t.schedular,x=l.POSITION_TOP,w=l.POSITION_BOTTOM,l=!t.CREDIT_REGEX.test(this.window.location.hostname),C=t.chartAPI;C("hlineargauge",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Horizontal Linear Gauge",creditLabel:l,defaultDatasetType:"hlineargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,minorTMNumber:4,isRealTime:!0,colorRange:!0,applicableDSList:{hlineargauge:!0},rtParserModify:!0,_drawCanvas:function(){var e,t,o,a,i,n,s,l=this.components,b=this.config,y=this.graphics.datasetGroup,C=b.canvasWidth,k=b.canvasHeight,S=b.canvasTop,_=b.canvasLeft,L=l.scale,A=L.config.axisRange.min,T=L.config.axisRange.max,D=this.jsonData,L=D.chart,P=D.trendpoints&&D.trendpoints.point,D=d(L.showgaugeborder,1),I=u(L.colorrangefillmix,L.gaugefillmix,"{light-10},{dark-20},{light-50},{light-85}"),E=u(L.colorrangefillratio,L.gaugefillratio,L.gaugefillratio,"0,8,84,8"),O=r(L.colorrangebordercolor,L.gaugebordercolor,"{dark-20}"),M=d(L.colorrangeborderalpha,L.gaugeborderalpha,100),R=D?d(L.colorrangeborderthickness,L.gaugeborderthickness,1):0,F=l.colorRange&&l.colorRange.getColorRangeArr(A,T),V=d(L.showshadow,1),N=l.paper,B=l.colorManager,L=this.get(h,c),j=L.duration,H=L.dummyObj,W=L.animObj,G=L.animType,z={top:1,bottom:3},U=L=0,D=0,l=l.canvas.graphics;for(b.gaugeStartX=b.canvasLeft,b.gaugeEndX=b.canvasLeft+C,b.gaugeStartY=b.canvasTop,b.gaugeEndY=b.canvasTop+k,b.gaugeCenterX=b.canvasLeft+C/2,b.gaugeCenterY=b.canvasTop+k/2,y.transform(["T",_,S]),(S=l.linear)||(l.linear=S=N.group("colorrange",y),S.trackTooltip(!0),l.outerRect=N.rect(y)),l.outerRect.attr({x:0,y:0,width:C,height:k,stroke:"none",r:0}),e=function(e,t){return{x:e*C/(T-A),y:0,width:(t-e)*C/(T-A),height:k}},l.colorRangeElems||(l.colorRangeElems=[]),y=0,_=F&&F.length;y<_;y+=1)o=F[y],a=e(o.minvalue-A,o.maxvalue-A),o.x=a.x,o.y=a.y,o.width=a.width,o.height=a.height,t=o.code,t=p(g(r(o.bordercolor,t),O),d(o.borderalpha,M)),i=B.parseColorMix(o.code,I),n=B.parseAlphaList(o.alpha,i.length),s=d(o.borderAlpha,M),o=n.split(f),o=m.apply(Math,o),o=m(R&&s||0,o),s={x:a.x,y:a.y,width:a.width,height:a.height,r:0,"stroke-width":R},(a=l.colorRangeElems[y])||(a=l.colorRangeElems[y]=N.rect(S),a.attr(s)),a.attr({stroke:t,fill:v({FCcolor:{color:i.toString(),ratio:E,alpha:n,angle:270}})}),a.animateWith(H,W,s,j,G),a.shadow({apply:V,opacity:o/100}),a.show();for(;l.colorRangeElems[y];)l.colorRangeElems[y].shadow(!1),l.colorRangeElems[y].hide(),y++;if(P)for(b=b.trendPointConfig,l.trendObjElems||(l.trendObjElems=[]),l.trendZoneElems||(l.trendZoneElems=[]),l.marker||(l.marker=[]),y=0,_=b.length;y<_;y+=1)P=b[y],a=e(P.startValue-A,P.endValue-A),P.isTrendZone?((I=l.trendZoneElems[L])||(I=l.trendZoneElems[L]=N.rect({height:0 =w&&c<=x&&c>=w&&k.push({startValue:l,endValue:c,tooltext:o(s(f.markertooltext)),displayValue:o(s(f.displayvalue),h?a:v.numberFormatter.scale(l)),showOnTop:d(f.showontop,u.ticksbelowgauge,1),color:r(f.color,C.getColor("trendLightColor")),textColor:f.color,alpha:d(f.alpha,99),thickness:d(f.thickness,1),dashStyle:Number(f.dashed)?i(f.dashlen||2,f.dashgap||2,f.thickness||1):a,useMarker:d(f.usemarker,0),markerColor:p(r(f.markercolor,f.color,C.getColor("trendLightColor")),100),markerBorderColor:p(r(f.markerbordercolor,f.bordercolor,C.getColor("trendDarkColor")),100),markerRadius:d(d(f.markerradius)*b,5),markerToolText:n(f.markertooltext),trendValueDistance:d(d(f.trendvaluedistance)*b,y.tickInterval),isTrendZone:h});t.stableSort&&t.stableSort(g.trendPointConfig,function(e,t){return e.startValue-t.startValue})},_createDatasets:function(){var t,r=this.components,o=this.jsonData.pointers;t=this.defaultDatasetType;var a,r=r.dataset||(r.dataset=[]);t&&(t=e.get("component",["dataset",t]))&&(r[0]?(t=r[0].pointerArr&&r[0].pointerArr.pointer&&r[0].pointerArr.pointer.length,a=o&&o.pointer&&o.pointer.length||0,t>a&&r[0].removeData(t-a),r[0].pointerArr=o,r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(o)))},_getData:function(e,t){var r,o,a=this.components.dataset,i=this.getJobList(),n=function(){return(o=a[0].components.data)&&o[--e]?(r=o[e].config,d(r.setValue,r.itemValue)):null};if(a){if("function"!=typeof t)return n();i.eiMethods.push(y.addJob(function(){t(n())},b.postRender))}},_setData:function(e,t){var r,o="value=";if(void 0!==e&&void 0!==t){for(r=1;r e.gaugeYScale)&&(e.gaugeYScale=30),e.gaugeYScale/=100,e.showGaugeBorder=o(a.showgaugeborder,1),l=e.showGaugeBorder?o(a.gaugeborderalpha,40):0,e.gaugeBorderColor=n(r(a.gaugebordercolor,s.getColor(d)),l),e.gaugeBorderThickness=o(a.gaugeborderthickness,1),e.gaugeContainerColor=r(a.cylglasscolor,i(e.gaugeFillColor,30))}},s.thermometer)}]),e.register("module",["private","modules.renderer.js-angulargauge",function(){var t=this.hcLib,r=t.pluck,o=t.getValidValue,a=t.BLANKSTRING,i=t.preDefStr,n=i.animationObjStr,s=i.configStr,l=t.pluckNumber,c=t.graphics.convertColor,h=t.COMMASTRING,i=Math,d=i.max,u=i.min,p=i.PI/180,g=t.toRaphaelColor,i=!t.CREDIT_REGEX.test(this.window.location.hostname),f=t.chartAPI,m=t.extend2,v=t.pluckFontSize;f("angulargauge",{friendlyName:"Angular Gauge",creditLabel:i,defaultDatasetType:"angulargauge",standaloneInit:!0,isHorizontal:!0,isAxisOpposite:!1,isRealTime:!0,hasLegend:!1,drawPlotlines:!1,drawPlotBands:!1,isAxisReverse:!1,colorRange:!0,defaultPaletteOptions:function(e,t){var r;e||(e={});for(r in t)e[r]=t[r];return e}(m({},t.defaultGaugePaletteOptions),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),rtParserModify:!0,applicableDSList:{angulargauge:!0},_spaceManager:function(){var e,t,r=this.config,i=this.components,n=i.scale.config,s=i.dataset[0];e=s.components.data[0];var c,i=i.scale,h=s.chart.jsonData.chart,s=s.config,d=s.scaleFactor,g=0,f=0,m=g=0,v=0,v=s.pivotRadius,b=r.dataLabels.style.fontSize,g=r.dataLabels.style.lineHeight,m=r.displayValueCount,y=r.borderWidth,x=r.minChartWidth,w=r.minChartHeight,v=0;r.canvasWidth-2*y =g-e.left&&v-e.top>=g-e.left?e.left:e.top:m-e.left>=g-e.top&&v-e.top>=g-e.top?e.top:e.left,v+=2*i.config.polarPadding,s.gaugeOuterRadius||(s.gaugeOuterRadius=n.radius,s.gaugeOuterRadius-=v),void 0===s.gaugeInnerRadius&&(s.gaugeInnerRadius=s.gaugeOuterRadius*c),i.setAxisConfig({centerX:s.gaugeOriginX,centerY:s.gaugeOriginY,radius:n.radius||s.gaugeOuterRadius,gaugeOuterRadius:s.gaugeOuterRadius,gaugeInnerRadius:s.gaugeInnerRadius,scaleFactor:d}),n=i.getLimit(),i.getPixel(n.min),i.getPixel(n.max),r.gaugeStartX=r.canvasLeft,r.gaugeStartY=r.canvasTop,r.gaugeEndX=r.canvasRight,r.gaugeEndY=r.canvasBottom,r.gaugeCenterX=s.gaugeOriginX,r.gaugeCenterY=s.gaugeOriginY,r.gaugeStartAngle=s.gaugeStartAngle/p,r.gaugeEndAngle=s.gaugeEndAngle/p},_createAxes:function(){var t=this.components,r=e.register("component",["axis","polarGauge"]);t.scale=t=new r,t.chart=this,t.init()},_feedAxesRawData:function(){var e=this.components,o=e.colorManager,a=this.jsonData,i=a.chart,n=t.chartPaletteStr.chart2D,s=l(i.axisontop,i.axisonleft,void 0!==i.ticksbelowgauge?!i.ticksbelowgauge:void 0,this.isAxisOpposite),c=l(i.reverseaxis,this.isAxisReverse),o={outCanfontFamily:r(i.outcnvbasefont,i.basefont,"Verdana,sans"),outCanfontSize:v(i.outcnvbasefontsize,i.basefontsize,10),outCancolor:r(i.outcnvbasefontcolor,i.basefontcolor,o.getColor(n.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:i.useellipseswhenoverflow,divLineColor:r(i.vdivlinecolor,o.getColor(n.divLineColor)),divLineAlpha:r(i.vdivlinealpha,o.getColor("divLineAlpha")),divLineThickness:l(i.vdivlinethickness,1),divLineIsDashed:!!l(i.vdivlinedashed,i.vdivlineisdashed,0),divLineDashLen:l(i.vdivlinedashlen,4),divLineDashGap:l(i.vdivlinedashgap,2),showAlternateGridColor:l(i.showalternatevgridcolor,0),alternateGridColor:r(i.alternatevgridcolor,o.getColor("altVGridColor")),alternateGridAlpha:r(i.alternatevgridalpha,o.getColor("altVGridAlpha")),numDivLines:i.numvdivlines,labelFont:i.labelfont,labelFontSize:i.labelfontsize,labelFontColor:i.labelfontcolor,labelFontAlpha:i.labelalpha,labelFontBold:i.labelfontbold,labelFontItalic:i.labelfontitalic,axisName:i.xaxisname,axisMinValue:i.lowerlimit,axisMaxValue:i.upperlimit,setAdaptiveMin:i.setadaptivemin,adjustDiv:i.adjustvdiv,labelDisplay:i.labeldisplay,showLabels:i.showlabels,rotateLabels:i.rotatelabels,slantLabel:l(i.slantlabels,i.slantlabel),labelStep:l(i.labelstep,i.xaxisvaluesstep),showAxisValues:l(i.showxaxisvalues,i.showxaxisvalue),showDivLineValues:l(i.showvdivlinevalues,i.showvdivlinevalues),showZeroPlane:i.showvzeroplane,zeroPlaneColor:i.vzeroplanecolor,zeroPlaneThickness:i.vzeroplanethickness,zeroPlaneAlpha:i.vzeroplanealpha,showZeroPlaneValue:i.showvzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:l(i.showxaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:l(i.xaxislinethickness,i.axislinethickness,1),axisLineAlpha:l(i.xaxislinealpha,i.axislinealpha,100),axisLineColor:r(i.xaxislinecolor,i.axislinecolor,"#000000"),majorTMNumber:i.majortmnumber,majorTMColor:i.majortmcolor,majorTMAlpha:i.majortmalpha,majorTMHeight:i.majortmheight,tickValueStep:i.tickvaluestep,showTickMarks:i.showtickmarks,connectTickMarks:i.connecttickmarks,showTickValues:i.showtickvalues,majorTMThickness:i.majortmthickness,upperlimit:e.numberFormatter.getCleanValue(i.upperlimit),lowerlimit:e.numberFormatter.getCleanValue(i.lowerlimit),reverseScale:i.reversescale,showLimits:i.showlimits,adjustTM:i.adjusttm,minorTMNumber:i.minortmnumber,minorTMColor:i.minortmcolor,minorTMAlpha:i.minortmalpha,minorTMHeight:l(i.minortmheight,i.minortmwidth),minorTMThickness:i.minortmthickness,tickMarkDistance:l(i.tickmarkdistance,i.tickmarkgap),tickValueDistance:l(i.tickvaluedistance,i.displayvaluedistance),placeTicksInside:i.placeticksinside,placeValuesInside:i.placevaluesinside,upperLimitDisplay:i.upperlimitdisplay,lowerLimitDisplay:i.lowerlimitdisplay,ticksBelowGauge:i.ticksbelowgauge,ticksBelowGraph:i.ticksbelowgraph,trendValueDistance:i.trendvaluedistance};o.trendPoints=a.trendpoints,e=e.scale,e.setCommonConfigArr(o,!this.isHorizontal,c,s),e.configure()},_drawCanvas:function(){var e,t,o,a,i,u,p=this.components,f=p.dataset[0],m=f.config,f=f.graphics||(f.graphics={}),v=p.scale,b=p.colorManager,y=v.config.axisRange,x=p.colorRange,w=this.graphics.datasetGroup,C=this.graphics.datalabelsGroup,p=p.paper,k=m.gaugeOuterRadius,S=m.gaugeInnerRadius,_=m.gaugeFillRatio,L=m.gaugeBorderColor,A=m.gaugeBorderThickness,T=m.gaugeBorderAlpha,D=m.gaugeFillMix,P=m.gaugeOriginX,I=m.gaugeOriginY,E=m.gaugeStartAngle,O=m.showShadow,M=y.min,y=y.max,R=x?x.getColorRangeArr(M,y):[],F=this.get(s,n),x=F.duration,M=F.dummyObj,V=F.animObj,F=F.animType,N=0,B=R.length,j=0;for(f.band=f.band||[],f.bandGroup||(f.bandGroup=p.group("bandGroup",w)),f.pointGroup?f.pointGroup.animateWith(M,V,{transform:"t"+P+h+I},x,F):f.pointGroup=p.group("pointers",C).translate(P,I);Nw&&(E+=w,w=E-w,E-=w),f.band[N]?f.band[N].animateWith(M,V,{ringpath:[P,I,k,S,E,w]},x,F):f.band[N]=p.ringpath(P,I,k,S,E,w,f.bandGroup),f.band[N].attr({fill:g({FCcolor:{cx:P,cy:I,r:k,gradientUnits:"userSpaceOnUse",color:o.join(),alpha:a,ratio:i,radialGradient:!0}}),"stroke-width":A,stroke:u}).shadow({apply:O,opacity:e/100}),E=t,j+=1;for(N=j,B=f.band.length;Na&&r[0].removeData(t-a),r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(a)))},_setCategories:function(){},_angularGaugeSpaceManager:function(e,t,r,o,a,i,n,s,l,c){var h,d=void 0!==a&&null!==a,u=void 0!==i&&null!==i,p=void 0!==n&&null!==n,g=2*Math.PI,f=Math.PI,m=Math.PI/2,v=f+m;a={radius:a,centerX:i,centerY:n};var b,y,x,w,C,k=!1,S=e%g;return 0>S&&(S+=g),(s=s||0)&&s o/2&&(l=o/2),c>o/2&&(c=o/2),y=Math.cos(e),w=Math.sin(e),x=Math.cos(t),C=Math.sin(t),b=Math.min(y,x,0),x=Math.max(y,x,0),y=Math.min(w,C,0),w=Math.max(w,C,0),d&&u&&p||(t-=e,e=S+t,(e>g||0>e)&&(x=1),0 "),f.toolText=r,f.setTooltext=r,v?v.graphics||(s[y].graphics={}):s[y]={graphics:{}},f.hoverEffects={enabled:!1};h.maxValue=A,h.minValue=T},configureOutliers:function(e,r){var a,i,n,s,l=e.chart,c=l.components,h=t.parseUnsafeString,d=e.config,g=e.JSONData,f=l.jsonData.chart,m=c.colorManager,v=e.index||e.stackIndex,y=e.type,w=!l.singleseries||S(f.palettecolors)?m.getPlotColor(v):m.getColor(b).split(/\s*\,\s*/)[0],v=g.data,C=l.config.categories,C=E(C&&C.length,v&&v.length),L=c.numberFormatter,A=l.use3dlineshift,T=-1/0,D=1/0,P=k(f.tooltipsepchar,": "),I=_(g.dashed,f.linedashed);for(s=l.isStacked,a=l.hasLineSet,c=c.xAxis[0],e.visible=1===_(e.JSONData.visible,!Number(e.JSONData.initiallyhidden),1),d.use3dlineshift=void 0!==A?_(f.use3dlineshift,A):1,d.plotColor=w,d.legendSymbolColor=d.plotColor,l=_(l.defaultPlotShadow,m.getColor("showShadow")),d.drawFullAreaBorder=_(f.drawfullareaborder,1),d.parentYAxis=n=a?1:k(g.parentyaxis&&g.parentyaxis.toLowerCase(),u)===p?1:0,d.connectNullData=_(f.connectnulldata,0),d.enableAnimation=m=_(f.animation,f.defaultanimation,1),d.animation=!!m&&{duration:1e3*_(f.animationduration,1)},d.transposeanimation=_(f.transposeanimation,m),d.transposeanimduration=1e3*_(f.transposeanimduration,.2),d.showValues=0,d.valuePadding=_(f.valuepadding,2),d.valuePosition=k(g.valueposition,f.valueposition,"auto"),d.stack100Percent=m=_(f.stack100percent,0),d.showPercentValues=_(f.showpercentvalues,s&&m?1:0),d.showPercentInToolTip=_(f.showpercentintooltip,s&&m?1:0),d.showTooltip=_(f.showtooltip,1),d.seriesNameInTooltip=_(f.seriesnameintooltip,1),d.showHoverEffect=_(f.plothovereffect,f.anchorhovereffect,f.showhovereffect,void 0),d.rotateValues=_(f.rotatevalues)?270:0,d.linethickness=_(g.linethickness,f.linethickness,1),d.lineDashLen=_(g.linedashlen,f.linedashlen,5),d.lineDashGap=_(g.linedashgap,f.linedashgap,4),d.alpha=0,s=t.getDashStyle(d.lineDashLen,d.lineDashGap,d.linethickness),d.lineDashStyle=I?s:"none",d.shadow={opacity:_(f.showshadow,l)?y===x?d.alpha/100:d.plotBorderAlpha/100:0},d.drawAnchors=_(g.drawanchors,g.showanchors,f.drawanchors,f.showanchors),d.anchorBgColor=k(g.outliericoncolor,f.outliericoncolor,o),d.anchorBorderColor=o,d.anchorRadius=_(g.outliericonradius,f.outliericonradius,5),d.anchorAlpha=k(g.alpha,g.outliericonalpha,f.outliericonalpha),d.anchorBgAlpha=k(g.outliericonalpha,f.outliericonalpha,100),d.anchorBorderThickness=k(g.anchorborderthickness,f.anchorborderthickness,1),d.anchorSides=k(g.outliericonsides,f.outliericonsides,3),d.linecolor=d.anchorBgColor,d.minimizeTendency=_(f.minimizetendency,f.minimisetendency,0),d.anchorImageUrl=k(g.anchorimageurl,f.anchorimageurl),d.anchorImageAlpha=_(g.anchorimagealpha,f.anchorimagealpha,100),d.anchorImageScale=_(g.anchorimagescale,f.anchorimagescale,100),d.anchorImagePadding=_(g.anchorimagepadding,f.anchorimagepadding,1),d.anchorStartAngle=_(g.anchorstartangle,f.anchorstartangle,90),d.anchorShadow=_(g.anchorshadow,f.anchorshadow,0),!e.components.data&&(e.components.data=[]),l=e.components.data,w=0;wm||e>g+m)&&(w=1),(S f||e>g+f)&&(b=-1),(S v||e>g+v)&&(y=-1)):((S>m&&e f&&e v&&e =a.maxRadius&&(a.maxRadius=Math.min(r/2,o/2))),a},_getScaleFactor:function(e,t,r,o){return t=l(t,o),e=l(e,r),t&&e?e/r==t/o?r/e:Math.min(r/e,o/t):1},_setData:f.hlineargauge,_getData:f.hlineargauge,_getDataForId:f.hlineargauge,_setDataForId:f.hlineargauge},f.axisgaugebase)}]),e.register("module",["private","modules.renderer.js-bulb",function(){var t=this.hcLib,r=!t.CREDIT_REGEX.test(this.window.location.hostname),o=t.chartAPI,a=t.pluckNumber;o("bulb",{showRTvalue:!1,canvasPadding:!1,friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isRealTime:!0,defaultDatasetType:"bulb",applicableDSList:{bulb:!0},creditLabel:r,_createDatasets:function(){var t,r=this.components;t=this.defaultDatasetType;var o,a=[];a.push({value:this.jsonData.value}),o={data:a},this.config.categories=a,r=r.dataset||(r.dataset=[]),t&&(t=e.get("component",["dataset",t]))&&(r[0]?(t=r[0].JSONData,t=t.data.length,a=o.data.length,t>a&&r[0].removeData(a-1,t-a,!1),r[0].JSONData=o,r[0].configure()):(t=new t,r.push(t),t.chart=this,t.init(o)))},_drawCanvas:function(){},_spaceManager:function(){var e,t=this.hasLegend;e=this.config;var r,o,i=this.components,n=i.legend,i=i.dataset[0],s=i.config,l=this.jsonData.chart,c=a(l.showborder,this.is3D?0:1),h=e.minChartWidth,d=e.minChartHeight,l=e.borderWidth=c?a(l.borderthickness,1):0;s.scaleFactor=e.autoscale?this._getScaleFactor(s.origW,s.origH,e.width,e.height):1,e.canvasWidth-2*l r){if(a)for(l=r;l e.length)return null;if("full"===r.pathMatch&&(t.hasChildren()||o.length0?e[e.length-1]:null}function g(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function f(e,t){if(0===Object.keys(e).length)return r.i(gt.of)({});var o=[],a=[],i={};g(e,function(e,r){var n=yt.map.call(t(r,e),function(e){return i[r]=e});r===Ht?o.push(n):a.push(n)});var n=St.concatAll.call(gt.of.apply(void 0,o.concat(a))),s=bt.last.call(n);return yt.map.call(s,function(){return i})}function m(e){var t=At.mergeAll.call(e);return mt.every.call(t,function(e){return!0===e})}function v(e){return r.i(ht["ɵisObservable"])(e)?e:r.i(ht["ɵisPromise"])(e)?r.i(Lt.fromPromise)(Promise.resolve(e)):r.i(gt.of)(e)}function b(){return new Ut(new Xt([],{}),{},null)}function y(e,t,r){return r?x(e.queryParams,t.queryParams)&&w(e.root,t.root):C(e.queryParams,t.queryParams)&&k(e.root,t.root)}function x(e,t){return d(e,t)}function w(e,t){if(!L(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var r in t.children){if(!e.children[r])return!1;if(!w(e.children[r],t.children[r]))return!1}return!0}function C(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(r){return t[r]===e[r]})}function k(e,t){return S(e,t,t.segments)}function S(e,t,r){if(e.segments.length>r.length){var o=e.segments.slice(0,r.length);return!!L(o,r)&&!t.hasChildren()}if(e.segments.length===r.length){if(!L(e.segments,r))return!1;for(var a in t.children){if(!e.children[a])return!1;if(!k(e.children[a],t.children[a]))return!1}return!0}var o=r.slice(0,e.segments.length),i=r.slice(e.segments.length);return!!L(e.segments,o)&&(!!e.children[Ht]&&S(e.children[Ht],t,i))}function _(e,t){return L(e,t)&&e.every(function(e,r){return d(e.parameters,t[r].parameters)})}function L(e,t){return e.length===t.length&&e.every(function(e,r){return e.path===t[r].path})}function A(e,t){var r=[];return g(e.children,function(e,o){o===Ht&&(r=r.concat(t(e,o)))}),g(e.children,function(e,o){o!==Ht&&(r=r.concat(t(e,o)))}),r}function T(e){return e.segments.map(function(e){return E(e)}).join("/")}function D(e,t){if(!e.hasChildren())return T(e);if(t){var r=e.children[Ht]?D(e.children[Ht],!1):"",o=[];return g(e.children,function(e,t){t!==Ht&&o.push(t+":"+D(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var a=A(e,function(t,r){return r===Ht?[D(e.children[Ht],!1)]:[r+":"+D(t,!1)]});return T(e)+"/("+a.join("//")+")"}function P(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function I(e){return decodeURIComponent(e)}function E(e){return""+P(e.path)+O(e.parameters)}function O(e){return Object.keys(e).map(function(t){return";"+P(t)+"="+P(e[t])}).join("")}function M(e){var t=Object.keys(e).map(function(t){var r=e[t];return Array.isArray(r)?r.map(function(e){return P(t)+"="+P(e)}).join("&"):P(t)+"="+P(r)});return t.length?"?"+t.join("&"):""}function R(e){var t=e.match(Jt);return t?t[0]:""}function F(e){var t=e.match(Zt);return t?t[0]:""}function V(e){var t=e.match(Qt);return t?t[0]:""}function N(e){return new Ct.Observable(function(t){return t.error(new tr(e))})}function B(e){return new Ct.Observable(function(t){return t.error(new rr(e))})}function j(e){return new Ct.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function H(e){return new Ct.Observable(function(t){return t.error(a("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}function W(e,t,r,o,a){return new or(e,t,r,o,a).apply()}function G(e,t){var o=t.canLoad;return o&&0!==o.length?m(yt.map.call(r.i(pt.from)(o),function(r){var o=e.get(r);return v(o.canLoad?o.canLoad(t):o(t))})):r.i(gt.of)(!0)}function z(e,t,r){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=t.matcher||n,a=o(r,e,t);return a?{matched:!0,consumedSegments:a.consumed,lastChild:a.consumed.length,positionalParamSegments:a.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function U(e,t,r,o){if(r.length>0&&K(e,r,o)){var a=new Xt(t,q(o,new Xt(r,e.children)));return{segmentGroup:X(a),slicedSegments:[]}}if(0===r.length&&$(e,r,o)){var a=new Xt(e.segments,Y(e,r,o,e.children));return{segmentGroup:X(a),slicedSegments:r}}return{segmentGroup:e,slicedSegments:r}}function X(e){if(1===e.numberOfChildren&&e.children[Ht]){var t=e.children[Ht];return new Xt(e.segments.concat(t.segments),t.children)}return e}function Y(e,t,r,o){for(var a={},i=0,n=r;i 0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function Z(e){return e.outlet||Ht}function Q(e,t){if(e===t.value)return t;for(var r=0,o=t.children;r =1;){var o=t[r],a=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return t.slice(r).reduce(function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}function ae(e,t){t.value._routerState=e,t.children.forEach(function(t){return ae(e,t)})}function ie(e){var t=e.children.length>0?" { "+e.children.map(ie).join(", ")+" } ":"";return""+e.value+t}function ne(e){if(e.snapshot){var t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,d(t.queryParams,r.queryParams)||e.queryParams.next(r.queryParams),t.fragment!==r.fragment&&e.fragment.next(r.fragment),d(t.params,r.params)||e.params.next(r.params),h(t.url,r.url)||e.url.next(r.url),d(t.data,r.data)||e.data.next(r.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function se(e,t){var r=d(e.params,t.params)&&_(e.url,t.url),o=!e.parent!=!t.parent;return r&&!o&&(!e.parent||se(e.parent,t.parent))}function le(e,t,r){var o=ce(e,t._root,r?r._root:void 0);return new nr(o,t)}function ce(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){var o=r.value;o._futureSnapshot=t.value;var a=de(e,t,r);return new ir(o,a)}if(e.retrieve(t.value)){var i=e.retrieve(t.value).route;return he(t,i),i}var o=ue(t.value),a=t.children.map(function(t){return ce(e,t)});return new ir(o,a)}function he(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var r=0;r a;){if(i-=a,!(o=o.parent))throw new Error("Invalid number of '../'");a=o.segments.length}return new dr(o,!1,a-i)}function xe(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Ht]:""+e}function we(e){return"object"!=typeof e[0]?(t={},t[Ht]=e,t):void 0===e[0].outlets?(r={},r[Ht]=e,r):e[0].outlets;var t,r}function Ce(e,t,r){if(e||(e=new Xt([],{})),0===e.segments.length&&e.hasChildren())return ke(e,t,r);var o=Se(e,t,r),a=r.slice(o.commandIndex);if(o.match&&o.pathIndex =r.length)return i;var n=e.segments[a],s=xe(r[o]),l=o 0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Te(s,l,n))return i;o+=2}else{if(!Te(s,{},n))return i;o++}a++}return{match:!0,pathIndex:a,commandIndex:o}}function _e(e,t,r){for(var o=e.segments.slice(0,t),a=0;a 0))throw new ur;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=t.matcher||n,a=o(r,e,t);if(!a)throw new ur;var i={};g(a.posParams,function(e,t){i[t]=e.path});var s=a.consumed.length>0?Object.assign({},i,a.consumed[a.consumed.length-1].parameters):i;return{consumedSegments:a.consumed,lastChild:a.consumed.length,parameters:s}}function Oe(e){var t={};e.forEach(function(e){var r=t[e.value.outlet];if(r){var o=r.url.map(function(e){return e.toString()}).join("/"),a=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+o+"' and '"+a+"'.")}t[e.value.outlet]=e.value})}function Me(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Re(e){for(var t=e,r=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)t=t._sourceSegment,r+=t._segmentIndexShift?t._segmentIndexShift:0;return r-1}function Fe(e,t,r,o){if(r.length>0&&Be(e,r,o)){var a=new Xt(t,Ne(e,t,o,new Xt(r,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&je(e,r,o)){var i=new Xt(e.segments,Ve(e,r,o,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:r}}var n=new Xt(e.segments,e.children);return n._sourceSegment=e,n._segmentIndexShift=t.length,{segmentGroup:n,slicedSegments:r}}function Ve(e,t,r,o){for(var a={},i=0,n=r;i 0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function We(e){return e.outlet||Ht}function Ge(e){return e.data||{}}function ze(e){return e.resolve||{}}function Ue(e){throw e}function Xe(e){return r.i(gt.of)(null)}function Ye(e){ne(e.value),e.children.forEach(Ye)}function qe(e){for(var t=e.parent;t;t=t.parent){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function Ke(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function $e(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}function Je(e){for(var t=0;t 0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return T(this)},e}(),Yt=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=o(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return E(this)},e}(),qt=function(){function e(){}return e.prototype.parse=function(e){},e.prototype.serialize=function(e){},e}(),Kt=function(){function e(){}return e.prototype.parse=function(e){var t=new er(e);return new Ut(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){return"/"+D(e.root,!0)+M(e.queryParams)+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),$t=new Kt,Jt=/^[^\/()?;=]+/,Zt=/^[^=?]+/,Qt=/^[^?]+/,er=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xt([],{}):new Xt([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},e.prototype.parseChildren=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 t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[Ht]=new Xt(e,t)),r},e.prototype.parseSegment=function(){var e=R(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Yt(I(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=R(this.remaining);if(t){this.capture(t);var r="";if(this.consumeOptional("=")){var o=R(this.remaining);o&&(r=o,this.capture(r))}e[I(t)]=I(r)}},e.prototype.parseQueryParam=function(e){var t=F(this.remaining);if(t){this.capture(t);var r="";if(this.consumeOptional("=")){var o=V(this.remaining);o&&(r=o,this.capture(r))}var a=I(t),i=I(r);if(e.hasOwnProperty(a)){var n=e[a];Array.isArray(n)||(n=[n],e[a]=n),n.push(i)}else e[a]=i}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=R(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error("Cannot parse url '"+this.url+"'");var a=void 0;r.indexOf(":")>-1?(a=r.substr(0,r.indexOf(":")),this.capture(a),this.capture(":")):e&&(a=Ht);var i=this.parseChildren();t[a]=1===Object.keys(i).length?i[Ht]:new Xt([],i),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),tr=function(){function e(e){this.segmentGroup=e||null}return e}(),rr=function(){function e(e){this.urlTree=e}return e}(),or=function(){function e(e,t,r,o,a){this.configLoader=t,this.urlSerializer=r,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=e.get(ht.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ht),r=yt.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return kt._catch.call(r,function(t){if(t instanceof rr)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof tr)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,r=this.expandSegmentGroup(this.ngModule,this.config,e.root,Ht),o=yt.map.call(r,function(r){return t.createUrlTree(r,e.queryParams,e.fragment)});return kt._catch.call(o,function(e){if(e instanceof tr)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,r){var o=e.segments.length>0?new Xt([],(a={},a[Ht]=e,a)):e;return new Ut(o,t,r);var a},e.prototype.expandSegmentGroup=function(e,t,r,o){return 0===r.segments.length&&r.hasChildren()?yt.map.call(this.expandChildren(e,t,r),function(e){return new Xt([],e)}):this.expandSegment(e,r,t,r.segments,o,!0)},e.prototype.expandChildren=function(e,t,r){var o=this;return f(r.children,function(r,a){return o.expandSegmentGroup(e,t,a,r)})},e.prototype.expandSegment=function(e,t,o,a,i,n){var s=this,l=gt.of.apply(void 0,o),c=yt.map.call(l,function(l){var c=s.expandSegmentAgainstRoute(e,t,o,l,a,i,n);return kt._catch.call(c,function(e){if(e instanceof tr)return r.i(gt.of)(null);throw e})}),h=St.concatAll.call(c),d=vt.first.call(h,function(e){return!!e});return kt._catch.call(d,function(e,o){if(e instanceof _t.EmptyError){if(s.noLeftoversInUrl(t,a,i))return r.i(gt.of)(new Xt([],{}));throw new tr(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,r){return 0===t.length&&!e.children[r]},e.prototype.expandSegmentAgainstRoute=function(e,t,r,o,a,i,n){return Z(o)!==i?N(t):void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,a):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,o,a,i):N(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,r,o,a,i){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,o,a,i)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,r,o){var a=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?B(i):xt.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new Xt(r,{});return a.expandSegment(e,i,t,r,o,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,r,o,a,i){var n=this,s=z(t,o,a),l=s.matched,c=s.consumedSegments,h=s.lastChild,d=s.positionalParamSegments;if(!l)return N(t);var u=this.applyRedirectCommands(c,o.redirectTo,d);return o.redirectTo.startsWith("/")?B(u):xt.mergeMap.call(this.lineralizeSegments(o,u),function(o){return n.expandSegment(e,t,r,o.concat(a.slice(h)),i,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,o,a){var i=this;if("**"===o.path)return o.loadChildren?yt.map.call(this.configLoader.load(e.injector,o),function(e){return o._loadedConfig=e,new Xt(a,{})}):r.i(gt.of)(new Xt(a,{}));var n=z(t,o,a),s=n.matched,l=n.consumedSegments,c=n.lastChild;if(!s)return N(t);var h=a.slice(c),d=this.getChildConfig(e,o);return xt.mergeMap.call(d,function(e){var o=e.module,a=e.routes,n=U(t,l,h,a),s=n.segmentGroup,c=n.slicedSegments;if(0===c.length&&s.hasChildren()){var d=i.expandChildren(o,a,s);return yt.map.call(d,function(e){return new Xt(l,e)})}if(0===a.length&&0===c.length)return r.i(gt.of)(new Xt(l,{}));var u=i.expandSegment(o,s,a,c,Ht,!0);return yt.map.call(u,function(e){return new Xt(l.concat(e.segments),e.children)})})},e.prototype.getChildConfig=function(e,t){var o=this;return t.children?r.i(gt.of)(new zt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?r.i(gt.of)(t._loadedConfig):xt.mergeMap.call(G(e.injector,t),function(r){return r?yt.map.call(o.configLoader.load(e.injector,t),function(e){return t._loadedConfig=e,e}):H(t)}):r.i(gt.of)(new zt([],e))},e.prototype.lineralizeSegments=function(e,t){for(var o=[],a=t.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return r.i(gt.of)(o);if(a.numberOfChildren>1||!a.children[Ht])return j(e.redirectTo);a=a.children[Ht]}},e.prototype.applyRedirectCommands=function(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,r,o){var a=this.createSegmentGroup(e,t.root,r,o);return new Ut(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var r={};return g(e,function(e,o){if("string"==typeof e&&e.startsWith(":")){var a=e.substring(1);r[o]=t[a]}else r[o]=e}),r},e.prototype.createSegmentGroup=function(e,t,r,o){var a=this,i=this.createSegments(e,t.segments,r,o),n={};return g(t.children,function(t,i){n[i]=a.createSegmentGroup(e,t,r,o)}),new Xt(i,n)},e.prototype.createSegments=function(e,t,r,o){var a=this;return t.map(function(t){return t.path.startsWith(":")?a.findPosParam(e,t,o):a.findOrReturn(t,r)})},e.prototype.findPosParam=function(e,t,r){var o=r[t.path.substring(1)];if(!o)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return o},e.prototype.findOrReturn=function(e,t){for(var r=0,o=0,a=t;o 1?t[t.length-2]:null},e.prototype.children=function(e){var t=Q(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Q(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=ee(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return ee(e,this._root).map(function(e){return e.value})},e}(),ir=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}(),nr=function(e){function t(t,r){var o=e.call(this,t)||this;return o.snapshot=r,ae(o,t),o}return lt.a(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(ar),sr=function(){function e(e,t,r,o,a,i,n,s){this.url=e,this.params=t,this.queryParams=r,this.fragment=o,this.data=a,this.outlet=i,this.component=n,this._futureSnapshot=s}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=yt.map.call(this.params,function(e){return o(e)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=yt.map.call(this.queryParams,function(e){return o(e)})),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}(),lr=function(){function e(e,t,r,o,a,i,n,s,l,c,h){this.url=e,this.params=t,this.queryParams=r,this.fragment=o,this.data=a,this.outlet=i,this.component=n,this._routeConfig=s,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=o(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=o(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},e}(),cr=function(e){function t(t,r){var o=e.call(this,r)||this;return o.url=t,ae(o,r),o}return lt.a(t,e),t.prototype.toString=function(){return ie(this._root)},t}(ar),hr=function(){function e(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&ge(r[0]))throw new Error("Root segment cannot have matrix parameters");var o=r.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(o&&o!==p(r))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),dr=function(){function e(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}return e}(),ur=function(){function e(){}return e}(),pr=function(){function e(e,t,r,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=o}return e.prototype.recognize=function(){try{var e=Fe(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,Ht),o=new lr([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ht,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new ir(o,t),i=new cr(this.url,a);return this.inheritParamsAndData(i._root),r.i(gt.of)(i)}catch(e){return new Ct.Observable(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,r=e.value,o=oe(r);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)},e.prototype.processChildren=function(e,t){var r=this,o=A(t,function(t,o){return r.processSegmentGroup(e,t,o)});return Oe(o),Pe(o),o},e.prototype.processSegment=function(e,t,r,o){for(var a=0,i=e;a 0?p(r).parameters:{},i=new lr(r,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ge(e),o,e.component,e,Me(t),Re(t)+r.length,ze(e));return[new ir(i,[])]}var n=Ee(t,e,r),s=n.consumedSegments,l=n.parameters,c=n.lastChild,h=r.slice(c),d=Ie(e),u=Fe(t,s,h,d),g=u.segmentGroup,f=u.slicedSegments,m=new lr(s,l,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ge(e),o,e.component,e,Me(t),Re(t)+s.length,ze(e));if(0===f.length&&g.hasChildren()){var v=this.processChildren(d,g);return[new ir(m,v)]}if(0===d.length&&0===f.length)return[new ir(m,[])];var b=this.processSegment(d,g,f,Ht);return[new ir(m,b)]},e}(),gr=function(){function e(){}return e.prototype.shouldDetach=function(e){},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){},e.prototype.retrieve=function(e){},e.prototype.shouldReuseRoute=function(e,t){},e}(),fr=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),mr=new ht.InjectionToken("ROUTES"),vr=function(){function e(e,t,r,o){this.loader=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=o}return e.prototype.load=function(e,t){var r=this;this.onLoadStartListener&&this.onLoadStartListener(t);var o=this.loadModuleFactory(t.loadChildren);return yt.map.call(o,function(o){r.onLoadEndListener&&r.onLoadEndListener(t);var a=o.create(e);return new zt(u(a.injector.get(mr)),a)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?r.i(Lt.fromPromise)(this.loader.load(e)):xt.mergeMap.call(v(e()),function(e){return e instanceof ht.NgModuleFactory?r.i(gt.of)(e):r.i(Lt.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),br=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){},e.prototype.extract=function(e){},e.prototype.merge=function(e,t){},e}(),yr=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}(),xr=function(){function e(e,t,r,o,a,i,n,s){var l=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=o,this.config=s,this.navigations=new dt.BehaviorSubject(null),this.routerEvents=new ut.Subject,this.navigationId=0,this.errorHandler=Ue,this.navigated=!1,this.hooks={beforePreactivation:Xe,afterPreactivation:Xe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new fr;var c=function(e){return l.triggerEvent(new Rt(e))},h=function(e){return l.triggerEvent(new Ft(e))};this.ngModule=a.get(ht.NgModuleRef),this.resetConfig(s),this.currentUrlTree=b(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new vr(i,n,c,h),this.currentRouterState=te(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.currentRouterState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var r=e.urlSerializer.parse(t.url),o="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(r,o,{replaceUrl:!0})},0)})))},Object.defineProperty(e.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.routerEvents.next(e)},e.prototype.resetConfig=function(e){s(e),this.config=e,this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var o=t.relativeTo,a=t.queryParams,i=t.fragment,n=t.preserveQueryParams,s=t.queryParamsHandling,l=t.preserveFragment;r.i(ht.isDevMode)()&&n&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=o||this.routerState.root,h=l?this.currentUrlTree.fragment:i,d=null;if(s)switch(s){case"merge":d=Object.assign({},this.currentUrlTree.queryParams,a);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=a||null}else d=n?this.currentUrlTree.queryParams:a||null;return pe(c,this.currentUrlTree,e,d,h)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var r=e instanceof Ut?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),Je(e),"object"==typeof t.queryParams&&null!==t.queryParams&&(t.queryParams=this.removeEmptyProps(t.queryParams)),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){return this.urlSerializer.parse(e)},e.prototype.isActive=function(e,t){if(e instanceof Ut)return y(this.currentUrlTree,e,t);var r=this.urlSerializer.parse(e);return y(this.currentUrlTree,r,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,r){var o=e[r];return null!==o&&void 0!==o&&(t[r]=o),t},{})},e.prototype.processNavigations=function(){var e=this;ft.concatMap.call(this.navigations,function(t){return t?(e.executeScheduledNavigation(t),t.promise.catch(function(){})):r.i(gt.of)(null)}).subscribe(function(){})},e.prototype.scheduleNavigation=function(e,t,r){var o=this.navigations.value;if(o&&"imperative"!==t&&"imperative"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"hashchange"==t&&"popstate"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);var a=null,i=null,n=new Promise(function(e,t){a=e,i=t}),s=++this.navigationId;return this.navigations.next({id:s,source:t,rawUrl:e,extras:r,resolve:a,reject:i,promise:n}),n.catch(function(e){return Promise.reject(e)})},e.prototype.executeScheduledNavigation=function(e){var t=this,r=e.id,o=e.rawUrl,a=e.extras,i=e.resolve,n=e.reject,s=this.urlHandlingStrategy.extract(o),l=!this.navigated||s.toString()!==this.currentUrlTree.toString();l&&this.urlHandlingStrategy.shouldProcessUrl(o)?(this.routerEvents.next(new Pt(r,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!!a.skipLocationChange,!!a.replaceUrl,r,null)}).then(i,n)):l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Pt(r,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!1,!1,r,te(s,t.rootComponentType).snapshot)}).then(i,n)):(this.rawUrlTree=o,i(null))},e.prototype.runNavigate=function(e,t,o,a,n,s){var l=this;return n!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Et(n,this.serializeUrl(e),"Navigation ID "+n+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(c,h){var d;if(s)d=r.i(gt.of)({appliedUrl:e,snapshot:s});else{var u=l.ngModule.injector,p=W(u,l.configLoader,l.urlSerializer,e,l.config);d=xt.mergeMap.call(p,function(t){return yt.map.call(De(l.rootComponentType,l.config,t,l.serializeUrl(t)),function(r){return l.routerEvents.next(new Mt(n,l.serializeUrl(e),l.serializeUrl(t),r)),{appliedUrl:t,snapshot:r}})})}var g,f,m=xt.mergeMap.call(d,function(e){return yt.map.call(l.hooks.beforePreactivation(e.snapshot),function(){return e})}),v=yt.map.call(m,function(e){var t=e.appliedUrl,r=e.snapshot,o=l.ngModule.injector;return g=new kr(r,l.currentRouterState.snapshot,o),g.traverse(l.rootContexts),{appliedUrl:t,snapshot:r}}),b=xt.mergeMap.call(v,function(t){var o=t.appliedUrl,a=t.snapshot;return l.navigationId!==n?r.i(gt.of)(!1):(l.triggerEvent(new Vt(n,l.serializeUrl(e),o,a)),yt.map.call(g.checkGuards(),function(t){return l.triggerEvent(new Nt(n,l.serializeUrl(e),o,a,t)),{appliedUrl:o,snapshot:a,shouldActivate:t}}))}),y=xt.mergeMap.call(b,function(t){return l.navigationId!==n?r.i(gt.of)(!1):t.shouldActivate&&g.isActivating()?(l.triggerEvent(new Bt(n,l.serializeUrl(e),t.appliedUrl,t.snapshot)),yt.map.call(g.resolveData(),function(){return l.triggerEvent(new jt(n,l.serializeUrl(e),t.appliedUrl,t.snapshot)),t})):r.i(gt.of)(t)}),x=xt.mergeMap.call(y,function(e){return yt.map.call(l.hooks.afterPreactivation(e.snapshot),function(){return e})}),w=yt.map.call(x,function(e){var t=e.appliedUrl,r=e.snapshot,o=e.shouldActivate;if(o){return{appliedUrl:t,state:le(l.routeReuseStrategy,r,l.currentRouterState),shouldActivate:o}}return{appliedUrl:t,state:null,shouldActivate:o}}),C=l.currentRouterState,k=l.currentUrlTree;w.forEach(function(e){var r=e.appliedUrl,i=e.state;if(!e.shouldActivate||n!==l.navigationId)return void(f=!1);if(l.currentUrlTree=r,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,t),l.currentRouterState=i,!o){var s=l.urlSerializer.serialize(l.rawUrlTree);l.location.isCurrentPathEqualTo(s)||a?l.location.replaceState(s):l.location.go(s)}new Sr(l.routeReuseStrategy,i,C).activate(l.rootContexts),f=!0}).then(function(){f?(l.navigated=!0,l.routerEvents.next(new It(n,l.serializeUrl(e),l.serializeUrl(l.currentUrlTree))),c(!0)):(l.resetUrlToCurrentUrlTree(),l.routerEvents.next(new Et(n,l.serializeUrl(e),"")),c(!1))},function(r){if(i(r))l.resetUrlToCurrentUrlTree(),l.navigated=!0,l.routerEvents.next(new Et(n,l.serializeUrl(e),r.message)),c(!1);else{l.routerEvents.next(new Ot(n,l.serializeUrl(e),r));try{c(l.errorHandler(r))}catch(e){h(e)}}l.currentRouterState=C,l.currentUrlTree=k,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,t),l.location.replaceState(l.serializeUrl(l.rawUrlTree))})})},e.prototype.resetUrlToCurrentUrlTree=function(){var e=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(e)},e}(),wr=function(){function e(e){this.path=e}return Object.defineProperty(e.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e}(),Cr=function(){function e(e,t){this.component=e,this.route=t}return e}(),kr=function(){function e(e,t,r){this.future=e,this.curr=t,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return e.prototype.traverse=function(e){var t=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(t,r,e,[t.value])},e.prototype.checkGuards=function(){var e=this;if(!this.isDeactivating()&&!this.isActivating())return r.i(gt.of)(!0);var t=this.runCanDeactivateChecks();return xt.mergeMap.call(t,function(t){return t?e.runCanActivateChecks():r.i(gt.of)(!1)})},e.prototype.resolveData=function(){var e=this;if(!this.isActivating())return r.i(gt.of)(null);var t=r.i(pt.from)(this.canActivateChecks),o=ft.concatMap.call(t,function(t){return e.runResolve(t.route)});return wt.reduce.call(o,function(e,t){return e})},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.traverseChildRoutes=function(e,t,r,o){var a=this,i=$e(t);e.children.forEach(function(e){a.traverseRoutes(e,i[e.value.outlet],r,o.concat([e.value])),delete i[e.value.outlet]}),g(i,function(e,t){return a.deactivateRouteAndItsChildren(e,r.getContext(t))})},e.prototype.traverseRoutes=function(e,t,r,o){var a=e.value,i=t?t.value:null,n=r?r.getContext(e.value.outlet):null;if(i&&a._routeConfig===i._routeConfig){var s=this.shouldRunGuardsAndResolvers(i,a,a._routeConfig.runGuardsAndResolvers);if(s?this.canActivateChecks.push(new wr(o)):(a.data=i.data,a._resolvedData=i._resolvedData),a.component?this.traverseChildRoutes(e,t,n?n.children:null,o):this.traverseChildRoutes(e,t,r,o),s){var l=n.outlet;this.canDeactivateChecks.push(new Cr(l.component,i))}}else i&&this.deactivateRouteAndItsChildren(t,n),this.canActivateChecks.push(new wr(o)),a.component?this.traverseChildRoutes(e,null,n?n.children:null,o):this.traverseChildRoutes(e,null,r,o)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!se(e,t)||!d(e.queryParams,t.queryParams);case"paramsChange":default:return!se(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var r=this,o=$e(e),a=e.value;g(o,function(e,o){a.component?t?r.deactivateRouteAndItsChildren(e,t.children.getContext(o)):r.deactivateRouteAndItsChildren(e,null):r.deactivateRouteAndItsChildren(e,t)}),a.component&&t&&t.outlet&&t.outlet.isActivated?this.canDeactivateChecks.push(new Cr(t.outlet.component,a)):this.canDeactivateChecks.push(new Cr(null,a))},e.prototype.runCanDeactivateChecks=function(){var e=this,t=r.i(pt.from)(this.canDeactivateChecks),o=xt.mergeMap.call(t,function(t){return e.runCanDeactivate(t.component,t.route)});return mt.every.call(o,function(e){return!0===e})},e.prototype.runCanActivateChecks=function(){var e=this,t=r.i(pt.from)(this.canActivateChecks),o=ft.concatMap.call(t,function(t){return m(r.i(pt.from)([e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))});return mt.every.call(o,function(e){return!0===e})},e.prototype.runCanActivate=function(e){var t=this,o=e._routeConfig?e._routeConfig.canActivate:null;return o&&0!==o.length?m(yt.map.call(r.i(pt.from)(o),function(r){var o,a=t.getToken(r,e);return o=v(a.canActivate?a.canActivate(e,t.future):a(e,t.future)),vt.first.call(o)})):r.i(gt.of)(!0)},e.prototype.runCanActivateChild=function(e){var t=this,o=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return m(yt.map.call(r.i(pt.from)(a),function(e){return m(yt.map.call(r.i(pt.from)(e.guards),function(r){var a,i=t.getToken(r,e.node);return a=v(i.canActivateChild?i.canActivateChild(o,t.future):i(o,t.future)),vt.first.call(a)}))}))},e.prototype.extractCanActivateChild=function(e){var t=e._routeConfig?e._routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var o=this,a=t&&t._routeConfig?t._routeConfig.canDeactivate:null;if(!a||0===a.length)return r.i(gt.of)(!0);var i=xt.mergeMap.call(r.i(pt.from)(a),function(r){var a,i=o.getToken(r,t);return a=v(i.canDeactivate?i.canDeactivate(e,t,o.curr,o.future):i(e,t,o.curr,o.future)),vt.first.call(a)});return mt.every.call(i,function(e){return!0===e})},e.prototype.runResolve=function(e){var t=e._resolve;return yt.map.call(this.resolveNode(t,e),function(t){return e._resolvedData=t,e.data=Object.assign({},e.data,oe(e).resolve),null})},e.prototype.resolveNode=function(e,t){var o=this,a=Object.keys(e);if(0===a.length)return r.i(gt.of)({});if(1===a.length){var i=a[0];return yt.map.call(this.getResolver(e[i],t),function(e){return t={},t[i]=e,t;var t})}var n={},s=xt.mergeMap.call(r.i(pt.from)(a),function(r){return yt.map.call(o.getResolver(e[r],t),function(e){return n[r]=e,e})});return yt.map.call(bt.last.call(s),function(){return n})},e.prototype.getResolver=function(e,t){var r=this.getToken(e,t);return v(r.resolve?r.resolve(t,this.future):r(t,this.future))},e.prototype.getToken=function(e,t){var r=Ke(t);return(r?r.module.injector:this.moduleInjector).get(e)},e}(),Sr=function(){function e(e,t,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=r}return e.prototype.activate=function(e){var t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),ne(this.futureState.root),this.activateChildRoutes(t,r,e)},e.prototype.deactivateChildRoutes=function(e,t,r){var o=this,a=$e(t);e.children.forEach(function(e){var t=e.value.outlet;o.deactivateRoutes(e,a[t],r),delete a[t]}),g(a,function(e,t){o.deactivateRouteAndItsChildren(e,r)})},e.prototype.deactivateRoutes=function(e,t,r){var o=e.value,a=t?t.value:null;if(o===a)if(o.component){var i=r.getContext(o.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,r);else a&&this.deactivateRouteAndItsChildren(t,r)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var r=t.getContext(e.value.outlet);if(r&&r.outlet){var o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var r=this,o=t.getContext(e.value.outlet);if(o){var a=$e(e),i=e.value.component?o.children:t;g(a,function(e,t){return r.deactivateRouteAndItsChildren(e,i)}),o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,r){var o=this,a=$e(t);e.children.forEach(function(e){o.activateRoutes(e,a[e.value.outlet],r)})},e.prototype.activateRoutes=function(e,t,r){var o=e.value,a=t?t.value:null;if(ne(o),o===a)if(o.component){var i=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,r);else if(o.component){var i=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){var n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),i.children.onOutletReAttached(n.contexts),i.attachRef=n.componentRef,i.route=n.route.value,i.outlet&&i.outlet.attach(n.componentRef,n.route.value),Ye(n.route)}else{var s=qe(o.snapshot),l=s?s.module.componentFactoryResolver:null;i.route=o,i.resolver=l,i.outlet&&i.outlet.activateWith(o,l),this.activateChildRoutes(e,null,i.children)}}else this.activateChildRoutes(e,null,r)},e}(),_r=function(){function e(e,t,r,o,a){this.router=e,this.route=t,this.commands=[],null==r&&o.setAttribute(a.nativeElement,"tabindex","0")}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){r.i(ht.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:Ze(this.skipLocationChange),replaceUrl:Ze(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ze(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ze(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}();_r.decorators=[{type:ht.Directive,args:[{selector:":not(a)[routerLink]"}]}],_r.ctorParameters=function(){return[{type:xr},{type:sr},{type:void 0,decorators:[{type:ht.Attribute,args:["tabindex"]}]},{type:ht.Renderer2},{type:ht.ElementRef}]},_r.propDecorators={queryParams:[{type:ht.Input}],fragment:[{type:ht.Input}],queryParamsHandling:[{type:ht.Input}],preserveFragment:[{type:ht.Input}],skipLocationChange:[{type:ht.Input}],replaceUrl:[{type:ht.Input}],routerLink:[{type:ht.Input}],preserveQueryParams:[{type:ht.Input}],onClick:[{type:ht.HostListener,args:["click"]}]};var Lr=function(){function e(e,t,r){var o=this;this.router=e,this.route=t,this.locationStrategy=r,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof It&&o.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){r.i(ht.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,r,o){if(0!==e||t||r||o)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:Ze(this.skipLocationChange),replaceUrl:Ze(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,a),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ze(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ze(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}();Lr.decorators=[{type:ht.Directive,args:[{selector:"a[routerLink]"}]}],Lr.ctorParameters=function(){return[{type:xr},{type:sr},{type:ct.LocationStrategy}]},Lr.propDecorators={target:[{type:ht.HostBinding,args:["attr.target"]},{type:ht.Input}],queryParams:[{type:ht.Input}],fragment:[{type:ht.Input}],queryParamsHandling:[{type:ht.Input}],preserveFragment:[{type:ht.Input}],skipLocationChange:[{type:ht.Input}],replaceUrl:[{type:ht.Input}],href:[{type:ht.HostBinding}],routerLink:[{type:ht.Input}],preserveQueryParams:[{type:ht.Input}],onClick:[{type:ht.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var Ar=function(){function e(e,t,r,o){var a=this;this.router=e,this.element=t,this.renderer=r,this.cdr=o,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof It&&a.update()})}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.active!==t&&(e.active=t,e.classes.forEach(function(r){t?e.renderer.addClass(e.element.nativeElement,r):e.renderer.removeClass(e.element.nativeElement,r)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(r){return e.isActive(r.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},e}();Ar.decorators=[{type:ht.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Ar.ctorParameters=function(){return[{type:xr},{type:ht.ElementRef},{type:ht.Renderer2},{type:ht.ChangeDetectorRef}]},Ar.propDecorators={links:[{type:ht.ContentChildren,args:[_r,{descendants:!0}]}],linksWithHrefs:[{type:ht.ContentChildren,args:[Lr,{descendants:!0}]}],routerLinkActiveOptions:[{type:ht.Input}],routerLinkActive:[{type:ht.Input}]};var Tr=function(){function e(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dr,this.attachRef=null}return e}(),Dr=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new Tr,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),Pr=function(){function e(e,t,r,o,a){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new ht.EventEmitter,this.deactivateEvents=new ht.EventEmitter,this.name=o||Ht,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=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))}},Object.defineProperty(e.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=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,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var r=e._futureSnapshot,o=r._routeConfig.component;t=t||this.resolver;var a=t.resolveComponentFactory(o),i=this.parentContexts.getOrCreateContext(this.name).children,n=new Ir(e,i,this.location.injector);this.activated=this.location.createComponent(a,this.location.length,n),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},e}();Pr.decorators=[{type:ht.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Pr.ctorParameters=function(){return[{type:Dr},{type:ht.ViewContainerRef},{type:ht.ComponentFactoryResolver},{type:void 0,decorators:[{type:ht.Attribute,args:["name"]}]},{type:ht.ChangeDetectorRef}]},Pr.propDecorators={activateEvents:[{type:ht.Output,args:["activate"]}],deactivateEvents:[{type:ht.Output,args:["deactivate"]}]};var Ir=function(){function e(e,t,r){this.route=e,this.childContexts=t,this.parent=r}return e.prototype.get=function(e,t){return e===sr?this.route:e===Dr?this.childContexts:this.parent.get(e,t)},e}(),Er=function(){function e(){}return e.prototype.preload=function(e,t){},e}(),Or=function(){function e(){}return e.prototype.preload=function(e,t){return kt._catch.call(t(),function(){return r.i(gt.of)(null)})},e}(),Mr=function(){function e(){}return e.prototype.preload=function(e,t){return r.i(gt.of)(null)},e}(),Rr=function(){function e(e,t,r,o,a){this.router=e,this.injector=o,this.preloadingStrategy=a;var i=function(t){return e.triggerEvent(new Rt(t))},n=function(t){return e.triggerEvent(new Ft(t))};this.loader=new vr(t,r,i,n)}return e.prototype.setUpPreloading=function(){var e=this,t=Dt.filter.call(this.router.events,function(e){return e instanceof It});this.subscription=ft.concatMap.call(t,function(){return e.preload()}).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(ht.NgModuleRef);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){for(var o=[],a=0,i=t;a 0){e.split("&").forEach(function(e){var r=e.indexOf("="),o=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)],a=o[0],i=o[1],n=t.get(a)||[];n.push(i),t.set(a,n)})}return t}function s(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function l(){var e="object"==typeof window?window:{};return null===V&&(V=e[F]={}),V}function c(e){var t=new E;return Object.keys(e).forEach(function(r){var o=e[r];o&&Array.isArray(o)?o.forEach(function(e){return t.append(r,e.toString())}):t.append(r,o.toString())}),t}function h(e,t){return e.createConnection(t).response}function d(e,t,r,o){var a=e;return t?a.merge(new K({method:t.method||r,url:t.url||o,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):a.merge(new K({method:r,url:o}))}function u(){return new Y}function p(e,t){return new oe(e,t)}function g(e,t){return new ae(e,t)}var f=r("6Xbx"),m=r("/oeL"),v=r("bKpL"),b=(r.n(v),r("fc+i"));r.d(t,"a",function(){return y}),r.d(t,"f",function(){return q}),r.d(t,"h",function(){return $}),r.d(t,"g",function(){return K}),r.d(t,"c",function(){return A}),r.d(t,"b",function(){return L}),r.d(t,"i",function(){return oe}),r.d(t,"k",function(){return ie}),r.d(t,"d",function(){return D}),r.d(t,"e",function(){return u}),r.d(t,"j",function(){return p});var y=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}();y.decorators=[{type:m.Injectable}],y.ctorParameters=function(){return[]};var x={};x.Get=0,x.Post=1,x.Put=2,x.Delete=3,x.Options=4,x.Head=5,x.Patch=6,x[x.Get]="Get",x[x.Post]="Post",x[x.Put]="Put",x[x.Delete]="Delete",x[x.Options]="Options",x[x.Head]="Head",x[x.Patch]="Patch";var w={};w.Unsent=0,w.Open=1,w.HeadersReceived=2,w.Loading=3,w.Done=4,w.Cancelled=5,w[w.Unsent]="Unsent",w[w.Open]="Open",w[w.HeadersReceived]="HeadersReceived",w[w.Loading]="Loading",w[w.Done]="Done",w[w.Cancelled]="Cancelled";var C={};C.Basic=0,C.Cors=1,C.Default=2,C.Error=3,C.Opaque=4,C[C.Basic]="Basic",C[C.Cors]="Cors",C[C.Default]="Default",C[C.Error]="Error",C[C.Opaque]="Opaque";var k={};k.NONE=0,k.JSON=1,k.FORM=2,k.FORM_DATA=3,k.TEXT=4,k.BLOB=5,k.ARRAY_BUFFER=6,k[k.NONE]="NONE",k[k.JSON]="JSON",k[k.FORM]="FORM",k[k.FORM_DATA]="FORM_DATA",k[k.TEXT]="TEXT",k[k.BLOB]="BLOB",k[k.ARRAY_BUFFER]="ARRAY_BUFFER";var S={};S.Text=0,S.Json=1,S.ArrayBuffer=2,S.Blob=3,S[S.Text]="Text",S[S.Json]="Json",S[S.ArrayBuffer]="ArrayBuffer",S[S.Blob]="Blob";var _=function(){function e(t){var r=this;if(this._headers=new Map,this._normalizedNames=new Map,t)return t instanceof e?void t.forEach(function(e,t){e.forEach(function(e){return r.append(t,e)})}):void Object.keys(t).forEach(function(e){var o=Array.isArray(t[e])?t[e]:[t[e]];r.delete(e),o.forEach(function(t){return r.append(e,t)})})}return e.fromResponseHeaderString=function(t){var r=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var o=e.slice(0,t),a=e.slice(t+1).trim();r.set(o,a)}}),r},e.prototype.append=function(e,t){var r=this.getAll(e);null===r?this.set(e,t):r.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(r,o){return e(r,t._normalizedNames.get(o),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(r,o){var a=[];r.forEach(function(e){return a.push.apply(a,e.split(","))}),t[e._normalizedNames.get(o)]=a}),t},e.prototype.getAll=function(e){return this.has(e)?this._headers.get(e.toLowerCase())||null:null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),L=function(){function e(e){void 0===e&&(e={});var t=e.body,r=e.status,o=e.headers,a=e.statusText,i=e.type,n=e.url;this.body=null!=t?t:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=a?a:null,this.type=null!=i?i:null,this.url=null!=n?n:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),A=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:C.Default,headers:new _})||this}return f.a(t,e),t}(L);A.decorators=[{type:m.Injectable}],A.ctorParameters=function(){return[]};var T=function(){function e(){}return e.prototype.createConnection=function(e){},e}(),D=(function(){function e(){}}(),function(){function e(){}return e.prototype.configureRequest=function(e){},e}()),P=function(e){return e>=200&&e<300},I=function(){function e(){}return e.prototype.encodeKey=function(e){return s(e)},e.prototype.encodeValue=function(e){return s(e)},e}(),E=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new I),this.rawParams=e,this.queryEncoder=t,this.paramsMap=n(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0===t||null===t)return void this.delete(e);var r=this.paramsMap.get(e)||[];r.length=0,r.push(t),this.paramsMap.set(e,r)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){var o=t.paramsMap.get(r)||[];o.length=0,o.push(e[0]),t.paramsMap.set(r,o)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var r=this.paramsMap.get(e)||[];r.push(t),this.paramsMap.set(e,r)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){for(var o=t.paramsMap.get(r)||[],a=0;a =200&&r.status<=299,r.statusText=t.statusText,r.headers=t.headers,r.type=t.type,r.url=t.url,r}return f.a(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(O),R=0,F="__ng_jsonp__",V=null,N=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+R++},e.prototype.requestCallback=function(e){return F+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){l()[e]=t},e.prototype.removeConnection=function(e){l()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},e}();N.decorators=[{type:m.Injectable}],N.ctorParameters=function(){return[]};var B="JSONP injected script did not invoke callback.",j="JSONP requests must use GET request method.",H=function(){function e(){}return e.prototype.finished=function(e){},e}(),W=function(e){function t(t,r,o){var a=e.call(this)||this;if(a._dom=r,a.baseResponseOptions=o,a._finished=!1,t.method!==x.Get)throw new TypeError(j);return a.request=t,a.response=new v.Observable(function(e){a.readyState=w.Loading;var i=a._id=r.nextRequestID();r.exposeConnection(i,a);var n=r.requestCallback(a._id),s=t.url;s.indexOf("=JSONP_CALLBACK&")>-1?s=s.replace("=JSONP_CALLBACK&","="+n+"&"):s.lastIndexOf("=JSONP_CALLBACK")===s.length-"=JSONP_CALLBACK".length&&(s=s.substring(0,s.length-"=JSONP_CALLBACK".length)+"="+n);var l=a._script=r.build(s),c=function(t){if(a.readyState!==w.Cancelled){if(a.readyState=w.Done,r.cleanup(l),!a._finished){var i=new L({body:B,type:C.Error,url:s});return o&&(i=o.merge(i)),void e.error(new M(i))}var n=new L({body:a._responseData,url:s});a.baseResponseOptions&&(n=a.baseResponseOptions.merge(n)),e.next(new M(n)),e.complete()}},h=function(t){if(a.readyState!==w.Cancelled){a.readyState=w.Done,r.cleanup(l);var i=new L({body:t.message,type:C.Error});o&&(i=o.merge(i)),e.error(new M(i))}};return l.addEventListener("load",c),l.addEventListener("error",h),r.send(l),function(){a.readyState=w.Cancelled,l.removeEventListener("load",c),l.removeEventListener("error",h),a._dom.cleanup(l)}}),a}return f.a(t,e),t.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==w.Cancelled&&(this._responseData=e)},t}(H),G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f.a(t,e),t}(T),z=function(e){function t(t,r){var o=e.call(this)||this;return o._browserJSONP=t,o._baseResponseOptions=r,o}return f.a(t,e),t.prototype.createConnection=function(e){return new W(e,this._browserJSONP,this._baseResponseOptions)},t}(G);z.decorators=[{type:m.Injectable}],z.ctorParameters=function(){return[{type:N},{type:L}]};var U=/^\)\]\}',?\n/,X=function(){function e(e,t,r){var o=this;this.request=e,this.response=new v.Observable(function(i){var n=t.build();n.open(x[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(n.withCredentials=e.withCredentials);var s=function(){var t=1223===n.status?204:n.status,o=null;204!==t&&"string"==typeof(o=void 0===n.response?n.responseText:n.response)&&(o=o.replace(U,"")),0===t&&(t=o?200:0);var s=_.fromResponseHeaderString(n.getAllResponseHeaders()),l=a(n)||e.url,c=n.statusText||"OK",h=new L({body:o,status:t,headers:s,statusText:c,url:l});null!=r&&(h=r.merge(h));var d=new M(h);if(d.ok=P(t),d.ok)return i.next(d),void i.complete();i.error(d)},l=function(e){var t=new L({body:e,type:C.Error,status:n.status,statusText:n.statusText});null!=r&&(t=r.merge(t)),i.error(new M(t))};if(o.setDetectedContentType(e,n),null==e.headers&&(e.headers=new _),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return n.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=n.responseType)switch(e.responseType){case S.ArrayBuffer:n.responseType="arraybuffer";break;case S.Json:n.responseType="json";break;case S.Text:n.responseType="text";break;case S.Blob:n.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return n.addEventListener("load",s),n.addEventListener("error",l),n.send(o.request.getBody()),function(){n.removeEventListener("load",s),n.removeEventListener("error",l),n.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case k.NONE:break;case k.JSON:t.setRequestHeader("content-type","application/json");break;case k.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case k.TEXT:t.setRequestHeader("content-type","text/plain");break;case k.BLOB:var r=e.blob();r.type&&t.setRequestHeader("content-type",r.type)}},e}(),Y=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=r.i(b.t)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),q=function(){function e(e,t,r){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=r}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new X(e,this._browserXHR,this._baseResponseOptions)},e}();q.decorators=[{type:m.Injectable}],q.ctorParameters=function(){return[{type:y},{type:L},{type:D}]};var K=function(){function e(e){void 0===e&&(e={});var t=e.method,r=e.headers,a=e.body,i=e.url,n=e.search,s=e.params,l=e.withCredentials,c=e.responseType;this.method=null!=t?o(t):null,this.headers=null!=r?r:null,this.body=null!=a?a:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||n),this.withCredentials=null!=l?l:null,this.responseType=null!=c?c:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new _(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof E?e.clone():"string"==typeof e?new E(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var r=new E;return Object.keys(e).forEach(function(o){var a=e[o];Array.isArray(a)?a.forEach(function(e){return t._appendParam(o,e,r)}):t._appendParam(o,a,r)}),r},e.prototype._appendParam=function(e,t,r){"string"!=typeof t&&(t=JSON.stringify(t)),r.append(e,t)},e}(),$=function(e){function t(){return e.call(this,{method:x.Get,headers:new _})||this}return f.a(t,e),t}(K);$.decorators=[{type:m.Injectable}],$.ctorParameters=function(){return[]};var J=function(e){function t(t){var r=e.call(this)||this,a=t.url;r.url=t.url;var i=t.params||t.search;if(i){var n=void 0;if(n="object"!=typeof i||i instanceof E?i.toString():c(i).toString(),n.length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=a+s+n}}return r._body=t.body,r.method=o(t.method),r.headers=new _(t.headers),r.contentType=r.detectContentType(),r.withCredentials=t.withCredentials,r.responseType=t.responseType,r}return f.a(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return k.JSON;case"application/x-www-form-urlencoded":return k.FORM;case"multipart/form-data":return k.FORM_DATA;case"text/plain":case"text/html":return k.TEXT;case"application/octet-stream":return this._body instanceof re?k.ARRAY_BUFFER:k.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?k.NONE:this._body instanceof E?k.FORM:this._body instanceof ee?k.FORM_DATA:this._body instanceof te?k.BLOB:this._body instanceof re?k.ARRAY_BUFFER:this._body&&"object"==typeof this._body?k.JSON:k.TEXT},t.prototype.getBody=function(){switch(this.contentType){case k.JSON:case k.FORM:return this.text();case k.FORM_DATA:return this._body;case k.TEXT:return this.text();case k.BLOB:return this.blob();case k.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(O),Z=function(){},Q="object"==typeof window?window:Z,ee=Q.FormData||Z,te=Q.Blob||Z,re=Q.ArrayBuffer||Z,oe=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var r;if("string"==typeof e)r=h(this._backend,new J(d(this._defaultOptions,t,x.Get,e)));else{if(!(e instanceof J))throw new Error("First argument must be a url string or Request instance.");r=h(this._backend,e)}return r},e.prototype.get=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Get,e)))},e.prototype.post=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Post,e)))},e.prototype.put=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Put,e)))},e.prototype.delete=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Delete,e)))},e.prototype.patch=function(e,t,r){return this.request(new J(d(this._defaultOptions.merge(new K({body:t})),r,x.Patch,e)))},e.prototype.head=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Head,e)))},e.prototype.options=function(e,t){return this.request(new J(d(this._defaultOptions,t,x.Options,e)))},e}();oe.decorators=[{type:m.Injectable}],oe.ctorParameters=function(){return[{type:T},{type:K}]};var ae=function(e){function t(t,r){return e.call(this,t,r)||this}return f.a(t,e),t.prototype.request=function(e,t){if("string"==typeof e&&(e=new J(d(this._defaultOptions,t,x.Get,e))),!(e instanceof J))throw new Error("First argument must be a url string or Request instance.");if(e.method!==x.Get)throw new Error("JSONP requests must use GET request method.");return h(this._backend,e)},t}(oe);ae.decorators=[{type:m.Injectable}],ae.ctorParameters=function(){return[{type:T},{type:K}]};var ie=function(){function e(){}return e}();ie.decorators=[{type:m.NgModule,args:[{providers:[{provide:oe,useFactory:p,deps:[q,K]},y,{provide:K,useClass:$},{provide:L,useClass:A},q,{provide:D,useFactory:u}]}]}],ie.ctorParameters=function(){return[]};var ne=function(){function e(){}return e}();ne.decorators=[{type:m.NgModule,args:[{providers:[{provide:ae,useFactory:g,deps:[G,K]},N,{provide:K,useClass:$},{provide:L,useClass:A},{provide:G,useClass:z}]}]}],ne.ctorParameters=function(){return[]};new m.Version("4.4.7")},CTng:function(e,t){!function(t){"object"==typeof e&&void 0!==e.exports?e.exports=t:t(FusionCharts)}(function(e){e.register("module",["private","modules.renderer.js-gradientlegend",function(){function t(e,t){return function e(t,r){var o,a;for(a in t)N.call(t,a)&&(o=t[a],void 0===r[a]?r[a]=o:"object"==typeof o&&e(o,r[a]))}(e,t),t}function r(e){return R(e||V)||V}function o(e){var t=e.fontSize+"";return t?(t=t.replace(/(\d+)(px)*/,"$1px"),e.fontSize=t,e):e}function a(e){return void 0===e||void 0===e||null===e||e!==e}function i(e,t){this.carpet=e,this._componentPool=t}function n(e){this.conf=e,this._id="GL_CARPET",this.compositionsByCategory={},this._lSpace=this.group=this.node=void 0,this.autoRecalculate=!1,this.groupName="fc-gradient-legend",this.moveInstructions={}}function s(){n.apply(this,arguments)}function l(e,t){this.rawText=e,this.conf=t,this._id="GL_CAPTION",this._lSpace=this.bound=this.node=void 0}function c(e,t,r){this.colorRange=e,this.conf=t,this.childTextConf=r,this._id="GL_BODY",this.bound=void 0,this.compositionsByCategory={},this._lSpace=void 0}function h(){c.apply(this,arguments)}function d(e){this.conf=e,this._id="GL_LABELS"}function u(){d.apply(this,arguments)}function p(){d.apply(this,arguments),this._id="GL_VALUES"}function g(){p.apply(this,arguments),this._id="GL_VALUES"}function f(e){this.conf=e,this._id="FL_AXIS",this.markerLine=this.shadow=this.node=void 0,this.compositionsByCategory={}}function m(){f.apply(this,arguments)}function v(e){var t={};this._id="GL_SG1",this.conf=e,t.conf=e,this.extremes=[],this.sliders={},t.sliderGroup=this,this.valueRange=[],this.callbacks=[],this.sliders[!1]=new b(!1,t,this._id+"_0"),this.sliders[!0]=new b(!0,t,this._id+"_1")}function b(e,t,r){this.conf=t.conf,this.sliderIndex=e,this.rangeGroup=t.sliderGroup,this._id=r,this.tracker=this.node=void 0,this.currPos=0,this.swing=[]}function y(e,t,r){r=r.components.numberFormatter;var o,i,n,s,l,c;for(this.data=e,this.options=t||{},c=this.mapByPercent=!!e.mapByPercent,this.appender="",i=this.mapByPercent?0:t.min,t=this.mapByPercent?100:t.max,2===e.colorRange.length&&(o=e.colorRange[0],n=e.colorRange[1],s=o.value=a(o.value)?i:o.value,l=n.value=a(n.value)?t:n.value,s===l&&(s=o.value=i,l=n.value=t),o.displayValue=c?s+"%":r.legendValue(s),n.displayValue=c?l+"%":r.legendValue(l)),a(i)&&a(o.value)||a(t)&&a(o.value)||!e.gradient?this._preparationGoneWrong=!0:this._preparationGoneWrong=!1,r=this.colorRange=e.colorRange.sort(function(e,t){return e.value-t.value}),this.valueRatio=void 0,this.values=[],e=0,o=r.length;e 2*d.width&&(y=r.getSmartText(l,c,s.height),y.x=a[g]*s.width/100,p=c,b.push(y.height)),h[x[n].oriIndex]=y;return b=Math.max.apply(Math,b),s.height=b,e.height=b+2*v.v,f.node.logicArea=s,f.bound=e},d.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),e=n.parentLayer,n.colorRange.getCumulativeValueRatio(),o=n.componentPool,s=o.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,h=o.getComponent(this._id,s.KEY_GROUP),e=h("legend-labels",e),h=o.getComponent(this._id,s.KEY_RECT),this.bound=t=h(e).attr(i.bound).css(t),h=o.getComponent(this._id,s.KEY_TEXT,!0),s=0,i=n.length;s2*d.width&&(y=r.getSmartText(l,c,s.width),y.y=a[g]*s.height/100,p=c,b.push(y.height)),h[x[n].oriIndex]=y;return b=Math.max.apply(Math,b),s.width=b,e.width=b+2*v.v,f.node.logicArea=s,f.bound=e},u.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),e=n.parentLayer,n.colorRange.getCumulativeValueRatio(),o=n.componentPool,s=o.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,h=o.getComponent(this._id,s.KEY_GROUP),e=h("legend-labels",e),h=o.getComponent(this._id,s.KEY_RECT),this.bound=t=h(e).attr(i.bound).css(t),h=o.getComponent(this._id,s.KEY_TEXT,!0),s=0,i=n.length;s1.5*b.width&&(i=r.getSmartText(p,2*l,u.height),i.x=s[n]*u.width/100,d=l,y.push(i.height)),g[n]=i;return y=Math.max.apply(Math,y),u.height=y,e.height=y+2*v.v,f.node.logicArea=u,f.bound=e},p.prototype.draw=function(){var e,t,r,o,a,i,n,s,l,c=this.conf,h=c.bound&&c.bound.style||{stroke:"none"};for(2<=arguments.length?(a=arguments[0],n=arguments[1]):1<=arguments.length&&(n=arguments[0]),o=n.parentLayer,t=n.colorRange.getCumulativeValueRatio(),r=n.componentPool,e=r.getKeys(),this.getLogicalSpace(a,n),i=this._lSpace,a=i.node.logicArea,n=i.node.smartTexts,l=r.getComponent(this._id,e.KEY_GROUP),o=l("legend-values",o),l=r.getComponent(this._id,e.KEY_RECT),this.bound=h=l(o).attr(i.bound).css(h),l=r.getComponent(this._id,e.KEY_TEXT,!0),e=0,i=t.length;e2*p.height&&(m=r.getSmartText(u,c.width,2*s),m.y=n[i]*c.height/100,d=s,y.push(m.width)),g[i]=m;return y=Math.max.apply(Math,y),c.width=y,e.width=y+2*v.h,f.node.logicArea=c,f.bound=e},g.prototype.draw=function(){var e,t,r=this.conf;t=r.bound&&r.bound.style||{stroke:"none"};var o,a,i,n,s,l,c,h;for(2<=arguments.length?(o=arguments[0],i=arguments[1]):1<=arguments.length&&(i=arguments[0]),e=i.parentLayer,n=i.colorRange.getCumulativeValueRatio(),s=i.componentPool,l=s.getKeys(),this.getLogicalSpace(o,i),a=this._lSpace,o=a.node.logicArea,i=a.node.smartTexts,h=s.getComponent(this._id,l.KEY_GROUP),e=h("legend-values",e),h=s.getComponent(this._id,l.KEY_RECT),this.bound=t=h(e).attr(a.bound).css(t),h=s.getComponent(this._id,l.KEY_TEXT,!0),s=0,l=n.length;s p&&(g-=f-p),n.attr({transform:e?"t0,"+(i.currPos+g):"t"+(i.currPos+g)+",0"}),r=g,o&&clearTimeout(o),o=setTimeout(function(){l.updateWhenInRest(i,i.currPos+g)},100),i.tracker.tooltip(l.updateWhenInMove(i,i.currPos+g),null,null,!0),a=!0},dragStart:function(r){r.stopPropagation(),r.preventDefault(),n.attr({transform:e?"t0,"+i.currPos:"t"+i.currPos+",0"}),t=t||i.swing,a=!1,l.dragStarted(i)},dragEnd:function(){var e;l.dragCompleted(i,a,i.currPos+r),a&&(o&&clearTimeout(o),o=setTimeout(function(){l.updateWhenInRest(i,i.currPos)},100),i.currPos+=r,e=t[+s]+i.currPos,l.updateRange(i,e))}}},y.prototype.constructor=y,y.prototype.getValueRatio=function(){var e,t,r=this.colorRange,o=r.length,a=this.valueRatio,i=r[0].value,n=r[o-1].value-i,s=0;if(a)return a;for(a=this.valueRatio=[],t=0;t i[r]){o=!0;break}if(e>i[r]&&eIe&&(L.toleranceBottom=v(L.toleranceBottom||0,I-Ie)),$=T.getLabel(r),I=L.showtooltip?H.toolText+(R?f:H.toolTipValue):f,H.finalTooltext=I,R=H.eventArgs||(H.eventArgs={}),R.index=r,R.link=O,R.value=M,R.displayValue=F,R.categoryLabel=$,R.toolText=I,R.id=S.userID,R.datasetIndex=_,R.datasetName=d.seriesname,R.visible=_e,ne.imageUrl?(H.anchorImageLoaded=!1,V._xPos=o,V._yPos=a,B=new s,B.onload=this._onAnchorImageLoad(i,r,R,o,a),B.onerror=this._onErrorSetter(i,r),B.src=ne.imageUrl,De++):(K&&K.hide(),M=[j[1]||2,o,a,ne.radius,ne.startAngle,ne.dip],O={fill:h({color:ne.bgColor,alpha:ne.bgAlpha}),stroke:h({color:ne.borderColor,alpha:ne.borderAlpha}),"stroke-width":ne.borderThickness,visibility:ne.radius?_e:m},E||(he.element&&he.element.length?E=V.graphics.element=he.element.shift():(E=V.graphics.element=A.polypath(re.anchorGroup),E.attr({polypath:M}))),E.show().animateWith(se,le,{polypath:M},ce,Te,pe&&de),E.attr(O).shadow(B,re.anchorShadowGroup).data("hoverEnabled",N.enabled).data("eventArgs",R),pe=!1),B=V.graphics.connector,N.enabled&&(M={polypath:[N.anchorSides||2,o,a,N.anchorRadius,N.startAngle,N.dip],fill:h({color:N.anchorColor,alpha:N.anchorBgAlpha}),stroke:h({color:N.anchorBorderColor,alpha:N.anchorBorderAlpha}),"stroke-width":N.anchorBorderThickness},O={polypath:[ne.sides,o,a,ne.radius,ne.startAngle,0],fill:h({color:ne.bgColor,alpha:ne.bgAlpha}),stroke:h({color:ne.borderColor,alpha:ne.borderAlpha}),"stroke-width":ne.borderThickness},E&&E.data("anchorRadius",ne.radius).data("anchorHoverRadius",N.anchorRadius).data("hoverEnabled",N.enabled).data("setRolloverAttr",M).data("setRolloutAttr",O).data("eventArgs",R)),H.trackerConfig||(H.trackerConfig={}),H.trackerConfig.trackerRadius=v(ne.radius,N&&N.anchorRadius||0,x)+(ne.borderThickness||0)/2,U=U!==[h(X||ve),W||me].join(":"),null!==we?(Ce.length&&(be=be.concat(Ce),Ce.length=0),be.join(f)||be.push("M",Y,we),Ae?(be.push("H",o-b),Le?be.push("V",a):be.push("M",o-b,a),b&&be.push("H",o)):(Le?be.push("V",a):be.push("M",Y,a),be.push("H",o)),U&&(ye?xe=xe.concat(be):(B||(B=V.graphics.connector=A.path(be,re.lineGroup),ke=!0),B.animateWith(se,le,{path:be},ce,Te,pe&&de),B.attr({"stroke-dasharray":z,"stroke-width":te,stroke:G,"stroke-linecap":w,"stroke-linejoin":2 a&&(a=-a,o=-o,e+=o-a/2,t+=o-a/2),o=3;0 a;++a)for(i=0;i t&&(t=c);o.max=t,o.min=n}},e.sscartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-splinearea",function(){var e=this.hcLib,t=e.HUNDREDSTRING,r=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("splinearea",{friendlyName:"Spline Area Chart",standaloneInit:!0,hasLegend:!1,singleseries:!0,creditLabel:r,defaultDatasetType:"mssplinearea",defaultPlotShadow:0},e.spline,{anchoralpha:t,minimizetendency:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-msspline",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("msspline",{standaloneInit:!0,friendlyName:"Multi-series Spline Chart",creditLabel:t,defaultDatasetType:"msspline",applicableDSList:{msspline:!0},defaultPlotShadow:1,getSplineExtremities:e.spline.getSplineExtremities,evalSplineExtremities:e.spline.evalSplineExtremities,getSegmentExtremities:e.spline.getSegmentExtremities},e.mscartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-mssplinearea",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("mssplinearea",{friendlyName:"Multi-series Spline Area Chart",standaloneInit:!0,creditLabel:t,defaultDatasetType:"mssplinearea",defaultPlotShadow:0},e.msspline,{minimizetendency:0,enablemousetracking:!0},e.areabase)}]),e.register("module",["private","modules.renderer.js-mssplinedy",function(){var e=this.hcLib,t=!e.CREDIT_REGEX.test(this.window.location.hostname),e=e.chartAPI;e("mssplinedy",{friendlyName:"Multi-series Dual Y-Axis Spline Chart",standaloneInit:!0,creditLabel:t,isDual:!0,defaultDatasetType:"msspline",applicableDSList:{msspline:!0},getSplineExtremities:e.spline.getSplineExtremities,evalSplineExtremities:e.spline.evalSplineExtremities,getSegmentExtremities:e.spline.getSegmentExtremities},e.msdybasecartesian,{minimizetendency:0,zeroplanethickness:1,zeroplanealpha:40,showzeroplaneontop:0},e.msspline)}]),e.register("module",["private","modules.renderer.js-multiaxisline",function(){var t=this.hcLib,r=this.window,o=t.pluck,a=t.pluckNumber,i=t.preDefStr,n=i.sStr,s=t.BLANKSTRING,l=t.parseUnsafeString,c=i.defaultFontStr,h=t.pluckFontSize,d=i.divLineAlphaStr,u=i.divLineAlpha3DStr,p=t.componentDispose,g=t.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:u,legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},r=!t.CREDIT_REGEX.test(r.location.hostname),f=t.graphics.convertColor,m=t.extend2,v=i.altVGridColorStr,b=i.configStr,y=i.animationObjStr,x="rgba(192,192,192,"+(t.isIE?.002:1e-6)+")",w=t.toRaphaelColor,C=t.hasTouch,k=Math,S=k.max,_=k.min,L=i.POSITION_BOTTOM,A=i.colors.c000000,T=i.altVGridAlphaStr,t=t.chartAPI;t("multiaxisline",{friendlyName:"Multi-axis Line Chart",standaloneInit:!0,creditLabel:r,defaultDatasetType:"multiaxisline",defaultPlotShadow:1,axisPaddingLeft:0,axisPaddingRight:0,applicableDSList:{LINE:!0},_createDatasets:function(){var t,r,a,i,c,h,d,u,g,f,m,v,b=this.components,y=this.config,x=this.jsonData,w=x.axis,C=0,k=this.defaultDatasetType,S=this.applicableDSList,_=b.legend.components.items||[],L=this.config.isstacked,A={},T=0;if(w){for(t=w.length,this.config.categories=x.categories&&x.categories[0].category,x=b.dataset||(b.dataset=[]),i=x.length,v=y.axisDataSetMap=[],r=0;r u&&c.removeData(u-1,d-u,!1),c.JSONData=f,c.index=r,c.axisIndex=r,c.configure(),v[r].push(T),T+=1):(c=new c,x.push(c),c.chart=this,c.index=r,c.axisIndex=r,v[r].push(T),T+=1,d&&(L?d.addDataSet(c,0,A[u]):d.addDataSet(c,A[u],0)),c.init(f)));if(i>C){for(b=i-C,y=C;yg+f&&this._allocateSpace({left:f,right:g}),r=.6*o.canvasHeight,s[0]&&this._allocateSpace(s[0].placeAxis(r)),r=.325*o.canvasHeight,this._getDSspace&&this._allocateSpace(this._getDSspace(r)),c&&this._allocateSpace({bottom:c}),this._allocateSpace({top:n,bottom:n,left:n,right:n}),s=y>o.canvasTop?y-o.canvasTop:0,c=x>C-o.canvasBottom?x+o.canvasBottom-C:0,g=w>o.canvasLeft?w-o.canvasLeft:0,f=v>b-o.canvasRight?v+o.canvasRight-b:0,this._allocateSpace({top:s,bottom:c,left:g,right:f}),o.actualCanvasMarginTop=s,o.actualCanvasMarginLeft=g,o.actualCanvasMarginRight=f,o.actualCanvasMarginBottom=c},_postSpaceManagement:function(){var e=this.config,t=this.components,r=t.xAxis&&t.xAxis[0],o=t.legend,a=e.xDepth,i=t.canvas.config,t=i.canvasBorderWidth,n=i.canvasPadding,s=i.canvasPaddingLeft,i=i.canvasPaddingRight;r&&r.setAxisDimention({x:e.canvasLeft+(a||0)+S(s,n),y:e.canvasBottom+(e.shift||0)+t,opposite:e.canvasTop-t,axisLength:e.canvasWidth-(a||0)-S(s,n)-S(i,n)}),r&&r.shiftLabels(-a,0),o.postSpaceManager()},_resuffelAxis:function(){var e,t,r,o,a,i=this.data("axisDetails"),n=i.iapi,s=n.config.axesArr;if(e=s.leftAxes,t=s.rightAxes,"l"===i.position){for(o=e.length-1;o>i.index;o--)if(e[o].showAxis){r=o,a=i.index;break}if(void 0!==r&&(i=m({},e[a]),e[a]=m({},e[r]),e[r]=m({},i)),s.leftSideSelected&&void 0===r)return;s.leftSideSelected=!0}else{for(o=0;o n&&e!==i?o=!0:e=n>i?n:i,o){for(r.setAxisConfig({axisMaxValue:e,axisMinValue:a,showUpperLimit:!0}),r.setDataLimit(e,a),this._manageSpace(),this._postSpaceManagement(),this._drawCanvas(),this.chartMenuBar&&this._drawChartMenuBar(),this._manageCaptionPosition(),this._drawCanvas(),t.caption&&t.caption.draw(),this.drawLegend(),this.drawActionBar&&this.drawActionBar(),t=0;t =i.min&&A<=i.max&&(m.setValue=a.value=null),m.setLink=k(a.link),m.anchorProps=this._parseAnchorProperties(w,e,"outlier"),i=c.getLabel(w),m.label=t.getValidValue(h(k(i.tooltext,i.label,i.name))),m.showValue=0,m.dashed=_(a.dashed,I),m.color=k(a.color,d.lineColor),m.alpha=k(a.alpha,a.alpha,d.alpha),T=O(T,A),D=E(D,A),m.dashStyle=m.dashed?s:"none",m.toolTipValue=A=L.dataLabels(A,n),m.setDisplayValue=i=h(a.displayvalue),m.displayValue=k(i,A),m.formatedVal=A=m.toolTipValue,m.setTooltext=t.getValidValue(h(k(a.tooltext,g.plottooltext,f.plottooltext))),a=k(a.outliericonshape,g.outliericonshape,f.outliericonshape,"polygon"),d.dip=m.dip="polygon"===a?0:"spoke"===a?1:0,a=!!d.showTooltip&&(null!==A&&"Outlier"+P+""),m.toolText=a,m.setTooltext=a,y?y.graphics||(l[w].graphics={}):l[w]={graphics:{}},m.hoverEffects={enabled:!1};d.maxValue=T,d.minValue=D},initSubDataset:function(e,t){var r=t.chart,o=r.components,a=r.hasLineSet,a=e.parentyaxis&&e.parentyaxis.toLowerCase()===p||a?1:0;t.chart=r,t.yAxis=o.yAxis[a],t.components={},t.graphics={},t.JSONData=e},_parseAnchorProperties:function(e,r,o){var a=r.config,i="area"===r.type?0:1,n=r.JSONData,s=r.chart.jsonData.chart;e=n.data[e],r={};var l=t.graphics.mapSymbolName,n=void 0!==k(e.anchorstartangle,n.anchorstartangle,s.anchorstartangle,e.anchorimagealpha,n.anchorimagealpha,s.anchorimagealpha,e.anchorimagescale,n.anchorimagescale,s.anchorimagescale,e.anchorimagepadding,n.anchorimagepadding,s.anchorimagepadding,e.anchorimageurl,n.anchorimageurl,s.anchorimageurl,e.meaniconradius,n.meaniconradius,s.meaniconradius,e.meaniconcolor,n.meaniconcolor,s.meaniconcolor,e.anchorbordercolor,n.anchorbordercolor,s.anchorbordercolor,e.anchoralpha,n.anchoralpha,s.anchoralpha,e.meaniconsides,n.meaniconsides,s.meaniconsides,e.anchorborderthickness,n.anchorborderthickness,s.anchorborderthickness,void 0),s=_(e.drawanchors,a.drawAnchors);return r.enabled=n?_(s,n):_(s,i),r.startAngle=_(e.anchorstartangle,a.anchorStartAngle),r.imageAlpha=_(e.anchorimagealpha,a.anchorImageAlpha),r.imageScale=_(e.anchorimagescale,a.anchorImageScale),r.imagePadding=_(e.anchorimagepadding,a.anchorImagePadding),0>r.imagePadding&&(r.imagePadding=0),r.imageUrl=k(e.anchorimageurl,a.anchorImageUrl),r.radius=_(e[o+"iconradius"],a.anchorRadius),r.isAnchorRadius=r.radius,r.bgColor=k(e[o+"iconcolor"],a.anchorBgColor),i=r.enabled?R(k(e.anchoralpha,a.anchorAlpha,r.enabled?j:d)):0,r.bgAlpha=R(k(e[o+"iconalpha"],a.meaniconalpha,i)),r.borderColor=k(e.anchorbordercolor,a.anchorBorderColor),r.borderAlpha=i,r.anchorAlpha=i,r.sides=k(e[o+"iconsides"],a.anchorSides),r.borderThickness=k(e.anchorborderthickness,a.anchorBorderThickness),r.symbol=l(r.sides).split(y),r.shadow=!!(_(e.anchorshadow,a.anchorShadow)&&1<=r.radius)&&{opacity:i/100},a.attachEvents=!0,r},init:function(e){var t=this.chart,r=t.components,o=e.parentyaxis&&e.parentyaxis.toLowerCase()===p?1:0,r=r.yAxis[o];if(!e)return!1;this.JSONData=e,this.yAxis=r,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.configure()},draw:function(){var e,t,r,o,d,u,p,b,x,k,S,L,A,P,M,R,F,V,B,j,W,G,z,U,X,Y,q,K,$,J,Z,Q,ee,te,re,oe,ae,ie,ne,se,le,ce,he,de,ue,pe,ge,fe,me,ve,be,ye,xe,we,Ce,ke,Se,_e,Le,Ae,Te,De,Pe,Ie,Ee,Oe,Me,Re,Fe,Ve,Ne,Be,je,He,We,Ge,ze,Ue,Xe,Ye=this,qe=Ye.JSONData,Ke=Ye.config,$e=Ye.groupManager,Je=Ye.index,Ze=Ye.chart.config.categories,Qe=qe.data,et=Ze&&Ze.length,tt=Qe&&Qe.length,rt=Ye.visible,ot=Ye.chart,at=ot.config,it=ot.components.paper,nt=ot.components.xAxis[0],st=Ye.yAxis,lt=ot.graphics.columnGroup,ct=ot.graphics,ht=Ke.showtooltip,dt=ot.get(a,i),ut=dt.animType,pt=dt.animObj,gt=dt.dummyObj,ft=dt.duration,mt=nt.getAxisPosition(0),vt=nt.getAxisPosition(1)-mt,bt=Ke.definedGroupPadding,yt=Ke.plotSpacePercent/200,xt=$e.getDataSetPosition(Ye),wt=Ke.maxcolwidth,Ct=(1-.01*bt)*vt||E(vt*(1-2*yt),1*wt),kt=_(xt.columnWidth,Ct/1),St=xt.xPosOffset||0,_t=xt.height,Lt=Ye.components.data,At=st.getAxisBase(),Tt=Ke.showShadow,Dt=Ye.graphics.upperBoxContainer,Pt=Ye.graphics.lowerBoxContainer,It=Ye.graphics.medianContainer,Et=Ye.graphics.upperWhiskerContainer,Ot=Ye.graphics.lowerWhiskerContainer,Mt=Ye.graphics.dataLabelContainer,Rt=Ye.graphics.shadowContainer,Ft=ot.config.dataLabelStyle,Vt=ct.datalabelsGroup,Nt=Ke.rotatevalues,Bt=Ke.valuepadding,jt=ot.components.numberFormatter,Ht=Nt?N:"middle",Wt=ot.linkedItems.smartLabel,Gt=1/0,zt=!0,Ut=(Ye.components.removeDataArr||[]).length,Xt=Ke.showHoverEffect,Yt=function(e){H.call(this,ot,e)},qt=function(e){return function(t){var r;if(0!==this.data(n))for(r in e)"label"!==r&&(e[r].attr(this.data("setRolloverAttr")[r]),H.call(this,ot,t,"DataPlotRollOver"))}},Kt=function(e){return function(t){var r;if(0!==this.data(n))for(r in e)"label"!==r&&(e[r].attr(this.data("setRolloutAttr")[r]),H.call(this,ot,t,"DataPlotRollOut"))}},$t=function(){!1!==Ye.visible||!1!==Ye._conatinerHidden&&void 0!==Ye._conatinerHidden||(Dt.hide(),Pt.hide(),Et.hide(),Ot.hide(),It.hide(),Rt.hide(),Mt&&Mt.hide(),Ye._conatinerHidden=!0)};for(Mt||(Mt=Ye.graphics.dataLabelContainer=it.group(l,Vt),rt||Mt.hide()),Dt||(Dt=Ye.graphics.upperBoxContainer=it.group("upperBox",lt).trackTooltip(!0).toBack(),rt||Dt.hide()),Et||(Et=Ye.graphics.upperWhiskerContainer=it.group("upperWhisker",lt).trackTooltip(!0),rt||Et.hide()),Pt||(Pt=Ye.graphics.lowerBoxContainer=it.group("lowerBox",lt).trackTooltip(!0).toBack(),rt||Pt.hide()),Ot||(Ot=Ye.graphics.lowerWhiskerContainer=it.group("lowerWhisker",lt).trackTooltip(!0),rt||Ot.hide()),It||(It=Ye.graphics.medianContainer=it.group("median",lt).trackTooltip(!0),rt||It.hide()),Rt||(Rt=Ye.graphics.shadowContainer=it.group(s,lt).toBack(),rt||Rt.hide()),rt&&(Dt.show(),Pt.show(),Et.show(),Ot.show(),It.show(),Rt.show(),Mt&&Mt.show(),Ye._conatinerHidden=!1,Ye.components.mean.visible&&Ye.components.mean.show(),Ye.components.sd.visible&&Ye.components.sd.show(),Ye.components.qd.visible&&Ye.components.qd.show(),Ye.components.md.visible&&Ye.components.md.show()),b=E(et,tt),k=0;kat.canvasBottom&&(Le=at.canvasBottom-_e),x={text:jt.dataLabels(B.min),x:ye,title:z.originalText||C,y:Le,"text-anchor":Nt?m:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,ye,Le),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},B.showMinValues?(pe.label[4]?(pe.label[4].show(),He=ye,We=Te||Le,pe.label[4].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[4].attr({text:jt.dataLabels(B.min),title:z.originalText||C,"text-anchor":Nt?m:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[4]=it.text(x,Mt),pe.label[4].data("groupId",ge)):pe.label[4]&&pe.label[4].hide()&&pe.label[4].attr({"text-bound":[]}),x={path:Ce,ishot:!ht,"stroke-width":B.lowerWhiskerThickness,cursor:R?"pointer":C,"stroke-linecap":h},ke?ke.animateWith(gt,pt,x,ft,ut,zt&&$t):(ke=M.graphics.lowerWhiskerEle=it.path(x,Ot),Ne=!0),ke.attr({stroke:B.lowerWhiskerColor}),ke.shadow({opacity:B.lowerWhiskerShadowOpacity},Rt),ue=I(Z)+$.borderWidth%2*.5,x={path:["M",he,Te||ue,"H",he+A]},(ce=M.graphics.midLineElem)?ce.animateWith(gt,pt,x,ft,ut,zt&&$t):(ce=M.graphics.midLineElem=it.path(x,It),Fe=!0),ce.attr(p),Be={upperBoxElem:B.setUpperBoxRolloverAttr,lowerBoxElem:B.setLowerBoxRolloverAttr,upperBoxBorderEle:B.setUpperBoxBorderRolloverAttr,lowerBoxBorderEle:B.setLowerBoxBorderRolloverAttr,upperQuartileEle:B.setUpperQuartileRolloverAttr,lowerQuartileEle:B.setLowerQuartileRolloverAttr,midLineElem:B.setMedianRolloverAttr},je={upperBoxElem:B.setUpperBoxRolloutAttr,lowerBoxElem:B.setLowerBoxRolloutAttr,upperBoxBorderEle:B.setUpperBoxBorderRolloutAttr,lowerBoxBorderEle:B.setLowerBoxBorderRolloutAttr,upperQuartileEle:B.setUpperQuartileRolloutAttr,lowerQuartileEle:B.setLowerQuartileRolloutAttr,midLineElem:B.setMedianRolloutAttr},oe.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Pe&&oe.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ne.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ie&&ne.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ae.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ee&&ae.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),se.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Oe&&se.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ie.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Me&&ie.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),le.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Re&&le.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ce.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Fe&&ce.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),we.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ve&&we.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),ke.data("groupId",ge).data("eventArgs",V).data(n,Xt).data("setRolloverAttr",Be).data("setRolloutAttr",je),Ne&&ke.click(Yt).hover(qt(M.graphics),Kt(M.graphics)),Ht=Nt?N:"middle",x={text:z.displayValue,x:S+A/2,title:z.originalText||C,y:X-Bt,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,S+A/2,X-Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D(z.displayValue)&&z.displayValue!==w&&B.showQ3Values?(pe.label[0]?(pe.label[0].show(),He=S+A/2,We=Te||X-Bt,pe.label[0].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[0].attr({text:z.displayValue,title:z.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[0]=it.text(x,Mt),pe.label[0].data("groupId",ge)):pe.label[0]&&pe.label[0].hide()&&pe.label[0].attr({"text-bound":[]}),x={text:$.displayValue,x:he+A/2,y:Z-Bt,title:$.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,he+A/2,Z-Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D($.displayValue)&&$.displayValue!==w&&B.showMedianValues?(pe.label[1]?(pe.label[1].show(),He=he+A/2,We=Te||Z-Bt,pe.label[1].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[1].attr({text:$.displayValue,title:$.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":v,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[1]=it.text(x,Mt),pe.label[1].data("groupId",ge)):pe.label[1]&&pe.label[1].hide()&&pe.label[1].attr({"text-bound":[]}),x={text:Y.displayValue,x:S+A/2,y:K+Bt,title:Y.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,transform:it.getSuggestiveRotation(Nt,S+A/2,K+Bt),"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]},D(Y.displayValue)&&Y.displayValue!==w&&B.showQ1Values?(pe.label[2]?(pe.label[2].show(),He=S+A/2,We=Te||K+Bt,pe.label[2].animateWith(gt,pt,{x:He,y:We,transform:it.getSuggestiveRotation(Nt,He,We)},ft,ut,zt&&$t),pe.label[2].attr({text:Y.displayValue,title:Y.originalText||C,"text-anchor":Nt?g:Ht,"vertical-align":Nt?"middle":f,visibility:c,direction:Ke.textDirection,fill:Ft.color,"text-bound":[Ft.backgroundColor,Ft.borderColor,Ft.borderThickness,Ft.borderPadding,Ft.borderRadius,Ft.borderDash]})):pe.label[2]=it.text(x,Mt),pe.label[2].data("groupId",ge)):pe.label[2]&&pe.label[2].hide()&&pe.label[2].attr({"text-bound":[]}),zt&&$t(),ht?(oe.tooltip(P),ne.tooltip(P),ae.tooltip(P),se.tooltip(P),ie.tooltip(P),le.tooltip(P),ce.tooltip(P),we.tooltip(P),ke.tooltip(P)):(oe.tooltip(!1),ne.tooltip(!1),ae.tooltip(!1),se.tooltip(!1),ie.tooltip(!1),le.tooltip(!1),ce.tooltip(!1),we.tooltip(!1),ke.tooltip(!1)),S+=A/2,Ye.components.mean.components.data[k].config.xPos=S,Ye.components.sd.components.data[k].config.xPos=S,Ye.components.qd.components.data[k].config.xPos=S,Ye.components.md.components.data[k].config.xPos=S,De=0;De E&&!u&&(s=m,m=nt?180-m:360-m),V.colorArr=t.graphics.getColumnColor(Be+","+Ie.plotgradientcolor,v,b=Ie.plotFillRatio,m,u,Ie.plotBorderColor,A.toString(),nt?1:0,!!st),r=V.toolTipValue,s&&(m=s);if(Ie.maxValue=lt,Ie.minValue=ct,pe=lt-ct,et&&!Ze)Te({min:ct,max:lt}),this.components.colorRange=qe=De.colorRange;else{for(this.components.colorRange=qe=new tt({colorRange:Ee.colorrange,dataMin:ct,dataMax:lt,sortLegend:0,mapByCategory:Ze,defaultColor:"cccccc",numberFormatter:it}),Ie.colorMap=[],he=0;he "),dt!==w&&(ft=""+dt+Xe+""),ut!==w&&(mt=""+ut+Xe+""),pt!==w&&(vt=""+pt+Xe+""),W=Ke.getCategoryFromId(Me[he].columnid.toLowerCase()),G=$e.getCategoryFromId(Me[he].rowid.toLowerCase()),We?(null===r?l=!1:void 0!==i?(n=[1,2,5,6,7,14,93,94,95,96,97,98,112,113,114,115,116,117],a={formattedValue:r,value:I.value,yaxisName:ze,xaxisName:Ue,displayValue:ae,percentValue:Je?ye:w,tlLabel:fe,trLabel:me,blLabel:ve,brLabel:be,rowLabel:G.catObj&&G.catObj.label,columnLabel:W.catObj&&W.catObj.label,percentDataValue:Je?ye:w,trtype:dt,tltype:ht,brType:pt,blType:ut,colorRangeLabel:V.colorRangeLabel},l=Ye(i,n,a,I,Ve,a)):l=(Je?"Value"+Xe+""+r+""+ht+Xe+"
Percentage"+Xe+""+ye:xe)+(fe!==w?"
"+(gt+fe):w)+(me!==w?"
"+ft+me:w)+(ve!==w?"
"+mt+ve:w)+(be!==w?"
"+vt+be:w),V.toolText=l,V.setTooltext=l):V.toolText=!1);!1===Le.hasLegend||et&&!Ze||this._addLegend()},init:function(e){var t=this.chart,r=t.components,o=e.parentyaxis&&e.parentyaxis.toLowerCase()===f?1:0,r=r.yAxis[o];if(!e)return!1;this.JSONData=e,this.yAxis=r,this.chartGraphics=t.chartGraphics,this.components={},this.graphics={},this.visible=1===_(this.JSONData.visible,!Number(this.JSONData.initiallyhidden),1),this.configure()},_addLegend:function(){var e,t,r,o,a,i,n=this.components.data,s=this.chart,l=s.jsonData.chart,c=this.config.colorMap,h=this.components.colorRange;for(o=s.components.legend,l=_(l.us3dlighting,l.useplotgradientcolor,1),o.emptyItems(),o=0,a=c.length;ot?r.visible&&(g[n].graphics.element&&g[n].graphics.element.animateWith(p,u,{"fill-opacity":0,"stroke-width":0},h,d),g[n].graphics.hotElement&&g[n].graphics.hotElement.hide(),g[n].graphics.valEle&&g[n].graphics.valEle.hide(),g[n].graphics.tlLabel&&g[n].graphics.tlLabel.hide(),g[n].graphics.trLabel&&g[n].graphics.trLabel.hide(),g[n].graphics.blLabel&&g[n].graphics.blLabel.hide(),g[n].graphics.brLabel&&g[n].graphics.brLabel.hide(),r.visible=!1,g[n].visible=!1):r.visible||(g[n].graphics.element&&g[n].graphics.element.animateWith(p,u,{"fill-opacity":o,"stroke-width":c.plotBorderThickness},h,d),g[n].graphics.hotElement&&g[n].graphics.hotElement.show(),g[n].graphics.valEle&&g[n].graphics.valEle.show(),g[n].graphics.tlLabel&&g[n].graphics.tlLabel.show(),g[n].graphics.trLabel&&g[n].graphics.trLabel.show(),g[n].graphics.blLabel&&g[n].graphics.blLabel.show(),g[n].graphics.brLabel&&g[n].graphics.brLabel.show(),r.visible=!0,g[n].visible=!0)},_checkPointObj:function(e,t,r,o){var a=this.components.plotGrid,i=this.chart.config,n=i.viewPortConfig,s=n.x,l=n.scaleX,n=i.plotborderthickness,i=i.showplotborder;if(e=a[t]&&a[t][e],n=i?n:0,t=n/2,t=0==t%2?t+1:Math.round(t),e&&e.config&&e.config.visible&&(r=r-(e._xPos-s*l)+t,o=o-e._yPos+t,o=0<=r&&r<=e._width+n&&0<=o&&o<=e._height+n))return{pointIndex:e._index,hovered:o,pointObj:e}},_getHoveredPlot:function(e,t){var r=this.chart,o=r.config,a=r.components.xAxis[0],i=r.components.canvas.config,i=Math.max(i.canvasPaddingLeft,i.canvasPadding),n=o.canvasLeft,r=r.components.yAxis[0].getValue(t+r.config.canvasHeight/r.jsonData.rows.row.length/2-o.canvasTop-i),o=Math.floor(r),a=a.getValue(e-n-i),i=Math.round(a);return 0=i&&(o[a].config.isDefined=!1),a+=1;o[0].config.vAlign=t?h:c,o[0].config.align="center"},s=i.length,u=f=0;u A&&!S&&(S=!0):(v>M&&C>d?(S=!0,L=M,A=null,e=T=!0,n(f,S)):vd?(S=!1,L=null,A=M,T=!1,e=!0,n(f,S)):(T=S=null,e=!1),void 0!==x&&null!==x&&(x.isRally=S),null!=S&&(o[0].config.isRally=S)),r.isRally=S,(T&&v M)&&(m=M),D=m||v,C=k(D-w),w=null==T?null:T?D>w&&C>=d:D =d,x&&x.isShift)for(T?(L=M,R=h):T||(A=M,R=c),x=f;1 M||!T&&v t)break;r.push(n)}return e},manageSpace:function(){},_getHoveredPlot:function(e,t){for(var r,o=this.chart,a=o.components.xAxis[0],i=this.config,n=i.trackIndex,s=this.components.data,l=o.components.canvas.config,l=e-o.config.canvasLeft-Math.max(l.canvasPaddingLeft,l.canvasPadding),o=Math.floor(Math.max(a.getValue(l-i.maxRadius))),a=Math.ceil(Math.min(a.getValue(l+i.maxRadius)));a>=o;a--)for(l=(i=n[a])&&i.length;0<=l;l--)if(r=i[l],r=this.isWithinShape(s[r],r,e,t))return r},draw:function(){var e,o,c,h=this,u=h.graphics,p=h.JSONData;e=h.chart;var g,b,y,k,_,L,A,T,D,P,I,E,O,M,R,F,V,N,B,j,H,W=e.getJobList(),G=e.components,z=e.config,U=h.config,X=U.trackIndex={},Y=h.components,q=Y.data,K=(Y=Y.removeDataArr)&&Y.length,$=q&&q.length,Y=q&&q.length,J=G.paper,Z=G.xAxis[0],G=e.graphics,Q=G.datalabelsGroup,ee=h.components.data,te=u.container,re=G.datasetGroup,G=U.shadow,oe=u.dataLabelContainer,ae={},ie=function(){te.lineGroup.attr({"clip-rect":null}),te.lineShadowGroup.show(),te.anchorShadowGroup.show(),te.anchorGroup.show(),oe&&oe.show()},ne=!0,se=Z.getAxisPosition(0),le=Z.getAxisPosition(1)-se,ce={"clip-rect":[C(0,z.canvasLeft),C(0,z.canvasTop),C(1,z.canvasWidth),C(1,z.canvasHeight)]},he={"clip-rect":[C(0,z.canvasLeft),C(0,z.canvasTop),1,C(1,z.canvasHeight)]},z=U.rallyThickness,de=U.declineThickness,ue={stroke:f({color:U.rallyColor,alpha:U.rallyAlpha}),"stroke-linecap":l,"stroke-linejoin":l,"stroke-width":z,"stroke-dasharray":U.rallyDashed},pe={stroke:f({color:U.declineColor,alpha:U.declineAlpha}),"stroke-linecap":l,"stroke-linejoin":l,"stroke-width":de,"stroke-dasharray":U.declineDashed},ge={true:z,false:de},fe=[],me=[],ve=u.rallyElem,be=u.declineElem,ye=h.visible,xe=Z.getAxisPosition(0),we=q[0]&&!!q[0].isRally,se=se-le/2,Ce=u.lineElement,ke=h.pool||(h.pool={});e=e.get(a,i);var Se,_e=e.duration||0,Le=e.dummyObj,Ae=e.animObj,Te=0,De=e.animType;if(U.imagesLoaded=0,K&&h.remove(),q.length){if(ve&&ve.show(),be&&be.show(),te||(te=h.graphics.container={lineShadowGroup:J.group("connector-shadow",re).attr(he),anchorShadowGroup:J.group("anchor-shadow",re).attr(he),lineGroup:J.group(d,re).attr(he),anchorGroup:J.group("anchors",re).attr(he)},ye||(te.lineShadowGroup.hide(),te.anchorShadowGroup.hide(),te.lineGroup.hide(),te.anchorGroup.hide())),ee||(ee=h.components.data=[]),oe||(oe=h.graphics.dataLabelContainer=h.graphics.dataLabelContainer||J.group(n,Q),ye||oe.hide()),w($,Y),q[0].config.setValue)B=q[0].config.plotY;else for(e=1;e '+(e.name!==l&&void 0!==e.name&&e.name+w+" "||l)+e.id+"");this.showNodeUpdateUI(o,{dataset:{innerHTML:i}})},showConnectorAddUI:function(){var e,t,r=this.chart,o=this.nodes,a=c;for(t in o)e=o[t],e=e.config,e=e.id,a+='";this.showConnectorUpdateUI(r,{fromid:{innerHTML:a},toid:{innerHTML:a}})},draw:function(){var e,t,r,o=this.datasets,a=this.connectorSet,i=this.labelSet;for(this.updateUIvisuals(),e=0,r=o.length;e ',x:145,y:63},{key:"color",text:"Color",x:10,y:90,inputWidth:60},{key:"colorOut",innerHTML:" ",x:85,y:90,inputWidth:15,inputType:"span"},{key:"alpha",text:"Alpha",x:170,y:90,inputWidth:20},{key:"draggable",text:"Allow Drag",value:!0,inputWidth:20,x:250,y:90,labelWidth:58,inputPaddingTop:3,type:"checkbox"},{key:"shape",text:"Shape",inputType:"select",inputWidth:97,innerHTML:'',x:10,y:115},{key:"rectHeight",text:"Height",x:170,y:115,inputWidth:20},{key:"rectWidth",text:"Width",x:255,y:115,inputWidth:20},{key:"circPolyRadius",text:"Radius",x:170,y:115,inputWidth:20},{key:"polySides",text:"Sides",x:255,y:115,inputWidth:20},{key:"link",text:"Link",x:10,y:140,inputWidth:92},{key:"image",text:"Image",type:"checkbox",inputPaddingTop:4,inputWidth:20,x:10,y:170},{key:"imgUrl",text:"URL",inputWidth:105,x:170,y:170},{key:"imgWidth",text:"Width",inputWidth:20,x:10,y:195},{key:"imgHeight",text:"Height",inputWidth:20,x:82,y:195},{key:"imgAlign",text:"Align",inputType:"select",inputWidth:75,innerHTML:'',x:170,y:195}],showNodeUpdateUI:function(){var e=function(){for(var e,t=this.graphics.cacheUpdateUI,r=t.fields.shape,o=["rectWidth","rectHeight","circPolyRadius","polySides"],a=o.length;a--;)e=o[a],/rect|poly|circ/gi.test(e)&&(t.labels[e].hide(),t.fields[e].hide()),new RegExp(h(r.val(),"rect"),"ig").test(e)&&(t.labels[e].show(),t.fields[e].show())},r=function(){var e=this.graphics.cacheUpdateUI.fields,t=k(e.color.val());t&&e.colorOut.css({background:C(t)})},o=function(e,r){var o,a,i,n=this.graphics.cacheUpdateUI,s=e.config.height,l=n.fields.image.val(),c=r?300:0,h=["imgWidth","imgHeight","imgAlign","imgUrl"];for(o=l?250:215,n.ok.hide(),n.cancel.hide(),n.remove.hide(),n.error.hide(),a=h.length;!l&&a--;)i=h[a],n.labels[i].hide(),n.fields[i].hide();t.danimate.animate(n.dialog.element,{top:(s-o)/2,height:o},c,"linear",function(){for(a=h.length;a--&&l;)i=h[a],n.labels[i].show(),n.fields[i].show();n.ok.attr({y:o-23-5}).show(),n.cancel.attr({y:o-23-5}).show(),n.remove.attr({y:o-23-5}),n.error.attr({y:o-23-5+4}).show(),n.edit?n.remove.show():n.remove.hide()})};return function(t,a,i){var n,s=this,h=s.graphics,u=h.cacheUpdateUI,p=s.nodes,g=t.config,m=g.animation,b=t.components.paper,y={width:"80px",border:"1px solid #cccccc",fontSize:"10px",lineHeight:"15px",padding:"2px",fontFamily:(g.style.inCanvasStyle||{}).fontFamily},x={textAlign:"right"},w=u&&u.fields,C=u&&u.labels,g=function(){var e,t,r,o=u&&u.fields,a=u.edit,i=s.chart,n=i.components;if(e=n.xAxis[0].config.axisRange.min,n=n.yAxis[0].config.axisRange.min,o){switch(o.shape.val()){case"circ":r="circle";break;case"poly":r="polygon";break;default:r="rectangle"}if(e={x:d(o.x.val(),e),y:d(o.y.val(),n),id:o.id.val(),datasetId:o.dataset.val(),name:o.label.val(),tooltext:o.tooltip.val(),color:o.color.val(),alpha:o.alpha.val(),labelalign:o.labelalign.val(),allowdrag:o.draggable.val(),shape:r,width:o.rectWidth.val(),height:o.rectHeight.val(),radius:o.circPolyRadius.val(),numsides:o.polySides.val(),imagenode:o.image.val(),imagewidth:o.imgWidth.val(),imageheight:o.imgHeight.val(),imagealign:o.imgAlign.val(),imageurl:o.imgUrl.val(),link:o.link.val()},p[e.id]&&(t=!0),!t||void 0!==a)return void(((o=e.datasetId)!==c||a)&&(a?i.updateNode(e):i.addNode(e),u.hide(),u.visible=!1));u.error.attr({text:"ID already exist."}),o.label.focus()}u.enableFields()},k=function(){u.hide(),u.visible=!1,u.enableFields(),u.error.attr({text:l}),u.visible=!1},S=function(){t.deleteNode(u.fields.id.val()),u.hide(),u.visible=!1};u||(u=h.cacheUpdateUI=this.createHtmlDialog(t,350,215,g,k,S),n=u.dialog,C=u.labels={},w=u.fields={}),u.config=a,u.edit=i,u.error||(u.error=b.html("span",{color:"ff0000",x:30,y:228},void 0,n)),u.enableFields||(u.enableFields=function(){for(var e in a)a[e]&&a[e].disabled&&w[e]&&w[e].element.removeAttribute("disabled")}),u.clearFields||(u.clearFields=function(){var e,t=u.fields;for(e in t)t[e].element.disabled||(t[e].element.value=c)}),f(this.nodeUpdateUIDefinition,function(i){var h,p,g,f=i.key,m={},k=a[f]||{};!C[f]&&(C[f]=b.html("label",{x:i.x,y:i.y,width:i.labelWidth||45,text:i.text},x,n)),i.noInput||(h=w[f],h||(y.border="checkbox"==i.type?l:"1px solid #cccccc",h=w[f]=b.html(i.inputType||"input",{x:i.labelWidth&&i.labelWidth+5||50,y:-2+(i.inputPaddingTop||0),width:i.inputWidth||50,name:f||c},y),"select"!==i.inputType&&h.attr({type:i.type||"text"}).on("keyup",u.handleKeyPress),h.add(C[f])),v(p=d(k.innerHTML,i.innerHTML))&&(m.innerHTML=p),k.disabled?m.disabled="disabled":h.element&&(h.element.disabled=!1),h.attr(m),v(g=d(k.value,i.value))&&h.val(g),"shape"==f&&h.on("change",function(){e.call(s,t)}),"image"==f&&h.on("click",function(){o.call(s,t,!0)}),"color"==f&&h.on("keyup",function(){r.call(s,t)}))}),r.call(this,t),o.call(this,t),e.call(this,t),m?u.fadeIn("fast"):u.show(),u.visible=!0,u.fields[i?"label":"id"].focus()}}(),getDataLimits:function(){var e,t,r=this.datasets,o=1/0,a=-1/0,i=-1/0,n=1/0;for(e=0;e =s+1;l--)d=e[l].config,h=c&&c[l]||d.setValue,y&&delete e[l].dragged,e[l].dragged||(d.labelSkip=!0,d.isSkipped=!0),0<=h?(m||(m=h,0===p&&delete d.labelSkip,g=l,delete d.isSkipped),m h&&(v=h,f=l,delete d.isSkipped));0===p&&(e[g]&&delete e[g].config.labelSkip,e[f]&&delete e[f].config.labelSkip)}a&&delete this.lastPlot}},t.preDefStr.column])}]),e.register("module",["private","modules.renderer.js-dataset-group-dragarea",function(){var t=this.hcLib.extend2,r=Math.ceil;e.register("component",["datasetGroup","DragArea",{getJSONData:function(){var e,r,o,a=this.chart,i=a.components.dataset,a=a.jsonData&&a.jsonData.dataset,n=[],s=i.length;for(o=0;o =i+1;n--)l=e[n].config,s=l.setValue,m&&delete e[n].dragged,e[n].dragged||(l.labelSkip=!0,l.isSkipped=!0),d?ds&&(h=n,u=s):(h=n,u=s);delete e[h].config.isSkipped,delete e[c].config.isSkipped,0===g&&(delete e[h].config.labelSkip,delete e[c].config.labelSkip)}}},"area"])}]),e.register("module",["private","modules.renderer.js-dataset-group-dragline",function(){e.register("component",["datasetGroup","DragLine",{_decidePlotableData:e.get("component",["datasetGroup","DragArea"]).prototype._decidePlotableData},"line"])}]),e.register("module",["private","modules.renderer.js-dataset-group-boxandwhisker2d",function(){var t=this.hcLib,r=t.extend2,t=t.preDefStr,o=t.configStr,a=t.animationObjStr;e.register("component",["datasetGroup","boxandwhisker2d",{draw:function(){var e,t,i,n,s=this.positionStackArr,l=s.length;e=this.chart,t=e.graphics.datasetGroup;var c=e.graphics;i=e.components.canvas.config.clip["clip-canvas"].slice(0),n=r([],e.components.canvas.config.clip["clip-canvas-init"]);var c=c.datalabelsGroup,h=e.get(o,a),d=h.animType,u=h.animObj,p=h.dummyObj,h=h.duration;for(e.fireInitialAnimation&&(t.attr({"clip-rect":n}),c.attr({"clip-rect":n})),e.fireInitialAnimation=!1,t.animateWith(p,u,{"clip-rect":i},h,d),c.animateWith(p,u,{"clip-rect":i},h,d),this.preDrawCalculate(),this.drawSumValueFlag=!0,e=0;e1)return void(this.connection=null);var r=this.connection,o=e._connection;this.connection=null,!o||r&&o!==r||o.unsubscribe()},t}(i.Subscriber)},Fhmd:function(e,t,r){"use strict";var o=r("jUlM");t.forkJoin=o.ForkJoinObservable.create},FzFg:function(e,t,r){!function(t,r){"object"==typeof e&&e.exports?e.exports=t.document?r(t):function(e){if(!e.document)throw Error("Window with document not present");return r(e,!0)}:t.FusionCharts=r(t,!0)}("undefined"!=typeof window?window:this,function(t,r){void 0===t&&"object"==typeof window&&(t=window);var o=function(e){if(e.FusionCharts&&e.FusionCharts.version)return e.FusionCharts;var t=e.document,r=e.navigator,o={window:e},a=o.modules={},i=o.interpreters={},n=Object.prototype.toString,s=/msie/i.test(r.userAgent)&&!e.opera,l=/loaded|complete/,c=!1,h=function(){var e=o.ready;o.ready=!0,o.raiseEvent&&(o.readyNotified=!0,o.raiseEvent("ready",{version:o.core.version,now:!e},o.core)),o.readyNow=!e},d=function(e,t){var r,o;if(t instanceof Array)for(r=0;r <\/script>'):t.write('