var A_X=AdfRichUIPeer.createPeerClass(AdfDhtmlCommonFlashPeer,"AdfDhtmlDvtImageViewPeer",A_c);A_h("AdfDhtmlDvtImageViewPeer",A_X);A_X.ft="_embed";A_X.zi="_div";A_X.hp="_xml";A_X.At="_scriptIds";
A_X.InitSubclass=function(){AdfObject.ensureClassInitialization(A_X);AdfRichUIPeer.addDomEventHandlers(this,"mousemove");AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE,AdfUIInputEvent.MOUSE_UP_EVENT_TYPE);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_J.TC);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_J.Hp);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_J.Tu);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_J.SE);AdfRichUIPeer.addSuppressedPPRAttributes(this,
A_J.Xu);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_J.Ta);AdfRichUIPeer.addSuppressedPPRAttributes(this,A_E.ll);this.zj=this.rh=this.fg=A_c};A_X.$x=function(a){if(a){var b=RegExp("orabiscript","g");a=a.replace(b,"script");b=RegExp("]]\x26gt;","g");a=a.replace(b,"]]\x3e")}return a};
A_X.prototype.Qt=function(a,b){var c=AdfAgent.AGENT.getElementById(a);if(c){var d=c.innerHTML,e=d.indexOf("\x3c!--"),f=d.lastIndexOf("--\x3e");0<=e&&f>e&&(d=d.substring(e+4,f));c.innerHTML=d;A_fe("Flash Graph Perf: Uncommented Flash Tag");AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&(b.getProperty("isInPortlet")||A_E.Fs(b.getClientId()))}};A_X.prototype.Lb=A_c;
A_X.prototype.ResizeNotify=function(a,b,c,d){a=this.getComponent();if("immediate"==a.getContentDelivery())this.Bq=A_b,(c=this.za(a))&&c===A_b?this.bi(a)||this.oi(a):"HTML5"==a.I()&&(AdfAgent.getAgent().getPlatform()==AdfAgent.GECKO_PLATFORM&&a.getProperty("svgDisposition")==A_J.Tg?(c=this.createCallback(this.Ei),window.setTimeout(c,0,a)):this.Ei(a));else if(this.Bq){if(this.Fm&&(5<Math.abs(this.La-c)||5<Math.abs(this.eb-d)))b=(new Date).getTime(),100<=b-this.Qj&&(this.La=c,this.eb=d,this.wc(this.ad),
e={},e.event=A_p.po,e.width=c,e.height=d,c=new A_p(a,e),c.setPartial(A_b),AdfPage.PAGE.queueEventToServer(c),this.Lb=A_b,this.Qj=b)}else if(this.Bq=A_b,this.wc(this.ad),!AdfPage.PAGE.isStreamingRequestPending(a.getClientId())||this.Fm&&this.RG){this.La=c;this.eb=d;var e={};e.event=A_p.po;e.width=c;e.height=d;c=new A_p(a,e);c.setPartial(A_b);AdfPage.PAGE.queueEventToServer(c);this.Lb=A_b}};A_X.prototype.ResizeNotify=A_X.prototype.ResizeNotify;A_X.prototype.wl=A_f(A_c);A_X.prototype.Mg=A_f(A_b);
A_X.prototype.InitDomElement=function(a,b){A_X.superclass.InitDomElement.call(this,a,b);this.Lb=A_c;var c=a.qy(),d=a.py();this.pj=AdfDhtmlCommonFlashPeer.O(b,AdfRichUIPeer.CreateSubId(b.id,"FetchStatus"));this.Fx=b;this.ad=AdfAgent.AGENT.getAttribute(b,"_fetchText");this.Fm=a.getProperty("isDynamicResize");this.Qj=(new Date).getTime();this.La=c;this.eb=d;this.RG=a.getProperty("isActiveDataModel");c=this.za(a);"AUTO"==a.I()&&(c&&c===A_b)&&(A_E.Ik()?a.setProperty(A_E.ll,"true"):(a.setProperty(A_E.ll,
"false"),"immediate"==a.getContentDelivery()&&(c=new A_p(a,{}),c.setPartial(A_b),AdfPage.PAGE.queueEventToServer(c),this.Lb=A_b,a.setProperty("clientImageFormat","PNG"))));"SVG"==a.I()&&a.Wh()==A_J.Tg&&A_ge(a);"HTML5"==a.I()&&(c=a.getClientId()+"_svg",this.xx=DvtSvgUtils.createSvgDocument(c),b.appendChild(this.xx));if((c=this.za(a))&&c===A_b)(c=a.getProperty("isInPortlet"))&&c===A_b&&this.oi(a),AdfPage.PAGE.addBusyStateListener(this,this.lw);"ATTACHMENT"==a.I()&&this.kl(a);"immediate"==a.getContentDelivery()&&
(this.Bq=A_b);this.UG=A_c;A_he(this,a)};A_X.prototype.InitDomElement=A_X.prototype.InitDomElement;A_X.prototype.InitDomElement=A_X.prototype.InitDomElement;A_X.prototype.Init=function(a,b){A_X.superclass.Init.call(this,a,b);var c=a.getDropTarget();c&&a.setDropTarget(new A_gc(c))};
A_X.prototype.DomReplaceNotify=function(a){var b=this.getComponent();this._hideStatus();if("SVG"==b.I()){if(b.Wh()==A_J.Tg)if(AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM){var c=b.getClientId()+A_X.ft;(c=document.getElementById(c))&&A_ie(this,c);var d=document.getElementById(b.getClientId()+A_X.At);b.jM(d.firstChild.data);A_je(eval(b.es()),c.window,c.vy());this.Fm&&(c=AdfAgent.AGENT.getElementById(b.getClientId()+A_X.zi),c.style.width="100%",c.style.height="100%")}else{var c=AdfAgent.AGENT.getElementById(b.getClientId()+
A_X.zi),d=AdfAgent.AGENT.getElementById(b.getClientId()+A_X.hp),e=A_ke(d),f=e.documentElement,d=document.getElementById(b.getClientId()+A_X.At);b.jM(d.firstChild.data);A_je(eval(b.es()),window,e);if(c.childNodes)for(b=c.childNodes.length-1;0<=b;b--)c.removeChild(c.childNodes[b]);b=document.adoptNode(f);c.appendChild(b)}}else{if((c=this.za(b))&&c===A_b)if("AUTO"==b.I()&&"false"==b.getProperty(A_E.ll))d=new A_p(b,{}),d.setPartial(A_b),AdfPage.PAGE.queueEventToServer(d),this.Lb=A_b,b.setProperty("clientImageFormat",
"PNG");else{if(this.getComponent()!=A_&&(this.getComponent().setProperty(A_J.Tu,A_),this.getComponent().setProperty(A_J.Xu,A_)),this.bi(b)?this.Go(b):this.oi(b),this.Fm&&(d=AdfDhtmlCommonFlashPeer.Ai(b.getClientId()),d=document.getElementById(d)))d.height=this.eb}else"HTML5"==b.I()&&this.Ei(b);a.lastChild!=A_&&a.lastChild.id==AdfRichUIPeer.CreateSubId(b.getClientId(),"InvokeDisplayStatus")&&(c||this.wc(this.ad));"undefined"!=typeof AdfDvtGauge&&(b instanceof AdfDvtGauge&&this.QG==A_b)&&(this.QG=A_c,
b=new A_p(b,{event:"ads_gauge_ppr"}),b.setPartial(A_b),AdfPage.PAGE.queueEventToServer(b))}this.Lb=A_c;A_he(this);return a};A_X.prototype.DomReplaceNotify=A_X.prototype.DomReplaceNotify;
A_X.prototype.ComponentRemoved=function(a){var b=this.za(a);if(b&&b===A_b&&(AdfPage.PAGE.removeBusyStateListener(this,this.lw),AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&(b=AdfDhtmlCommonFlashPeer.Ai(a.getClientId()),b=document.getElementById(b)))){b.parentNode.removeChild(b);for(var c in b)try{b[c]=A_}catch(d){}}A_X.superclass.ComponentRemoved.call(this,a)};A_X.prototype.ComponentRemoved=A_X.prototype.ComponentRemoved;A_X.prototype.ot=function(){var a=this.c.Rh().IT();a&&a.OT()};
A_X.prototype.getDragOverFeedback=function(a,b){var c=A_Pb(this,a,b);if("HTML5"==this.I()){if(this.c&&this.c.getDragOverFeedback){var c=this.c.getDragOverFeedback(c.x,c.y),d=DvtSvgUtils.XJ(c,this.c.Rh().getStage());this.c.vr&&this.c.vr(c);return d}}else if((d=this.pa())&&d.getDragOverFeedback){d.disableEvents&&d.disableEvents;var e=AdfDhtmlCommonFlashPeer.gp();return d.getDragOverFeedback(c.x,c.y,e)}return A_};A_X.prototype.getDragOverFeedback=A_X.prototype.getDragOverFeedback;
function A_ge(a){if(AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM){var b=AdfAgent.AGENT.getElementById(a.getClientId()+A_X.zi);b.style.width="100%";b.style.height="100%";A_le(a)}else{var b=AdfAgent.AGENT.getElementById(a.getClientId()+A_X.zi),c=AdfAgent.AGENT.getElementById(a.getClientId()+A_X.hp),c=A_ke(c),d=c.documentElement;A_je(eval(a.es()),window,c);a=document.adoptNode(d);b.appendChild(a)}}
function A_le(a){var b=document.createElement("embed");b.setAttribute("wmode","transparent");b.setAttribute("id",a.getClientId()+A_X.ft);b.style.width="100%";b.style.height="100%";b.src=AdfPage.PAGE.getResourceURL("/bi/jsLibs/empty.svg");b.type="image/svg+xml";a=AdfAgent.AGENT.getElementById(a.getClientId()+A_X.zi);if(a.childNodes)for(var c=a.childNodes.length-1;0<=c;c--)a.removeChild(a.childNodes[c]);a.appendChild(b)}
function A_ke(a){a:{for(var b=0;b<a.childNodes.length;b++){var c=a.childNodes[b];if(8==c.nodeType){a=c.nodeValue;break a}}a=A_}a=A_X.$x(a);return(new DOMParser).parseFromString(a,"text/xml")}
function A_ie(a,b){var c=a.getComponent(),d=AdfAgent.AGENT.getElementById(c.getClientId()+A_X.hp).innerHTML,e=d.indexOf("\x3c!--"),f=d.lastIndexOf("--\x3e"),d=d.substring(e+4,f),e=d.indexOf("\x3csvg"),f=d.lastIndexOf("\x3c/svg\x3e"),d="\x3cg"+d.substring(e+4,f)+"\x3c/g\x3e",d=A_X.$x(d),e=b.vy(),d=b.window.parseXML(d,e);A_me(d,e);A_je(eval(c.es()),b.window,b.vy())}
A_X.prototype.lw=function(a){this.wq=A_b;var b=A_c;a.isBusy()&&(b=A_b);this.fg!=b&&(this.fg=b,a=this.getComponent(),a!=A_&&(a=a.pa())&&a.setWaitCursor&&(this.fg?a.setWaitCursor("t"):a.setWaitCursor("f")));this.wq=A_c};A_X.prototype.ez=function(a){this.Lb||(this.Lb=A_b,a=new A_p(this.getComponent(),a),a.setPartial(A_c),AdfPage.PAGE.queueEventToServer(a))};A_X.prototype.sendToServer=A_X.prototype.ez;
A_X.prototype.fz=function(a){this.Lb||(this.Lb=A_b,a=new A_p(this.getComponent(),a),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a))};A_X.prototype.sendToServerPPR=A_X.prototype.fz;A_X.prototype.gz=function(a){if(!this.Lb){var b="bi_graphDragDropEvent"==a.event;!("bi_gdse"==a.event&&"s"==a.oS)&&!b&&(this.Lb=A_b);a=new A_p(this.getComponent(),a);a.setPartial(A_b);AdfPage.PAGE.queueEventToServer(a)}};A_X.prototype.sendToServerPPR2=A_X.prototype.gz;
A_X.prototype.RL=function(a){this.Lb||(a=new A_p(this.getComponent(),a),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a))};A_X.prototype.sendToServerPPR3=A_X.prototype.RL;A_g=A_X.prototype;
A_g.HandleEvent=function(a){var b=a.getType();b==DvtGraphSelectionEvent.TYPE?this.rf(a):b==DvtGraphShowPopupEvent.TYPE?this.sq(a):b==DvtGraphHidePopupEvent.TYPE?this.rq(a):b==DvtGraphContextMenuEvent.TYPE?this.zo(a):b==DvtGraphContextMenuSelectEvent.TYPE?this.Gs(a.pT(),a.getClientId(),a.getDestination(),a.getTargetFrame()):b==DvtGraphActionEvent.TYPE&&this.oc(a)};A_g.oc=function(a){this.pl()&&(a=this.jl(a),a.setPartial(A_b),AdfPage.PAGE.queueEventToServer(a))};
A_g.rf=function(a){var b=this.getComponent();a=a.getSelection().join(AdfDhtmlCommonFlashPeer.qc);this.ee(a);this.Zd()&&(b=new A_Db(b),b.setPartial(A_b),AdfPage.PAGE.queueEventToServer(b))};A_g.sq=function(a){var b=a.ET(),c=a.iT();c||(c={x:A_,y:A_,Rn:A_,yn:A_});var d=b.Kr()?A_c:A_b;this.showPopup(this.pq(a,"clientRowKey"),b.$r(),b.Kr(),b.getAlign(),b.EK(),A_,A_,c.x,c.y,c.Rn,c.yn,d,a.jT(),A_F("clientId"))};
A_g.rq=function(a){var b=A_F("clientId");b||(b=this.getComponent().getClientId());AdfDhtmlCommonFlashPeer.hidePopup(a.$r(),b)};A_g.zo=function(a){var b=this.getComponent();b&&(b=(popup=b.findComponent(a.jK()))?b:A_);this.showContextMenu(a.getNativeEvent(),a.jK(),b)};A_g.pq=function(a,b){return A_F(b)};A_g.jl=function(a){return new A_pb(this.getComponent(),a.ds(),this.pq(a,"clientRowKey"),a.ZS())};
function A_ne(a,b,c){b=Number(b)+10+","+(Number(c)+-10)+",5,5";a.getComponent().setProperty(A_J.Hp,b)}
function A_me(a,b){var c=b.oU;if(c.childNodes)for(var d=c.childNodes.length-1;0<=d;d--)c.removeChild(c.childNodes.item(d));if(c.attributes)for(d=c.attributes.length-1;0<=d;d--)c.removeAttribute(c.attributes.item(d).name);if(a.firstChild.attributes)for(d=a.firstChild.attributes.length-1;0<=d;d--){var e=a.firstChild.attributes.item(d),f=e.name,g=b.createAttribute(f);g.nodeValue=e.nodeValue;c.setAttributeNode(g);a.firstChild.removeAttribute(f)}if(a.childNodes)for(d=0;d<a.childNodes.length;d++)c.appendChild(a.childNodes.item(d))}
A_g.za=function(a){return"FLASH"==a.I()||"AUTO"==a.I()};A_g.bi=function(a){return a.Wh()==A_J.Tg?A_X.superclass.bi.call(this,a):A_b};A_g.oi=function(a){if(A_E.Ik()){var b=a.getClientId();if(a.Wh()==A_J.Tg){var b=AdfRichUIPeer.CreateSubId(b,"flashplayer"),c=a.getProperty("isInPopup");c&&c===A_b&&AdfAgent.getAgent().getPlatform()!=AdfAgent.IE_PLATFORM&&"immediate"==a.getContentDelivery()?window.setTimeout(this.Qt,75,b,a):this.Qt(b,a)}}else this.Ln(a)};
A_g.Go=function(a){if(a.Wh()==A_J.Tg){var b=this.pa(a);b&&b.loadXML&&b.loadXML(A_oe(a.getClientId()),"true")}};function A_oe(a){return A_pe(a)}
A_g.Ei=function(a){var b=a.getClientId();if(!this.c){var c=new DvtSvgContext(this.xx,"stage"+b),d=c.getStage();this.c=new DvtGraph(c,b,this.HandleEvent,this);if(AdfAgent.AGENT.getPlatform()==AdfAgent.WEBKIT_PLATFORM&&(c=this.getDomElement()))c.style.WebkitUserSelect="none",c.style.WebkitTouchCallout="none",c.style.WebkitTapHighlightColor="rgba(0,0,0,0)";d.addChild(this.c)}d=A_pe(b);"\x3cfetch/\x3e"===d?A_Mb(this):(A_Nb(this),this.c.AU(d),d=this.c.Rh().getStage(),a=a.getClientId()+"_"+this.La.toString()+
"x"+this.eb.toString(),a=new DvtGraphClipPath(a),a.hS(0,0,this.La,this.eb),d.uU(a))};A_g.wc=function(a){var b=this.pj;if(b!=A_){b.innerHTML=a;a=b.style;if(""==a.display||"none"==a.display)a.zIndex=5,a.visibility="hidden",a.display="block",a.top=Math.floor((this.eb-b.offsetHeight)/2)+"px",a.left=Math.floor((this.La-b.offsetWidth)/2)+"px",a.visibility="visible";b=this.Fx.style;this.kr==A_&&(this.kr=b.borderStyle);b.borderStyle="solid"}};
A_g._hideStatus=function(){var a=this.pj;a!=A_&&(a.style.display="none");this.Fx.style.borderStyle=this.kr?this.kr:"none"};
A_g.bb=function(a){A_X.superclass.bb.call(this,a);if(this.fh==A_c||this.cj==A_c||this.Qp==A_)return A_b;if(!a.isLeftButtonPressed||a.isLeftButtonPressed()==A_c)return this.cj=A_c,A_b;if(!a.getOffsetX||!a.getOffsetY)return this.cj=A_c,AdfLogger.LOGGER.fine("Unable to get X/Y coords on mousedown"),A_b;var b=a.getOffsetX();a=a.getOffsetY();var c=A_c;(c=this.ya(this.Qp))&&c.Gx&&"Scroller"===c.Gx&&c.validate()?(this.Ke=c.lm,this.aj=c.vc,this.Vl=c.uw,c.uw==A_b?(this.$g=c.Gj,this.bh=c.gk):(this.ah=c.Gj,
this.dh=c.gk),this.Nf=c.dn,this.Mf=c.$m,this.eh=c.Qm,c=A_b):c=A_c;c&&(this.Jf=A_b,this.Wl=b,this.bj=a,this.Kf=this.Wl,this.Lf=this.bj);c||A_qe(this);this.cj=A_c;return A_b};A_X.prototype.HandleComponentMouseDown=A_X.prototype.bb;A_h("AdfDhtmlDvtImageViewPeer.prototype.HandleComponentMouseDown",A_X.prototype.bb);
A_X.prototype.lt=function(a){if(a.isLeftButtonPressed&&a.isLeftButtonPressed()!=A_c&&(this.Jf=A_c,this.fh==A_b&&this.Ke!=A_))if(!a.getOffsetX||!a.getOffsetY)AdfLogger.LOGGER.fine("Unable to get X/Y coords on mouse up");else{var b=0,c=0;this.jv==A_b&&this.kv&&(b=a.getOffsetX(),c=a.getOffsetY());this.iv=b;this.Pp=c;this.Je=this.Ie=-1;a=this.Nf-this.Mf;b=document.getElementById(this.Ke);this.Vl?(b=this.bh-this.$g-A_re(b.style.width),this.Yc=this.eh+(this.iv-this.Wl)/b*(this.Nf-this.Mf)):(b=this.dh-this.ah-
A_re(b.style.height),this.Yc="O1"==this.aj?this.eh+(this.Pp-this.bj)/b*(this.Nf-this.Mf):this.eh-(this.Pp-this.bj)/b*(this.Nf-this.Mf));this.Yc=Math.round(this.Yc);0>this.Yc&&(this.Yc=0);this.Yc>a&&(this.Yc=a);isNaN(this.Yc)&&(this.Yc=this.eh);a={};a.source=this.getComponent().getClientId();a.event="bi_gdse";a.bi_gdsA=this.aj;a.bi_gdsC=this.Nf;a.bi_gdsSt=this.Yc;a.bi_gdsSp=this.Mf;A_qe(this);this.fz(a)}};A_X.prototype.HandleComponentMouseUp=A_X.prototype.lt;
A_h("AdfDhtmlDvtImageViewPeer.prototype.HandleComponentMouseUp",A_X.prototype.lt);
A_X.prototype.Di=function(a,b){var c=AdfAgent.AGENT.getMousePosition(b),d=AdfAgent.AGENT.getElementPosition(this.getDomElement()),e=c.x-d.x,c=c.y-d.y;if((d=this.za(a))&&a.getProperty("isAutomation")&&A_Gb())this.FF=b.clientX,this.GF=b.clientY,this.HF=b.screenX,this.IF=b.screenY;d||A_ne(this,e,c);this.fh==A_b&&this.Ke!=A_&&this.Jf==A_b&&(c=e=0,-1!=this.Ie&&(this.Kf=this.Ie),-1!=this.Je&&(this.Lf=this.Je),b.clientX&&b.clientY&&(e=b.clientX,c=b.clientY,this.Ie=e,this.Je=c,this.Jf!=A_c&&(e=document.getElementById(this.Ke),
e==A_?AdfLogger.LOGGER.fine("about to return: noDiv by ID "+this.Ke):this.Vl?this.Kf!=this.Ie&&(d=A_re(e.style.left),this.Kf>this.Ie?d<=this.$g||(c=d-(this.Kf-this.Ie),e.style.left=c<this.$g?""+this.$g+"px":""+c+"px"):(c=A_se(e.style.width),d+c>=this.bh||(d=this.Ie-this.Kf+d,e.style.left=d+c>this.bh?""+(this.bh-c)+"px":""+d+"px"))):this.Lf!=this.Je&&(d=A_re(e.style.top),this.Lf>this.Je?d<=this.ah||(c=d-(this.Lf-this.Je),e.style.top=c<this.ah?""+this.ah+"px":""+c+"px"):(c=A_se(e.style.height),d+c>=
this.dh||(d=this.Je-this.Lf+d,e.style.top=d+c>this.dh?""+(this.dh-c)+"px":""+d+"px"))))));return A_b};A_X.prototype.HandleDomMouseMove=A_X.prototype.Di;A_h("AdfDhtmlDvtImageViewPeer.prototype.HandleDomMouseMove",A_X.prototype.Di);A_X.prototype.Ab=function(a){if(this.fh==A_b&&this.Jf==A_b){if(this.fv==A_b)return this.fv=A_c,A_b;if(a.getOffsetY&&a.getOffsetX){var b=a.getOffsetY();a=a.getOffsetX();(0>=b||0>=a||b>=this.gv||a>=this.hv)&&A_qe(this)}}return A_b};A_X.prototype.HandleComponentMouseOut=A_X.prototype.Ab;
A_h("AdfDhtmlDvtImageViewPeer.prototype.HandleComponentMouseOut",A_X.prototype.Ab);A_X.prototype.Zd=function(){return this.getComponent().getProperty(A_J.sc)};A_X.prototype.HasSelectionListener=A_X.prototype.Zd;A_X.prototype.ee=function(a){this.getComponent()!=A_&&A_v(this,"selectionInfo",a)};A_X.prototype.SetSelection=A_X.prototype.ee;A_X.prototype.My=A_aa("rh");A_X.prototype.Uk=A_e("rh");A_X.prototype.wg=A_aa("zj");A_X.prototype.Vk=A_e("zj");