function $AdfTreeUtils$$($peer$$165$$) {
  arguments.length && this.Init($peer$$165$$)
}
$goog$exportSymbol$$("AdfTreeUtils", $AdfTreeUtils$$);
$AdfObject$$.$createSubclass$($AdfTreeUtils$$);
$AdfTreeUtils$$.$InitClass$ = function $$AdfTreeUtils$$$$InitClass$$() {
  this.$_DEFAULT_CONTEXT_MENU_POPUP_ID$ = "_afrCxtPop";
  this.$_SHOW_AS_TOP_ID$ = "_afrShwTop";
  this.$_COLLAPSE_ALL_BELOW_ID$ = "_afrCpsBlw";
  this.$_EXPAND_ALL_BELOW_ID$ = "_afrXpdBlw";
  this.$_EXPAND_ID$ = "_afrXpdItm";
  this.$_SORT_ASCENDING_ID$ = "_afrSrtAsc";
  this.$_SORT_DESCENDING_ID$ = "_afrSrtDsc";
  this.$_SORT_ID$ = "_afrSrt";
  this.$_SELECTOR_ICON_ID$ = "_afrSelId";
  this.$_SELECTOR_POPUP_ID$ = "_afrSelPop";
  this.$SELECTOR_IMAGE_ATTR$ = "_afrSelImg";
  $goog$exportSymbol$$("AdfTreeUtils.SELECTOR_IMAGE_ATTR", $AdfTreeUtils$$.$SELECTOR_IMAGE_ATTR$);
  this.$_HSELECTOR_ROW_KEY$ = "_afrSelRow";
  this.$_HAS_PATH_STAMP_BIT$ = 1;
  this.$_IS_MULTI_ROOT_BIT$ = 2;
  this.$_IS_SELECTOR_ICON_VISIBLE$ = 4;
  var $actionMap$$2$$ = this.$_ACTION_HANDLER_MAP$ = {}, $pt$$1$$ = $AdfTreeUtils$$.prototype;
  $actionMap$$2$$[this.$_SHOW_AS_TOP_ID$] = $pt$$1$$.$showAsTopAction$;
  $actionMap$$2$$[this.$_EXPAND_ID$] = $pt$$1$$.$expandAction$;
  $actionMap$$2$$[this.$_SORT_ASCENDING_ID$] = $pt$$1$$.$sortAscendingAction$;
  $actionMap$$2$$[this.$_SORT_DESCENDING_ID$] = $pt$$1$$.$sortDescendingAction$;
  $actionMap$$2$$[this.$_EXPAND_ALL_BELOW_ID$] = $pt$$1$$.$expandAllBelowAction$;
  $actionMap$$2$$[this.$_COLLAPSE_ALL_BELOW_ID$] = $pt$$1$$.$collapseAllBelowAction$
};
$goog$exportSymbol$$("AdfTreeUtils.InitClass", $AdfTreeUtils$$.$InitClass$);
$AdfTreeUtils$$.prototype.Init = function $$AdfTreeUtils$$$$Init$($peer$$166$$) {
  $AdfTreeUtils$$.$superclass$.Init.call(this);
  this.$_peer$ = $peer$$166$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.Init", {Init:$AdfTreeUtils$$.prototype.Init});
$AdfTreeUtils$$.prototype.$sortAscendingAction$ = function $$AdfTreeUtils$$$$$sortAscendingAction$$($componentEvent$$440$$) {
  this.$_peer$.$__triggerSortEvent$($componentEvent$$440$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.sortAscendingAction", {$sortAscendingAction$:$AdfTreeUtils$$.prototype.$sortAscendingAction$});
$AdfTreeUtils$$.prototype.$sortDescendingAction$ = function $$AdfTreeUtils$$$$$sortDescendingAction$$($componentEvent$$441$$) {
  this.$_peer$.$__triggerSortEvent$($componentEvent$$441$$, $JSCompiler_alias_FALSE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.sortDescendingAction", {$sortDescendingAction$:$AdfTreeUtils$$.prototype.$sortDescendingAction$});
$AdfTreeUtils$$.prototype.$showAsTopAction$ = function $$AdfTreeUtils$$$$$showAsTopAction$$() {
  var $peer$$167$$ = this.$_peer$;
  $AdfFocusEvent$$.$queue$($peer$$167$$.$getComponent$(), $peer$$167$$.$__getCurrency$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.showAsTopAction", {$showAsTopAction$:$AdfTreeUtils$$.prototype.$showAsTopAction$});
$AdfTreeUtils$$.prototype.$expandAction$ = function $$AdfTreeUtils$$$$$expandAction$$() {
  var $currency$$4_peer$$168$$ = this.$_peer$, $component$$1780$$ = $currency$$4_peer$$168$$.$getComponent$(), $currency$$4_peer$$168$$ = $currency$$4_peer$$168$$.$__getCurrency$();
  $component$$1780$$.$isPathExpanded$($currency$$4_peer$$168$$) ? $component$$1780$$.$setDisclosedRowKey$($currency$$4_peer$$168$$, $JSCompiler_alias_FALSE$$) : $component$$1780$$.$setDisclosedRowKey$($currency$$4_peer$$168$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.expandAction", {$expandAction$:$AdfTreeUtils$$.prototype.$expandAction$});
$AdfTreeUtils$$.prototype.$expandAllBelowAction$ = function $$AdfTreeUtils$$$$$expandAllBelowAction$$() {
  var $peer$$169$$ = this.$_peer$;
  $peer$$169$$.$getComponent$();
  var $currency$$5$$ = $peer$$169$$.$__getCurrency$();
  $peer$$169$$.$discloseAll$($currency$$5$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.expandAllBelowAction", {$expandAllBelowAction$:$AdfTreeUtils$$.prototype.$expandAllBelowAction$});
$AdfTreeUtils$$.prototype.$collapseAllBelowAction$ = function $$AdfTreeUtils$$$$$collapseAllBelowAction$$() {
  var $peer$$170$$ = this.$_peer$;
  $peer$$170$$.$getComponent$();
  var $currency$$6$$ = $peer$$170$$.$__getCurrency$();
  $peer$$170$$.$discloseAll$($currency$$6$$, $JSCompiler_alias_FALSE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.collapseAllBelowAction", {$collapseAllBelowAction$:$AdfTreeUtils$$.prototype.$collapseAllBelowAction$});
$AdfTreeUtils$$.prototype.$setupDefaultRowContextMenu$ = function $$AdfTreeUtils$$$$$setupDefaultRowContextMenu$$($id$$363_isLeaf$$4$$, $isExpanded$$12$$, $nodeDepth$$3$$, $isMultiRoot$$3$$, $isFocusRow$$3$$) {
  var $component$$1783$$ = this.$_peer$.$getComponent$(), $clientId$$431$$ = $component$$1783$$.$getClientId$(), $isContextMenuSelect$$1$$ = $component$$1783$$.getContextMenuSelect();
  this.$updateContextMenu$($id$$363_isLeaf$$4$$, $isExpanded$$12$$, $nodeDepth$$3$$, $isMultiRoot$$3$$, $isContextMenuSelect$$1$$, $isFocusRow$$3$$);
  this.$addContextMenuEventListeners$();
  $id$$363_isLeaf$$4$$ = this.$createComponentSubId$($clientId$$431$$, $AdfTreeUtils$$.$_DEFAULT_CONTEXT_MENU_POPUP_ID$);
  return $component$$1783$$.$findComponent$($id$$363_isLeaf$$4$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.setupDefaultRowContextMenu", {$setupDefaultRowContextMenu$:$AdfTreeUtils$$.prototype.$setupDefaultRowContextMenu$});
$AdfTreeUtils$$.prototype.$createComponentSubId$ = function $$AdfTreeUtils$$$$$createComponentSubId$$($clientId$$432$$, $name$$100$$) {
  return($clientId$$432$$ + "_" + $name$$100$$).replace(/:/g, "_")
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.createComponentSubId", {$createComponentSubId$:$AdfTreeUtils$$.prototype.$createComponentSubId$});
$AdfTreeUtils$$.prototype.$clearCachedContextMenuItems$ = function $$AdfTreeUtils$$$$$clearCachedContextMenuItems$$() {
  this.$shouldResetMenuEventListeners$() && (this.$_contextMenuItems$ = $JSCompiler_alias_NULL$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.clearCachedContextMenuItems", {$clearCachedContextMenuItems$:$AdfTreeUtils$$.prototype.$clearCachedContextMenuItems$});
$AdfTreeUtils$$.prototype.$findContextMenuItems$ = function $$AdfTreeUtils$$$$$findContextMenuItems$$() {
  if(!this.$_contextMenuItems$) {
    var $container$$40$$ = this.$findMenuItemContainer$();
    if($container$$40$$) {
      var $clientId$$433$$ = this.$_peer$.$getComponent$().$getClientId$(), $contextMenuItems$$ = {};
      $contextMenuItems$$.expandItem = $container$$40$$.$findComponent$(this.$createComponentSubId$($clientId$$433$$, $AdfTreeUtils$$.$_EXPAND_ID$));
      $contextMenuItems$$.expandAllBelowItem = $container$$40$$.$findComponent$(this.$createComponentSubId$($clientId$$433$$, $AdfTreeUtils$$.$_EXPAND_ALL_BELOW_ID$));
      $contextMenuItems$$.collapseAllBelowItem = $container$$40$$.$findComponent$(this.$createComponentSubId$($clientId$$433$$, $AdfTreeUtils$$.$_COLLAPSE_ALL_BELOW_ID$));
      $contextMenuItems$$.showAsTopItem = $container$$40$$.$findComponent$(this.$createComponentSubId$($clientId$$433$$, $AdfTreeUtils$$.$_SHOW_AS_TOP_ID$));
      this.$_contextMenuItems$ = $contextMenuItems$$
    }
  }
  return this.$_contextMenuItems$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.findContextMenuItems", {$findContextMenuItems$:$AdfTreeUtils$$.prototype.$findContextMenuItems$});
$AdfTreeUtils$$.prototype.$updateContextMenu$ = function $$AdfTreeUtils$$$$$updateContextMenu$$($isLeaf$$5$$, $isExpanded$$13$$, $nodeDepth$$4$$, $isMultiRoot$$4$$, $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$, $isFocusRow$$4$$) {
  var $JSCompiler_temp$$170_prop$$inline_4619_selCount$$;
  if($contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$) {
    $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$ = this.$_peer$.$getComponent$().getSelectedRowKeys();
    var $count$$inline_4618_expandMenuItem$$1$$ = 0;
    for($JSCompiler_temp$$170_prop$$inline_4619_selCount$$ in $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$) {
      $count$$inline_4618_expandMenuItem$$1$$++
    }
    $JSCompiler_temp$$170_prop$$inline_4619_selCount$$ = $count$$inline_4618_expandMenuItem$$1$$
  }else {
    $JSCompiler_temp$$170_prop$$inline_4619_selCount$$ = 1
  }
  if($contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$ = this.$findContextMenuItems$()) {
    if($count$$inline_4618_expandMenuItem$$1$$ = $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$expandItem$) {
      $count$$inline_4618_expandMenuItem$$1$$.setProperty("disabled", $isLeaf$$5$$ || 1 < $JSCompiler_temp$$170_prop$$inline_4619_selCount$$), $count$$inline_4618_expandMenuItem$$1$$.setSelected(!$isExpanded$$13$$)
    }
    $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$expandAllBelowItem$ && $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$expandAllBelowItem$.setProperty("disabled", $isLeaf$$5$$ || 1 < $JSCompiler_temp$$170_prop$$inline_4619_selCount$$);
    $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$collapseAllBelowItem$ && $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$collapseAllBelowItem$.setProperty("disabled", $isLeaf$$5$$ || !$isExpanded$$13$$ || 1 < $JSCompiler_temp$$170_prop$$inline_4619_selCount$$);
    $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$showAsTopItem$ && $contextMenuItems$$1_isContextMenuSelect$$2_selKeys$$inline_4617$$.$showAsTopItem$.setProperty("disabled", $isFocusRow$$4$$ || !this.$hasPathStamp$() || $isLeaf$$5$$ || 1 < $JSCompiler_temp$$170_prop$$inline_4619_selCount$$ || !$isMultiRoot$$4$$ && 0 == $nodeDepth$$4$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.updateContextMenu", {$updateContextMenu$:$AdfTreeUtils$$.prototype.$updateContextMenu$});
$AdfTreeUtils$$.prototype.$findMenuItemContainer$ = function $$AdfTreeUtils$$$$$findMenuItemContainer$$() {
  var $component$$1786$$ = this.$_peer$.$getComponent$(), $popupId$$82$$ = $component$$1786$$.getContextMenuId();
  return $popupId$$82$$ != $JSCompiler_alias_NULL$$ ? $component$$1786$$.$findComponent$($popupId$$82$$) : $component$$1786$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.findMenuItemContainer", {$findMenuItemContainer$:$AdfTreeUtils$$.prototype.$findMenuItemContainer$});
$AdfTreeUtils$$.prototype.$addContextMenuEventListeners$ = function $$AdfTreeUtils$$$$$addContextMenuEventListeners$$() {
  var $component$$1787_contextMenuItemCallback$$ = this.$_peer$.$getComponent$();
  this.$shouldResetMenuEventListeners$() && this.$removeContextMenuEventListeners$($component$$1787_contextMenuItemCallback$$);
  if(!this.$_contextMenuItemCallback$) {
    var $component$$1787_contextMenuItemCallback$$ = this.$_contextMenuItemCallback$ = this.$createCallback$(this.$_handleComponentAction$), $contextMenuItems$$2$$ = this.$findContextMenuItems$();
    $contextMenuItems$$2$$ && ($contextMenuItems$$2$$.$showAsTopItem$ && $contextMenuItems$$2$$.$showAsTopItem$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $component$$1787_contextMenuItemCallback$$), $contextMenuItems$$2$$.$expandItem$ && $contextMenuItems$$2$$.$expandItem$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $component$$1787_contextMenuItemCallback$$), $contextMenuItems$$2$$.$expandAllBelowItem$ && $contextMenuItems$$2$$.$expandAllBelowItem$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, 
    $component$$1787_contextMenuItemCallback$$), $contextMenuItems$$2$$.$collapseAllBelowItem$ && $contextMenuItems$$2$$.$collapseAllBelowItem$.addEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $component$$1787_contextMenuItemCallback$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.addContextMenuEventListeners", {$addContextMenuEventListeners$:$AdfTreeUtils$$.prototype.$addContextMenuEventListeners$});
$AdfTreeUtils$$.prototype.$removeContextMenuEventListeners$ = function $$AdfTreeUtils$$$$$removeContextMenuEventListeners$$() {
  var $contextMenuItemCallback$$1$$ = this.$_contextMenuItemCallback$;
  if($contextMenuItemCallback$$1$$) {
    var $contextMenuItems$$3$$ = this.$findContextMenuItems$();
    $contextMenuItems$$3$$ && ($contextMenuItems$$3$$.$showAsTopItem$ && $contextMenuItems$$3$$.$showAsTopItem$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $contextMenuItemCallback$$1$$), $contextMenuItems$$3$$.$expandItem$ && $contextMenuItems$$3$$.$expandItem$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $contextMenuItemCallback$$1$$), $contextMenuItems$$3$$.$expandAllBelowItem$ && $contextMenuItems$$3$$.$expandAllBelowItem$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, 
    $contextMenuItemCallback$$1$$), $contextMenuItems$$3$$.$collapseAllBelowItem$ && $contextMenuItems$$3$$.$collapseAllBelowItem$.removeEventListener($AdfActionEvent$$.$ACTION_EVENT_TYPE$, $contextMenuItemCallback$$1$$));
    this.$_contextMenuItemCallback$ = $JSCompiler_alias_NULL$$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.removeContextMenuEventListeners", {$removeContextMenuEventListeners$:$AdfTreeUtils$$.prototype.$removeContextMenuEventListeners$});
$AdfTreeUtils$$.prototype.$shouldResetMenuEventListeners$ = function $$AdfTreeUtils$$$$$shouldResetMenuEventListeners$$() {
  if(this.$_resetMenuItems$ == $JSCompiler_alias_VOID$$) {
    var $component$$1789_popup$$56$$ = this.$_peer$.$getComponent$(), $menuId$$12$$ = $component$$1789_popup$$56$$.getContextMenuId();
    $menuId$$12$$ && ($component$$1789_popup$$56$$ = $component$$1789_popup$$56$$.$findComponent$($menuId$$12$$), $component$$1789_popup$$56$$ == $JSCompiler_alias_NULL$$ && ($component$$1789_popup$$56$$ = $AdfPage$$.$PAGE$.$findComponent$($menuId$$12$$)), $component$$1789_popup$$56$$ && (this.$_resetMenuItems$ = $JSCompiler_alias_TRUE$$))
  }
  return this.$_resetMenuItems$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.shouldResetMenuEventListeners", {$shouldResetMenuEventListeners$:$AdfTreeUtils$$.prototype.$shouldResetMenuEventListeners$});
$AdfTreeUtils$$.prototype.$_handleComponentAction$ = function $$AdfTreeUtils$$$$$_handleComponentAction$$($componentEvent$$446$$) {
  var $clientId$$434$$ = $componentEvent$$446$$.getSource().$getClientId$(), $actionMap$$3$$ = $AdfTreeUtils$$.$_ACTION_HANDLER_MAP$, $key$$102$$;
  for($key$$102$$ in $actionMap$$3$$) {
    if(0 <= $clientId$$434$$.indexOf($key$$102$$)) {
      $actionMap$$3$$[$key$$102$$].call(this, $componentEvent$$446$$);
      $componentEvent$$446$$.cancel();
      break
    }
  }
};
$AdfTreeUtils$$.prototype.$isSelectorPopupVisible$ = $JSCompiler_get$$("$_selectorPopupVisible$");
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.isSelectorPopupVisible", {$isSelectorPopupVisible$:$AdfTreeUtils$$.prototype.$isSelectorPopupVisible$});
$AdfTreeUtils$$.prototype.$hideSelectorPopup$ = function $$AdfTreeUtils$$$$$hideSelectorPopup$$() {
  var $component$$1790_popup$$57$$ = this.$_peer$.$getComponent$();
  this.$_selectorPopupVisible$ && ($component$$1790_popup$$57$$ = $component$$1790_popup$$57$$.$findComponent$($AdfTreeUtils$$.$_SELECTOR_POPUP_ID$), this.$_popupVisible$ = $JSCompiler_alias_FALSE$$, $component$$1790_popup$$57$$.$hide$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.hideSelectorPopup", {$hideSelectorPopup$:$AdfTreeUtils$$.prototype.$hideSelectorPopup$});
$AdfTreeUtils$$.prototype.$showSelectorPopup$ = function $$AdfTreeUtils$$$$$showSelectorPopup$$() {
  if(!this.$_selectorPopupVisible$) {
    var $peer$$173$$ = this.$_peer$, $component$$1791_popup$$58$$ = $peer$$173$$.$getComponent$(), $clientId$$435_selectorId$$ = $component$$1791_popup$$58$$.$getClientId$(), $component$$1791_popup$$58$$ = $component$$1791_popup$$58$$.$findComponent$($AdfTreeUtils$$.$_SELECTOR_POPUP_ID$);
    this.$_selectorPopupClosedCallback$ || (this.$_selectorPopupClosedCallback$ = this.$createCallback$(this.$_handleSelectorPopupClosed$), $component$$1791_popup$$58$$.addEventListener($AdfPopupClosedEvent$$.$POPUP_CLOSED_EVENT_TYPE$, this.$_selectorPopupClosedCallback$));
    var $hints$$101$$ = {};
    $hints$$101$$[AdfRichPopup.$HINT_ALIGN$] = AdfRichPopup.$ALIGN_BEFORE_START$;
    $clientId$$435_selectorId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$435_selectorId$$, $AdfTreeUtils$$.$_SELECTOR_ICON_ID$);
    $hints$$101$$[AdfRichPopup.$HINT_ALIGN_ID$] = $clientId$$435_selectorId$$;
    $AdfPage$$.$PAGE$.$addPartialTargets$($peer$$173$$.$getComponent$());
    this.$_selectorPopupVisible$ = $JSCompiler_alias_TRUE$$;
    $component$$1791_popup$$58$$.show($hints$$101$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.showSelectorPopup", {$showSelectorPopup$:$AdfTreeUtils$$.prototype.$showSelectorPopup$});
$AdfTreeUtils$$.prototype.$_handleSelectorPopupClosed$ = function $$AdfTreeUtils$$$$$_handleSelectorPopupClosed$$($componentEvent$$447_popup$$59$$) {
  $componentEvent$$447_popup$$59$$ = $componentEvent$$447_popup$$59$$.getSource();
  this.$_selectorPopupVisible$ = $JSCompiler_alias_FALSE$$;
  $componentEvent$$447_popup$$59$$.removeEventListener($AdfPopupClosedEvent$$.$POPUP_CLOSED_EVENT_TYPE$, this.$_selectorPopupClosedCallback$);
  this.$_selectorPopupClosedCallback$ = $JSCompiler_alias_NULL$$
};
$AdfTreeUtils$$.prototype.$getParentWithAttribute$ = function $$AdfTreeUtils$$$$$getParentWithAttribute$$($domElem$$11_target$$214$$, $attributeName$$2$$, $attributeValue$$3$$) {
  for(var $agent$$707$$ = $AdfAgent$$.$AGENT$, $elem$$74$$ = $JSCompiler_alias_NULL$$, $rootElem$$10$$ = this.$_peer$.$getDomElement$();!$elem$$74$$ && $domElem$$11_target$$214$$ && $domElem$$11_target$$214$$ != $rootElem$$10$$.parent && 1 == $domElem$$11_target$$214$$.nodeType;) {
    $agent$$707$$.getAttribute($domElem$$11_target$$214$$, $attributeName$$2$$) == $attributeValue$$3$$ ? $elem$$74$$ = $domElem$$11_target$$214$$ : $domElem$$11_target$$214$$ = $domElem$$11_target$$214$$.parentNode
  }
  return $elem$$74$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.getParentWithAttribute", {$getParentWithAttribute$:$AdfTreeUtils$$.prototype.$getParentWithAttribute$});
$AdfTreeUtils$$.prototype.$getCurrencyFromDomElement$ = function $$AdfTreeUtils$$$$$getCurrencyFromDomElement$$($currElement$$26_domEvent$$96$$, $agent$$708_domElement$$538$$, $rootDomElement$$27$$, $attr$$6$$) {
  $AdfAssert$$.$assertDomElement$($agent$$708_domElement$$538$$);
  $currElement$$26_domEvent$$96$$ = $agent$$708_domElement$$538$$;
  $agent$$708_domElement$$538$$ = $AdfAgent$$.$getAgent$();
  if($currElement$$26_domEvent$$96$$ == $JSCompiler_alias_NULL$$ || 1 != $currElement$$26_domEvent$$96$$.nodeType) {
    return $JSCompiler_alias_NULL$$
  }
  for(var $rowKey$$153$$ = $agent$$708_domElement$$538$$.getAttribute($currElement$$26_domEvent$$96$$, $attr$$6$$);$rowKey$$153$$ == $JSCompiler_alias_NULL$$;) {
    if($currElement$$26_domEvent$$96$$ == $JSCompiler_alias_NULL$$ || $currElement$$26_domEvent$$96$$ == $rootDomElement$$27$$) {
      return $JSCompiler_alias_NULL$$
    }
    $currElement$$26_domEvent$$96$$ = $currElement$$26_domEvent$$96$$.parentNode;
    if($currElement$$26_domEvent$$96$$ == $JSCompiler_alias_NULL$$ || 1 != $currElement$$26_domEvent$$96$$.nodeType) {
      return $JSCompiler_alias_NULL$$
    }
    $rowKey$$153$$ = $agent$$708_domElement$$538$$.getAttribute($currElement$$26_domEvent$$96$$, $attr$$6$$)
  }
  return $rowKey$$153$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.getCurrencyFromDomElement", {$getCurrencyFromDomElement$:$AdfTreeUtils$$.prototype.$getCurrencyFromDomElement$});
$AdfTreeUtils$$.prototype.$findSelectorItemAndRowKey$ = function $$AdfTreeUtils$$$$$findSelectorItemAndRowKey$$($cells$$29_element$$349_item$$48_tables$$2$$) {
  var $attrs$$60$$ = [], $agent$$709_attr$$7$$ = $AdfAgent$$.$AGENT$;
  $cells$$29_element$$349_item$$48_tables$$2$$ = $cells$$29_element$$349_item$$48_tables$$2$$.getElementsByTagName("TABLE");
  if(0 < $cells$$29_element$$349_item$$48_tables$$2$$.length && ($cells$$29_element$$349_item$$48_tables$$2$$ = $cells$$29_element$$349_item$$48_tables$$2$$[0].rows[0].cells, $cells$$29_element$$349_item$$48_tables$$2$$ = $cells$$29_element$$349_item$$48_tables$$2$$[$cells$$29_element$$349_item$$48_tables$$2$$.length - 1].firstChild)) {
    if($agent$$709_attr$$7$$ = $agent$$709_attr$$7$$.getAttribute($cells$$29_element$$349_item$$48_tables$$2$$, $AdfTreeUtils$$.$_HSELECTOR_ROW_KEY$)) {
      $attrs$$60$$[0] = $agent$$709_attr$$7$$, $attrs$$60$$[1] = $cells$$29_element$$349_item$$48_tables$$2$$
    }
  }
  return $attrs$$60$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.findSelectorItemAndRowKey", {$findSelectorItemAndRowKey$:$AdfTreeUtils$$.prototype.$findSelectorItemAndRowKey$});
$AdfTreeUtils$$.prototype.$getSelectorSelectedRowKey$ = function $$AdfTreeUtils$$$$$getSelectorSelectedRowKey$$() {
  var $rowKey$$154$$ = $JSCompiler_alias_NULL$$, $popupDB_popupDBId_popupId$$83_popupItems$$ = this.$_peer$.$getComponent$().$getClientId$() + ":" + $AdfTreeUtils$$.$_SELECTOR_POPUP_ID$, $popupDB_popupDBId_popupId$$83_popupItems$$ = $AdfRichUIPeer$$.$CreateSubId$($popupDB_popupDBId_popupId$$83_popupItems$$, "db");
  if($popupDB_popupDBId_popupId$$83_popupItems$$ = $AdfAgent$$.$AGENT$.getElementById($popupDB_popupDBId_popupId$$83_popupItems$$)) {
    for(var $popupDB_popupDBId_popupId$$83_popupItems$$ = $popupDB_popupDBId_popupId$$83_popupItems$$.childNodes, $itemCount$$7$$ = $popupDB_popupDBId_popupId$$83_popupItems$$.length, $i$$623$$ = 0;$i$$623$$ < $itemCount$$7$$;$i$$623$$++) {
      var $attrs$$61_popupItem$$ = $popupDB_popupDBId_popupId$$83_popupItems$$[$i$$623$$];
      if(0 <= $attrs$$61_popupItem$$.className.indexOf($AdfDhtmlTreeTablePeer$$.$_SELECTED_CLASS$) && ($attrs$$61_popupItem$$ = this.$findSelectorItemAndRowKey$($attrs$$61_popupItem$$), 0 < $attrs$$61_popupItem$$.length)) {
        $rowKey$$154$$ = $attrs$$61_popupItem$$[0];
        break
      }
    }
  }
  return $rowKey$$154$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.getSelectorSelectedRowKey", {$getSelectorSelectedRowKey$:$AdfTreeUtils$$.prototype.$getSelectorSelectedRowKey$});
$AdfTreeUtils$$.prototype.$selectSelectorPopupItem$ = function $$AdfTreeUtils$$$$$selectSelectorPopupItem$$($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$) {
  var $popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$ = this.$_peer$.$getComponent$().$getClientId$() + ":" + $AdfTreeUtils$$.$_SELECTOR_POPUP_ID$, $popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$, "db");
  if($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$ = $AdfAgent$$.$AGENT$.getElementById($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$)) {
    for(var $popupItems$$1$$ = $popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$.childNodes, $itemCount$$8$$ = $popupItems$$1$$.length, $i$$624$$ = 0;$i$$624$$ < $itemCount$$8$$;$i$$624$$++) {
      if($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$ = $popupItems$$1$$[$i$$624$$], 0 <= $popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$.className.indexOf($AdfDhtmlTreeTablePeer$$.$_SELECTED_CLASS$)) {
        if($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$) {
          if($i$$624$$ < $itemCount$$8$$ - 1) {
            $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$ = $popupItems$$1$$[$i$$624$$ + 1];
            $AdfDomUtils$$.$removeCSSClassName$($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$);
            $AdfDomUtils$$.$addCSSClassName$($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$);
            ($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$ = $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$.getElementsByTagName("A")) && $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$[0].focus();
            break
          }
        }else {
          if(0 < $i$$624$$) {
            $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$ = $popupItems$$1$$[$i$$624$$ - 1];
            $AdfDomUtils$$.$removeCSSClassName$($popupDB$$1_popupDBId$$1_popupId$$84_popupItem$$1$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$);
            $AdfDomUtils$$.$addCSSClassName$($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$, $AdfDhtmlTableBasePeer$$.$_SELECTED_CLASS$);
            ($anchor$$20_lastPopupItem_next$$5_nextPopupItem$$ = $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$.getElementsByTagName("A")) && $anchor$$20_lastPopupItem_next$$5_nextPopupItem$$[0].focus();
            break
          }
        }
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.selectSelectorPopupItem", {$selectSelectorPopupItem$:$AdfTreeUtils$$.prototype.$selectSelectorPopupItem$});
$AdfTreeUtils$$.prototype.$getSelectorItemRowKey$ = function $$AdfTreeUtils$$$$$getSelectorItemRowKey$$($nativeEvent$$68$$, $target$$215$$) {
  var $peer$$177$$ = this.$_peer$, $agent$$710$$ = $AdfAgent$$.$AGENT$;
  "A" == $target$$215$$.tagName && $agent$$710$$.getAttribute($target$$215$$, "_afrSelRw") && ($target$$215$$ = $target$$215$$.firstChild);
  return this.$getCurrencyFromDomElement$($nativeEvent$$68$$, $target$$215$$, $peer$$177$$.$getDomElement$(), $AdfTreeUtils$$.$_HSELECTOR_ROW_KEY$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.getSelectorItemRowKey", {$getSelectorItemRowKey$:$AdfTreeUtils$$.prototype.$getSelectorItemRowKey$});
$AdfTreeUtils$$.prototype.$isMultiRoot$ = function $$AdfTreeUtils$$$$$isMultiRoot$$() {
  return this.$_peer$.$getComponent$().$getProperty$($AdfDhtmlTreeTablePeer$$.$TREE_FLAGS_ATTR$) & $AdfTreeUtils$$.$_IS_MULTI_ROOT_BIT$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.isMultiRoot", {$isMultiRoot$:$AdfTreeUtils$$.prototype.$isMultiRoot$});
$AdfTreeUtils$$.prototype.$hasPathStamp$ = function $$AdfTreeUtils$$$$$hasPathStamp$$() {
  return this.$_peer$.$getComponent$().$getProperty$($AdfDhtmlTreeTablePeer$$.$TREE_FLAGS_ATTR$) & $AdfTreeUtils$$.$_HAS_PATH_STAMP_BIT$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.hasPathStamp", {$hasPathStamp$:$AdfTreeUtils$$.prototype.$hasPathStamp$});
$AdfTreeUtils$$.prototype.$getSelectorIcon$ = function $$AdfTreeUtils$$$$$getSelectorIcon$$() {
  var $clientId$$438_selectorId$$1$$ = this.$_peer$.$getComponent$().$getClientId$(), $clientId$$438_selectorId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$438_selectorId$$1$$, $AdfTreeUtils$$.$_SELECTOR_ICON_ID$);
  return document.getElementById($clientId$$438_selectorId$$1$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.getSelectorIcon", {$getSelectorIcon$:$AdfTreeUtils$$.prototype.$getSelectorIcon$});
$AdfTreeUtils$$.prototype.$isSelectorIconVisible$ = function $$AdfTreeUtils$$$$$isSelectorIconVisible$$() {
  return this.$_peer$.$getComponent$().$getProperty$($AdfDhtmlTreeTablePeer$$.$TREE_FLAGS_ATTR$) & $AdfTreeUtils$$.$_IS_SELECTOR_ICON_VISIBLE$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.isSelectorIconVisible", {$isSelectorIconVisible$:$AdfTreeUtils$$.prototype.$isSelectorIconVisible$});
$AdfTreeUtils$$.prototype.$setAssociatedDisclosedRowKeys$ = function $$AdfTreeUtils$$$$$setAssociatedDisclosedRowKeys$$($newValue$$166$$, $oldValue$$113$$) {
  var $buddyPeer$$3_peer$$182$$ = this.$_peer$, $buddyComponent$$6$$ = $buddyPeer$$3_peer$$182$$.$GetAssociatedComponent$();
  if($buddyComponent$$6$$ && $JSCompiler_alias_TRUE$$ != $buddyPeer$$3_peer$$182$$.$_ignoreAssociatedDisclosedRowKeys$) {
    var $buddyPeer$$3_peer$$182$$ = $buddyComponent$$6$$.$getPeer$(), $collapseItems$$1$$ = $AdfCollections$$.$removeAll$($oldValue$$113$$, $newValue$$166$$), $expandItems$$1$$ = $AdfCollections$$.$removeAll$($newValue$$166$$, $oldValue$$113$$), $oldState$$4$$ = $buddyComponent$$6$$.getDisclosedRowKeys(), $newState$$2$$ = {};
    $AdfCollections$$.$copyInto$($newState$$2$$, $oldState$$4$$);
    for(var $path$$12$$ in $collapseItems$$1$$) {
      delete $newState$$2$$[$path$$12$$]
    }
    for($path$$12$$ in $expandItems$$1$$) {
      $newState$$2$$[$path$$12$$] = $JSCompiler_alias_TRUE$$
    }
    try {
      $buddyPeer$$3_peer$$182$$.$_ignoreAssociatedDisclosedRowKeys$ = $JSCompiler_alias_TRUE$$;
      $buddyComponent$$6$$.setDisclosedRowKeys($newState$$2$$);
      var $disclosureEvent$$5$$ = $AdfRowKeySetChangeEvent$$.$createRowKeySetChangeEvent$($buddyComponent$$6$$, $AdfRowDisclosureEvent$$.$ROW_DISCLOSURE_EVENT_TYPE$, $oldValue$$113$$, $newValue$$166$$);
      $disclosureEvent$$5$$ && $disclosureEvent$$5$$.$queue$()
    }finally {
      $buddyPeer$$3_peer$$182$$.$_ignoreAssociatedDisclosedRowKeys$ = $JSCompiler_alias_FALSE$$
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfTreeUtils.prototype.setAssociatedDisclosedRowKeys", {$setAssociatedDisclosedRowKeys$:$AdfTreeUtils$$.prototype.$setAssociatedDisclosedRowKeys$});
