AdfDhtmlPivotTablePeer.prototype.ML=function(a,b){var c=this.b.Fc[a][b],d=this.b.rl[a];0<c[d]&&(c[d]=0);if((1==b||AdfPivotTableUtils.R())&&(0==this.b.j[a]||this.b.za)){d=this.b.rl[1-a];c=c[d];if(0==this.b.j[a]){var e=this.b.Fc[a][1-b];e[d]!=c&&(e[d]=c)}this.b.za&&(e=this.b.bc,e[d]!=c&&(e[d]=c))}};AdfDhtmlPivotTablePeer.prototype.IL=function(a,b){if(AdfPivotTableUtils.R())this.Jb(this.getComponent(),null);else{var c=this.b.tb[a][b];0<c.scrollTop&&(c.scrollTop=0);0<c.scrollLeft&&(c.scrollLeft=0)}};
AdfDhtmlPivotTablePeer.prototype.Jb=function(a,b,c){var d=this.b;if(!d.ex)if(d.xn)for(b=d.j[1];2>b;++b)for(c=d.j[0];2>c;++c){var e=d.tb[b][c];for(a=0;2>a;++a){var f=a?b:c;e[d.rl[a]]=d.on[a][f]}}else{this.Sa&&(e={},A_lg(this,e),e.type="HandleDomScroll",e.time=(new Date).getTime()-this.ph,c&&(e.MS=!0));var g=[[],[]],h=!0;for(a=0;2>a;++a)for(f=this.b.j[a];2>f;++f)g[a][f]=d.ha(a,f),h=h&&g[a][f]==d.on[a][f],d.on[a][f]=g[a][f];if(h)this.Sa&&(e.uU=!0);else{var h=[[],[]],l=[[],[]];for(a=1;0<=a;--a)for(f=
this.b.j[a];2>f;++f)h[a][f]=g[a][f]-A_Eg(d,a,f),l[a][f]=A_Fg(d,a,f,h[a][f]);a=A_zh(d,l);this.Sa&&(c&&(e.JU=!0,AdfLogger.LOGGER.severe("DRN called HDS, which found an unhandled scroll")),e.xU=a==AdfPivotTableUtils.Fp?"longScroll":a==AdfPivotTableUtils.Gp?"shortScroll":"noFetch",e.TS=h);switch(a){case AdfPivotTableUtils.Fp:A_Ah(this,h,l,g);AdfPivotTableUtils.R()&&!this.Oa&&(d.xn=!0);break;case AdfPivotTableUtils.Gp:A_eg(this.b,!1,h,l);AdfPivotTableUtils.R()&&!this.Oa&&(d.xn=!0);break;case AdfPivotTableUtils.nu:this.Na!=
AdfDhtmlPivotTablePeer.Ea&&(A_hf(this,null,-1),this._hideStatus());a=0;b&&(a=A_Oe(this),0<a&&(void 0!=this.Gw&&clearTimeout(this.Gw),this.Gw=setTimeout(function(){A_dg(d,!1,l,!0,!0)},a)));A_dg(d,!1,l,!0,0==a);this.Oa&&A_fg(this);break;default:throw Error("Bad scroll type returned from identifyScrollType.");}}}};A_a("AdfDhtmlPivotTablePeer.prototype.HandleDomScroll",AdfDhtmlPivotTablePeer.prototype.Jb);
AdfDhtmlPivotTablePeer.prototype.wt=function(){var a=AdfAgent.AGENT,b=a.getPlatform(),c=b==AdfAgent.IE_PLATFORM&&9<=a.getVersion(),a=(b=b==AdfAgent.GECKO_PLATFORM)&&17<=a.getVersion(),d=A_ag(this,this.Xd,[-1,-1]);A_Bh(this.b.bc,d,c,b,a);if(this.Oa)for(rowHeaderHandler=A_ag(this,this.Xd,[-2,-1]),colHeaderHandler=A_ag(this,this.Xd,[-1,-2]),g=0;2>g;++g)A_Bh(this.b.Tb[g],rowHeaderHandler,c,b,a),A_Bh(this.b.nb[g],colHeaderHandler,c,b,a);else{for(var e=0;2>e;++e)for(var f=0;2>f;++f)d=A_ag(this,this.Xd,
[e,f]),A_Bh(this.b.tb[e][f],d,c,b,a),0<e+f&&A_Bh(this.b.se[e][f],d,c,b,a);for(var e=A_ag(this,this.Xd,[1,-2]),f=A_ag(this,this.Xd,[-2,1]),g=0;2>g;++g)A_Bh(this.b.Nr[0][g],e,c,b,a),A_Bh(this.b.Nr[1][g],f,c,b,a),d=A_ag(this,this.Xd,[g,-1]),A_Bh(this.b.Tb[g],d,c,b,a),d=A_ag(this,this.Xd,[-1,g]),A_Bh(this.b.nb[g],d,c,b,a)}};function A_Bh(a,b,c,d,e){c||e?a.addEventListener("wheel",b,!0):d?a.addEventListener("DOMMouseScroll",b,!0):a.onmousewheel=b}
AdfDhtmlPivotTablePeer.prototype.Xd=function(a,b,c){c||(c=AdfPage.PAGE.getDomWindow().event);var d=AdfAgent.AGENT,e=0,f=0,g=c.deltaX,h=c.deltaY,l=c.wheelDeltaX,m=c.wheelDeltaY,n=-1/120,p=1/3,q=1/73;null!=g||null!=h?(l=d.getPlatform()==AdfAgent.GECKO_PLATFORM?p:q,null!=g&&(e=Math.round(l*g)),null!=h&&(f=Math.round(l*h))):null!=l||null!=m?(null!=l&&(e=Math.round(n*l)),null!=m&&(f=Math.round(n*m))):f=c.detail?Math.round(p*c.detail):Math.round(n*c.wheelDelta);0!=f&&-2!=a&&(a=-1==a?this.b.nb[1]:this.b.se[a][1],
a.scrollTop+=32*f);0!=e&&-2!=b&&(a=-1==b?this.b.Tb[1]:this.b.se[1][b],a.scrollLeft+=32*e);d.stopPropagation(c);d.preventDefault(c)};function A_Ah(a,b,c,d){for(var e=[[[],[]],[[],[]]],f=1;0<=f;--f)for(var g=a.b.Lm[f],h=a.b.j[f];2>h;++h){var l=A_Yg(a.b,f,h,b[f][h],c[f][h]),m=e[f][h];m[0]=l.slice;m[1]=l.tc;if(-1==m[0]){var l=a.b.qe[f][h],n=d[f][h],p=A_Ch(a.b,f,h);m[0]=p-n<=a.b.$e[f][h][a.b.Sh[f]]+1?l:n<a.b.$[f][h][0][a.b.Bh[f]]?a.b.fg[f][h]+Math.floor(n/g):l-Math.ceil((p-n)/g);m[1]=0}}A_Dh(a,e)}
AdfDhtmlPivotTablePeer.prototype.Pg=function(a,b){for(var c=[[[],[]],[[],[]]],d=1;0<=d;--d)for(var e=d?a:b,f=e<this.b.u[d]?0:1,g=c[d],h=this.b.j[d];2>h;++h){var l=g[h];if(h==f)l[0]=e,l[1]=0;else for(var m=0;2>m;++m)l[m]=A_3g(this,d,h,m)}A_Dh(this,c)};AdfDhtmlPivotTablePeer.prototype.longJumpToCell=AdfDhtmlPivotTablePeer.prototype.Pg;
function A_Dh(a,b){for(var c=[[],[]],d=[[],[]],e=0;2>e;++e)for(var f=e?4:3,g=a.b.ZF[e],h=a.b.j[e];2>h;++h){var l=a.b.qe[e][h],m;var n=b[e][h][0];m=a.b.fg[e][h];n>=l?m=Math.max(l-g,m):(n=Math.max(n,m),n=a.Oa?n:n-Math.round(g/f),n=Math.min(n,l-g),m=n=Math.max(n,m));c[e][h]=m;d[e][h]=Math.min(g,l-m);for(l=0;2>l;++l)A_2g(a,e,h,l,b[e][h][l])}f=[];for(e=a.b.j[1];2>e;++e)for(h=c[1][e],g=d[1][e],l=a.b.j[0];2>l;++l)f.push(A_Eh(c[0][l],h,!0,!0,d[0][l],g));a.Oa||-1!=a.b.u[0]||-1!=a.b.u[1]?a.Ec(a.ld,a.Oa):(h=
b[0][1][0]==a.b.qe[0][1]?b[0][1][0]:b[0][1][0]+1,e=TrFastMessageFormatUtils.format(a.Mr,b[1][1][0]==a.b.qe[1][1]?b[1][1][0]:b[1][1][0]+1),h=TrFastMessageFormatUtils.format(a.Iq,h),a.Ec(e+"\x3cbr\x3e"+h,a.Oa));d=AdfAgent.getAgent();c=[];for(e=1;0<=e;--e)for(g=1==e,l=0==e,h=a.b.j[e];2>h;++h)for(m=a.b.$[e][h],n=0;n<m.length;n++){var p=m[n],q=d.getAttribute(p,"_startSlice"),p=A_Fh(l,p),q=A_Gh(g,l,q,p);c.push(q)}e=A_Hh(a.b);h=A_Ih(a.b);A_gg(a,"longScroll",AdfPivotTableUtils.TB,f,void 0,c,e,h)}
function A_gg(a,b,c,d,e,f,g,h){a.Na!=AdfDhtmlPivotTablePeer.Ea&&(d=new A_Jh(a.getComponent(),b,d,e,f,g,h),a.Sa&&(d.cs=[],aaa=d.cs,aaa.push("Event"),aaa.push("TimeAtCreation \x3d "+((new Date).getTime()-a.ph)),A_lg(a,d)),d.setPartial(!0),d.setRoot(a.getComponent()),A_hf(a,d),c?("longScroll"==b?(b=a.b.Hd,a=A_ag(a,a.Ux,[d,b[0][0].scrollLeft,b[0][1].scrollLeft,b[1][0].scrollTop,b[1][1].scrollTop])):a=A_ag(a,a.Ux,[d]),setTimeout(a,c)):A_Kh(a,d))}
AdfDhtmlPivotTablePeer.prototype.Ux=function(a,b,c,d,e){this.Sa&&(aaa=a.cs,aaa.push("TimeAtPft \x3d "+((new Date).getTime()-this.ph)));var f=this.b.Hd,g=a.md;A_Lh(this.Na,a)&&("longScroll"!=g||f[0][0].scrollLeft==b&&f[0][1].scrollLeft==c&&f[1][0].scrollTop==d&&f[1][1].scrollTop==e)?A_Kh(this,a):this.Sa&&aaa.push("Bailing out of PFT in requestsMatch check")};function A_Wf(a){return a.Na&&"shortScroll"==a.Na.md}
function A_Kh(a,b){a.Sa&&(aaa=b.cs,aaa.push("TimeAtQfei \x3d "+((new Date).getTime()-a.ph)));if(A_Lh(a.Na,b))if(A_Lh(a.Qd,b))a.Sa&&aaa.push("Bailing out of PFT in serverRequest check");else{var c=!1;"initialFillViewport"==b.md?(a.Sa&&aaa.push("QFEI queuing FVP event to server"),AdfPage.PAGE.queueEventToServer(b)):(a.Sa&&aaa.push("QFEI queuing non-FVP event"),a.getComponent().queueEvent(b),c=b.isCanceled());c?(A_hf(a,null,-1),A_gf(a,A_Te(a)),a.Sa&&aaa.push("QFEI event was canceled")):(a.Sa&&aaa.push("QFEI setting serverRequest"),
a.Qd=b,"shortScroll"!=b.md&&"longScroll"!=b.md||a.Ec(a.ld,a.Oa))}}function A_Lh(a,b){if(null==a||a==AdfDhtmlPivotTablePeer.Ea||a.md!=b.md)return!1;var c=a.Cm,d=b.Cm,e=c.length;if(e!=d.length)return!1;for(var f=0;f<e;++f){for(var g=d[f],h=g.startRow,g=g.startCol,l=!1,m=0;m<e;++m){var n=c[m];if(n.startCol==g&&n.startRow==h){l=!0;break}}if(!l)return!1}return!0}
function A_mg(a,b,c){if(null==a)return!1;if("initBlock"==a)return!0;if(a==AdfDhtmlPivotTablePeer.Ea)return c==AdfDhtmlPivotTablePeer.Ea;if(c!=a.md)return!1;a=a.Cm;c=a.length;if(c!=b.length)return!1;for(var d=AdfAgent.AGENT,e=0;e<c;++e){for(var f=b[e],g=d.getIntAttribute(f,"_startRow"),f=d.getIntAttribute(f,"_startCol"),h=!1,l=0;l<c;++l){var m=a[l];if(m.startCol==f&&m.startRow==g){h=!0;break}}if(!h)return!1}return!0}function A_3g(a,b,c,d){b=A_Mh(a,b,c,d);return a.getComponent().getProperty(b)}
function A_2g(a,b,c,d,e){b=A_Mh(a,b,c,d);a.getComponent().setProperty(b,e)}function A_Mh(a,b,c,d){return 0<a.b.u[b]&&1==c?1==b?d?AdfRichPivotTable.Nv:AdfRichPivotTable.pq:d?AdfRichPivotTable.Mv:AdfRichPivotTable.oq:1==b?d?AdfRichPivotTable.Sv:AdfRichPivotTable.tm:d?AdfRichPivotTable.Rv:AdfRichPivotTable.sm};