var pe={BZ:[]};pe.BZ["1000"]="SEVERE";pe.BZ["900"]="WARNING";pe.BZ["800"]="INFO";pe.i=new D("AdfRichAutomationLogger",new zc,D.INFO);v("AdfRichAutomation.LOGGER",pe.i);pe.i.iv();
pe.y5a=function(a,b){var d=F.c.Ph(a);if(!d)return"[FAILURE] Cannot find component using locator"+a;if(!d.k||!d.k())return"[FAILURE] No peer found for component"+d;for(var e=d.k(),f="",g,h,m=0;m<b.length;m++)if(h=b[m],g=e.Wh(d,b[m])){if(g=M.gCa(g),!g||g!=a+"#"+h)f+="[FAILURE]  SubId to DOM to SubId failed for component '"+a+"', subId '"+h+"'. Component peer provided a valid DOM, but the subId obtained from that DOM did not match.\n"}else f+="[FAILURE] SubId to DOM to SubId failed for component '"+
a+"', subId '"+h+"'. Component peer did not provide a valid DOM for the sub id.\n";return""==f?n:f};v("AdfRichAutomation.subIdToDomElToSubId",pe.y5a);
pe.q4a=function(a){pe.i.info("Enter AdfRichAutomation.locateElementByRich");var b=a,d,e=a.indexOf("#");-1<e&&(b=a.substring(0,e),d=a.substring(e+1));var f=p,g=window.ge.c,e=g.Ph(b),h=pe.i;e||(e=g.by(b),f=l,h.info("AdfRichAutomation.locateElementByRich - falling back to: ",e," for ",a));return e?(g=e.k(),f?(b=g.Xfa(e,b,d))?h.info("AdfRichAutomation.locateElementByRich - found fallback subid DOM element for locator:",a," on component:",e):h.warning("AdfRichAutomation.locateElementByRich - fallback subId DOM Element not found for locator:",
a," on component:",e):d?(b=g.Wh(e,d))?h.info("AdfRichAutomation.locateElementByRich - found subid dom element for locator:",a):h.warning("AdfRichAutomation.locateElementByRich - subIdElement not found for locator:",a):(b=window.R5a.Ib(e),h.info("AdfRichAutomation.locateElementByRich - found dom element for locator:",a)),b):n};v("AdfRichAutomation.locateElementByRich",pe.q4a);
pe.L3a=function(){pe.i.info("Enter AdfRichAutomation.getWaitForRichPageFnName");var a=window.ge.c.n0();if(0!=a){if(a&2)return pe.i.info("AdfRichAutomation.getWaitForRichPageFnName - PPR nav always"),"return AdfRichAutomation.waitForPagePPRNavAlways()";pe.i.info("AdfRichAutomation.getWaitForRichPageFnName - PPR nav sometimes");return"return AdfRichAutomation.waitForPagePPRNavSometimes()"}pe.i.info("AdfRichAutomation.getWaitForRichPageFnName - PPR nav off");return"return AdfRichAutomation.waitForPagePPRNavOff()"};
v("AdfRichAutomation.getWaitForRichPageFnName",pe.L3a);pe.cFa=function(){pe.i.info("Enter AdfRichAutomation.waitForPagePPRNavAlways");try{return window.ge.c.Gy()}catch(a){return p}};v("AdfRichAutomation.waitForPagePPRNavAlways",pe.cFa);pe.M5a=function(){pe.i.info("Entering AdfRichAutomation.waitForPagePPRNavSometimes");return window.ge.c.Xt?this.dFa():this.cFa()};v("AdfRichAutomation.waitForPagePPRNavSometimes",pe.M5a);
pe.dFa=function(){pe.i.info("Entering AdfRichAutomation.waitForPagePPRNavOff");try{return window.ge.c.bDa()}catch(a){return p}};v("AdfRichAutomation.waitForPagePPRNavOff",pe.dFa);pe.Xi=function(a){return qe.Xi(a)};v("AdfRichAutomation.cancelPopup",pe.Xi);
pe.H3a=function(a){pe.i.info("Entering AdfRichAutomation.getRichDialogInfo");var b=k,d=[],b=window.xFa.yga(a);a?pe.i.info("AdfRichAutomation.getRichDialogInfo - getting peer state with: ",a):pe.i.info("AdfRichAutomation.getRichDialogInfo - getting last peer state.");b||pe.wr("AdfRichAutomation.getRichDialogInfo - no peer state.");b.popupId?(pe.i.info("AdfRichAutomation.getRichDialogInfo - setting up info array for inline popup."),d.push("inline"),d.push(b.popupId),d.push(b.frameName),d.push(b.panelWindowId)):
b.H$a&&(pe.i.info("AdfRichAutomation.getRichDialogInfo - setting up info array for window popup."),d.push("window"),d.push(b.windowName));d.push(b.launchSourceId);return d};v("AdfRichAutomation.getRichDialogInfo",pe.H3a);pe.t3a=function(a){pe.i.info("Entering AdfRichAutomation.getInlineDialogTitle");return(a=this.ry(a))?a.r("_panelWindowId"):n};v("AdfRichAutomation.getInlineWindowDomId",pe.t3a);
pe.N5a=function(a){pe.i.info("Entering AdfRichAutomation.waitForRichInlineDialogLaunch");var b=p;(a=this.ry(a))&&(b=a.Qa());return b};v("AdfRichAutomation.waitForRichInlineDialogLaunch",pe.N5a);pe.e3a=function(){pe.i.info("Entering AdfRichAutomation.getAllRichDialogIds");var a=qe.xga();pe.i.info("AdfRichAutomation.getAllRichDialogIds - returning all rich dialog ids.");return a};v("AdfRichAutomation.getAllRichDialogIds",pe.e3a);
pe.ry=function(a){pe.i.info("Entering AdfRichAutomation.getRichComponent");var b=window.ge.c.j(a);b||pe.i.warning("AdfRichAutomation.getRichComponent - component not found for clientId: ",a);return b};v("AdfRichAutomation.getRichComponent",pe.ry);pe.G3a=function(a){pe.i.info("Entering AdfRichAutomation.getRichComponentType");if(!a||!a.id)return n;a=window.ge.c.j(a.id);return!a||"function"!==typeof a.getComponentType?n:a.getComponentType()};v("AdfRichAutomation.getRichComponentType",pe.G3a);
pe.F3a=function(a,b){pe.i.info("Entering AdfRichAutomation.getRichComponentProperty");pe.mN(a,"AdfRichAutomation.getRichComponentProperty");var d=this.ry(a.id);if(d)return d.r(b);pe.wr("AdfRichAutomation.getRichComponentProperty - Could not find richComponent: "+d+". Property "+b+" cannot be found for the client id: "+a.id+".")};v("AdfRichAutomation.getRichComponentProperty",pe.F3a);
pe.E3a=function(a,b){pe.i.info("Entering AdfRichAutomation.getRichComponentProperties");pe.mN(a,"AdfRichAutomation.getRichComponentProperties");var d=this.ry(a.id),e=[],f,g;if(d){for(var h=b.length,m=0;m<h;m++)g=b[m],f={},f.name=g,f.value=d.r(g),e.push(f);return e}pe.wr("AdfRichAutomation.getRichComponentProperties - Could not find richComponent: "+d)};v("AdfRichAutomation.getRichComponentProperties",pe.E3a);
pe.k5a=function(a,b,d){pe.i.info("Entering AdfRichAutomation.setRichComponentProperty");pe.mN(a,"AdfRichAutomation.setRichComponentProperty");var e=this.ry(a.id);if(e)return J.qha(e,b)?"##SECURE_PROPERTY_ERROR##":e.setProperty(b,d);pe.wr("AdfRichAutomation.setRichComponentProperty - Could not find richComponent: "+e+". argString: "+argString+" cannot be applied for the clientId: "+a.id+".")};v("AdfRichAutomation.setRichComponentProperty",pe.k5a);
pe.Y3a=function(a,b,d){pe.i.info("Entering AdfRichAutomation.invokeRichComponentFunction");pe.mN(a,"AdfRichAutomation.invokeRichComponentFunction");var e=this.ry(a.id);if(e){var f=e[b],g=pe.Owa();if("function"==typeof f||g&&"object"==typeof f)return g&&window.D2&&window.D2.Ul(d),f.apply(e,d);pe.wr("AdfRichAutomation.invokeRichComponentFunction - no function found by name: "+b)}a="AdfRichAutomation.invokeRichComponentFunction - component not found by clientId: "+a.id;pe.wr(a)};
v("AdfRichAutomation.invokeRichComponentFunction",pe.Y3a);
pe.Z3a=function(a,b){pe.i.info("Entering AdfRichAutomation.invokeRichComponentFunctionChain");pe.mN(a,"AdfRichAutomation.invokeRichComponentFunctionChain");var d=k,e=this.ry(a.id);if(e)for(var f=b.length,g=0;g<f;){for(var h=b[g++],m=b[g++],q=[],s=0;s<m;s++)q.push(b[g++]);pe.i.info("AdfRichAutomation.invokeRichComponentFunctionChain - processing function: ",h,", argCount: ",m,", args: ",q);m=e[h];s=pe.Owa();"function"==typeof m||s&&"object"==typeof m?(d=q,s&&window.D2&&(d=window.D2.Ul(q)),d=m.apply(e,
d)):(msg="AdfRichAutomation.invokeRichComponentFunctionChain - no function found by name: "+h,pe.wr(msg));e=d}else msg="AdfRichAutomation.invokeRichComponentFunctionChain - component not found by clientId: "+clientId,pe.wr(msg);return d};v("AdfRichAutomation.invokeRichComponentFunctionChain",pe.Z3a);pe.f3a=function(a){a=pe.N1a(a);for(var b=pe.i.Wj().$I(),d=[],e=0;e<b.length;e++){var f=b[e];f.level>=a&&d.push(this.IVa(f.level)+" : "+f.message)}pe.i.Wj().OD();return d};
v("AdfRichAutomation.getAndClearLogMessages",pe.f3a);pe.Uc=function(a){pe.rta(a,"AdfRichAutomation.getElementPageBounds");a=window.wFa.b.Uc(a);return a.top+","+a.right+","+a.left+","+a.bottom};v("AdfRichAutomation.getElementPageBounds",pe.Uc);pe.i3a=function(){var a=window.wFa.b,a=a.Uc(a.w().body);return a.top+","+a.right+","+a.left+","+a.bottom};v("AdfRichAutomation.getBodyBounds",pe.i3a);
pe.getComputedStyle=function(a){pe.rta(a,"AdfRichAutomation.getComputedStyle");a=w.b.getComputedStyle(a);var b="",d=String.fromCharCode(30),e=String.fromCharCode(31);if(a.length==n)for(var f in a){0<b.length&&(b+=d);var g=f.replace(/([A-Z])/g,"-$1").toLowerCase(),h=a[f];if(h==n||""==h)h="undefined";"font-weight"==g&&"700"==h&&(h="bold");b+=g+e+h}else for(g=0;g<a.length;++g){0<b.length&&(b+=d);f=a.item(g);h=a.getPropertyValue(f);if(h==n||""==h)h="undefined";b+=f+e+h}return b};
v("AdfRichAutomation.getComputedStyle",pe.getComputedStyle);pe.PR=function(){window.xFa.PR()};v("AdfRichAutomation.queueCachedPollEvents",pe.PR);pe.IVa=function(a){return pe.BZ[""+a]};pe.N1a=function(a){return"INFO"==a?800:"WARN"==a?900:"ERROR"==a?1E3:Number.MAX_VALUE};pe.Owa=function(){return window.AdfIEAgent!=n&&w.b instanceof window.AdfIEAgent};pe.rta=function(a,b){a||pe.wr(b+" -  Element passed is null")};pe.mN=function(a,b){(!a||!a.id)&&pe.wr(b+" -  Element passed is null or element id was not set")};
pe.wr=function(a){pe.i.severe(a);aa(a)};