window.adf || (window.adf = {});
$adf$$.$shared$ = $adf$$.$shared$ || {};
$adf$$.$shared$.$impl$ = $adf$$.$shared$.$impl$ || {};
$adf$$.$shared$.$impl$.$animationUtils$ = {};
$adf$$.$shared$.$impl$.$animationUtils$.$_browserSpecificNames$ = {};
$adf$$.$shared$.$impl$.$animationUtils$.transition = function $$adf$$$$shared$$$impl$$$animationUtils$$transition$($transitionType$$, $currentElement$$, $newElement$$4$$, $properties$$54$$) {
  function $cancelFunction$$() {
  }
  var $dimensionsFromParent$$ = $properties$$54$$.dimensionsFromParent, $finishedFunction_transitionFunction$$ = $properties$$54$$.finishedFunction, $animationEnabled_direction$$4$$ = $properties$$54$$.animationEnabled, $isRtl$$5_nothingToAnimate$$ = $properties$$54$$.isRtl, $fineLogger$$ = $properties$$54$$.fineLogger, $hasCurrent$$ = null != $currentElement$$, $hasNew$$ = null != $newElement$$4$$, $animationUtils$$ = $adf$$.$shared$.$impl$.$animationUtils$, $animationContext$$ = new $animationUtils$$.$AnimationContext$($finishedFunction_transitionFunction$$, 
  $properties$$54$$.callbackParams);
  $animationUtils$$.$_isRtl$ = $isRtl$$5_nothingToAnimate$$;
  $animationUtils$$.$_fineLogger$ = $fineLogger$$;
  null == $animationUtils$$.$_agentTypeAndVersion$ && ($animationUtils$$.$_agentTypeAndVersion$ = $animationUtils$$.$_getAgentTypeAndVersion$(navigator.userAgent));
  try {
    $isRtl$$5_nothingToAnimate$$ = !1;
    $hasCurrent$$ || $hasNew$$ ? $hasCurrent$$ && $hasNew$$ && $currentElement$$.parentNode != $newElement$$4$$.parentNode && ($isRtl$$5_nothingToAnimate$$ = !0, $animationUtils$$.$_fineLogger$("AdfAnimationUtils: transition common parent prerequisite was violated")) : $isRtl$$5_nothingToAnimate$$ = !0;
    $hasCurrent$$ && "none" == $currentElement$$.style.display && ($isRtl$$5_nothingToAnimate$$ = !0, $animationUtils$$.$_fineLogger$("AdfAnimationUtils: transition currentElement display !\x3d none prerequisite was violated"));
    $hasNew$$ && "none" == $newElement$$4$$.style.display && ($isRtl$$5_nothingToAnimate$$ = !0, $animationUtils$$.$_fineLogger$("AdfAnimationUtils: transition newElement display !\x3d none prerequisite was violated"));
    if ($isRtl$$5_nothingToAnimate$$) {
      return null != $finishedFunction_transitionFunction$$ && $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$($animationUtils$$.$getProxyFunction$($animationContext$$, $animationContext$$.$_performFinish$)), $cancelFunction$$;
    }
    $animationEnabled_direction$$4$$ || ($transitionType$$ = "none");
    $animationEnabled_direction$$4$$ = $finishedFunction_transitionFunction$$ = null;
    if (null != $transitionType$$) {
      var $agentType$$ = $animationUtils$$.$_agentTypeAndVersion$[0], $agentVersion$$5$$ = $animationUtils$$.$_agentTypeAndVersion$[1];
      0 == $transitionType$$.indexOf("slide") && $animationUtils$$.$_isMinimumAgentMet$($agentType$$, $agentVersion$$5$$, "gecko", 16, "trident", 6, "webkit", 533.1) ? ($animationEnabled_direction$$4$$ = $transitionType$$.substring(5).toLowerCase(), $finishedFunction_transitionFunction$$ = $animationUtils$$.$_slide$) : 0 == $transitionType$$.indexOf("flip") && $animationUtils$$.$_isMinimumAgentMet$($agentType$$, $agentVersion$$5$$, "gecko", 19, "trident", 6, "webkit", 533.1) ? ($animationEnabled_direction$$4$$ = 
      $transitionType$$.substring(4).toLowerCase(), $finishedFunction_transitionFunction$$ = $animationUtils$$.$_flip$) : "fade" == $transitionType$$ && $animationUtils$$.$_isMinimumAgentMet$($agentType$$, $agentVersion$$5$$, "gecko", 16, "trident", 6, "webkit", 533.1) && ($finishedFunction_transitionFunction$$ = $animationUtils$$.$_fade$);
    }
    "" == $animationEnabled_direction$$4$$ && ($animationEnabled_direction$$4$$ = "start");
    if (null == $finishedFunction_transitionFunction$$ || $hasCurrent$$ && !$currentElement$$.addEventListener || $hasNew$$ && !$newElement$$4$$.addEventListener) {
      $animationUtils$$.$_restoreStyles$($currentElement$$), $animationUtils$$.$_restoreStyles$($newElement$$4$$), $hasCurrent$$ && ($currentElement$$.style.display = "none"), $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$($animationUtils$$.$getProxyFunction$($animationContext$$, $animationContext$$.$_performFinish$));
    } else {
      if ($hasCurrent$$ && $hasNew$$ && !$dimensionsFromParent$$) {
        var $currentElementStyle$$ = $currentElement$$.style, $currentWidth$$ = $currentElement$$.offsetWidth, $currentHeight$$ = $currentElement$$.offsetHeight;
        $currentElementStyle$$.position = "absolute";
        $currentElementStyle$$.top = "0px";
        $currentElementStyle$$.width = $currentWidth$$ + "px";
        $currentElementStyle$$.height = $currentHeight$$ + "px";
      }
      $cancelFunction$$ = $finishedFunction_transitionFunction$$($animationContext$$, $currentElement$$, $newElement$$4$$, $properties$$54$$, $dimensionsFromParent$$, $animationEnabled_direction$$4$$);
    }
  } catch ($problem$$2$$) {
    $animationUtils$$.$_fineLogger$("AdfAnimationUtils: unable to perform transition due to problem:"), $animationUtils$$.$_fineLogger$($problem$$2$$);
  }
  return $cancelFunction$$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$getProxyFunction$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$getProxyFunction$$($owner$$, $func$$15$$) {
  function $proxyFunction$$1$$() {
    var $owner$$ = arguments.callee;
    return $owner$$.$_func$.apply($owner$$.$_owner$, arguments);
  }
  $proxyFunction$$1$$._owner = $owner$$;
  $proxyFunction$$1$$._func = $func$$15$$;
  return $proxyFunction$$1$$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_fade$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_fade$$($animationContext$$1$$, $currentElement$$1$$, $newElement$$5$$) {
  var $animationUtils$$1$$ = $adf$$.$shared$.$impl$.$animationUtils$, $hasCurrent$$1$$ = null != $currentElement$$1$$, $hasNew$$1$$ = null != $newElement$$5$$;
  $hasCurrent$$1$$ && $animationUtils$$1$$.$_setOpacity$($currentElement$$1$$, "1");
  $hasNew$$1$$ && ($animationUtils$$1$$.$_saveStyles$($newElement$$5$$), $animationUtils$$1$$.$_setOpacity$($newElement$$5$$, "0"), $newElement$$5$$.style.zIndex = "1", $adf$$.$shared$.$impl$.$animationUtils$.$_ensureAppliedStyle$($newElement$$5$$, "opacity", 1));
  $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$(function() {
    $hasCurrent$$1$$ && $animationUtils$$1$$.$_setTransition$($currentElement$$1$$, "all .2s ease-in-out");
    $hasNew$$1$$ && $animationUtils$$1$$.$_setTransition$($newElement$$5$$, "all .2s ease-in-out");
    $hasCurrent$$1$$ && $animationContext$$1$$.$addTransitionEndA$($currentElement$$1$$, function() {
      $currentElement$$1$$.style.display = "none";
    });
    $hasNew$$1$$ && $animationContext$$1$$.$addTransitionEndB$($newElement$$5$$, function() {
      $animationUtils$$1$$.$_restoreStyles$($newElement$$5$$);
    });
    $hasCurrent$$1$$ && $animationUtils$$1$$.$_setOpacity$($currentElement$$1$$, "0");
    $hasNew$$1$$ && $animationUtils$$1$$.$_setOpacity$($newElement$$5$$, "1");
  });
  return $animationUtils$$1$$.$getProxyFunction$($animationContext$$1$$, $animationContext$$1$$.$cancelFunction$);
};
$adf$$.$shared$.$impl$.$animationUtils$.$_slide$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_slide$$($animationContext$$2$$, $currentElement$$2$$, $newElement$$6$$, $back_offsetShift_properties$$56_transformProperty$$, $dimensionsFromParent$$2_offsetProperty_size$$18$$, $direction$$6$$) {
  var $animationUtils$$2$$ = $adf$$.$shared$.$impl$.$animationUtils$, $hasCurrent$$2$$ = null != $currentElement$$2$$, $hasNew$$2$$ = null != $newElement$$6$$;
  $hasNew$$2$$ && $animationUtils$$2$$.$_saveStyles$($newElement$$6$$);
  var $vertical$$1$$ = !1;
  $back_offsetShift_properties$$56_transformProperty$$ = !1;
  if ("up" == $direction$$6$$ || "down" == $direction$$6$$) {
    $vertical$$1$$ = !0;
  }
  if ("right" == $direction$$6$$ || "down" == $direction$$6$$) {
    $back_offsetShift_properties$$56_transformProperty$$ = !0;
  }
  $animationUtils$$2$$.$_isRtl$ ? "start" == $direction$$6$$ && ($back_offsetShift_properties$$56_transformProperty$$ = !0) : "end" == $direction$$6$$ && ($back_offsetShift_properties$$56_transformProperty$$ = !0);
  var $fadeCurrent$$ = !$dimensionsFromParent$$2_offsetProperty_size$$18$$;
  $hasCurrent$$2$$ && $fadeCurrent$$ && $animationUtils$$2$$.$_setOpacity$($currentElement$$2$$, "1");
  var $translateDistance$$;
  $dimensionsFromParent$$2_offsetProperty_size$$18$$ = $vertical$$1$$ ? "offsetHeight" : "offsetWidth";
  $dimensionsFromParent$$2_offsetProperty_size$$18$$ = $back_offsetShift_properties$$56_transformProperty$$ ? $hasNew$$2$$ ? $newElement$$6$$[$dimensionsFromParent$$2_offsetProperty_size$$18$$] : $currentElement$$2$$[$dimensionsFromParent$$2_offsetProperty_size$$18$$] : $hasCurrent$$2$$ ? $currentElement$$2$$[$dimensionsFromParent$$2_offsetProperty_size$$18$$] : $newElement$$6$$[$dimensionsFromParent$$2_offsetProperty_size$$18$$];
  $back_offsetShift_properties$$56_transformProperty$$ = $back_offsetShift_properties$$56_transformProperty$$ ? -1 * $dimensionsFromParent$$2_offsetProperty_size$$18$$ : $dimensionsFromParent$$2_offsetProperty_size$$18$$;
  $translateDistance$$ = -1 * $back_offsetShift_properties$$56_transformProperty$$;
  $hasNew$$2$$ && ($vertical$$1$$ ? $animationUtils$$2$$.$_setTransformTranslate$($newElement$$6$$, "0," + $back_offsetShift_properties$$56_transformProperty$$ + "px") : $animationUtils$$2$$.$_setTransformTranslate$($newElement$$6$$, $back_offsetShift_properties$$56_transformProperty$$ + "px,0"), $back_offsetShift_properties$$56_transformProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform"), $adf$$.$shared$.$impl$.$animationUtils$.$_ensureAppliedStyle$($newElement$$6$$, 
  $back_offsetShift_properties$$56_transformProperty$$, "none"));
  $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$(function() {
    $hasCurrent$$2$$ && $animationUtils$$2$$.$_setTransition$($currentElement$$2$$, "all 125ms ease-in-out");
    $hasNew$$2$$ && $animationUtils$$2$$.$_setTransition$($newElement$$6$$, "all 125ms ease-in-out");
    $hasCurrent$$2$$ && $animationContext$$2$$.$addTransitionEndA$($currentElement$$2$$, function() {
      $currentElement$$2$$.style.display = "none";
    });
    $hasNew$$2$$ && $animationContext$$2$$.$addTransitionEndB$($newElement$$6$$, function() {
      $animationUtils$$2$$.$_restoreStyles$($newElement$$6$$);
    });
    $vertical$$1$$ ? $hasCurrent$$2$$ && $animationUtils$$2$$.$_setTransformTranslate$($currentElement$$2$$, "0," + $translateDistance$$ + "px") : $hasCurrent$$2$$ && $animationUtils$$2$$.$_setTransformTranslate$($currentElement$$2$$, $translateDistance$$ + "px,0");
    $hasNew$$2$$ && $animationUtils$$2$$.$_setTransformTranslate$($newElement$$6$$, "0,0");
    $hasCurrent$$2$$ && $fadeCurrent$$ && $animationUtils$$2$$.$_setOpacity$($currentElement$$2$$, "0");
  });
  return $animationUtils$$2$$.$getProxyFunction$($animationContext$$2$$, $animationContext$$2$$.$cancelFunction$);
};
$adf$$.$shared$.$impl$.$animationUtils$.$_flip$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_flip$$($animationContext$$3$$, $currentElement$$3$$, $newElement$$7$$, $doInsetFlip_properties$$57$$, $animationUtils$$3_dimensionsFromParent$$3$$, $agentType$$1_direction$$7$$) {
  $animationUtils$$3_dimensionsFromParent$$3$$ = $adf$$.$shared$.$impl$.$animationUtils$;
  var $hasCurrent$$3$$ = null != $currentElement$$3$$, $hasNew$$3$$ = null != $newElement$$7$$, $parentElement$$5$$ = null;
  $hasCurrent$$3$$ ? $parentElement$$5$$ = $currentElement$$3$$.parentNode : $hasNew$$3$$ && ($parentElement$$5$$ = $newElement$$7$$.parentNode);
  $hasCurrent$$3$$ && $animationUtils$$3_dimensionsFromParent$$3$$.$_saveStyles$($currentElement$$3$$);
  $hasNew$$3$$ && $animationUtils$$3_dimensionsFromParent$$3$$.$_saveStyles$($newElement$$7$$);
  $animationUtils$$3_dimensionsFromParent$$3$$.$_saveStyles$($parentElement$$5$$);
  var $vertical$$2$$ = !1, $back$$1$$ = !1;
  if ("up" == $agentType$$1_direction$$7$$ || "down" == $agentType$$1_direction$$7$$) {
    $vertical$$2$$ = !0;
  }
  if ("right" == $agentType$$1_direction$$7$$ || "up" == $agentType$$1_direction$$7$$) {
    $back$$1$$ = !0;
  }
  $animationUtils$$3_dimensionsFromParent$$3$$.$_isRtl$ ? "start" == $agentType$$1_direction$$7$$ && ($back$$1$$ = !0) : "end" == $agentType$$1_direction$$7$$ && ($back$$1$$ = !0);
  $agentType$$1_direction$$7$$ = $animationUtils$$3_dimensionsFromParent$$3$$.$_agentTypeAndVersion$[0];
  $doInsetFlip_properties$$57$$ = 1 == $doInsetFlip_properties$$57$$.parentFlipAllowed && "trident" != $agentType$$1_direction$$7$$;
  "webkit" == $agentType$$1_direction$$7$$ && 534.3 > $animationUtils$$3_dimensionsFromParent$$3$$.$_agentTypeAndVersion$[1] && ($doInsetFlip_properties$$57$$ = !1);
  $doInsetFlip_properties$$57$$ ? $animationUtils$$3_dimensionsFromParent$$3$$.$_flipInset$($animationContext$$3$$, $animationUtils$$3_dimensionsFromParent$$3$$, $currentElement$$3$$, $hasCurrent$$3$$, $newElement$$7$$, $hasNew$$3$$, $parentElement$$5$$, $vertical$$2$$, $back$$1$$) : $animationUtils$$3_dimensionsFromParent$$3$$.$_flipOnPageLayer$($animationContext$$3$$, $animationUtils$$3_dimensionsFromParent$$3$$, $currentElement$$3$$, $hasCurrent$$3$$, $newElement$$7$$, $hasNew$$3$$, $parentElement$$5$$, 
  $vertical$$2$$, $back$$1$$);
  return $animationUtils$$3_dimensionsFromParent$$3$$.$getProxyFunction$($animationContext$$3$$, $animationContext$$3$$.$cancelFunction$);
};
$adf$$.$shared$.$impl$.$animationUtils$.$_flipOnPageLayer$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_flipOnPageLayer$$($animationContext$$4$$, $animationUtils$$4$$, $currentElement$$4$$, $hasCurrent$$4$$, $newElement$$8$$, $hasNew$$4$$, $parentElement$$6$$, $vertical$$3$$, $back$$2$$) {
  var $agentType$$2_offsetWidth$$1_perspectiveProperty$$ = 0, $agentVersion$$6_offsetHeight$$1$$ = 0;
  $hasNew$$4$$ && ($agentType$$2_offsetWidth$$1_perspectiveProperty$$ = $newElement$$8$$.offsetWidth, $agentVersion$$6_offsetHeight$$1$$ = $newElement$$8$$.offsetHeight);
  $hasCurrent$$4$$ && ($agentType$$2_offsetWidth$$1_perspectiveProperty$$ = Math.max($agentType$$2_offsetWidth$$1_perspectiveProperty$$, $currentElement$$4$$.offsetWidth), $agentVersion$$6_offsetHeight$$1$$ = Math.max($agentVersion$$6_offsetHeight$$1$$, $currentElement$$4$$.offsetHeight));
  if ($hasNew$$4$$) {
    $animationUtils$$4$$.$_setBackfaceVisibility$($newElement$$8$$);
    $animationUtils$$4$$.$_setTransformStyle$($newElement$$8$$);
    $newElement$$8$$.style.width = $agentType$$2_offsetWidth$$1_perspectiveProperty$$ + "px";
    $newElement$$8$$.style.height = $agentVersion$$6_offsetHeight$$1$$ + "px";
    $vertical$$3$$ ? $animationUtils$$4$$.$_setTransformRotateX$($newElement$$8$$, $back$$2$$ ? "-180deg" : "180deg") : $animationUtils$$4$$.$_setTransformRotateY$($newElement$$8$$, $back$$2$$ ? "-180deg" : "180deg");
    var $transformProperty$$1$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
    $adf$$.$shared$.$impl$.$animationUtils$.$_ensureAppliedStyle$($newElement$$8$$, $transformProperty$$1$$, "none");
  }
  $hasCurrent$$4$$ && ($animationUtils$$4$$.$_setBackfaceVisibility$($currentElement$$4$$), $animationUtils$$4$$.$_setTransformStyle$($currentElement$$4$$), $currentElement$$4$$.style.width = $agentType$$2_offsetWidth$$1_perspectiveProperty$$ + "px", $currentElement$$4$$.style.height = $agentVersion$$6_offsetHeight$$1$$ + "px", $vertical$$3$$ ? $animationUtils$$4$$.$_setTransformRotateX$($currentElement$$4$$, "0deg") : $animationUtils$$4$$.$_setTransformRotateY$($currentElement$$4$$, "0deg"));
  $agentType$$2_offsetWidth$$1_perspectiveProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_agentTypeAndVersion$[0];
  $agentVersion$$6_offsetHeight$$1$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_agentTypeAndVersion$[1];
  "webkit" == $agentType$$2_offsetWidth$$1_perspectiveProperty$$ ? "webkit" == $agentType$$2_offsetWidth$$1_perspectiveProperty$$ && 534.3 <= $agentVersion$$6_offsetHeight$$1$$ && ($agentType$$2_offsetWidth$$1_perspectiveProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("perspective"), $parentElement$$6$$.style[$agentType$$2_offsetWidth$$1_perspectiveProperty$$] = "2000px") : "trident" != $agentType$$2_offsetWidth$$1_perspectiveProperty$$ && ($parentElement$$6$$.style.perspective = 
  "2000px");
  $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$(function() {
    $hasCurrent$$4$$ && $animationUtils$$4$$.$_setTransition$($currentElement$$4$$, "all .2s ease-in-out");
    $hasNew$$4$$ && $animationUtils$$4$$.$_setTransition$($newElement$$8$$, "all .2s ease-in-out");
    $hasCurrent$$4$$ && $animationContext$$4$$.$addTransitionEndA$($currentElement$$4$$, function() {
      $currentElement$$4$$.style.display = "none";
      $animationUtils$$4$$.$_restoreStyles$($currentElement$$4$$);
      $animationUtils$$4$$.$_restoreStyles$($parentElement$$6$$);
    });
    $hasNew$$4$$ && $animationContext$$4$$.$addTransitionEndB$($newElement$$8$$, function() {
      $animationUtils$$4$$.$_restoreStyles$($newElement$$8$$);
      $animationUtils$$4$$.$_restoreStyles$($parentElement$$6$$);
    });
    $vertical$$3$$ ? ($hasCurrent$$4$$ && $animationUtils$$4$$.$_setTransformRotateX$($currentElement$$4$$, $back$$2$$ ? "180deg" : "-180deg"), $hasNew$$4$$ && $animationUtils$$4$$.$_setTransformRotateX$($newElement$$8$$, "0deg")) : ($hasCurrent$$4$$ && $animationUtils$$4$$.$_setTransformRotateY$($currentElement$$4$$, $back$$2$$ ? "180deg" : "-180deg"), $hasNew$$4$$ && $animationUtils$$4$$.$_setTransformRotateY$($newElement$$8$$, "0deg"));
  });
};
$adf$$.$shared$.$impl$.$animationUtils$.$_flipInset$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_flipInset$$($animationContext$$5$$, $animationUtils$$5$$, $currentElement$$5$$, $hasCurrent$$5$$, $newElement$$9$$, $hasNew$$5$$, $parentElement$$7$$, $vertical$$4$$, $back$$3$$) {
  var $grandparentElement$$ = $parentElement$$7$$.parentNode;
  $animationContext$$5$$.$addExtraCancelFunction$(function() {
    $animationUtils$$5$$.$_flipInsetExtraCancel$($parentElement$$7$$, $grandparentElement$$);
  });
  $animationUtils$$5$$.$_saveStyles$($grandparentElement$$);
  var $offsetWidth$$2_perspectiveProperty$$1$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("perspective");
  $grandparentElement$$.style[$offsetWidth$$2_perspectiveProperty$$1$$] = "2000px";
  $animationUtils$$5$$.$_setTransformStyle$($parentElement$$7$$);
  var $offsetHeight$$2$$ = $offsetWidth$$2_perspectiveProperty$$1$$ = 0;
  $hasNew$$5$$ && ($offsetWidth$$2_perspectiveProperty$$1$$ = $newElement$$9$$.offsetWidth, $offsetHeight$$2$$ = $newElement$$9$$.offsetHeight);
  $hasCurrent$$5$$ && ($offsetWidth$$2_perspectiveProperty$$1$$ = Math.max($offsetWidth$$2_perspectiveProperty$$1$$, $currentElement$$5$$.offsetWidth), $offsetHeight$$2$$ = Math.max($offsetHeight$$2$$, $currentElement$$5$$.offsetHeight));
  if ($hasNew$$5$$) {
    $animationUtils$$5$$.$_setBackfaceVisibility$($newElement$$9$$);
    $newElement$$9$$.style.width = $offsetWidth$$2_perspectiveProperty$$1$$ + "px";
    $newElement$$9$$.style.height = $offsetHeight$$2$$ + "px";
    $vertical$$4$$ ? $animationUtils$$5$$.$_setTransformValue$($newElement$$9$$, "perspective(2000px) rotateX(" + ($back$$3$$ ? "180deg" : "-180deg") + ")") : $animationUtils$$5$$.$_setTransformValue$($newElement$$9$$, "perspective(2000px) rotateY(" + ($back$$3$$ ? "-180deg" : "180deg") + ")");
    var $transformProperty$$2$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
    $adf$$.$shared$.$impl$.$animationUtils$.$_ensureAppliedStyle$($newElement$$9$$, $transformProperty$$2$$, "none");
  }
  $hasCurrent$$5$$ && ($animationUtils$$5$$.$_setBackfaceVisibility$($currentElement$$5$$), $currentElement$$5$$.style.width = $offsetWidth$$2_perspectiveProperty$$1$$ + "px", $currentElement$$5$$.style.height = $offsetHeight$$2$$ + "px", $vertical$$4$$ ? $animationUtils$$5$$.$_setTransformValue$($currentElement$$5$$, "perspective(2000px) rotateX(0deg)") : $animationUtils$$5$$.$_setTransformValue$($currentElement$$5$$, "perspective(2000px) rotateY(0deg)"));
  $vertical$$4$$ ? $animationUtils$$5$$.$_setTransformOrigin$($parentElement$$7$$, $back$$3$$ ? "center bottom" : "center top") : $animationUtils$$5$$.$_setTransformOrigin$($parentElement$$7$$, $back$$3$$ ? "left center" : "right center");
  $adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$(function() {
    $animationUtils$$5$$.$_setTransition$($parentElement$$7$$, "all .2s ease-in-out");
    $animationContext$$5$$.$addTransitionEndA$($parentElement$$7$$, function() {
      $hasCurrent$$5$$ && ($animationUtils$$5$$.$_restoreStyles$($currentElement$$5$$), $currentElement$$5$$.style.display = "none");
      $hasNew$$5$$ && $animationUtils$$5$$.$_restoreStyles$($newElement$$9$$);
      $animationUtils$$5$$.$_flipInsetExtraCancel$($parentElement$$7$$, $grandparentElement$$);
    });
    $vertical$$4$$ ? $animationUtils$$5$$.$_setTransformValue$($parentElement$$7$$, "perspective(2000px) " + ($back$$3$$ ? "translateY(-100%) rotateX(180deg)" : "translateY(100%) rotateX(-180deg)")) : $animationUtils$$5$$.$_setTransformValue$($parentElement$$7$$, "perspective(2000px) " + ($back$$3$$ ? "translateX(100%) rotateY(180deg)" : "translateX(-100%) rotateY(-180deg)"));
  });
};
$adf$$.$shared$.$impl$.$animationUtils$.$_flipInsetExtraCancel$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_flipInsetExtraCancel$$($parentElement$$8$$, $grandparentElement$$1$$) {
  var $animationUtils$$6$$ = $adf$$.$shared$.$impl$.$animationUtils$;
  $animationUtils$$6$$.$_restoreStyles$($parentElement$$8$$);
  $animationUtils$$6$$.$_restoreStyles$($grandparentElement$$1$$);
};
$adf$$.$shared$.$impl$.$animationUtils$.$_ensureAppliedStyle$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_ensureAppliedStyle$$($actualValue_element$$189$$, $propertyName$$39$$, $valueItShouldNotBe$$) {
  null != $actualValue_element$$189$$.ownerDocument.defaultView.getComputedStyle && ($actualValue_element$$189$$ = $actualValue_element$$189$$.ownerDocument.defaultView.getComputedStyle($actualValue_element$$189$$)[$propertyName$$39$$], $actualValue_element$$189$$ == $valueItShouldNotBe$$ && $adf$$.$shared$.$impl$.$animationUtils$.$_fineLogger$("AdfAnimationUtils: computed style had unexpected value: " + $actualValue_element$$189$$));
};
$adf$$.$shared$.$impl$.$animationUtils$.$_getTransitionEndEventName$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_getTransitionEndEventName$$() {
  if (null == $adf$$.$shared$.$impl$.$animationUtils$.$_transitionEndEventName$) {
    var $eventName$$1$$ = "transitionend", $element$$190$$ = document.createElement("div"), $possibleEventNames$$ = {WebkitTransition:"webkitTransitionEnd", transition:"transitionend", OTransition:"oTransitionEnd", MozTransition:"transitionend"}, $stylePropertyName$$;
    for ($stylePropertyName$$ in $possibleEventNames$$) {
      if (void 0 !== $element$$190$$.style[$stylePropertyName$$]) {
        $eventName$$1$$ = $possibleEventNames$$[$stylePropertyName$$];
        break;
      }
    }
    $adf$$.$shared$.$impl$.$animationUtils$.$_transitionEndEventName$ = $eventName$$1$$;
  }
  return $adf$$.$shared$.$impl$.$animationUtils$.$_transitionEndEventName$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_getBrowserSpecificName$$($baseName$$) {
  if (null == $adf$$.$shared$.$impl$.$animationUtils$.$_browserSpecificNames$[$baseName$$]) {
    var $name$$92$$ = $baseName$$, $capitalizedName$$ = $baseName$$.charAt(0).toUpperCase() + $baseName$$.substring(1), $element$$191$$ = document.createElement("div"), $possibleNames$$ = {};
    $possibleNames$$["Webkit" + $capitalizedName$$] = "webkit" + $capitalizedName$$;
    $possibleNames$$[$name$$92$$] = $name$$92$$;
    $possibleNames$$["O" + $capitalizedName$$] = "o" + $capitalizedName$$;
    $possibleNames$$["Moz" + $capitalizedName$$] = "moz" + $capitalizedName$$;
    for (var $stylePropertyName$$1$$ in $possibleNames$$) {
      if (void 0 !== $element$$191$$.style[$stylePropertyName$$1$$]) {
        $name$$92$$ = $stylePropertyName$$1$$;
        break;
      }
    }
    $adf$$.$shared$.$impl$.$animationUtils$.$_browserSpecificNames$[$baseName$$] = $name$$92$$;
  }
  return $adf$$.$shared$.$impl$.$animationUtils$.$_browserSpecificNames$[$baseName$$];
};
$adf$$.$shared$.$impl$.$animationUtils$.$_requestAnimationFrame$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_requestAnimationFrame$$($callback$$92$$) {
  for (var $lastTime$$ = 0, $vendors$$ = ["webkit", "ms", "moz", "o"], $x$$63$$ = 0;$x$$63$$ < $vendors$$.length && !window.requestAnimationFrame;++$x$$63$$) {
    window.requestAnimationFrame = window[$vendors$$[$x$$63$$] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[$vendors$$[$x$$63$$] + "CancelAnimationFrame"] || window[$vendors$$[$x$$63$$] + "CancelRequestAnimationFrame"];
  }
  window.requestAnimationFrame || (window.requestAnimationFrame = function $window$requestAnimationFrame$($callback$$92$$) {
    var $vendors$$ = (new Date).getTime(), $x$$63$$ = Math.max(0, 16 - ($vendors$$ - $lastTime$$)), $id$$256$$ = window.setTimeout(function() {
      $callback$$92$$($vendors$$ + $x$$63$$);
    }, $x$$63$$);
    $lastTime$$ = $vendors$$ + $x$$63$$;
    return $id$$256$$;
  });
  window.cancelAnimationFrame || (window.cancelAnimationFrame = function $window$cancelAnimationFrame$($callback$$92$$) {
    clearTimeout($callback$$92$$);
  });
  window.requestAnimationFrame($callback$$92$$);
};
$adf$$.$shared$.$impl$.$animationUtils$.$_isMinimumAgentMet$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_isMinimumAgentMet$$($actualAgentType$$, $actualAgentVersion$$) {
  var $argCount$$5$$ = arguments.length;
  if (1 == $argCount$$5$$ % 2) {
    return $adf$$.$shared$.$impl$.$animationUtils$.$_fineLogger$("AdfAnimationUtils: invalid number of minimum agent requirement arguments: " + $argCount$$5$$), !1;
  }
  for (var $i$$222$$ = 2;$i$$222$$ <= $argCount$$5$$ - 2;$i$$222$$ += 2) {
    if ($actualAgentType$$ == arguments[$i$$222$$]) {
      if ($actualAgentVersion$$ >= arguments[1 + $i$$222$$]) {
        return !0;
      }
      break;
    }
  }
  return !1;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_getAgentTypeAndVersion$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_getAgentTypeAndVersion$$($givenUserAgentString_userAgent$$20$$) {
  var $versionParser$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_parseFloatVersion$, $agentType$$3$$ = null, $agentVersion$$7_possibleVersion$$ = -1;
  $givenUserAgentString_userAgent$$20$$ = $givenUserAgentString_userAgent$$20$$.toLowerCase();
  -1 != $givenUserAgentString_userAgent$$20$$.indexOf("msie") || -1 != $givenUserAgentString_userAgent$$20$$.indexOf("trident") ? ($agentType$$3$$ = "trident", $agentVersion$$7_possibleVersion$$ = $versionParser$$($givenUserAgentString_userAgent$$20$$, /trident\/(\d+[.]\d+)/), -1 == $agentVersion$$7_possibleVersion$$ && ($agentVersion$$7_possibleVersion$$ = $versionParser$$($givenUserAgentString_userAgent$$20$$, /msie (\d+\.\d+);/), -1 == $agentVersion$$7_possibleVersion$$ && ($agentVersion$$7_possibleVersion$$ = 
  $versionParser$$($givenUserAgentString_userAgent$$20$$, /msie (\d+\.\d+)b;/)), $agentVersion$$7_possibleVersion$$ -= 4), null != document.documentMode && ($agentVersion$$7_possibleVersion$$ = Math.min($agentVersion$$7_possibleVersion$$, document.documentMode - 4))) : -1 != $givenUserAgentString_userAgent$$20$$.indexOf("applewebkit") ? ($agentType$$3$$ = "webkit", $agentVersion$$7_possibleVersion$$ = $versionParser$$($givenUserAgentString_userAgent$$20$$, /applewebkit\/(\d+([.]\d+)*)/)) : -1 != 
  $givenUserAgentString_userAgent$$20$$.indexOf("gecko/") && ($agentType$$3$$ = "gecko", $agentVersion$$7_possibleVersion$$ = $versionParser$$($givenUserAgentString_userAgent$$20$$, /rv:(\d+[.]\d+)/));
  return [$agentType$$3$$, $agentVersion$$7_possibleVersion$$];
};
$adf$$.$shared$.$impl$.$animationUtils$.$_parseFloatVersion$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_parseFloatVersion$$($userAgent$$21$$, $versionNumberPattern$$1$$) {
  var $matches$$6_versionString$$1$$ = $userAgent$$21$$.match($versionNumberPattern$$1$$);
  return $matches$$6_versionString$$1$$ && ($matches$$6_versionString$$1$$ = $matches$$6_versionString$$1$$[1]) ? parseFloat($matches$$6_versionString$$1$$) : -1;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_saveStyles$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_saveStyles$$($element$$192$$) {
  if (null != $element$$192$$ && $element$$192$$.getAttribute && $element$$192$$.setAttribute) {
    var $styles$$ = $element$$192$$.getAttribute("data-adf-original-style");
    null != $styles$$ && ($adf$$.$shared$.$impl$.$animationUtils$.$_fineLogger$("AdfAnimationUtils: save while pending restore"), $adf$$.$shared$.$impl$.$animationUtils$.$_restoreStyles$($element$$192$$));
    $styles$$ = $element$$192$$.getAttribute("style");
    null == $styles$$ && ($styles$$ = "");
    $element$$192$$.setAttribute("data-adf-original-style", $styles$$);
  }
};
$adf$$.$shared$.$impl$.$animationUtils$.$_restoreStyles$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_restoreStyles$$($element$$193$$) {
  if (null != $element$$193$$ && $element$$193$$.getAttribute && $element$$193$$.setAttribute) {
    var $styles$$1$$ = $element$$193$$.getAttribute("data-adf-original-style");
    null != $styles$$1$$ && ($element$$193$$.setAttribute("style", $styles$$1$$), $element$$193$$.removeAttribute && $element$$193$$.removeAttribute("data-adf-original-style"));
  }
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setOpacity$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setOpacity$$($element$$194$$, $opacityValue$$) {
  $element$$194$$.style.opacity = $opacityValue$$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransition$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransition$$($element$$195$$, $transitionValue$$) {
  var $transitionProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transition");
  $element$$195$$.style[$transitionProperty$$] = $transitionValue$$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformValue$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformValue$$($element$$196$$, $transformValue$$) {
  var $transformProperty$$3$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
  $element$$196$$.style[$transformProperty$$3$$] = $transformValue$$;
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformTranslate$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformTranslate$$($element$$197$$, $translateValues$$) {
  var $transformProperty$$4$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
  $element$$197$$.style[$transformProperty$$4$$] = "translate(" + $translateValues$$ + ")";
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformRotateX$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformRotateX$$($element$$198$$, $rotateXValues$$) {
  if ("trident" == $adf$$.$shared$.$impl$.$animationUtils$.$_agentTypeAndVersion$[0]) {
    $element$$198$$.style.transform = "perspective(2000px) rotateX(" + $rotateXValues$$ + ")";
  } else {
    var $transformProperty$$5$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
    $element$$198$$.style[$transformProperty$$5$$] = "rotateX(" + $rotateXValues$$ + ")";
  }
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformRotateY$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformRotateY$$($element$$199$$, $rotateYValues$$) {
  if ("trident" == $adf$$.$shared$.$impl$.$animationUtils$.$_agentTypeAndVersion$[0]) {
    $element$$199$$.style.transform = "perspective(2000px) rotateY(" + $rotateYValues$$ + ")";
  } else {
    var $transformProperty$$6$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transform");
    $element$$199$$.style[$transformProperty$$6$$] = "rotateY(" + $rotateYValues$$ + ")";
  }
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setBackfaceVisibility$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setBackfaceVisibility$$($element$$200$$) {
  var $backfaceVisibilityProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("backfaceVisibility");
  $element$$200$$.style[$backfaceVisibilityProperty$$] = "hidden";
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformStyle$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformStyle$$($element$$201$$) {
  var $transformStyleProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transformStyle");
  $element$$201$$.style[$transformStyleProperty$$] = "preserve-3d";
};
$adf$$.$shared$.$impl$.$animationUtils$.$_setTransformOrigin$ = function $$adf$$$$shared$$$impl$$$animationUtils$$$_setTransformOrigin$$($element$$202$$, $transformOrigin$$) {
  var $transformOriginProperty$$ = $adf$$.$shared$.$impl$.$animationUtils$.$_getBrowserSpecificName$("transformOrigin");
  $element$$202$$.style[$transformOriginProperty$$] = $transformOrigin$$;
};
