window.adf||(window.adf={});adf.mf=adf.mf||{};adf.mf.internal=adf.mf.internal||{};adf.mf.internal.controller=adf.mf.internal.controller||{};(function(){function a(){}adf.mf.internal.controller.ViewHistory=a;a.peek=function(){return adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().peekViewHistory()}})();window.adfc||(window.adfc={});
(function(){function a(){}adfc.NavigationHandler=a;a.getInitialViewId=function(a,d,e){adfc.internal.LogUtil.perfLog("BEGIN: NavigationHandler.getInitialViewId");adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("executing NavigationHandler.getInitialViewId() called.");adfc.internal.NavigationHandlerImpl.getInitialViewId(a.entryPoint,a.inputParams,function(e){adfc.internal.LogUtil.perfLog("END: NavigationHandler.getInitialViewId");d(a,e)},function(d){adfc.internal.LogUtil.perfLog("END: NavigationHandler.getInitialViewId");
e(a,d)})};a.handleNavigation=function(a,d,e){adfc.internal.LogUtil.perfLog("BEGIN: NavigationHandler.handleNavigation");var g=a.currentViewId,h=a.outcome;adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("executing NavigationHandler.handleNavigation(), currentViewId="+g+", outcome="+h);adfc.internal.NavigationHandlerImpl.handleNavigation(g,h,function(e){if(adfc.internal.LogUtil.isFine()){var g=e.isNewViewId(),h="ADFc: executing NavigationHandler.handleNavigation() completed, isNewView="+
g;g&&(g=e.getVdlDocumentPath(),h+=", page="+g);adfc.internal.LogUtil.fine(h)}adfc.internal.LogUtil.perfLog("END: NavigationHandler.handleNavigation");d(a,e)},function(d){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("executing NavigationHandler.handleNavigation() failed");adfc.internal.LogUtil.perfLog("END: NavigationHandler.handleNavigation");e(a,d)})}})();window.adfc||(window.adfc={});
(function(){function a(a,d,e,g,h,k){this.mNewViewId=a;this.mBackNavigation=d;this.mViewId=e;this.mVdlDocumentPath=g;this.mTransitionType=h;this.mFeatureExited=k}adfc.NavigationResult=a;a.prototype.isNewViewId=function(){return this.mNewViewId};a.prototype.isBackNavigation=function(){return this.mBackNavigation};a.prototype.getViewId=function(){return this.mViewId};a.prototype.getVdlDocumentPath=function(){return this.mVdlDocumentPath};a.prototype.getTransitionType=function(){return this.mTransitionType};
a.prototype.isTaskFlowExited=function(){adfc.internal.LogUtil.warning("function adfc.NavigationResult.isTaskFlowExited() is deprecated, use adfc.NavigationResult.isFeatureExited() instead.");return this.isFeatureExited()};a.prototype.isFeatureExited=function(){return this.mTaskFlowExited}})();window.adfc||(window.adfc={});adfc.Util={};
(function(){adfc.Util.addFeatureRootPrefix=function(a){var b=a;null!=adf.FEATURE_ROOT&&(b=adf.FEATURE_ROOT+"/public_html",null!=a&&0<a.length&&"/"!=a.charAt(0)&&(b+="/"),b+=a);return b}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.ActivityLogic=a;a.sImplementations={};a.getImplementation=function(b){var d=this.sImplementations[b];d||(b==adfc.internal.ActivityType.VIEW?(d=new adfc.internal.ViewActivityLogic,a.sImplementations[adfc.internal.ActivityType.VIEW]=d):b==adfc.internal.ActivityType.ROUTER?(d=new adfc.internal.RouterActivityLogic,a.sImplementations[adfc.internal.ActivityType.ROUTER]=d):b==adfc.internal.ActivityType.METHOD_CALL?(d=new adfc.internal.MethodCallActivityLogic,a.sImplementations[adfc.internal.ActivityType.METHOD_CALL]=
d):b==adfc.internal.ActivityType.TASK_FLOW_CALL?(d=new adfc.internal.TaskFlowCallActivityLogic,a.sImplementations[adfc.internal.ActivityType.TASK_FLOW_CALL]=d):b==adfc.internal.ActivityType.TASK_FLOW_RETURN&&(d=new adfc.internal.TaskFlowReturnActivityLogic,a.sImplementations[adfc.internal.ActivityType.TASK_FLOW_RETURN]=d));return d}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.MethodCallActivityLogic=a;a.prototype.execute=function(a,d,e,g){adfc.internal.LogUtil.fine("MethodCallActivityLogic.prototype.execute() entered");adfc.internal.LogUtil.perfLog("BEGIN: MethodCallActivityLogic.execute");a.setCurrentOutcome(null);var h=function(h,k){for(var m=Array(k.length),u=0;u<k.length;u++)m[u]=k[u].value;u=d.getMethodElExpression();adfc.internal.LogUtil.fine("executing method call expression: "+u);adfc.internal.ElUtil.invokeMethod(u,n,m,function(h,
k){adfc.internal.LogUtil.fine("method call invokation successful");var m=function(){var g=null;d.getDefaultOutcome()?g=d.getDefaultOutcome():d.isConvertToString()&&k&&(g=new String(k));a.setCurrentOutcome(g);adfc.internal.LogUtil.perfLog("END: MethodCallActivityLogic.execute");adfc.internal.LogUtil.fine("method call complete, outcome="+g);e(a)},n=d.getReturnValue();if(null!=n&&0<n.length){adfc.internal.LogUtil.fine("storing method call result to: "+n);var u=[];u[0]={name:n,value:k};adfc.internal.ElUtil.setValue(u,
m,g)}else adfc.internal.LogUtil.fine("no method call result to store"),m()},g)},k=d.getParameters(),m=[],n=[];if(0<k.length){for(var o=0;o<k.length;o++)m.push(k[o].getValueExpression()),n.push(k[o].getType());adfc.internal.LogUtil.fine("getting method call activity parameter values");adfc.internal.ElUtil.getValues(m,h,g)}else adfc.internal.LogUtil.fine("no method call activity parameters specified"),h(m,m)}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.RouterActivityLogic=a;a.prototype.execute=function(a,d,e,g){adfc.internal.LogUtil.perfLog("BEGIN: RouterActivityLogic.execute");var h=0,k=function(m,o){var q=o[0].value,q=adfc.internal.ElUtil.resultToBoolean(q),s=d.getCases();!0==q?(q=s[h].getOutcome(),a.setCurrentOutcome(q),adfc.internal.LogUtil.perfLog("END: RouterActivityLogic.execute"),e(a)):s.length>h+1?(++h,q=s[h].getExpression(),adfc.internal.ElUtil.getValue(q,k,g)):(q=d.getDefaultOutcome(),a.setCurrentOutcome(q),
adfc.internal.LogUtil.perfLog("END: RouterActivityLogic.execute"),e(a))},m=d.getCases();null!=m&&0<m.length?(m=m[h].getExpression(),adfc.internal.ElUtil.getValue(m,k,g)):(m=this.mRouter.getDefaultOutcome(),a.setCurrentOutcome(m),adfc.internal.LogUtil.perfLog("END: RouterActivityLogic.execute"),e(a))}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.TaskFlowCallActivityLogic=a;a.prototype.execute=function(b,d,e,g){adfc.internal.LogUtil.fine("TaskFlowCallActivityLogic.prototype.execute() entered");adfc.internal.LogUtil.perfLog("BEGIN: TaskFlowCallActivityLogic.execute");a.getTaskFlowId(d,function(h){a.invokeBeforeListener(d,function(){adfc.internal.MetadataService.getTaskFlowDefinition(h,function(k,m){a.gatherInputParamerValues(d,function(a){adfc.internal.LogUtil.fine("TaskFlowCallActivityLogic.prototype.execute() invoking taskFlow: "+
h+" from activity : "+d.getActivityId());adfc.internal.TaskFlowCallActivityLogic.invokeTaskFlow(h,a,d,b,function(){b.setCurrentOutcome(null);b.setNextActivityId(m.getDefaultActivityId());adfc.internal.LogUtil.perfLog("END: TaskFlowCallActivityLogic.execute");e(b)},g)},g)},function(a,b){g(b+": "+h)})},g)},g)};a.invokeTaskFlow=function(a,d,e,g,h,k){adfc.internal.MetadataService.getTaskFlowDefinition(a,function(m,n){var o=null,q=adfc.internal.AdfcContext.getControllerState();q.peekTaskFlowStack().getInstanceId()==
g.getStartingTaskFlowInstanceId()&&(o=g.getStartingActivityId());q.pushTaskFlow(n,e,o,function(){var a=function(){var a=function(){var a=n.getDefaultActivityId();g.setNextActivityId(a);g.setCurrentOutcome(null);h(g)},b=n.getInitializer();b&&null!=b?adfc.internal.ElUtil.invokeMethod(b,[],[],a,k):a()},b=[],e=n.getInputParameters();if(null!=e&&0<e.length){for(var m=0;m<e.length;m++){var o=e[m],q=o.getName();if(d[q]){var y=d[q],o=o.getValueExpression();if(null==o||""==o)o="#{pageFlowScope."+q+"}";b[m]=
{name:o,value:y}}else if(o.isRequired())throw Error("ADFc: required task flow input parameter ["+q+"] not provided.");}adfc.internal.ElUtil.setValues(b,a,k)}else a()},function(){var d="ADFc: Push of task flow failed for ["+a+"]";k(d+message)})},function(d){var e="ADFc: Failed to find task flow definition for ["+a+"]";k(e+d)})};a.getTaskFlowId=function(a,d,e){var g=function(a){if(a&&null!=a){var b=adfc.internal.TaskFlowId.parse(a);b&&null!=b?d(b):e("unable to parse TaskFlowId:"+a)}else e("unable to parse TaskFlowId:"+
a)};a.isDynamic()?(a=a.getDynamicTaskFlowIdElExpression(),adfc.internal.LogUtil.fine("evaluating dynamic task flow call expression: "+a),adfc.internal.ElUtil.getValue(a,function(a,b){g(b[0].value)},e)):(a=a.getTaskFlowReference(),g(a))};a.invokeBeforeListener=function(a,d,e){(a=a.getBeforeListener())&&null!=a?(adfc.internal.LogUtil.fine("calling before-listener: "+a),adfc.internal.ElUtil.invokeMethod(a,[],[],d,e)):d()};a.gatherInputParamerValues=function(a,d,e){var g=[],h=[],k=function(g,k){for(var m=
{},n=0;n<k.length;n++)m[h[n]]=k[n].value;n=a.getInputParameterMapElExpression();null!=n?(adfc.internal.LogUtil.fine("Evaluating input parameter map expression: "+n),adfc.internal.ElUtil.getValue(n,function(a,b){var e=b[0].value,g;for(g in e)adfc.internal.LogUtil.fine("adding input parameter from map: "+g+":"+e[g]),m[g]=e[g];d(m)},e)):d(m)},m=a.getInputParameters();if(0<m.length){for(var n=0;n<m.length;n++)g.push(m[n].getValueExpression()),h.push(m[n].getName());adfc.internal.LogUtil.fine("getting method call activity parameter values");
adfc.internal.ElUtil.getValues(g,k,e)}else adfc.internal.LogUtil.fine("no method call activity parameters specified"),k(g,g)}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.TaskFlowReturnActivityLogic=a;a.prototype.execute=function(b,d,e,g){var h=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack(),k=h.getTaskFlowDefinition(),m=h.getTaskFlowCallActivity();m&&null!=m?a.invokeFinalizer(k,function(){a.gatherReturnValues(k,function(h){adfc.internal.AdfcContext.getControllerState().popTaskFlow(function(k){b.setLastReturnedFromTfEntry(k);a.storeReturnValues(m,h,function(){a.invokeAfterListener(m,function(){var a=d.getOutcomeName();
b.setCurrentOutcome(a);b.setCurrentActivityId(m.getActivityId());b.setNextActivityId(null);b.setTaskFlowReturnExecuted(!0);b.setRoutingComplete(!1);e(b)},g)},g)},g)},g)},g):(b.setTaskFlowReturnExecuted(!0),b.setRoutingComplete(!0),e(b))};a.invokeAfterListener=function(a,d,e){(a=a.getAfterListener())&&null!=a?(adfc.internal.LogUtil.fine("calling after-listener: "+a),adfc.internal.ElUtil.invokeMethod(a,[],[],d,e)):d()};a.invokeFinalizer=function(a,d,e){(a=a.getFinalizer())&&null!=a?(adfc.internal.LogUtil.fine("calling finalzer: "+
a),adfc.internal.ElUtil.invokeMethod(a,[],[],d,e)):d()};a.gatherReturnValues=function(a,d,e){var g=[],h=[],k=function(a,b){for(var e={},g=0;g<b.length;g++)e[h[g]]=b[g].value;d(e)},a=a.getReturnValues();if(0<a.length){for(var m=0;m<a.length;m++)g.push(a[m].getValueExpression()),h.push(a[m].getName());adfc.internal.LogUtil.fine("getting task flow return values");adfc.internal.ElUtil.getValues(g,k,e)}else adfc.internal.LogUtil.fine("no task flow return values defined"),k(g,g)};a.storeReturnValues=function(a,
d,e,g){var h=[],a=a.getReturnValues();if(null!=a&&0<a.length){for(var k=0;k<a.length;k++){var m=a[k],n=m.getName();if(d[n]){var o=d[n],m=m.getValueExpression();if(null==m||""==m)m="#{pageFlowScope."+n+"}";h[k]={name:m,value:o}}}adfc.internal.ElUtil.setValues(h,e,g)}else e()}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.ViewActivityLogic=a;a.prototype.execute=function(a,d,e){adfc.internal.LogUtil.perfLog("BEGIN: ViewActivityLogic.execute");a.setViewReached(!0);a.setRoutingComplete(!0);adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().setViewReached(!0);adfc.internal.LogUtil.perfLog("END: ViewActivityLogic.execute");e(a)}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.NavigationHandlerImpl=a;a.getInitialViewId=function(b,d,e,g){var h=adfc.internal.XmlUtil.isTaskFlowDocument(adfc.Util.addFeatureRootPrefix(b));adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("isTaskFlow="+h);if(h){var b=adfc.internal.TaskFlowId.parse(b),h=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().getInstanceId(),k=new adfc.internal.RoutingState(h,null,null);k.setRoutingSuccessCallback(e);k.setRoutingFailedCallback(g);adfc.internal.TaskFlowCallActivityLogic.invokeTaskFlow(b,
d,null,k,function(a){k.setRoutingSuccessCallback(function(a){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: routing completed in getInitialViewId.");var b=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack();0<b.getViewHistoryLength()&&b.peekViewHistory().setBackNavigationValid(!1);adfc.internal.LogUtil.isFine()&&(adfc.internal.LogUtil.fine("ADFc: getInitialViewId calling successCallback."),"undefined"===typeof e&&adfc.internal.LogUtil.fine("ADFc: successCallback is undefined!!!"));
e(a)});adfc.internal.ControlFlowEngine.doRouting(a)},g)}else d=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack(),g=a.getUnboundedFlowViewActivity(b),null!=g?(b=g.getVldDocumentPath(),g=g.getActivityId().getLogicalViewId(),adfc.internal.LogUtil.info("displaying initial unbounded view activity, page="+b),h=new adfc.NavigationResult(!0,!1,g,b,"",!1),d.pushViewHistory(g,b,adfc.internal.ControlFlowCase.DEFAULT_TRANSITION),e(h)):(adfc.internal.LogUtil.info("displaying initial AMX page, page="+
b),g=new adfc.NavigationResult(!0,!1,b,b,"",!1),d.pushViewHistory(b,b,adfc.internal.ControlFlowCase.DEFAULT_TRANSITION),e(g))};a.getUnboundedFlowViewActivity=function(a){var d=null,e=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().getTaskFlowDefinition();if(null==e||null!=e.getTaskFlowId())throw adfc.internal.LogUtil.showAlert("unbounded task flow is not current"),Error("unbounded task flow is not current");null!=a&&0<a.length&&"/"!=a.charAt(0)&&(a="/"+a);var e=e.getActivities(),
g;for(g in e){var h=e[g];if(h.getActivityType()==adfc.internal.ActivityType.VIEW&&h.getVldDocumentPath()==a){d=h;break}}return d};a.handleNavigation=function(a,d,e,g){var h=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack(),k=h.getInstanceId(),h=h.getTaskFlowDefinition().getTaskFlowId(),a=adfc.internal.ViewIdUtil.logicalViewIdToActivityId(h,a),d=new adfc.internal.RoutingState(k,a,d);d.setRoutingSuccessCallback(e);d.setRoutingFailedCallback(g);adfc.internal.ControlFlowEngine.doRouting(d)}})();
window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.ControlFlowEngine=a;a.BACK_NAV_OUTCOME="__back";a.BACK_NAV_OUTCOME_OLD="_BACK_BUTTON:";a.doRouting=function(b){if(b.isRoutingComplete()){if(b.isRoutingComplete()&&null==b.getNavigationResult()&&null==b.getNavigationResult()){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: constructing navigation result.");var d=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack();if(b.getBackNavigation()){if(!b.isBackNavTfPopped()&&!d.peekViewHistory().isBackNavigationValid())throw adfc.internal.LogUtil.isFine()&&
adfc.internal.LogUtil.fine("ADFc: invalid back navigation detected, throwing an error."),Error("back navigation is not valid from the current view");if(1==d.getViewHistoryLength()&&!b.isBackNavTfPopped())adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: back navigation out of a task flow, popping flow."),d=d.peekViewHistory(),b.setBackNavTfLeftViewItem(d),a.setCurrentRoutingState(b),adfc.internal.AdfcContext.getControllerState().popTaskFlow(function(){adfc.internal.LogUtil.isFine()&&
adfc.internal.LogUtil.fine("ADFc: task flow pop completed.");var b=a.getCurrentRoutingState();a.clearCurrentRoutingState();b.setBackNavTfPopped(!0);a.doRouting(b)},b.getRoutingFailedCallback());else{if(b.isBackNavTfPopped()){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: back navigation out of a task flow, flow already popped.");var e=b.getBackNavTfLeftViewItem()}else adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: back navigation within a task flow."),e=d.popViewHistory();
d=d.peekViewHistory();d=a.constructBackNavResult(e,d);b.setNavigationResult(d);b.getRoutingSuccessCallback()(b.getNavigationResult())}}else adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: forward navigation."),e=a.constructForwardNavResult(b),b.setNavigationResult(e),b.isViewReached()&&b.isTaskFlowReturnExecuted()&&d.peekViewHistory().setBackNavigationValid(!1),b.getRoutingSuccessCallback()(b.getNavigationResult())}}else a.getNextActivityId(b,function(d,e){if(null!=d){var k=a.getActivity(d);
if(k){var m=a.getActivityLogic(k);m?(e.setCurrentActivityId(d),e.setNextActivityId(null),a.executeActivity(k,m,b,a.doRouting,e.getRoutingFailedCallback())):(k="ADFc: failed to find activity logic implementation: "+k.getActivityType(),b.getRoutingFailedCallback()(k))}else b.getRoutingFailedCallback()("ADFc: failed to find activity: "+d)}else e.setRoutingComplete(!0),a.doRouting(e)})};a.constructBackNavResult=function(b,d){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: constructing back navigation result.");
newViewId=d.viewId;vdlDocPath=d.amxPage;transition=b.transitionType;var e=new adfc.NavigationResult(!1,!0,newViewId,vdlDocPath,transition,!1);adfc.internal.ElUtil.setMfContextInstance(d,!1);a.logNavResult(e);return e};a.constructForwardNavResult=function(b){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: constructing forward navigation result.");var d=null,e=null,g=null,h=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack(),k=b.isViewReached();if(k){var d=b.getCurrentActivityId(),
g=b.getStartingTaskFlowInstanceId(),m=h.getInstanceId();g==m&&(g=b.getStartingActivityId(),null!=d&&null!=g&&g==d?k=!1:null==d&&null==g&&(k=!1));g=b.getTransition()}else b=b.getLastReturnedFromTfEntry(),null!=b&&(d=b.getCallingViewActivityId());b=null;null!=d&&(e=d.getLogicalViewId(),b=d.getLocalActivityId(),b=h.getTaskFlowDefinition().getActivities()[b].getVldDocumentPath());null==g&&(g=adfc.internal.ControlFlowCase.DEFAULT_TRANSITION);k?h.pushViewHistory(e,b,g):null!=d&&adfc.internal.ElUtil.setMfContextInstance(h.peekViewHistory(),
!1);d=new adfc.NavigationResult(k,!1,e,b,g,!1);a.logNavResult(d);return d};a.logNavResult=function(a){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: navigationResult: isNewViewId="+a.mNewViewId+" isBackNav="+a.mBackNavigation+" viewId="+a.mViewId+" vdlDocPath="+a.mVdlDocumentPath+" transitionType="+a.mTransitionType+" featureExited="+a.mFeatureExited)};a.getNextActivityId=function(b,d){var e=b.getNextActivityId();if(e)d(e,b);else{var g=b.getCurrentOutcome();g==a.BACK_NAV_OUTCOME||
g==a.BACK_NAV_OUTCOME_OLD?(b.setBackNavigation(!0),b.setRoutingComplete(!0),d(e,b)):(b.setFindCfCaseCallback(function(a){var b=a.getControlFlowCase();b&&(e=b.getTargetActivityId(),a.setTransition(b.getTransition()));d(e,a)}),b.resetCfRuleEvaluation(),a.findControlFlowCase(b))}};a.findControlFlowCase=function(b){var d=null,e=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().getTaskFlowDefinition(),g=b.getTriedCfRules(),h=b.getCurrentActivityId(),k=a.getBestControlFlowRule(e,h,g);if(null!=
k){var m=k.getControlFlowCase(b.getCurrentOutcome());null!=m?(e=m.getGuardCondition(),a.evaluateGuardCondition(e,b,function(e){e?(d=m,b.setControlFlowCase(d),b.getFindCfCaseCallback()(b)):(g[k.getFromActivityId().getLocalActivityId()]=!0,a.findControlFlowCase(b))})):(g[k.getFromActivityId().getLocalActivityId()]=!0,a.findControlFlowCase(b))}else b.getFindCfCaseCallback()(b)};a.getBestControlFlowRule=function(a,d,e){var g=null,a=a.getControlFlowRules();if(null!=d){var h=d.getLocalActivityId();e[h]||
(g=a[h])}if(null==g)if(null==d)e["*"]||(g=a["*"]);else{d=d.getLocalActivityId();for(h=d.length-1;0<=h;h--){var k=d.substring(0,h)+"*";if(!e[k]&&(g=a[k],null!=g))break}}return g};a.evaluateGuardCondition=function(a,d,e){null!=a?(adfc.internal.LogUtil.fine("evaluateing control flow guard condition: "+a),adfc.internal.ElUtil.getValue(a,function(a,b){var k=b[0].value,k=adfc.internal.ElUtil.resultToBoolean(k);e(k,d)},function(a){a="ADFc: evaluation of control flow guard condition failed: "+a[0];d.getRoutingFailedCallback()(a)})):
e(!0,d)};a.getActivity=function(a){var d=null,e=adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack().getTaskFlowDefinition();if(e)if(d=e.getActivities())a=a.getLocalActivityId(),d=d[a];else throw Error("ADFc: task flow "+e.getTaskFlowId()+" does not have any activities");else throw Error("ADFc: failed to find task flow definition");return d};a.getActivityLogic=function(a){a=a.getActivityType();return adfc.internal.ActivityLogic.getImplementation(a)};a.executeActivity=function(b,d,e,
g,h){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: executing ControlFlowEngine.executeActivity(), activityId="+b.getActivityId());e.isRoutingComplete()&&adfc.internal.LogUtil.severe("ADFc: attempting to execute activity when routing is already complete");var k=!1,m=null,n=function(){d.execute(e,b,function(a){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: execution of "+b.getActivityId()+" succeeded.");var d=function(){g(a)};k?adfc.internal.ElUtil.setBindingContainerPath(m,
d,function(){h("failed to restore binding container following activity execute")}):d()},function(a){adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: execution of "+b.getActivityId()+" failed.");var d=function(){h(a)};adfc.internal.ElUtil.setBindingContainerPath(m,d,d)})},o=function(){h("failed to set the binding container path to: "+activityBindingPath)},q=function(d,e){m=e;var g=a.getActivityBindingPath(b);null!=m||null!=g?(k=!0,adfc.internal.ElUtil.setBindingContainerPath(g,n,o)):
n()},s=function(){h("Failed to get the current binding container path")};b.getActivityType()!=adfc.internal.ActivityType.VIEW?adfc.internal.ElUtil.getCurrentBindingContainerPath(q,s):n()};a.getActivityBindingPath=function(a){var d=null,e=a.getActivityType();if(e==adfc.internal.ActivityType.METHOD_CALL||e==adfc.internal.ActivityType.TASK_FLOW_CALL||e==adfc.internal.ActivityType.TASK_FLOW_RETURN)d=a.getActivityId().toString();return d};a.setCurrentRoutingState=function(a){adfc.internal.ControlFlowEngine.currentRoutingState=
a};a.getCurrentRoutingState=function(){var a=null;"undefined"!==typeof adfc.internal.ControlFlowEngine.currentRoutingState&&(a=adfc.internal.ControlFlowEngine.currentRoutingState);return a};a.clearCurrentRoutingState=function(){"undefined"!==typeof adfc.internal.ControlFlowEngine.currentRoutingState&&(adfc.internal.ControlFlowEngine.currentRoutingState=null)}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e){this.mStartingTfInstanceId=a;this.mCurrentActivityId=this.mStartingActivityId=d;this.mCurrentOutcome=e;this.mNextActivityId=null;this.mTaskFlowReturnExecuted=this.mBackNavigation=this.mViewReached=this.mRoutingComplete=!1;this.mControlFlowCase=this.mTransition=null;this.mTriedCfRules={};this.mFindCfCaseCallback=this.mRoutingFailedCallback=this.mRoutingSuccessCallback=this.mNavigationResult=null;this.mBackNavTfPopped=!1;this.mLastReturnedFromTfEntry=this.mBackNavTfLeftViewItem=
null}adfc.internal.RoutingState=a;a.prototype.getStartingTaskFlowInstanceId=function(){return this.mStartingTfInstanceId};a.prototype.getStartingActivityId=function(){return this.mStartingActivityId};a.prototype.getCurrentActivityId=function(){return this.mCurrentActivityId};a.prototype.setCurrentActivityId=function(a){this.mCurrentActivityId=a};a.prototype.getCurrentOutcome=function(){return this.mCurrentOutcome};a.prototype.setCurrentOutcome=function(a){this.mCurrentOutcome=a};a.prototype.getNextActivityId=
function(){return this.mNextActivityId};a.prototype.setNextActivityId=function(a){this.mNextActivityId=a};a.prototype.isRoutingComplete=function(){return this.mRoutingComplete};a.prototype.setRoutingComplete=function(a){this.mRoutingComplete=a};a.prototype.isViewReached=function(){return this.mViewReached};a.prototype.setViewReached=function(a){this.mViewReached=a};a.prototype.setNavigationResult=function(a){this.mNavigationResult=a};a.prototype.getNavigationResult=function(){return this.mNavigationResult};
a.prototype.setRoutingSuccessCallback=function(a){this.mRoutingSuccessCallback=a};a.prototype.getRoutingSuccessCallback=function(){return this.mRoutingSuccessCallback};a.prototype.setRoutingFailedCallback=function(a){this.mRoutingFailedCallback=a};a.prototype.getRoutingFailedCallback=function(){return this.mRoutingFailedCallback};a.prototype.setBackNavigation=function(a){this.mBackNavigation=a};a.prototype.getBackNavigation=function(){return this.mBackNavigation};a.prototype.setTaskFlowReturnExecuted=
function(a){this.mTaskFlowReturnExecuted=a};a.prototype.isTaskFlowReturnExecuted=function(){return this.mTaskFlowReturnExecuted};a.prototype.setTransition=function(a){this.mTransition=a};a.prototype.getTransition=function(){return this.mTransition};a.prototype.setFindCfCaseCallback=function(a){this.mFindCfCaseCallback=a};a.prototype.getFindCfCaseCallback=function(){return this.mFindCfCaseCallback};a.prototype.setControlFlowCase=function(a){this.mControlFlowCase=a};a.prototype.getControlFlowCase=function(){return this.mControlFlowCase};
a.prototype.getTriedCfRules=function(){return this.mTriedCfRules};a.prototype.isBackNavTfPopped=function(){return this.mBackNavTfPopped};a.prototype.setBackNavTfPopped=function(a){this.mBackNavTfPopped=a};a.prototype.setBackNavTfLeftViewItem=function(a){this.mBackNavTfLeftViewItem=a};a.prototype.getBackNavTfLeftViewItem=function(){return this.mBackNavTfLeftViewItem};a.prototype.setLastReturnedFromTfEntry=function(a){this.mLastReturnedFromTfEntry=a};a.prototype.getLastReturnedFromTfEntry=function(){return this.mLastReturnedFromTfEntry};
a.prototype.resetCfRuleEvaluation=function(){this.mTriedCfRules={};this.mControlFlowCase=null}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.MetadataService=a;a.getTaskFlowDefinition=function(a,d,e){var g=a.getDocumentUri();if(null!=g){var h=adfc.Util.addFeatureRootPrefix(g);adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("attempting to load task flow file: "+h);var k=adfc.internal.XmlUtil.loadXmlFile(h);if(null!=k){h=k.getElementsByTagName("task-flow-definition");adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("number of task-flow-definition elements in the file = "+h.length);
for(var m=null,n=0;n<h.length;n++){var o=h.item(n);if((o=adfc.internal.TaskFlowDefinitionXmlParser.parse(g,k,o))&&o.getTaskFlowId().equals(a)){m=o;break}}null!=m?d(a,m):e(a,"failed to find task flow definition")}else adfc.internal.LogUtil.severe("failed to load task flow file "+h),e(a,"task flow DOM is null")}};a.loadBootstrapMetadata=function(a,d){adfc.internal.LogUtil.fine("loading bootstrap metadata ...");var e=adfc.Util.addFeatureRootPrefix("adfc-mobile-config.xml"),e=adfc.internal.XmlUtil.loadXmlFile(e);
if(null!=e){var g=e.getElementsByTagName("adfc-mobile-config");if(null!=g&&1==g.length)if(e=adfc.internal.TaskFlowDefinitionXmlParser.parse(null,e,g[0]),null!=e)adfc.internal.AdfcContext.getControllerState().pushTaskFlow(e,null,null,function(){adfc.internal.LogUtil.fine("bootstrap metadata load complete.");a()},d);else throw adfc.internal.LogUtil.severe("failed to parse the adfc-mobile-config element in bootstrap metadata document"),Error("failed to parse the adfc-mobile-config element in bootstrap metadata document");
else throw adfc.internal.LogUtil.severe("failed to find adfc-mobile-config element in bootstrap metadata document"),Error("failed to find adfc-mobile-config element in bootstrap metadata document");}else throw adfc.internal.LogUtil.severe("bootstrap metadata document adfc-mobile-config.xml is null"),Error("bootstrap metadata document adfc-mobile-config.xml is null");}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d){this.mTaskFlowId=a;this.mLocalActivityId=d}adfc.internal.ActivityId=a;a.parse=function(b){var d=null,e=b.indexOf("@");0<e&&(d=b.substring(0,e),d=adfc.internal.TaskFlowId.parse(d),b=b.substring(e+1),d=new a(d,b));return d};a.prototype.getTaskFlowId=function(){return this.mTaskFlowId};a.prototype.getLocalActivityId=function(){return this.mLocalActivityId};a.prototype.getLogicalViewId=function(){var a="";null!=this.mTaskFlowId&&(a="/"+this.mTaskFlowId.getLocalTaskFlowId());
return a+"/"+this.mLocalActivityId};a.prototype.toString=function(){return(null!=this.mTaskFlowId?this.mTaskFlowId.toString():"")+"@"+this.mLocalActivityId};a.prototype.equals=function(a){var d=!1;null!=a&&"undefined"!==typeof a.mTaskFlowId&&"undefined"!==typeof a.mLocalActivityId&&(null!=this.mTaskFlowId?this.mTaskFlowId.equals(a.mTaskFlowId)&&(d=this.mLocalActivityId==a.mLocalActivityId):null==a.mTaskFlowId&&(d=this.mLocalActivityId==a.mLocalActivityId));return d}})();
window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(){}adfc.internal.ActivityType=a;a.VIEW="view";a.ROUTER="router";a.METHOD_CALL="method-call";a.TASK_FLOW_RETURN="task-flow-return";a.TASK_FLOW_CALL="task-flow-call"})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(b,d,e,g){this.mOutcome=b;this.mGuardCondition=d;this.mTargetActivityId=e;this.mTransition=null!=g?g:a.DEFAULT_TRANSITION}adfc.internal.ControlFlowCase=a;a.DEFAULT_TRANSITION="slide";a.prototype.getOutcome=function(){return this.mOutcome};a.prototype.getGuardCondition=function(){return this.mGuardCondition};a.prototype.getTargetActivityId=function(){return this.mTargetActivityId};a.prototype.getTransition=function(){return this.mTransition}})();window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});
(function(){function a(a,d){this.mFromActivityId=a;this.mControlFlowCases=d}adfc.internal.ControlFlowRule=a;a.prototype.getFromActivityId=function(){return this.mFromActivityId};a.prototype.getControlFlowCases=function(){return this.mControlFlowCases};a.prototype.addControlFlowCases=function(a){if(null!=a)for(var d in a){var e=a[d],g=this.getControlFlowCaseIndex(e.getOutcome());0<=g?this.mControlFlowCases[g]=e:this.mControlFlowCases.push(e)}};a.prototype.getControlFlowCase=function(a){var d=null,
a=this.getControlFlowCaseIndex(a);0<=a&&(d=this.mControlFlowCases[a]);return d};a.prototype.getControlFlowCaseIndex=function(a){var d=-1,e;for(e in this.mControlFlowCases){var g=this.mControlFlowCases[e].getOutcome();if(g==a){d=e;break}null==g&&(d=e)}return d}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e,g){this.mBeanName=a;this.mBeanClass=d;this.mBeanScope=e;this.mManagedProperties=g}adfc.internal.ManagedBeanDefinition=a;a.prototype.getBeanName=function(){return this.mBeanName};a.prototype.getBeanClass=function(){return this.mBeanClass};a.prototype.getBeanScope=function(){return this.mBeanScope};a.prototype.getManagedProperties=function(){return this.mManagedProperties};a.APPLICATION="application";a.PAGE_FLOW="pageFlow";a.VIEW="view"})();window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});(function(){function a(a,d,e){this.mName=a;this.mType=d;this.mValue=e}adfc.internal.ManagedPropertyDefinition=a;a.prototype.getName=function(){return this.mName};a.prototype.getType=function(){return this.mType};a.prototype.getValue=function(){return this.mValue}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e,g,h,k){this.mActivityId=a;this.mMethodElExpression=d;this.mDefaultOutcome=e;this.mConvertToString=g;this.mParameters=h;this.mReturnValue=k}adfc.internal.MethodCallActivity=a;a.prototype.getActivityType=function(){return adfc.internal.ActivityType.METHOD_CALL};a.prototype.getActivityId=function(){return this.mActivityId};a.prototype.getMethodElExpression=function(){return this.mMethodElExpression};a.prototype.getDefaultOutcome=function(){return this.mDefaultOutcome};a.prototype.isConvertToString=
function(){return this.mConvertToString};a.prototype.getParameters=function(){return this.mParameters};a.prototype.getReturnValue=function(){return this.mReturnValue}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(a,d){this.mType=a;this.mValueExpression=d}adfc.internal.MethodCallParameter=a;a.prototype.getType=function(){return this.mType};a.prototype.getValueExpression=function(){return this.mValueExpression}})();window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});(function(){function a(a,d,e){this.mActivityId=a;this.mCases=d;this.mDefaultOutcome=e}adfc.internal.RouterActivity=a;a.prototype.getActivityType=function(){return adfc.internal.ActivityType.ROUTER};a.prototype.getActivityId=function(){return this.mActivityId};a.prototype.getCases=function(){return this.mCases};a.prototype.getDefaultOutcome=function(){return this.mDefaultOutcome}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d){this.mExpression=a;this.mOutcome=d}adfc.internal.RouterCase=a;a.prototype.getExpression=function(){return this.mExpression};a.prototype.getOutcome=function(){return this.mOutcome}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e,g,h,k,m,n){this.mActivityId=a;this.mTaskFlowReference=d;this.mDynamicTaskFlowIdElExpression=e;this.mIsDynamic=null!=e;this.mInputParameters=g;this.mInputParameterMapElExpression=h;this.mReturnValues=k;this.mBeforeListener=m;this.mAfterListener=n}adfc.internal.TaskFlowCallActivity=a;a.prototype.getActivityType=function(){return adfc.internal.ActivityType.TASK_FLOW_CALL};a.prototype.getActivityId=function(){return this.mActivityId};a.prototype.getTaskFlowReference=function(){return this.mTaskFlowReference};
a.prototype.isDynamic=function(){return this.mIsDynamic};a.prototype.getDynamicTaskFlowIdElExpression=function(){return this.mDynamicTaskFlowIdElExpression};a.prototype.getInputParameters=function(){return this.mInputParameters};a.prototype.getInputParameterMapElExpression=function(){return this.mInputParameterMapElExpression};a.prototype.getReturnValues=function(){return this.mReturnValues};a.prototype.getBeforeListener=function(){return this.mBeforeListener};a.prototype.getAfterListener=function(){return this.mAfterListener}})();
window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(a,d,e){this.mName=a;this.mValueExpression=d;this.mPassByValue=e}adfc.internal.TaskFlowCallParameter=a;a.prototype.getName=function(){return this.mName};a.prototype.getValueExpression=function(){return this.mValueExpression};a.prototype.getPassByValue=function(){return this.mPassByValue}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e,g,h,k,m,n,o){this.mTaskFlowId=a;this.mDefaultActivityId=d;this.mInitializer=e;this.mFinalizer=g;this.mActivities=m;this.mControlFlowRules=n;this.mBeanDefinitions=o;this.mInputParams=h;this.mReturnValues=k}adfc.internal.TaskFlowDefinition=a;a.prototype.getTaskFlowId=function(){return this.mTaskFlowId};a.prototype.getControlFlowRules=function(){return this.mControlFlowRules};a.prototype.getActivities=function(){return this.mActivities};a.prototype.getDefaultActivityId=function(){return this.mDefaultActivityId};
a.prototype.getInitializer=function(){return this.mInitializer};a.prototype.getFinalizer=function(){return this.mFinalizer};a.prototype.getInputParameters=function(){return this.mInputParams};a.prototype.getReturnValues=function(){return this.mReturnValues};a.prototype.getBeanDefinitions=function(){return this.mBeanDefinitions}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d){this.mDocumentUri=a;this.mLocalTaskFlowId=d}adfc.internal.TaskFlowId=a;a.prototype.getDocumentUri=function(){return this.mDocumentUri};a.prototype.getLocalTaskFlowId=function(){return this.mLocalTaskFlowId};a.prototype.toString=function(){return this.mDocumentUri+"#"+this.mLocalTaskFlowId};a.prototype.equals=function(a){var d=!1;a&&(d=a.getDocumentUri(),a=a.getLocalTaskFlowId(),d=this.mDocumentUri==d&&this.mLocalTaskFlowId==a);return d};a.parse=function(b){var d=null,e=
b.indexOf("#");0<e&&(d=b.substring(0,e),b=b.substring(e+1),d=new a(d,b));return d}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(a,d,e,g){this.mName=a;this.mValueExpression=d;this.mType=e;this.mRequired=g}adfc.internal.TaskFlowInputParameter=a;a.prototype.getName=function(){return this.mName};a.prototype.getValueExpression=function(){return this.mValueExpression};a.prototype.getType=function(){return this.mType};a.prototype.isRequired=function(){return this.mRequired}})();
window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(a,d){this.mActivityId=a;this.mOutcomeName=d}adfc.internal.TaskFlowReturnActivity=a;a.prototype.getActivityType=function(){return adfc.internal.ActivityType.TASK_FLOW_RETURN};a.prototype.getActivityId=function(){return this.mActivityId};a.prototype.getOutcomeName=function(){return this.mOutcomeName}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d){this.mActivityId=a;this.mVdlDocumentPath=d}adfc.internal.ViewActivity=a;a.prototype.getActivityType=function(){return adfc.internal.ActivityType.VIEW};a.prototype.getActivityId=function(){return this.mActivityId};a.prototype.getVldDocumentPath=function(){return this.mVdlDocumentPath}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});adfc.internal.ActivityXmlParser={};
adfc.internal.ActivityXmlParser.parse=function(a,b,d){a=null;if(d&&null!=d){var e=d.attributes.getNamedItem("id").nodeValue,b=new adfc.internal.ActivityId(b,e),e=d.localName;"view"==e?a=adfc.internal.ActivityXmlParser.parseViewActivity(b,d):"router"==e?a=adfc.internal.ActivityXmlParser.parseRouterActivity(b,d):"method-call"==e?a=adfc.internal.ActivityXmlParser.parseMethodCallActivity(b,d):"task-flow-return"==e?a=adfc.internal.ActivityXmlParser.parseTaskFlowReturnActivity(b,d):"task-flow-call"==e&&
(a=adfc.internal.ActivityXmlParser.parseTaskFlowCallActivity(b,d))}return a};adfc.internal.ActivityXmlParser.parseViewActivity=function(a,b){for(var d=null,e=b.childNodes,g=0;g<e.length;g++){var h=e.item(g),k=h.localName;k&&"page"==k&&(d=adfc.internal.XmlUtil.getNodeText(h),null!=d&&0<d.length&&(h=d.charAt(0),null!=h&&"/"!=h&&(d="/"+d)))}return new adfc.internal.ViewActivity(a,d)};
adfc.internal.ActivityXmlParser.parseRouterActivity=function(a,b){for(var d=[],e=null,g=b.childNodes,h=0;h<g.length;h++){var k=g.item(h),m=k.localName;m&&("default-outcome"==m?e=adfc.internal.XmlUtil.getNodeText(k):"case"==m&&(k=adfc.internal.ActivityXmlParser.parseRouterCase(k),d.push(k)))}return new adfc.internal.RouterActivity(a,d,e)};
adfc.internal.ActivityXmlParser.parseRouterCase=function(a){for(var b=null,d=null,a=a.childNodes,e=0;e<a.length;e++){var g=a.item(e),h=g.localName;h&&("expression"==h?b=adfc.internal.XmlUtil.getNodeText(g):"outcome"==h&&(d=adfc.internal.XmlUtil.getNodeText(g)))}return new adfc.internal.RouterCase(b,d)};
adfc.internal.ActivityXmlParser.parseMethodCallActivity=function(a,b){for(var d=null,e=null,g=!1,h=[],k=null,m=b.childNodes,n=0;n<m.length;n++){var o=m.item(n),q=o.localName;if(q&&null!=q)if("method"==q)d=adfc.internal.XmlUtil.getNodeText(o);else if("outcome"==q){o=o.childNodes;for(q=0;q<o.length;q++){var s=o.item(q),t=s.localName;if(t&&null!=t)if("fixed-outcome"==t){e=adfc.internal.XmlUtil.getNodeText(s);break}else if("to-string"==t){g=!0;break}}}else"parameter"==q?(o=adfc.internal.ActivityXmlParser.parseMethodCallParam(o),
h.push(o)):"return-value"==q&&(k=adfc.internal.XmlUtil.getNodeText(o))}return new adfc.internal.MethodCallActivity(a,d,e,g,h,k)};adfc.internal.ActivityXmlParser.parseMethodCallParam=function(a){for(var b=null,d=null,a=a.childNodes,e=0;e<a.length;e++){var g=a.item(e),h=g.localName;h&&("class"==h?b=adfc.internal.XmlUtil.getNodeText(g):"value"==h&&(d=adfc.internal.XmlUtil.getNodeText(g)))}return new adfc.internal.MethodCallParameter(b,d)};
adfc.internal.ActivityXmlParser.parseTaskFlowReturnActivity=function(a,b){for(var d=null,e=b.childNodes,g=0;g<e.length;g++){var h=e.item(g),k=h.localName;if(k&&null!=k&&"outcome"==k){h=h.childNodes;for(k=0;k<h.length;k++){var m=h.item(k),n=m.localName;if(n&&null!=n&&"name"==n){d=adfc.internal.XmlUtil.getNodeText(m);break}}}}return new adfc.internal.TaskFlowReturnActivity(a,d)};
adfc.internal.ActivityXmlParser.parseTaskFlowCallActivity=function(a,b){for(var d=null,e=null,g=[],h=null,k=[],m=null,n=null,o=b.childNodes,q=0;q<o.length;q++){var s=o.item(q),t=s.localName;if(t&&null!=t)if("task-flow-reference"==t){for(var u=t=null,s=s.childNodes,v=0;v<s.length;v++){var w=s.item(v),x=w.localName;x&&null!=x&&("document"==x?t=adfc.internal.XmlUtil.getNodeText(w):"id"==x&&(u=adfc.internal.XmlUtil.getNodeText(w)))}document&&u?d=t+"#"+u:document?d=t:u&&(d=u)}else"dynamic-task-flow-reference"==
t?e=adfc.internal.XmlUtil.getNodeText(s):"input-parameter"==t?(t=adfc.internal.ActivityXmlParser.parseTaskFlowCallParam(s),g.push(t)):"input-parameter-map"==t?h=adfc.internal.XmlUtil.getNodeText(s):"return-value"==t?(t=adfc.internal.ActivityXmlParser.parseTaskFlowCallParam(s),k.push(t)):"before-listener"==t?m=adfc.internal.XmlUtil.getNodeText(s):"after-listener"==t&&(n=adfc.internal.XmlUtil.getNodeText(s))}return new adfc.internal.TaskFlowCallActivity(a,d,e,g,h,k,m,n)};
adfc.internal.ActivityXmlParser.parseTaskFlowCallParam=function(a){for(var b=null,d=null,e=null,a=a.childNodes,g=0;g<a.length;g++){var h=a.item(g),k=h.localName;k&&("name"==k?b=adfc.internal.XmlUtil.getNodeText(h):"value"==k?d=adfc.internal.XmlUtil.getNodeText(h):"pass-by-value"==k&&(e=adfc.internal.XmlUtil.getNodeText(h)))}return new adfc.internal.TaskFlowCallParameter(b,d,e)};window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});adfc.internal.ControlFlowCaseXmlParser={};
adfc.internal.ControlFlowCaseXmlParser.parse=function(a,b,d){for(var e=a=null,g=null,h=null,d=d.childNodes,k=0;k<d.length;k++){var m=d.item(k),n=m.localName;n&&("from-outcome"==n?a=adfc.internal.XmlUtil.getNodeText(m):"if"==n?e=adfc.internal.XmlUtil.getNodeText(m):"to-activity-id"==n?(g=adfc.internal.XmlUtil.getNodeText(m),g=new adfc.internal.ActivityId(b,g)):"transition"==n&&(h=adfc.internal.XmlUtil.getNodeText(m)))}return new adfc.internal.ControlFlowCase(a,e,g,h)};window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});adfc.internal.ControlFlowRuleXmlParser={};adfc.internal.ControlFlowRuleXmlParser.parse=function(a,b,d){for(var e=null,g=[],d=d.childNodes,h=0;h<d.length;h++){var k=d.item(h),m=k.localName;m&&("from-activity-id"==m?(e=adfc.internal.XmlUtil.getNodeText(k),e=new adfc.internal.ActivityId(b,e)):"control-flow-case"==m&&(k=adfc.internal.ControlFlowCaseXmlParser.parse(a,b,k))&&g.push(k))}return new adfc.internal.ControlFlowRule(e,g)};window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});adfc.internal.ManagedBeanDefinitionXmlParser={};
adfc.internal.ManagedBeanDefinitionXmlParser.parse=function(a,b,d){for(var e=b=a=null,g=[],d=d.childNodes,h=0;h<d.length;h++){var k=d.item(h),m=k.localName;m&&("managed-bean-name"==m?a=adfc.internal.XmlUtil.getNodeText(k):"managed-bean-class"==m?b=adfc.internal.XmlUtil.getNodeText(k):"managed-bean-scope"==m?e=adfc.internal.XmlUtil.getNodeText(k):"managed-property"==m&&(k=adfc.internal.ManagedPropertyDefinitionXmlParser.parse(k),null!=k&&g.push(k)))}return new adfc.internal.ManagedBeanDefinition(a,
b,e,g)};adfc.internal.ManagedPropertyDefinitionXmlParser={};adfc.internal.ManagedPropertyDefinitionXmlParser.parse=function(a){for(var b=null,d=null,e=null,a=a.childNodes,g=0;g<a.length;g++){var h=a.item(g),k=h.localName;k&&("property-name"==k?b=adfc.internal.XmlUtil.getNodeText(h):"property-class"==k?d=adfc.internal.XmlUtil.getNodeText(h):"value"==k&&(e=adfc.internal.XmlUtil.getNodeText(h)))}return new adfc.internal.ManagedPropertyDefinition(b,d,e)};window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});adfc.internal.TaskFlowDefinitionXmlParser={};
adfc.internal.TaskFlowDefinitionXmlParser.parse=function(a,b,d){b=null;if(d){var e=null,g=null,h=b=null,k=[],m=[],n=[],o=[],q=[];null!=a&&(e=d.attributes.getNamedItem("id").nodeValue,e=new adfc.internal.TaskFlowId(a,e));for(var d=d.childNodes,s=0;s<d.length;s++){var t=d.item(s),u=t.localName,v=null;u&&("default-activity"==u?(g=adfc.internal.XmlUtil.getNodeText(t),g=new adfc.internal.ActivityId(e,g)):"initializer"==u?b=adfc.internal.XmlUtil.getNodeText(t):"finalizer"==u?h=adfc.internal.XmlUtil.getNodeText(t):
"input-parameter-definition"==u?(v=adfc.internal.TaskFlowInputParameterXmlParser.parse(a,e,t))&&k.push(v):"return-value-definition"==u?(v=adfc.internal.TaskFlowInputParameterXmlParser.parse(a,e,t))&&m.push(v):"view"==u||"router"==u||"method-call"==u||"task-flow-return"==u||"task-flow-call"==u?(v=adfc.internal.ActivityXmlParser.parse(a,e,t))&&n.push(v):"control-flow-rule"==u?(v=adfc.internal.ControlFlowRuleXmlParser.parse(a,e,t))&&o.push(v):"managed-bean"==u&&(v=adfc.internal.ManagedBeanDefinitionXmlParser.parse(a,
e,t))&&q.push(v))}var a=n,n={},w;for(w in a)d=a[w],n[d.getActivityId().getLocalActivityId()]=d;a=o;o={};for(w in a)d=a[w],s=d.getFromActivityId().getLocalActivityId(),s=o[s],null==s?o[d.getFromActivityId().getLocalActivityId()]=d:s.addControlFlowCases(d.getControlFlowCases());b=new adfc.internal.TaskFlowDefinition(e,g,b,h,k,m,n,o,q)}return b};window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});adfc.internal.TaskFlowInputParameterXmlParser={};
adfc.internal.TaskFlowInputParameterXmlParser.parse=function(a,b,d){for(var e=b=a=null,g=!1,d=d.childNodes,h=0;h<d.length;h++){var k=d.item(h),m=k.localName;m&&("name"==m?a=adfc.internal.XmlUtil.getNodeText(k):"value"==m?b=adfc.internal.XmlUtil.getNodeText(k):"class"==m?e=adfc.internal.XmlUtil.getNodeText(k):"required"==m&&(g=!0))}return new adfc.internal.TaskFlowInputParameter(a,b,e,g)};window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){this.mFinlized=this.mInitialized=!1;this.mControllerState=null}adfc.internal.AdfcContext=a;a.initialize=function(a,d){this.mInitialized||(this.mInitialized=!0,this.mControllerState=new adfc.internal.ControllerState,adfc.internal.MetadataService.loadBootstrapMetadata(a,d))};a.finalize=function(){this.mController=null;this.mFinlized=!0};a.getControllerState=function(){if(!this.mInitialized)throw Error("ADFc: AdfcContext is not initialized.");if(this.mFinalized)throw Error("ADFc: AdfcContext has already been finalized.");
return this.mControllerState};a.reinitialize=function(){this.mFinlized=this.mInitialized=!1;this.mControllerState=null}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){this.mTaskFlowStack=[]}adfc.internal.ControllerState=a;a.prototype.getTaskFlowStackSize=function(){return this.mTaskFlowStack.length};a.prototype.peekTaskFlowStack=function(){return this.mTaskFlowStack[this.mTaskFlowStack.length-1]};a.prototype.pushTaskFlow=function(a,d,e,g,h){adfc.internal.ElUtil.pushPageFlowScope(function(){var k=adfc.internal.AdfcContext.getControllerState();k.mTaskFlowStack.push(new adfc.internal.TaskFlowStackEntry(a,d,e));k.updateBeanDefinitions(function(){if(adfc.internal.LogUtil.isFine()){var a=
adfc.internal.AdfcContext.getControllerState().peekTaskFlowStack(),b=a.getTaskFlowDefinition().getTaskFlowId(),a=a.getInstanceId();adfc.internal.LogUtil.fine("ADFc: pushed task flow, taskFlowId="+b+", instanceId="+a)}g()},function(a){adfc.internal.LogUtil.severe("Failed to set managed bean definitions.");adfc.internal.LogUtil.showAlert("Failed to set managed bean definitions.");h(a)})},function(a){h(a)})};a.prototype.popTaskFlow=function(a,d){var e=null;adfc.internal.ElUtil.popPageFlowScope(function(){var g=
adfc.internal.AdfcContext.getControllerState();e=g.mTaskFlowStack.pop();g.updateBeanDefinitions(function(){if(adfc.internal.LogUtil.isFine()){var d=e.getTaskFlowDefinition().getTaskFlowId(),g=e.getInstanceId();adfc.internal.LogUtil.fine("ADFc: popped task flow, taskFlowId="+d+", instanceId="+g)}e.clearViewHistory();a(e)},function(a){adfc.internal.LogUtil.severe("Failed to set managed bean definitions.");adfc.internal.LogUtil.showAlert("Failed to set managed bean definitions.");d(a)})},d)};a.prototype.updateBeanDefinitions=
function(a,d){var e=null;if(1<this.mTaskFlowStack.length){for(var e=[],g=this.mTaskFlowStack[0].getTaskFlowDefinition().getBeanDefinitions(),h=0;h<g.length;h++)g[h].getBeanScope()==adfc.internal.ManagedBeanDefinition.APPLICATION&&e.push(g[h]);g=this.mTaskFlowStack[this.mTaskFlowStack.length-1].getTaskFlowDefinition().getBeanDefinitions();e=e.concat(g)}else e=1==this.mTaskFlowStack.length?this.mTaskFlowStack[0].getTaskFlowDefinition().getBeanDefinitions():[];adfc.internal.ElUtil.setBeanDefinitions(e,
function(){a()},function(a){d(a)})}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e){this.mInstanceId=adfc.internal.TaskFlowStackEntry.SequenceCounter++;this.mTaskFlowDefinition=a;this.mTaskFlowCallActivity=d;this.mViewReached=!1;this.mCallingViewActivityId=e;this.mViewHistoryStack=[]}adfc.internal.TaskFlowStackEntry=a;adfc.internal.TaskFlowStackEntry.SequenceCounter=0;a.prototype.getInstanceId=function(){return this.mInstanceId};a.prototype.getTaskFlowDefinition=function(){return this.mTaskFlowDefinition};a.prototype.getTaskFlowCallActivity=function(){return this.mTaskFlowCallActivity};
a.prototype.pushViewHistory=function(a,d,e){a=new adfc.internal.ViewHistoryItem(a,d,e);this.mViewHistoryStack.push(a);adfc.internal.ElUtil.setMfContextInstance(a,!0)};a.prototype.popViewHistory=function(){var a=this.mViewHistoryStack.pop();adfc.internal.ElUtil.removeMfContextInstance(a);return a};a.prototype.peekViewHistory=function(){return this.mViewHistoryStack[this.mViewHistoryStack.length-1]};a.prototype.clearViewHistory=function(){for(;0<this.mViewHistoryStack.length;)this.popViewHistory()};
a.prototype.getViewHistoryLength=function(){return this.mViewHistoryStack.length};a.prototype.isViewReached=function(){return this.mViewReached};a.prototype.setViewReached=function(a){this.mViewReached=a};a.prototype.getCallingViewActivityId=function(){return this.mCallingViewActivityId}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(a,d,e){this.itemId=adfc.internal.IdUtil.uuid();this.viewId=a;this.amxPage=d;this.transitionType=e;this.mBackNavIsValid=!0}adfc.internal.ViewHistoryItem=a;a.prototype.isBackNavigationValid=function(){return this.mBackNavIsValid};a.prototype.setBackNavigationValid=function(a){this.mBackNavIsValid=a}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.ElUtil=a;a.getValue=function(a,d,e){adfc.internal.ElUtil.useMockEl()?adfc.internal.ElUtilMock.getValue(a,d,e):adf.mf.el.getValue(a,d,e)};a.getValues=function(a,d,e){adfc.internal.ElUtil.useMockEl()?adfc.internal.ElUtilMock.getValues(a,d,e):adf.mf.el.getValue(a,d,e)};a.setValue=function(a,d,e){adfc.internal.ElUtil.useMockEl()?adfc.internal.ElUtilMock.setValue(a,d,e):adf.mf.el.setValue(a,d,e)};a.setValues=function(b,d,e){a.setValue(b,d,e)};a.invokeMethod=function(a,
d,e,g,h){null==d&&adfc.internal.LogUtil.warning("ElUtil.invokeMethod() passed null argTypes.  This is likely to fail.");null==e&&adfc.internal.LogUtil.warning("ElUtil.invokeMethod() passed null argValues.  This is likely to fail.");adfc.internal.ElUtil.useMockEl()?adfc.internal.ElUtilMock.invokeMethod(a,d,e,g,h):adf.mf.el.invoke(a,e,null,d,g,h)};a.setBindingContainerPath=function(a,d,e){adfc.internal.LogUtil.fine("setting binding container to: "+a);adfc.internal.ElUtil.useMockContext()?(adfc.internal.LogUtil.fine("using mock setBindingContainerPath"),
d()):adf.mf.api.setContext(a,d,e)};a.getCurrentBindingContainerPath=function(a,d){adfc.internal.ElUtil.useMockContext()?(adfc.internal.LogUtil.fine("using mock getBindingContainerPath"),a(null)):adf.mf.api.getContextId(a,d)};a.resultToBoolean=function(a){var d=!1;null!=a&&(!0==a?d=!0:a instanceof Boolean?d=a.valueOf():(a=new String(a),"true"==a.toLowerCase()&&(d=!0)));return d};a.useMockEl=function(){var a=!0;"undefined"!==typeof adf&&"undefined"!==typeof adf.mf&&"undefined"!==typeof adf.mf.internal&&
"undefined"!==typeof adf.mf.internal.isJavaAvailable&&(a=!adf.mf.internal.isJavaAvailable());return a};a.useMockContext=function(){return a.useMockEl()};a.setBeanDefinitions=function(b,d,e){null!=b&&adfc.internal.LogUtil.fine("defining "+b.length+" managed beans");adfc.internal.ElUtil.useMockEl()?(adfc.internal.ElUtil.currentBeanDefs=b,d()):(b=a.createBeanDefinitions(b),adf.mf.internal.mb.setBeanDefinitions(b,d,e))};a.createBeanDefinitions=function(b){var d=[];if(null!=b)for(var e=0;e<b.length;e++){var g=
b[e],h=a.createPropDefinitions(g.getManagedProperties()),g=new adf.mf.internal.mb.ManagedBeanDefinition(g.getBeanName(),g.getBeanClass(),g.getBeanScope(),h);d.push(g)}return d};a.createPropDefinitions=function(a){var d=[];if(null!=a&&null!=a)for(var e=0;e<a.length;e++){var g=a[e],g=new adf.mf.internal.mb.ManagedPropertyDefinition(g.getName(),g.getType(),g.getValue());d.push(g)}return d};a.pushPageFlowScope=function(a,d){adfc.internal.ElUtil.useMockContext()?(adfc.internal.LogUtil.fine("pushing a pageFlowScope"),
a()):adf.mf.api.pushPageFlowScope(a,d)};a.popPageFlowScope=function(a,d){adfc.internal.ElUtil.useMockContext()?(adfc.internal.LogUtil.fine("popping the pageFlowScope"),a()):adf.mf.api.popPageFlowScope(a,d)};a.setMfContextInstance=function(a,d){"undefined"!==typeof adf.mf.internal.useNavHandlerViewHistory&&adf.mf.internal.useNavHandlerViewHistory&&"undefined"!==typeof adf.mf.internal.amx&&"undefined"!==typeof adf.mf.internal.amx.setMfContextInstance&&(adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: setting MfContextInstance, newInstance="+
d+"."),adf.mf.internal.amx.setMfContextInstance(a,d))};a.removeMfContextInstance=function(a){"undefined"!==typeof adf.mf.internal.useNavHandlerViewHistory&&adf.mf.internal.useNavHandlerViewHistory&&"undefined"!==typeof adf.mf.internal.amx&&"undefined"!==typeof adf.mf.internal.amx.removeMfContextInstance&&(adfc.internal.LogUtil.isFine()&&adfc.internal.LogUtil.fine("ADFc: removing MfContextInstance."),adf.mf.internal.amx.removeMfContextInstance(a))}})();window.adfc||(window.adfc={});
adfc.internal||(adfc.internal={});(function(){function a(){}adfc.internal.IdUtil=a;adfc.internal.IdUtil.seqNum=0;a.uuid=function(){"undefined"!==typeof amx?"undefined"!==typeof amx.uuid?amx.uuid():adfc.internal.IdUtil.seqNum++:adfc.internal.IdUtil.seqNum++}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.LogUtil=a;adfc.internal.LogUtil.UseMockLog="undefined"===typeof adf||"undefined"===typeof adf.mf||"undefined"===typeof adf.mf.log||"undefined"===typeof adf.mf.log.Framework;a.LOG_LEVEL_FINE=0;a.LOG_LEVEL_INFO=1;a.LOG_LEVEL_WARNING=2;a.LOG_LEVEL_SEVERE=3;adfc.internal.LogUtil.UseMockLog||(a.LOG_LEVEL_FINE=adf.mf.log.level.FINE,a.LOG_LEVEL_INFO=adf.mf.log.level.INFO,a.LOG_LEVEL_WARNING=adf.mf.log.level.WARNING,a.LOG_LEVEL_SEVERE=adf.mf.log.level.SEVERE);a.currentMockLogLevel=
a.LOG_LEVEL_FINE;a.severe=function(b){a.output("SEVERE",a.LOG_LEVEL_SEVERE,b)};a.warning=function(b){a.output("WARNING",a.LOG_LEVEL_WARNING,b)};a.info=function(b){a.output("INFO",a.LOG_LEVEL_INFO,b)};a.fine=function(b){a.output("FINE",a.LOG_LEVEL_FINE,b)};a.showAlert=function(a){null!=a&&alert(a)};a.output=function(b,d,e){adfc.internal.LogUtil.UseMockLog?null!=e&&d>=a.currentMockLogLevel&&(d="[ADFc:"+b+"] "+a.formatMessage(e),console.log(d)):(b="ADFc",d==a.LOG_LEVEL_FINE&&(b="==== ADFc DEBUG ===="),
adf.mf.log.Framework.logp(d,b,"--",e))};a.formatMessage=function(a){var d=a;d instanceof String||(d=new String(a));0!=d.indexOf("ADFc:")&&(d="ADFc: "+d);return d};a.perfLog=function(a){adfc.internal.LogUtil.UseMockLog||adf.mf.internal.perf.perfTimings(!1,!1,!0,a)};a.isSevere=function(){return adfc.internal.LogUtil.UseMockLog?a.currentMockLogLevel>=a.LOG_LEVEL_SEVERE:adf.mf.log.Framework.isLoggable(a.LOG_LEVEL_SEVERE)};a.isWarning=function(){return adfc.internal.LogUtil.UseMockLog?a.currentMockLogLevel>=
a.LOG_LEVEL_WARNING:adf.mf.log.Framework.isLoggable(a.LOG_LEVEL_WARNING)};a.isInfo=function(){return adfc.internal.LogUtil.UseMockLog?a.currentMockLogLevel>=a.LOG_LEVEL_INFO:adf.mf.log.Framework.isLoggable(a.LOG_LEVEL_INFO)};a.isFine=function(){return adfc.internal.LogUtil.UseMockLog?a.currentMockLogLevel>=a.LOG_LEVEL_FINE:adf.mf.log.Framework.isLoggable(a.LOG_LEVEL_FINE)}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.MsgUtil=a;a.messages={};a.getLocalizedText=function(b){var d="<bad message ID>";"undefined"!==typeof a.messages[b]&&(d=a.messages[b]);return d};a.NO_FEATURE_ENTRY_POINT=0;a.messages[a.NO_FEATURE_ENTRY_POINT]="no feature entry point path found on URL"})();window.adf||(window.adf={});adf.FEATURE_ROOT=null;adf.AMX_DTMODE=!1;window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.UrlUtil=a;a.getEntryPointDocumentPath=function(a){var d=null;null!=a&&0<a.length&&(d=adfc.internal.UrlUtil.getUrlParamValue(a,"file"),null!=d&&(d=unescape(d)));return d};a.getAmxDtMode=function(a){var d=!1;null!=a&&0<a.length&&(a=adfc.internal.UrlUtil.getUrlParamValue(a,"amx_dtmode"),null!=a&&(a=unescape(a),d=adfc.internal.ElUtil.resultToBoolean(a)));return d};a.getFeatureRoot=function(a){var d=null;null!=a&&0<a.length&&(d=adfc.internal.UrlUtil.getUrlParamValue(a,
"featureRoot"),null!=d&&(d=unescape(d)));return d};a.getParamStartIndex=function(a,d){var e=a.indexOf("?"+d);0>e&&(e=a.indexOf(("&"+d).toString()));return e};a.getParamEndIndex=function(a,d){var e=a.indexOf("&",d);0>e&&(e=a.length);return e};a.getUrlParamValue=function(a,d){var e=null;if(null!=a&&null!=d){var g=adfc.internal.UrlUtil.getParamStartIndex(a,d);if(0<=g){var h=adfc.internal.UrlUtil.getParamEndIndex(a,g+1),g=a.substring(g,h),h=g.indexOf("=");0<=h&&h<g.length&&(e=g.substring(h+1),0==e.length&&
(e=null))}}return e}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});(function(){function a(){}adfc.internal.ViewIdUtil=a;a.logicalViewIdToActivityId=function(a,d){var e=null;if(null!=d&&1<d.length){var g=null;if(null==a)g=d,"/"==g.charAt(0)&&(g=g.substring(1));else{var h=a.getLocalTaskFlowId();1==d.indexOf(h)&&(g=d.substring(h.length+2))}null!=g&&(e=new adfc.internal.ActivityId(a,g))}return e}})();window.adfc||(window.adfc={});adfc.internal||(adfc.internal={});
(function(){function a(){}adfc.internal.XmlUtil=a;a.loadXmlFile=function(b){var d=null,e=a.loadXmlWithAjax(b);null!=e&&0<e.length?d=(new DOMParser).parseFromString(e,"text/xml"):adfc.internal.LogUtil.warning("failed to load XML for document: "+b);return d};a.loadXmlWithAjax=function(a){var d=null,e=new XMLHttpRequest;e.open("GET",a,!1);e.send(null);4==e.readyState&&(d=e.responseText);return d};a.doesFileExist=function(a){var d=!1,e=new XMLHttpRequest;e.open("GET",a,!1);e.send(null);4==e.readyState&&
null!=e.responseText&&0!=e.responseText.length&&(d=!0);return d};a.getNodeText=function(a){var d=null;if(a)for(var a=a.childNodes,e=0;e<a.length;e++){var g=a.item(e);if(g.nodeType==Node.TEXT_NODE){d=g.nodeValue;break}}d&&0==d.length&&(d=null);return d};a.isTaskFlowDocument=function(a){var d=a.indexOf("#");0<d&&(a=a.substring(0,d));d=new XMLHttpRequest;d.open("GET",a,!1);d.send(null);if(4==d.readyState)a=d.responseText;else throw Error("failed to read entry point document "+a);d=!1;null!=a&&0<a.indexOf("adfc-mobile-config")&&
(d=!0);return d}})();