var fs=M.U(M,"AdfDhtmlPanelDashboardPeer",p);v("AdfDhtmlPanelDashboardPeer",fs);fs.m=function(){this.FU="40";this.YMa=this.Gpa=0.5};v("AdfDhtmlPanelDashboardPeer.InitSubclass",fs.m);fs.prototype.q=function(a){var b=a.r("_allowedFlavors"),d=[];b!=n&&0<b.length&&(d=eval(b));a.eS(new pf(d))};z.a("AdfDhtmlPanelDashboardPeer.prototype.InitDomElement",{q:fs.prototype.q});fs.prototype.ja=t(l);z.a("AdfDhtmlPanelDashboardPeer.prototype.needsResizeNotify",{ja:fs.prototype.ja});
fs.prototype.Ia=function(a,b,d){delete this.kW;delete this.k9;a=d;w.b.G()==w.aa&&(d=this.h(),b=d.scrollWidth,a==n&&(a=d.offsetWidth),b>a&&(d=this.pl(),fs.Bza||(fs.Bza=b-a+2+"px"),F.c.Ma().Oa()||(d.style.right=fs.Bza)))};z.a("AdfDhtmlPanelDashboardPeer.prototype.ResizeNotify",{Ia:fs.prototype.Ia});fs.prototype.Z=function(){this.Ye!=n&&this.Ye.stop()};z.a("AdfDhtmlPanelDashboardPeer.prototype.ComponentRemoved",{Z:fs.prototype.Z});
fs.prototype.Rb=function(a){if(0<a.id.indexOf("optRnd")){if(this.Ye!=n){var b=this.Ye.stop();this.Hya&&b!=n&&2==b.length&&gs(this,b[1],l)}this.Hya=l;var d=w.b,e=this.pl(),b=H.Tc(e),f=b.length,g=[],h=0,m,q;for(m=0;m<f;m++)q=H.ca(b[m]),q==n||"afrPlaceholder"==q.name?(g[m]="placeholder",h++):g[m]="existing";f=d.getAttribute(a,"afrDel");if(f!=n){f=eval(f);f.sort(fs.Vza);for(m=q=0;m<g.length;m++)"existing"==g[m]&&(fs.U8(f,q)&&(g[m]="delete"),q++)}q=H.Tc(a);f=q.length;m=parseInt(d.getAttribute(a,"afrIns"));
if(0<f&&(isNaN(m)||m!=f))D.i.severe("Error - the panelDashboard was told to expect "+m+" inserted "+(1==m?"child":"children")+" but "+f+" were sent.");if(0!=h||0!=f){h=[];for(m=0;m<f;m++)h.push(parseInt(d.getAttribute(q[m],"afrIns")));h.sort(fs.Vza);var d=e.ownerDocument,s=q=0;for(m=0;m<g.length;m++)if("delete"!=g[m])if("placeholder"==g[m])fs.U8(h,q)?(s++,q++):(g.splice(m,1),e.removeChild(b[m]),b=H.Tc(e),m--);else{if(fs.U8(h,q)){g.splice(m,0,"placeholder");var y=d.createElement("div"),A=y.style;A.position=
"absolute";A.overflow="hidden";A.width="1px";A.height=fs.FU+"px";m<b.length?e.insertBefore(y,b[m]):e.appendChild(y);b=H.Tc(e);s++}q++}for(;s<f;)g.push("placeholder"),h=d.createElement("div"),q=h.style,q.position="absolute",q.overflow="hidden",q.width="1px",q.height=fs.FU+"px",m++<b.length?e.insertBefore(h,b[m++]):e.appendChild(h),b=H.Tc(e),s++}e=[];for(m=0;m<g.length;m++)"placeholder"==g[m]&&e.push(b[m]);for(m=0;m<f;m++){d=e[m];for(h=H.ca(d);h;)d.removeChild(h),h=H.ca(d);h=H.ca(a);q=H.ca(h);a.removeChild(h);
h.removeChild(q);d.appendChild(q)}e=[];for(m=0;m<g.length;m++)"delete"==g[m]&&e.push(b[m]);var A=F.c.Ma().Oa(),C=this.d(),d=C.getColumns(),h=hs(this,C);q=is(this,C);var G=0,s=[];if(g.length>b.length)D.i.severe("ERROR - Mismatch among metaData "+g.length+" and dataBodyChildren "+b.length);else{for(m=y=0;m<g.length;m++){var K=G%d,N=Math.floor(G/d),Q=b[m];js(Q,K,N,d,h,q,A);"delete"==g[m]?N={element:Q,ib:{height:fs.FU,offsetLeft:K*h,offsetTop:N*q}}:(++y,N={element:Q,ib:{width:h,offsetLeft:K*h,offsetTop:N*
q}});A&&(Q.style.left=Q.offsetLeft+"px",Q.style.right="auto",N.ib.offsetLeft=(d-1-K)*h);s.push(N);G++}m=C.e();fs.TM(s,m,d,q,y);A=parseInt(F.c.u().ka("af|panelDashboard-tr-insert-delete-animation-duration"));A=isNaN(A)?0:Math.round(A*fs.Gpa);C=n;fs.SX(m)&&(C=this.d());this.Ye=Qg(3,A,s,n,fs.NTa,[this,e,g,b,d,h,q,f,m,y],C)}}return a};z.a("AdfDhtmlPanelDashboardPeer.prototype.DomReplaceNotify",{Rb:fs.prototype.Rb});
fs.NTa=function(a){var b=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],m=a[6],q=a[7],s=a[8],y=a[9];a=[];var A=0,C=F.c.Ma().Oa(),G;for(G=0;G<e.length;G++){var K=f[G],N;if("delete"==e[G]){if(N={element:K,ib:{width:1}},C){var Q=K.offsetLeft;K.style.left=Q+"px";K.style.right="auto";N.ib.offsetLeft=Q+h}}else Q=A%g,N=Math.floor(A/g),js(K,Q,N,g,h,m,C),N={element:K,ib:{height:m,offsetLeft:Q*h,offsetTop:N*m}},C&&(K.style.left=K.offsetLeft+"px",K.style.right="auto",N.ib.offsetLeft=(g-1-Q)*h),A++;a.push(N)}if(1==
q&&0==d.length)for(G=f=0;G<e.length;G++)if("placeholder"==e[G]){e=m*Math.floor(f/g);f=b.h();a.push({element:f,ib:{scrollTop:e}});break}else"delete"!=e[G]&&f++;fs.TM(a,s,g,m,y);g=parseInt(F.c.u().ka("af|panelDashboard-tr-insert-delete-animation-duration"));g=isNaN(g)?0:Math.round(g*fs.YMa);m=n;fs.SX(s)&&(m=b.d());b.Ye=Qg(3,g,a,n,fs.cZ,[b,d],m)};fs.SX=function(a){a=M.g(a,"shim");return w.b.getElementById(a)!=n};
fs.TM=function(a,b,d,e,f){b=M.g(b,"shim");b=w.b.getElementById(b);b!=n&&(d=Math.ceil(f/d)*e,a==n?b.style.height=d+"px":a.push({element:b,ib:{height:d}}))};
fs.prototype.J0=function(a,b){var d=this.pl(),e=H.Tc(d),f=e.length,g=a.getColumns(),h=hs(this,a),m=is(this,a);-1==b&&(b=f);var q=b%g,s=Math.floor(b/g),y=d.ownerDocument,A=y.createElement("div"),C=A.style,G=s*m;C.position="absolute";C.top=G+"px";var K=F.c.Ma().Oa();K?(C.right="auto",C.left=(g-1-q)*h+"px"):C.left=q*h+"px";C.overflow="hidden";C.width="1px";C.height=fs.FU+"px";b<e.length?d.insertBefore(A,e[b]):d.appendChild(A);e=H.Tc(d);q=y.createElement("div");q.name="afrPlaceholder";s=q.style;s.position=
"absolute";s.top="2px";s.bottom="2px";s.left="2px";s.right="2px";s.padding="4px";s.borderWidth="1px";s.borderStyle="solid";s.borderColor="#CCCCCC";A.appendChild(q);q.appendChild(y.createTextNode(" "));y=[];y.push({element:A,ib:{width:h}});for(A=1+b;A<=f;A++)q=A%g,s=Math.floor(A/g),d=e[A],js(d,q,s,g,h,m,K),s={element:d,ib:{offsetLeft:q*h,offsetTop:s*m}},K&&(d.style.left=d.offsetLeft+"px",d.style.right="auto",s.ib.offsetLeft=(g-1-q)*h),y.push(s);e=a.e();fs.TM(y,e,g,m,1+f);f=this.h();y.push({element:f,
ib:{scrollTop:G}});G=parseInt(F.c.u().ka("af|panelDashboard-tr-insert-delete-animation-duration"));G=isNaN(G)?0:Math.round(G*fs.Gpa);f=n;fs.SX(e)&&(f=this.d());this.Ye=Qg(3,G,y,n,fs.cZ,[this,n],f)};z.a("AdfDhtmlPanelDashboardPeer.prototype.insertChildBehavior",{J0:fs.prototype.J0});
fs.prototype.ci=function(a,b,d,e,f,g,h){B.J(a,Ka);B.Cd(b);B.Ea(d);B.Cd(e);f=a.Fe().d();a=this.d();f=this.gy(f,l);g=M.g(a.e(),"drpt");g=w.b.getElementById(g);if(h&&d==Ka.lb)H.F(g,"p_AFDropTarget"),ks(this,a,f,n);else if(e!=b)if(d=n,b!=n){d=parseInt(b);var m=a.getColumns();b=hs(this,a);e=is(this,a);var q=Math.max(0,d%m),s=Math.max(0,Math.floor(d/m));h=q*b;s*=e;F.c.Ma().Oa()&&(h=(m-1-q)*b);m=g.style;m.width=b+"px";m.height=e+"px";m.left=h+4+"px";m.top=s+4+"px";H.n(g,"p_AFDropTarget");ks(this,a,f,d)}else e!=
n&&(H.F(g,"p_AFDropTarget"),f!=n&&(this.Ye!=n&&this.Ye.stop(),fs.cZ([this,n],f,parseInt(e))))};z.a("AdfDhtmlPanelDashboardPeer.prototype.showDragFeedback",{ci:fs.prototype.ci});fs.prototype.Dn=function(a){if(a==n)return n;var b=this.pl(),d=H.Tc(b).length;a=parseInt(a);if(a<d){var e=this.d(),f=e.getColumns(),d=a%f,f=Math.floor(a/f);a=hs(this,e);var e=is(this,e),d=d*a,f=f*e,g=w.b.Uc(b);g.left+=d-b.scrollLeft;g.right=g.left+a;g.top+=f-b.scrollTop;g.bottom=g.top+e;return g}return n};
z.a("AdfDhtmlPanelDashboardPeer.prototype.getRowKeyBounds",{Dn:fs.prototype.Dn});fs.prototype.dm=function(a,b,d){B.Ea(a);B.Ea(b);B.assert(d!=n);var e=d[qf.Wv],f=d[qf.rE],g=d[qf.qE];if(e&&f&&(B.s(e),B.zc(f),a>=f.left&&b>=f.top&&a<=f.right&&b<=f.bottom)){d[qf.Bh]=e;d[qf.wh]=g;return}e=l;f=F.c.fg();f!=n&&(f=f.Fe().d(),g=this.d(),f.getParent()==g&&(e=p));this.eB(a,b,d,e)};z.a("AdfDhtmlPanelDashboardPeer.prototype.getRowKeyAndOrientationFromHints",{dm:fs.prototype.dm});
fs.prototype.gy=function(a,b){var d=this.pl(),d=H.Tc(d),e=d.length,f=a.e();if(!b&&this.WW==f)return this.TN;this.WW=f;for(var g=n,h=0;h<e;h++){var m=H.ca(d[h]);if(m&&f==w.b.getAttribute(m,"id")){g=h;break}}return this.TN=g};z.a("AdfDhtmlPanelDashboardPeer.prototype.getDraggedSourceChildIndex",{gy:fs.prototype.gy});fs.Vza=function(a,b){return a-b};fs.U8=function(a,b){var d,e=a.length;for(d=0;d<e;d++)if(a[d]==b)return l;return p};
fs.prototype.eB=function(a,b,d,e){B.Ea(a);B.Ea(b);var f=this.pl();var g=this.d(),h=w.b;if(h.Kc(this.h(),a,b)){a=a-document.documentElement.scrollLeft-h.rc(f)+f.scrollLeft;b=b-h.nd(f)+f.scrollTop;var m=hs(this,g),h=is(this,g),g=g.getColumns();a=Math.floor(a/m);F.c.Ma().Oa()&&(a=g-1-a);g=Math.floor(b/h)*g+a;f=H.Tc(f).length;e||f--;e=""+Math.min(f,g)}else e=n;d[qf.Bh]=e!=n?e:n;d[qf.wh]=pb.c3};fs.prototype.pl=function(){var a=this.h(),a=H.ca(a);B.p(a);return a};
z.a("AdfDhtmlPanelDashboardPeer.prototype.__getDataBody",{pl:fs.prototype.pl});
function ks(a,b,d,e){a.Ye!=n&&a.Ye.stop();var f=a.pl(),g=H.Tc(f),h=g.length;if(0!=h){for(var f=[],m=b.getColumns(),q=hs(a,b),s=is(a,b),y=e==n,A=0;A<h;A++){var C=g[A],G={};A==d&&(C.style.display=y?"":"none");if(A!=d){var K=A;y||(d!=n&&K>d&&K--,K>=e&&K++);var N=K%m,K=Math.floor(K/m),Q=F.c.Ma().Oa();Q?(C.style.left=C.offsetLeft+"px",C.style.right="auto",G.offsetLeft=(m-1-N)*q):G.offsetLeft=N*q;js(C,N,K,m,q,s,Q);G.offsetTop=K*s}f[A]={element:C,ib:G}}var T,Y;b=b.e();e==n?(T=fs.cZ,Y=[a,n]):d==n&&fs.TM(f,
b,m,s,h+1);d=parseInt(F.c.u().ka("af|panelDashboard-tr-reorder-animation-duration"));isNaN(d)&&(d=0);e=n;fs.SX(b)&&(e=a.d());a.Ye=Qg(3,d,f,n,T,Y,e)}}function js(a,b,d,e,f,g,h){g*=d;a.offsetTop!=g&&(d=a.style,d.top=g+"px",b>=Math.floor(e/2)?h?(a.style.right="auto",d.left=-f+"px"):d.left=e*f+"px":h?(a.style.right="auto",d.left=e*f+"px"):d.left=-f+"px")}
function hs(a,b){var d=a.pl(),e=H.Tc(d).length;if(a.kW&&e==a.uSa)return a.kW;var f=b.getColumns();a.kW=Math.floor(d.offsetWidth/f);a.uSa=e;return a.kW}function is(a,b){if(a.k9)return a.k9;var d=b.getRowHeight(),e=d.replace(/[0-9]/g,"");if("px"==e)d=parseInt(d.substring(0,d.length-e.length));else if(d=a.pl(),d=H.Tc(d),0<d.length)d=d[0].offsetHeight;else return 20;return a.k9=d}
function gs(a,b,d){if(b!=n){a=a.pl();var e;for(e=0;e<b.length;e++){var f=b[e];d||(F.c.th(f),w.b.gc(f));a.removeChild(f)}}}
fs.cZ=function(a,b,d){var e=a[0];if(e.h()){gs(e,a[1],p);var f=e.pl();b!=n&&b!=d&&(a=H.Tc(f),b=a[b],f.removeChild(b),a=H.Tc(f),d<a.length?f.insertBefore(b,a[d]):f.appendChild(b),b.style.display="");a=H.Tc(f);d=a.length;e=e.d();b=e.getColumns();var g=e.getRowHeight(),h=g.replace(/[0-9]/g,""),f=parseFloat(g.substring(0,g.length-h.length)),m=fs.kva(1/b);for(i=0;i<d;i++){var q=fs.kva(i%b/b),s=a[i].style;s.top=f*Math.floor(i/b)+h;F.c.Ma().Oa()?(s.left="auto",s.right=q):s.left=q;s.height=g;s.width=m}a=e.e();
fs.TM(n,a,b,f,d);this.Hya=p;F.c.lh(e)}};fs.kva=function(a){a=""+100*a;var b=a.length,d=a.indexOf(".");-1!=d&&d<b-2&&(a=a.substring(0,d+3));return a+"%"};