(function(a){function C(a){this.Init(a)}function y(a,b,c,e){this.Init(b,c,e);this.ja=a}function x(){}function g(){this.Init({alta:g.kg})}function l(a,b,c){this.Init(a,b,c)}function e(a,b,c,e,g,h,l,q,H){this.Init(a,b,c,e,g,h,l,q,H)}function b(a){this.rH=a}a.Li=function(a,b,c){this.Init(a,b,c)};a.l.D(a.Li,a.kf);a.Li.newInstance=function(b,c,e){return new a.Li(b,c,e)};a.Li.prototype.Init=function(b,c,e){a.Li.C.Init.call(this,b,c,e);this.j().We.Xa().setAttributeNS(null,"text-rendering","geometricPrecision");
this.G=new y(this,b,this.Fg,this);this.G.og(this);a.A.fb()||this.G.Lt(new C(this.G));this.Wg=new g;this.qc=[];this.$x=[];this.tl=null;this.el=new a.Mf(this.j());this.G.aW(this.el)};a.Li.prototype.xa=function(b,c,e){isNaN(c)||isNaN(e)||(this.Eb=c,this.Vb=e);this.F4();this.Pf(b);this.Yr();this.Mk=this.Ma;this.f7=this.qc;this.qc=[];this.E4a=[];this.Ma=new a.ra(this.j());this.u(this.Ma);h.xa(this,this.Ma,new a.ca(0,0,this.Eb,this.Vb));this.ed&&this.ed.gv(this.U.selection,this.Cy());c=this.U.animationDuration;
e=new a.ca(0,0,this.Eb,this.Vb);this.Mk?"none"!==this.U.animationOnDataChange&&b&&(this.Pi=new a.ra(this.j()),this.u(this.Pi),b=new a.Vr(this.j(),this.Pi),b.Vp(this.f7,this.qc),this.ic=b.uy()):"none"!==this.U.animationOnDisplay&&(this.ic=a.yc.KH(this.j(),a.yc.BF,this.Ma,e,c));this.ic?(this.G.Se(),this.G.rp(this),this.ic.Tg(this.aQa,this),this.ic.play()):this.aQa();this.Xs()};a.Li.prototype.uIa=function(a){this.qc=a};a.Li.prototype.Di=function(){this.de||(this.de=new b(this));return this.de};a.Li.prototype.vQ=
function(a,b){this.$x.push(a);this.E4a[b]=a};a.Li.prototype.Cy=function(){return this.$x};a.Li.prototype.lm=function(){return this.E4a};a.Li.prototype.Af=function(b){this.U.highlightedCategories=a.ec.clone(b);a.bi.Af(b,this.Cy(),"any"===this.U.highlightMatch);this.tl&&this.tl.Af(b)};a.Li.prototype.select=function(b){this.U.selection=a.ec.clone(b);this.ed&&this.ed.gv(this.U.selection,this.Cy())};a.Li.prototype.Pf=function(b){b?this.U=this.Wg.Un(b):this.U||(this.U=this.RI());b=this.U.selectionMode;
this.ed="single"===b?new a.ed(a.ed.jB):"multiple"===b?new a.ed(a.ed.iB):null;this.G.UC(this.ed);a.A.sl()||(this.U.animationOnDisplay="none",this.U.animationOnDataChange="none")};a.Li.prototype.nn=function(){return a.F.ff(this.B(),"componentName",a.F.Pa,"TAG_CLOUD")};a.Li.prototype.aQa=function(){this.Mk&&(this.removeChild(this.Mk),this.Mk.Ea(),this.Mk=null);this.Pi&&(this.removeChild(this.Pi),this.Pi.Ea(),this.Pi=null);this.ic&&this.G.og(this);this.U.highlightedCategories&&0<this.U.highlightedCategories.length&&
this.Af(this.U.highlightedCategories);this.jn||this.Xr();this.ic=null;this.jn=!1};a.Li.prototype.F4=function(){this.G.Se();this.$x.length=0};a.Li.prototype.Fg=function(b,c){var e=b.type;if("categoryHide"==e||"categoryShow"==e){var g=b.category,h=a.va.Fb(this.U.hiddenCategories,g);"categoryHide"==e&&0>h&&this.U.hiddenCategories.push(g);"categoryShow"==e&&0<=h&&this.U.hiddenCategories.splice(h,1);this.xa(this.U,this.Eb,this.Vb)}else"categoryHighlight"==e&&(this!=c?this.Af(b.categories):this.tl&&this.tl!=
c&&this.tl.Fg(b,c));b&&this.dispatchEvent(b)};a.Li.prototype.wYb=function(a){return this.ed?a[0]:null};a.Li.prototype.hUb=function(a){a.Hb()||(this.ed.Pr(a,!1),this.G.uL());a=[];for(var b=this.ed.getSelection(),c=0;c<b.length;c++){var e=b[c];e instanceof l&&a.push(e.getId())}return a};a.Li.prototype.yt=function(){for(var a=[],b=this.ed.getSelection(),c=0;c<b.length;c++)a=a.concat(b[c].qf());return a};a.Li.prototype.Dm=function(a,b,c){return this.el.Dm(c)};a.Li.prototype.an=function(a,b){return this.el.an(a,
b)};a.Li.prototype.tC=function(a,b){return this.el.tC(a,b)};a.Li.prototype.VE=function(a,b){return this.el.VE(a,b)};a.l.D(b,a.de);b.prototype.To=function(a){return(a=this.rH.G.tb(a))&&a instanceof l?"item["+this.rH.lm().indexOf(a)+"]":null};b.prototype.ji=function(b){if(b==a.de.tD)return this.MF(this.rH);var c=b.indexOf("[");return 0<c&&"item"===b.substring(0,c)&&(b=parseInt(b.substring(c+1,b.length-1)),b=this.rH.lm()[b])?b.qf()[0].Xa():null};b.prototype.getItem=function(a){if(a=this.rH.lm()[a]){var b=
{};b.color=a.Rl();b.tooltip=a.Fe();b.label=a.Ee();b.value=a.getValue();b.selected=a.Hb();return b}return null};b.prototype.SP=function(){return this.rH.Cy().length};a.l.D(e,a.jf);e.Lyb=.3;e.Myb=.6;e.Aoa=0;e.xaa=1;e.Boa=2;e.prototype.Init=function(a,b,c,g,h,l,w,q,H){e.C.Init.call(this,b,c,g,h,l,H);this.rH=a;this.zH();this.jg.ka(w);this.jg.oe(q);l&&this.H0a(l)};e.prototype.vc=function(a){this.Qm!=a&&((this.Qm=a)?this.Mp?this.Nb(this.yha):this.Nb(this.wja):this.Nb(this.MO))};e.prototype.Dd=function(){this.Mp||
(this.Mp=!0,this.Qm?this.Nb(this.yha):this.Nb(this.gza))};e.prototype.Vc=function(){this.Qm?this.Nb(this.wja):this.Nb(this.MO);this.Mp=!1};e.prototype.$g=function(b,g){var h=new a.zd(this.j(),this,c.xb(this.rH)),l=this.be(),t=g.be(),n=!1,w=t.O(a.f.fc),q=l.O(a.f.fc);if(w!=q){var H=this;this.Nb(l.ka(a.f.fc,w));h.qa.P(a.K.zSa,this,function(){return H.be().O(a.f.fc)},function(b){H.Nb(H.be().ka(a.f.fc,b))},q)}t=parseFloat(t.O(a.f.Yi));l=parseFloat(l.O(a.f.Yi));t!=l&&(n=!0,H=this,this.Ph(t),h.qa.P(a.K.Y,
this,function(){return parseFloat(H.be().O(a.f.Yi))},this.Ph,l));l=g.bb();t=this.bb();w=g.ys();q=this.ys();if(t!=l||n&&q!=w)q!=w&&(l=e.WBb(g,l,w)),this.Ha(l),h.qa.P(a.K.Y,this,this.bb,this.Ha,t);n=g.sb();l=this.sb();l!=n&&(this.ob(n),h.qa.P(a.K.Y,this,this.sb,this.ob,l));g.Z(0);b.add(h,e.xaa)};e.prototype.rj=function(b){b.add(new a.Uj(this.j(),this,c.xb(this.rH)),e.Aoa)};e.prototype.Ci=function(b){this.Z(0);b.add(new a.Qh(this.j(),this,c.xb(this.rH)),e.Boa)};e.prototype.Ph=function(a){e.C.Ph.call(this,
a);this.H0a(this.be())};e.prototype.H0a=function(b){this.MO=b.clone();b=this.MO.O(a.f.fc);this.MO.ka(a.f.Ub,null);this.gza=this.MO.clone();var c=e.R4a(b,e.Lyb);this.gza.ka(a.f.Ub,c);this.gza.ka(a.f.fc,a.R.$m(c));this.wja=this.MO.clone();this.wja.ka(a.f.Ub,b);this.wja.ka(a.f.fc,a.R.$m(b));this.yha=this.MO.clone();b=e.R4a(b,e.Myb);this.yha.ka(a.f.Ub,b);this.yha.ka(a.f.fc,a.R.$m(b))};e.WBb=function(b,c,e){b=b.IWb();return e==a.ha.pn?c+b.a:e==a.ha.Al?c-b.a:c};e.R4a=function(b,c){var e=a.R.Bh(b),g=a.R.yh(b),
h=a.R.xh(b);return a.R.OL(Math.floor(255*(1-c)+c*e),Math.floor(255*(1-c)+c*g),Math.floor(255*(1-c)+c*h))};a.l.D(l,a.l);l.prototype.Init=function(b,c,e){this.ja=b;this.bk=c;this.Zb=e;this.rS=this.Qm=!1;e.url?(c.yg("link"),this.$za=a.H.WP("_blank",e.url)):c.yg("img");this.vt()};l.prototype.getId=function(){return this.Zb.id};l.prototype.Ee=function(){return this.Zb.label};l.prototype.getValue=function(){return this.Zb.value};l.prototype.Fe=function(){return this.Zb.shortDesc};l.prototype.gh=function(){return this.Zb.action};
l.prototype.xg=function(){var a=this.ja.B().tooltip;return(a=a?a.renderer:null)?this.ja.j().fg().yy(a,this.km()):this.Fe()};l.prototype.km=function(){return{id:this.getId(),label:this.Ee(),color:this.Rl(),value:this.getValue()}};l.prototype.WP=function(){return this.$za};l.prototype.Rl=function(){return this.bk.MO.O(a.f.fc)};l.prototype.kk=function(a){this.rS=a};l.prototype.Cb=function(){return this.rS};l.prototype.Hb=function(){return this.Qm};l.prototype.vc=function(a){this.Qm=a;this.bk.vc(a);this.vt()};
l.prototype.Dd=function(){this.bk.Dd()};l.prototype.Vc=function(){this.bk.Vc()};l.prototype.Rd=function(b){var c=this.ja.G.Kb;return b.type==a.MouseEvent.Te||c.Kw(b)?this:c.ij(b)?C.Rd(this,b,this.ja.Cy()):null};l.prototype.Tf=function(a){return this.bk.da(a)};l.prototype.cn=function(){return this.bk.Xa()};l.prototype.tg=function(){this.nd=!0;this.Dd()};l.prototype.ce=function(){this.nd&&(this.nd=!1,this.Vc())};l.prototype.Od=function(){return this.nd};l.prototype.qf=function(){return[this.bk]};l.prototype.Gd=
function(){var b=[];this.Cb()&&b.push(a.F.Ca(a.F.Pa,this.Hb()?"STATE_SELECTED":"STATE_UNSELECTED"));return a.ta.Pl(this.Fe(),b)};l.prototype.te=function(){return this.Zb.categories};l.prototype.vt=function(){a.A.jk()||this.bk.Td("label",this.Gd())};l.prototype.qg=function(){if(!this.If&&(this.If=[],this.Zb.showPopupBehaviors))for(var b=this.Zb.showPopupBehaviors,c=0;c<b.length;c++)this.If.push(new a.md(b[c].popupId,b[c].triggerType,b[c].alignId,b[c].align));return this.If};l.prototype.Dm=function(a){return this.ja.wYb(a)};
l.prototype.an=function(){return this.ja.hUb(this)};l.prototype.yt=function(){return this.ja.yt()};a.l.D(g,a.lb);g.kg={animationOnDisplay:"none",animationOnDataChange:"none",emptyText:null,hiddenCategories:[],hideAndShowBehavior:"none",highlightedCategories:[],highlightMatch:"all",hoverBehavior:"none",layout:"rectangular",selectionMode:"none",_statusMessageStyle:new a.f(a.lb.mn+"color: #333333;"),styleDefaults:{animationDuration:500,hoverBehaviorDelay:200,_style:new a.f(a.lb.mn+"color: #333333;")},
touchResponse:"auto"};var h={};a.l.D(h,a.l);h.xa=function(a,b,c){h.tt(a,b,c);h.dP(a,b,c);h.tG(c);var e=a.B();e.items&&0<e.items.length?(e=h.HBa(a,b,c),0<e.length?(a.uIa(e),a.G.Pw(a.Cy()[0])):h.oE(a,b,c)):h.oE(a,b,c)};h.oE=function(b,c,e){var g=b.B(),h=g.emptyText;h||(h=a.F.ff(g,"labelNoData",a.F.Pa,"NO_DATA",null));a.Ja.fq(c,h,new a.ca(e.x,e.y,e.a,e.b),b.G,g._statusMessageStyle)};h.tt=function(b,c,e){b=new a.Rect(b.j(),e.x,e.y,e.a,e.b);b.hc();c.u(b)};h.HBa=function(b,c,g){for(var h=b.B(),t=[],n=h.items,
w=Number.MAX_VALUE,q=-Number.MAX_VALUE,H=0;H<n.length;H++)w=Math.min(w,n[H].value),q=Math.max(q,n[H].value);var w=x.AUb(w,q),q=a.va.HU(h.hiddenCategories),u=a.f.Tdb(),z=h.styleDefaults,m=z.svgStyle||z.style;!m||m instanceof Object||(m=a.f.JU(m));for(H=0;H<n.length;H++){var B=n[H];B.categories||(B.categories=[B.label]);if(!q||!a.va.X0(q,B.categories)){var k=z._style.clone(),A=B.svgStyle||B.style;!A||A instanceof Object||(A=a.f.JU(A));var M=A&&A.color?A.color:B.color?B.color:m&&m.color?m.color:null;
if(A=a.ec.Xd(A,m)){for(var K=0;K<u.length;K++){var y=a.f.BP(u[K]);A[y]&&(k.ka(u[K],A[y]),delete A[y])}delete A.color}M&&k.ka(a.f.fc,M);k.ka(a.f.Yi,w.call(null,B.value).toString());k=new e(b,b.j(),B.label,0,0,k,A,B.svgClassName||B.className,B.id);A=new l(b,k,B);b.G.ub(k,A);b.vQ(A,H);"none"!==h.selectionMode&&A.kk(!0);(A.Cb()||B.url||A.gh())&&k.setCursor("pointer");t.push(k);c.u(k)}}0<t.length&&("cloud"===h.layout?x.XQb(g,t):x.y0b(g,t,a.A.ea(b.j())));return t};h.dP=function(b,c,e){var g=b.B(),h=g.legend;
if(h&&h.sections){h=a.ec.clone(h);h.orientation="horizontal";h.halign="center";h.hoverBehavior=g.hoverBehavior;h.hideAndShowBehavior=g.hideAndShowBehavior;h.hiddenCategories=g.hiddenCategories;g=a.bg.newInstance(b.j(),b.Fg,b);c.u(g);var l=g.Yu(h,e.a,e.b/3);g.xa(h,l.a,l.b);a.un.position(e,"bottom",g,l.a,l.b,0);b.tl&&(b.tl.Ea(),c.removeChild(b.tl));b.tl=g}};h.tG=function(a){a.x=Math.round(a.x);a.y=Math.round(a.y);a.a=Math.round(a.a);a.b=Math.round(a.b)};a.l.D(x,a.l);x.AUb=function(a,b){return function(c){return 12+
Math.ceil(2*(c-a)/(b-a)*12)}};x.XQb=function(b,c){var e=[],g=10/180,h=10/180;b.a>b.b?g*=b.a/b.b:h*=b.b/b.a;for(var l=2*Math.PI/180,w=null,q=0,H=[],u=[],z=0;z<c.length;z++)for(var m=!1,B=0,k=4,A=c[z],M=A.da(),q=Math.max(q,parseFloat(A.be().O(a.f.Yi))),K=-1;!m;){var y=B%180;void 0===H[y]&&(H[y]=Math.cos(B*l));void 0===u[y]&&(u[y]=Math.sin(B*l));var x=g*B*H[y],I=h*B*u[y],C=new a.ca(x,I,M.a,M.b),m=!0;-1!=K&&e[K].bHa(C)&&(m=!1);if(m)for(y=0;y<z;y++)if(e[y].bHa(C)){K=y;m=!1;break}m&&(w=w?w.Qj(C):C,K=-1,
e[z]=C,A.Ha(x),A.ob(-M.y+I));3600===B?k=3:5400===B?k=2:10800===B&&(k=1);B+=k}e=Math.max(w.a/b.a,w.b/b.b);g=w.x+w.a/2;w=w.y+w.b/2;for(y=0;y<c.length;y++)A=c[y],A.Ha(b.x+A.bb()/e+(b.a/2-g/e)),A.ob(b.y+A.sb()/e+(b.b/2-w/e)),h=parseFloat(A.be().O(a.f.Yi)),A.Ph(h/e)};x.y0b=function(b,c,e){for(var g=[],h=0,l=0,w=0,q=0;q<c.length;q++){var H=c[q],u=H.da(),h=Math.max(h,u.a),l=Math.max(l,u.b),w=Math.max(w,parseFloat(H.be().O(a.f.Yi)));g.push(new a.Xj(u.a,u.b))}q=0;for(H=(b.a-10)/h;.001<H-q;)h=(q+H)/2,w=x.O_a(g,
(b.a-10)/h),w.length*(h*l+2)-2>b.b-10?H=h:q=h;h=q;w=x.O_a(g,(b.a-10)/h);w.push(c.length);for(q=0;q<w.length-1;q++){var u=w[q],z=w[q+1],m=0,B=0,k=!0;if(1<z-u){for(var H=0,A=u;A<z;A++)H+=g[A].a*h,B=Math.max(B,g[A].b*h);m=(b.a-10-H)/(z-u-1);q==w.length-2&&(A=.5*B,A<m&&H+(z-u)*A<.9*(b.a-10)&&(m=A,k=!1))}for(var B=5+(q+1)*(l*h+2)-2,M=e?b.a-5:5,A=u;A<z;A++){var H=c[A],K=parseFloat(H.be().O(a.f.Yi));H.Ph(K*h);H.ob(b.y+B);k&&A==z-1&&A!=u?e?(H.Bi(),H.Ha(b.x+5)):(H.ii(),H.Ha(b.x+b.a-5)):(H.Ha(b.x+M),e?(H.ii(),
M-=g[A].a*h+m):(H.Bi(),M+=g[A].a*h+m))}}};x.O_a=function(a,b){var c=[0],e=a[0].a+2;if(1<a.length)for(var g=1;g<a.length;g++)e+a[g].a>b&&(c.push(g),e=0),e+=a[g].a+2;return c};var c={};a.l.D(c,a.l);c.xb=function(a){return a.B().styleDefaults.animationDuration/1E3};a.l.D(y,a.G);y.prototype.oX=function(a){a=this.tb(a.target);this.Wya(a);this.bU(a)};y.prototype.k3=function(a){a=this.tb(a.target);this.bU(a)};y.prototype.jz=function(a){a=this.tb(a.target);this.Wya(a);this.bU(a)};y.prototype.Wya=function(a){a instanceof
l&&(a=a.WP())&&a.call()};y.prototype.qm=function(b){var c=!0,e=this.Yf();b.keyCode==a.KeyboardEvent.yj?this.Wya(e):c=y.C.qm.call(this,b);return c};y.prototype.hr=function(b,c,e){b=this.ja.B();"dim"==b.hoverBehavior&&(c=c.te?c.te():[],b.highlightedCategories=e?c.slice():null,e=a.kb.RL(b.highlightedCategories,e),c=a.ab.Et(b.styleDefaults.hoverBehaviorDelay),this.dN.Fg(e,this.ja.Cy(),c,"any"==b.highlightMatch))};y.prototype.bU=function(b){b&&b.gh&&b.gh()&&this.Vl(a.kb.iI("action",b.gh(),b.getId()))};
y.prototype.iD=function(){return this.ja.B().touchResponse};a.l.D(C,a.Kb);C.prototype.Init=function(a){C.C.Init.call(this,a)};C.prototype.hI=function(a){return this.ij(a)&&!a.ctrlKey};C.prototype.Kw=function(b){return b.keyCode==a.KeyboardEvent.cj&&b.ctrlKey};C.Rd=function(b,c,e){c=c.keyCode==a.KeyboardEvent.Of||c.keyCode==a.KeyboardEvent.hg?!0:!1;b=a.va.Fb(e,b)+(c?1:-1);return b<e.length&&0<=b?e[b]:null};a.l.D(function(){},a.OW);a.ia(a,"TagCloud",a.Li);a.ia(a.Li,"newInstance",a.Li.newInstance);a.ia(a.Li.prototype,
"render",a.Li.prototype.xa);a.ia(a.Li.prototype,"getAutomation",a.Li.prototype.Di);a.ia(a.Li.prototype,"highlight",a.Li.prototype.Af);a.ia(a.Li.prototype,"select",a.Li.prototype.select);a.ia(b.prototype,"getDomElementForSubId",b.prototype.ji);a.ia(b.prototype,"getItem",b.prototype.getItem);a.ia(b.prototype,"getItemCount",b.prototype.SP)})(dvt);