(function($dvt$$1$$) {
  function $DvtSearchResultsPanel$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $callbackObj$$18$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $callbackObj$$18$$);
  }
  function $DvtSearchPanelEventManager$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  }
  function $DvtSearchResultsNodeData$$() {
    this.$_id$ = null;
    this.$_elAttributes$ = [];
  }
  function $DvtItemListEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$);
    this.$_index$ = $DvtScrollbarBackground$$;
  }
  function $DvtScrollableContainer$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $maxH$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $maxH$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$);
  }
  function $DvtScrollbarThumb$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtScrollbarBackground$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  }
  function $DvtScrollbarArrow$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtScrollbar$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $h$$6$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $styleMap$$38$$, $id$$55$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $h$$6$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $styleMap$$38$$, $id$$55$$);
  }
  function $DvtScrollbarEvent$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $valueDelta$$, $DvtAdfDiagramDragSource$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $valueDelta$$, $DvtAdfDiagramDragSource$$);
  }
  function $DvtPaletteDefaults$$() {
    this.Init({skyros:$DvtPaletteDefaults$$.$VERSION_1$, alta:$DvtPaletteDefaults$$.$SKIN_ALTA$});
  }
  function $DvtPaletteSelectionHandler$$() {
    this.Init();
  }
  function $DvtPaletteSection$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  }
  function $DvtAfPaletteLink$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_drawableContent$ = $dvt$$1$$;
    this.$_styleMap$ = $DvtScrollbarBackground$$;
    this.Init();
  }
  function $DvtPaletteLinkItem$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$14$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$14$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$);
  }
  function $DvtPaletteStickyItem$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$13$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$13$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$);
  }
  function $DvtPaletteItem$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$12$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $label$$12$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$);
  }
  function $DvtPaletteKeyboardHandler$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtPaletteEventManager$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$setSelectionHandler$(new $DvtPaletteSelectionHandler$$);
    this.$_palette$ = $DvtScrollbarEvent$$;
  }
  function $DvtAdfDiagramJsonUtils$$() {
  }
  function $DvtAdfDiagramEditorManager$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_context$ = $dvt$$1$$;
    this.$_diagram$ = $DvtScrollbarBackground$$;
    this.$_tempLinks$ = [];
    this.$_fakeLinks$ = [];
    this.$_fakeNodes$ = [];
    this.$_dragItems$ = [];
  }
  function $DvtAdfDiagramDropTarget$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  }
  function $DvtAdfDiagramDragSource$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtAdfDiagramNodeEndpoint$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  }
  function $DvtAdfDiagramLinkEndpoint$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $id$$43$$, $DvtAdfDiagramDragSource$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $id$$43$$, $DvtAdfDiagramDragSource$$);
  }
  function $DvtAdfDiagramAutomation$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  }
  function $DvtAdfDiagramClientBehaviorHandler$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$_diagram$ = $DvtScrollbar$$;
    this.$_suspendAnimation$ = !1;
  }
  function $DvtAdfDiagramStackBadgeHandler$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtAdfDiagramKeyboardHandler$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtAdfDiagramNodeExpandHandler$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  }
  function $DvtAdfDiagramLinkData$$() {
    this.Init();
  }
  function $DvtAdfDiagramLayoutContainer$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  }
  function $DvtAdfDiagramLayoutCallback$$() {
    this.Init();
  }
  function $DvtAdfDiagramLinkAnimFadeIn$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  }
  function $DvtAdfDiagramFlyOutButton$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $tooltip$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bRoundTopRight$$, $bRoundBottomLeft$$, $bRoundBottomRight$$, $DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramDropTarget$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $tooltip$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bRoundTopRight$$, $bRoundBottomLeft$$, $bRoundBottomRight$$, $DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramDropTarget$$);
  }
  function $DvtAdfDiagramDataAnimationHandler$$($dvt$$1$$) {
    this.Init($dvt$$1$$, null);
  }
  function $DvtAdfDiagramContainerBadgeHandler$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  }
  $dvt$$1$$.$AdfDiagram$ = function $$dvt$$1$$$$AdfDiagram$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagram$, $dvt$$1$$.$BaseDiagram$, "dvt.AdfDiagram");
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_EXPLODE$ = "initAnimExplode";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_ELASTIC_EXPLODE$ = "initAnimElasticExplode";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_GROW_LINKS$ = "initAnimGrowLinks";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_POP$ = "initAnimPop";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_EXPLODE_GROW_LINKS$ = "initAnimExplodeGrowLinks";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_ELASTIC_EXPLODE_GROW_LINKS$ = "initAnimElasticExplodeGrowLinks";
  $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_POP_GROW_LINKS$ = "initAnimPopGrowLinks";
  $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_INTERSECT$ = "isolateTypeIntersect";
  $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_UNION$ = "isolateTypeUnion";
  $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_REPLACE$ = "isolateTypeReplace";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_CONTROLPANEL$ = "controlPanelResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_LEGEND$ = "legendResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_OVERVIEW$ = "overviewResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_PALETTE$ = "paletteResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_PANELDRAWER$ = "panelDrawerResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_SEARCHPANEL$ = "searchPanelResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_TRANSIENT_TOOLBAR$ = "transientToolbarResources";
  $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_NODE$ = "nodeResources";
  $dvt$$1$$.$AdfDiagram$.$OVERVIEW_MAX_WIDTH$ = 145;
  $dvt$$1$$.$AdfDiagram$.$OVERVIEW_MAX_HEIGHT$ = 118;
  $dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$ = "overviewStyle";
  $dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$ = "overviewContainerStyle";
  $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$ = 0;
  $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$ = 1;
  $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$ = 2;
  $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DIS$ = 3;
  $dvt$$1$$.$AdfDiagram$.$_HIGHLIGHT_ANIM_DELAY$ = .15;
  $dvt$$1$$.$AdfDiagram$.$UNGROUPED_ID$ = "__UNGROUPED__";
  $dvt$$1$$.$AdfDiagram$.$_SEARCH_PANEL_POS_PADDING$ = 5;
  $dvt$$1$$.$AdfDiagram$.$LAYOUT_KEY$ = "layoutInfo";
  $dvt$$1$$.$AdfDiagram$.$ROW_DISCLOSURE_KEY$ = "rowDisclosureInfo";
  $dvt$$1$$.$AdfDiagram$.$HAS_ROW_DISCLOSURE_LISTENER_KEY$ = "hasRowDisclosureListener";
  $dvt$$1$$.$AdfDiagram$.$HAS_DRILL_LISTENER_KEY$ = "hasDrillListener";
  $dvt$$1$$.$AdfDiagram$.$ISOLATED_NODES_KEY$ = "isolatedNodesInfo";
  $dvt$$1$$.$AdfDiagram$.$GROUP_BY_KEY$ = "groupByInfo";
  $dvt$$1$$.$AdfDiagram$.$GROUP_BY_UNGROUPED_KEY$ = "groupByUngroupedInfo";
  $dvt$$1$$.$AdfDiagram$.$GROUP_BY_HIDDEN_KEY$ = "groupByHiddenInfo";
  $dvt$$1$$.$AdfDiagram$.$ROOT_ROW_KEY$ = "rootRowKeyInfo";
  $dvt$$1$$.$AdfDiagram$.$PREVIEW_ROW_KEY$ = "previewRowKey";
  $dvt$$1$$.$AdfDiagram$.$PREVIEW_PAN_ZOOM_KEY$ = "previewPanZoom";
  $dvt$$1$$.$AdfDiagram$.$_NODE_DETAIL_DELAY$ = 800;
  $dvt$$1$$.$AdfDiagram$.$PANELCARD_FETCH_EVENT$ = "hv_pcfet";
  $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ = "$afr$";
  $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$ = "syncCards";
  $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$ = 44;
  $dvt$$1$$.$AdfDiagram$.$_WIDE_BUTTON_SIZE$ = 90;
  $dvt$$1$$.$AdfDiagram$.$_RERENDER_WAIT_TIME_DESKTOP$ = 250;
  $dvt$$1$$.$AdfDiagram$.$_RERENDER_WAIT_TIME_MOBILE$ = 350;
  $dvt$$1$$.$AdfDiagram$.newInstance = function $$dvt$$1$$$$AdfDiagram$$newInstance$($context$$2$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return new $dvt$$1$$.$AdfDiagram$($context$$2$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.Init = function $$dvt$$1$$$$AdfDiagram$$$Init$($context$$3$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $dvt$$1$$.$AdfDiagram$.$superclass$.Init.call(this, $context$$3$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? this.$RerenderWaitTime$ = $dvt$$1$$.$AdfDiagram$.$_RERENDER_WAIT_TIME_MOBILE$ : this.$RerenderWaitTime$ = $dvt$$1$$.$AdfDiagram$.$_RERENDER_WAIT_TIME_DESKTOP$;
    this.$EventManager$ = new $dvt$$1$$.$AdfDiagramEventManager$($context$$3$$, this.$_handleEvent$, this);
    this.$EventManager$.$addListeners$(this);
    this.$EventManager$.$addRolloverType$($dvt$$1$$.$AdfDiagramNode$);
    this.$EventManager$.$addRolloverType$($dvt$$1$$.$AdfDiagramLink$);
    this.$_dragSource$ = this.$CreateDragSource$($context$$3$$);
    new $DvtAdfDiagramDropTarget$$(this);
    this.$EventManager$.$setDragSource$(this.$_dragSource$);
    this.$EventManager$.$setKeyboardHandler$(new $DvtAdfDiagramKeyboardHandler$$(this, this.$EventManager$));
    this.$_nodes$ = {};
    this.$_nodesByRowIndex$ = {};
    this.$_arNodeIds$ = [];
    this.$_links$ = {};
    this.$_linksByRowIndex$ = {};
    this.$_arLinkIds$ = [];
    this.$_nodeDefs$ = {};
    this.$_linkDefs$ = {};
    this.$_layoutAttrs$ = this.$_layoutCallback$ = this.$_layout$ = null;
    this.$_rootNodes$ = [];
    this.$_linkHighlightBehavior$ = this.$_nodeHighlightBehavior$ = null;
    this.$_bNodeDetail$ = !1;
    this.$_dataChangeAnim$;
    this.$_bAnimTransition$ = !1;
    this.$_isolatedNodeMap$ = this.$_isolatedNodes$ = this.$_arHiddenAttrGrps$ = this.$_attrGrpsMap$ = this.$_arAttrGrps$ = null;
    this.$_readOnly$ = !0;
    this.$_overviewContent$ = this.$_overviewWindow$ = this.$_palette$ = this.$_legend$ = null;
    this.$_oldOverviewAlpha$ = this.$_oldLegendAlpha$ = 1;
    this.$_rolloverBehavior$ = null;
    this.$_bCrossedZoomThreshold$ = !1;
    this.$_highlightOverTimer$ = null;
    this.$_stackNodeMap$;
    this.$_nodeStackMap$;
    this.$_restoreButton$;
    this.$_oldDrillBreadcrumbs$ = this.$_drillBreadcrumbs$ = this.$_drilledNodePath$ = this.$_arCrossContainerLinkIds$ = null;
    this.$_fakeNodeDefCount$ = 0;
    this.$_linkCreateEnabled$ = this.$_nodeCreateEnabled$ = !0;
    this.$_ignoreRollover$ = !1;
    this.$_zoomingEnabled$ = this.$_panningEnabled$ = !0;
    this.$_transientToolbarDataId$ = this.$_searchPanel$ = this.$_panelDrawer$ = this.$_centerNode$ = this.$_showRestore$ = null;
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$CLICK$, this.$HandleClick$, !1, this);
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, this.$HandleMouseDown$, !1, this);
    this.$_stackPreviewNodeId$ = null;
    this.$_bKeyboardHoverDetails$ = !1;
    this.$_ovContentStyle$ = null;
    this.$_nodeStyles$ = {};
    this.$_linkStyles$ = {};
    this.$_cardCSSStyle$ = this.$_buttonBorderRadius$ = this.$_eventType$ = null;
    this.$_cardHeaderStyle$ = {};
    this.$_cardPrevButtonIcon$ = this.$_cardNextButtonIcon$ = this.$_cardTrainButtonActiveStyle$ = this.$_cardTrainButtonStyle$ = this.$_cardNavButtonActiveStyle$ = this.$_cardNavButtonHoverStyle$ = this.$_cardNavButtonStyle$ = null;
    this.$_cardIndexes$ = [];
    this.$_nodeAndLoadedCardsMap$ = {};
    this.$_visibleNodesByGroupDepth$ = null;
    this.$_bSyncCardOff$ = !1;
    this.$setDisplayedControls$($dvt$$1$$.$ControlPanel$.$CONTROLS_ALL$ & ~$dvt$$1$$.$ControlPanel$.$CONTROLS_CENTER_BUTTON$);
    this.$_showPopupBehaviors$ = null;
    this.$_interactionDisableCounter$ = 0;
    this.$_automationStatesMap$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setInteractionEnabled$ = function $$dvt$$1$$$$AdfDiagram$$$$setInteractionEnabled$$($dvt$$1$$) {
    $dvt$$1$$ = $dvt$$1$$ ? this.$_interactionDisableCounter$ - 1 : this.$_interactionDisableCounter$ + 1;
    0 == this.$_interactionDisableCounter$ && 1 == $dvt$$1$$ ? (this.$EventManager$.$removeListeners$(this), this.$_panZoomCanvas$.$setInteractionEnabled$(!1), this.$_palette$ && this.$_palette$.$setInteractionEnabled$(!1)) : 1 == this.$_interactionDisableCounter$ && 0 == $dvt$$1$$ && (this.$EventManager$.$addListeners$(this), this.$_panZoomCanvas$.$setInteractionEnabled$(!0), this.$_palette$ && this.$_palette$.$setInteractionEnabled$(!0));
    this.$_interactionDisableCounter$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$resetInteractionEnabled$ = function $$dvt$$1$$$$AdfDiagram$$$$resetInteractionEnabled$$() {
    this.$_interactionDisableCounter$ = 0;
    this.$clearAutomationState$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setAnimation$ = function $$dvt$$1$$$$AdfDiagram$$$$setAnimation$$($dvt$$1$$) {
    this.$Animation$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateDragSource$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateDragSource$$($dvt$$1$$) {
    return new $DvtAdfDiagramDragSource$$($dvt$$1$$, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetInitAnimHelper$ = function $$dvt$$1$$$$AdfDiagram$$$$GetInitAnimHelper$$() {
    return new $dvt$$1$$.$AdfDiagramInitAnim$(this.$getCtx$(), this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setNodeHighlightBehavior$ = function $$dvt$$1$$$$AdfDiagram$$$$setNodeHighlightBehavior$$($dvt$$1$$) {
    this.$_nodeHighlightBehavior$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLinkHighlightBehavior$ = function $$dvt$$1$$$$AdfDiagram$$$$setLinkHighlightBehavior$$($dvt$$1$$) {
    this.$_linkHighlightBehavior$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setNodeDetail$ = function $$dvt$$1$$$$AdfDiagram$$$$setNodeDetail$$($dvt$$1$$) {
    this.$_bNodeDetail$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setSelectionMode$ = function $$dvt$$1$$$$AdfDiagram$$$$setSelectionMode$$($selectionMode$$) {
    this.$_selectionHandler$ = !$selectionMode$$ || $selectionMode$$ != $dvt$$1$$.$SelectionHandler$.$TYPE_SINGLE$ && $selectionMode$$ != $dvt$$1$$.$SelectionHandler$.$TYPE_MULTIPLE$ ? null : new $dvt$$1$$.$SelectionHandler$($selectionMode$$);
    this.$EventManager$.$setSelectionHandler$(this.$_selectionHandler$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setRolloverBehavior$ = function $$dvt$$1$$$$AdfDiagram$$$$setRolloverBehavior$$($dvt$$1$$) {
    this.$_rolloverBehavior$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetLegendJson$ = function $$dvt$$1$$$$AdfDiagram$$$$SetLegendJson$$($dvt$$1$$) {
    this.$_legendJson$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetPaletteJson$ = function $$dvt$$1$$$$AdfDiagram$$$$SetPaletteJson$$($dvt$$1$$) {
    this.$_paletteJson$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$processLegendEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$processLegendEvent$$($event$$3$$) {
    var $DvtScrollbarBackground$$ = $event$$3$$.type;
    "categoryHide" == $DvtScrollbarBackground$$ || "categoryShow" == $DvtScrollbarBackground$$ ? this.$_processHideShowEvent$($event$$3$$) : "categoryHighlight" == $DvtScrollbarBackground$$ ? this.$_processRolloverEvent$($event$$3$$) : $DvtScrollbarBackground$$ == $dvt$$1$$.$ResizeEvent$.$RESIZE_EVENT$ && this.$_legend$ && this.$_legend$.$FireListener$($event$$3$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processHideShowEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_processHideShowEvent$$($category_event$$4$$) {
    var $DvtScrollbarBackground$$ = $category_event$$4$$.type;
    $category_event$$4$$ = $category_event$$4$$.category;
    var $DvtScrollbar$$ = this.$_arHiddenAttrGrps$;
    $DvtScrollbar$$ || ($DvtScrollbar$$ = []);
    var $DvtScrollbar$$ = $DvtScrollbar$$.slice(0), $DvtScrollbarEvent$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbar$$, $category_event$$4$$);
    "categoryHide" == $DvtScrollbarBackground$$ && -1 == $DvtScrollbarEvent$$ && ("dim" == this.$_rolloverBehavior$ && this.$_fireRolloverEvent$($dvt$$1$$.$EventFactory$.$newCategoryHighlightEvent$($category_event$$4$$, !1)), $DvtScrollbar$$.push($category_event$$4$$));
    "categoryShow" == $DvtScrollbarBackground$$ && -1 != $DvtScrollbarEvent$$ && $DvtScrollbar$$.splice($DvtScrollbarEvent$$, 1);
    0 == $DvtScrollbar$$.length && ($DvtScrollbar$$ = null);
    this.$setHiddenAttributeGroups$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processRolloverEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_processRolloverEvent$$($event$$5$$) {
    if (!this.$_ignoreRollover$) {
      var $DvtScrollbarBackground$$ = $event$$5$$.categories, $DvtScrollbar$$ = this.$_arHiddenAttrGrps$;
      $DvtScrollbar$$ || ($DvtScrollbar$$ = []);
      -1 == $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbar$$, $DvtScrollbarBackground$$) && this.$_fireRolloverEvent$($event$$5$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_fireRolloverEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_fireRolloverEvent$$($rolloverEvent$$) {
    var $DvtScrollbarBackground$$ = [], $DvtScrollbar$$;
    for ($DvtScrollbar$$ in this.$_nodes$) {
      var $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbar$$);
      $DvtScrollbarBackground$$.push($DvtScrollbarEvent$$);
    }
    for (var $linkId$$ in this.$_links$) {
      $DvtScrollbarBackground$$.push(this.$getLinkById$($linkId$$));
    }
    $dvt$$1$$.$CategoryRolloverHandler$.$highlight$($rolloverEvent$$.categories, $DvtScrollbarBackground$$, !1, .1);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$StopNodeDetailTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$StopNodeDetailTimer$$() {
    this.$_nodeDetailTimer$ && (this.$_nodeDetailTimer$.stop(), this.$_nodeDetailTimer$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$StartNodeDetailTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$StartNodeDetailTimer$$() {
    this.$_nodeDetailTimer$ = new $dvt$$1$$.$Timer$(this.$getCtx$(), $dvt$$1$$.$AdfDiagram$.$_NODE_DETAIL_DELAY$, this.$HandleNodeDetailTimer$, this, 1);
    this.$_nodeDetailTimer$.start();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleNodeDetailTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleNodeDetailTimer$$() {
    this.$StopNodeDetailTimer$();
    var $currMouseTarget_detailNodeContents$$ = null;
    this.$_bKeyboardHoverDetails$ || ($currMouseTarget_detailNodeContents$$ = this.$getEventManager$().$_currTarget$);
    for (var $DvtScrollbarBackground$$ = !1;$currMouseTarget_detailNodeContents$$;) {
      if ($currMouseTarget_detailNodeContents$$ instanceof $dvt$$1$$.$Button$ || $currMouseTarget_detailNodeContents$$ instanceof $dvt$$1$$.$Train$ || ($currMouseTarget_detailNodeContents$$ instanceof $dvt$$1$$.$OutputText$ || $currMouseTarget_detailNodeContents$$ instanceof $dvt$$1$$.$BackgroundOutputText$) && $currMouseTarget_detailNodeContents$$.$isTruncated$() || $currMouseTarget_detailNodeContents$$ instanceof $dvt$$1$$.Text && $currMouseTarget_detailNodeContents$$.$isTruncated$()) {
        $DvtScrollbarBackground$$ = !0;
        break;
      } else {
        var $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$($currMouseTarget_detailNodeContents$$);
        if ($DvtScrollbar$$ && $DvtScrollbar$$.$getShowPopupBehaviors$()) {
          $DvtScrollbarBackground$$ = !0;
          break;
        }
      }
      $currMouseTarget_detailNodeContents$$ = $currMouseTarget_detailNodeContents$$.getParent();
    }
    $DvtScrollbarBackground$$ && this.$HideNodeHoverDetails$();
    this.$_detailNode$ && ($currMouseTarget_detailNodeContents$$ = this.$CreateNodeDetailContent$()) && ($DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$($currMouseTarget_detailNodeContents$$), $DvtScrollbar$$ = new $dvt$$1$$.$Dimension$(.1 * $DvtScrollbarBackground$$.$w$, .1 * $DvtScrollbarBackground$$.$h$), this.$_detailNodeContents$ = this.$CreateNodeDetailWindow$($currMouseTarget_detailNodeContents$$, $DvtScrollbarBackground$$, $DvtScrollbar$$), this.$PositionNodeDetailWindow$(this.$_detailNodeContents$, 
    $DvtScrollbarBackground$$, $DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateNodeDetailContent$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateNodeDetailContent$$() {
    var $dvt$$1$$ = this.$createAfContext$(), $DvtScrollbarBackground$$ = this.$_detailNode$.$createDetailContents$($dvt$$1$$);
    $DvtScrollbarBackground$$ && this.$_detailNode$.$renderDetailContents$($dvt$$1$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateNodeDetailWindow$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateNodeDetailWindow$$($detailNodeContents$$2$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarBackground$$.$w$ + 2 * $DvtScrollbar$$.$w$, $DvtScrollbarBackground$$.$h$ + 2 * $DvtScrollbar$$.$h$);
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$SolidFill$("#cccccc", .8);
    $DvtScrollbarBackground$$.$setFill$($DvtScrollbarEvent$$);
    $detailNodeContents$$2$$.getParent().$addChild$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$addChild$($detailNodeContents$$2$$);
    $detailNodeContents$$2$$.$setTranslate$($DvtScrollbar$$.$w$, $DvtScrollbar$$.$h$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$PositionNodeDetailWindow$ = function $$dvt$$1$$$$AdfDiagram$$$$PositionNodeDetailWindow$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = 1 / this.$_panZoomCanvas$.$getZoom$();
    $dvt$$1$$.$setTranslate$(this.$_detailNode$.$getTranslateX$() - $DvtScrollbarEvent$$ * ($DvtScrollbarBackground$$.$w$ + 2 * $DvtScrollbar$$.$w$), this.$_detailNode$.$getTranslateY$() - $DvtScrollbarEvent$$ * ($DvtScrollbarBackground$$.$h$ + 2 * $DvtScrollbar$$.$h$));
    $dvt$$1$$.$setScale$($DvtScrollbarEvent$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_handleEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_handleEvent$$($event$$6$$) {
    $event$$6$$.type == $dvt$$1$$.$ClientBehaviorEvent$.$TYPE$ ? this.$HandleClientBehaviorEvent$($event$$6$$) : this.dispatchEvent($event$$6$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleClientBehaviorEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleClientBehaviorEvent$$($clientRowKey_event$$7_node$$4$$) {
    var $DvtScrollbarBackground$$ = $clientRowKey_event$$7_node$$4$$.$getParamValue$("suppressAnimation"), $DvtScrollbar$$ = $clientRowKey_event$$7_node$$4$$.$_clientBehavior$, $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getType$();
    $dvt$$1$$.$ClientBehavior$.$TYPE_RESTORE$ == $DvtScrollbarEvent$$ ? this.$HandleRestore$(null, null, $DvtScrollbarBackground$$) : ($clientRowKey_event$$7_node$$4$$ = $clientRowKey_event$$7_node$$4$$.$getParamValue$("clientRowKey")) && 1 < $clientRowKey_event$$7_node$$4$$.length && "N" == $clientRowKey_event$$7_node$$4$$.charAt(0) && ($clientRowKey_event$$7_node$$4$$ = this.$getNodeById$($clientRowKey_event$$7_node$$4$$)) && ($dvt$$1$$.$ClientBehavior$.$TYPE_ISOLATE_LEVELS$ == $DvtScrollbarEvent$$ ? 
    $clientRowKey_event$$7_node$$4$$.$HandleIsolate$(null, 0, $DvtScrollbarBackground$$, parseInt($DvtScrollbar$$.$getProperty$("levels"))) : $clientRowKey_event$$7_node$$4$$.$isContainer$() && ($clientRowKey_event$$7_node$$4$$.getData().$_childrenFetched$ || ($DvtScrollbar$$ = this.$getEventManager$().$ClientBehaviorHandler$, $DvtScrollbar$$.$suspendAnimation$ && $DvtScrollbar$$.$suspendAnimation$()), $dvt$$1$$.$ClientBehavior$.$TYPE_ROW_DISCLOSURE$ == $DvtScrollbarEvent$$ ? $clientRowKey_event$$7_node$$4$$.$isDisclosed$() ? 
    $clientRowKey_event$$7_node$$4$$.$HandleContainerClose$(null, 0, $DvtScrollbarBackground$$) : $clientRowKey_event$$7_node$$4$$.$HandleContainerOpen$(null, 0, $DvtScrollbarBackground$$) : $dvt$$1$$.$ClientBehavior$.$TYPE_DRILL$ == $DvtScrollbarEvent$$ && $clientRowKey_event$$7_node$$4$$.$HandleDrill$(null, 0, $DvtScrollbarBackground$$)));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleMouseDown$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleMouseDown$$() {
    this.$_bDragged$ = !1;
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEMOVE$, this.$HandleMouseMove$, !1, this);
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, this.$HandleMouseUp$, !1, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleMouseMove$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleMouseMove$$() {
    this.$_bDragged$ = !0;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleMouseUp$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleMouseUp$$() {
    this.$_bDragged$ = !1;
    this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEMOVE$, this.$HandleMouseMove$, !1, this);
    this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, this.$HandleMouseUp$, !1, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleClick$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleClick$$() {
    this.$_bDragged$ || (this.$_bIgnoreNextClick$ ? this.$_bIgnoreNextClick$ = !1 : this.$HideNodeTransientToolbar$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleNodeClick$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleNodeClick$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_bDragged$ || (this.$_transientToolbarDataId$ != $dvt$$1$$.getId() ? this.$ShowNodeTransientToolbar$($dvt$$1$$, $DvtScrollbarBackground$$) : this.$HideNodeTransientToolbar$(!1), this.$_bIgnoreNextClick$ = !0, this.$getSelectionMode$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleNodeDblClick$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleNodeDblClick$$($node$$6$$) {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$EventFactory$.$newActionEvent$("setAnchor", $node$$6$$.getData().$_templateId$);
    $DvtScrollbarBackground$$[$dvt$$1$$.$BaseComponentEvent$.$CLIENT_ROW_KEY$] = $node$$6$$.getData().getId();
    this.$EventManager$.$FireEvent$($DvtScrollbarBackground$$, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleLinkClick$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleLinkClick$$() {
    this.$HideNodeTransientToolbar$();
    this.$_bIgnoreNextClick$ = !0;
    this.$getSelectionMode$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowNodeHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowNodeHoverEffect$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_selectedObj$ || this.$ShowHideNodeHoverEffect$($dvt$$1$$, !0, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideNodeHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$HideNodeHoverEffect$$($dvt$$1$$) {
    this.$_selectedObj$ || this.$ShowHideNodeHoverEffect$($dvt$$1$$, !1);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowNodeHoverDetails$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowNodeHoverDetails$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_detailNode$ && this.$HideNodeHoverDetails$();
    this.$_bNodeDetail$ && .75 >= this.$_panZoomCanvas$.$getZoom$() && (this.$_detailNode$ = $dvt$$1$$, this.$StopNodeDetailTimer$(), $DvtScrollbarBackground$$ ? this.$HandleNodeDetailTimer$() : this.$StartNodeDetailTimer$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideNodeHoverDetails$ = function $$dvt$$1$$$$AdfDiagram$$$$HideNodeHoverDetails$$() {
    this.$StopNodeDetailTimer$();
    this.$_detailNode$ = null;
    this.$_detailNodeContents$ && (this.$_detailNodeContents$.getParent().removeChild(this.$_detailNodeContents$), this.$_detailNodeContents$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowLinkHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowLinkHoverEffect$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_selectedObj$ || this.$ShowHideLinkHoverEffect$($dvt$$1$$, !0, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideLinkHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$HideLinkHoverEffect$$($dvt$$1$$) {
    this.$_selectedObj$ || this.$ShowHideLinkHoverEffect$($dvt$$1$$, !1);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowHideNodeHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowHideNodeHoverEffect$$($node$$10$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_ignoreRollover$ || ($DvtScrollbarBackground$$ ? this.$_highlightOverTimer$ || ($DvtScrollbar$$ ? this.$ShowHideNodeHoverEffectHelper$($node$$10$$, $DvtScrollbarBackground$$) : (this.$_highlightOverTimer$ = new $dvt$$1$$.$Timer$(this.$getCtx$(), 1E3 * $dvt$$1$$.$AdfDiagram$.$_HIGHLIGHT_ANIM_DELAY$, function() {
      this.$ShowHideNodeHoverEffectHelper$($node$$10$$, $DvtScrollbarBackground$$);
    }, this, 1), this.$_highlightOverTimer$.start())) : (this.$_highlightOverTimer$ && (this.$_highlightOverTimer$.stop(), this.$_highlightOverTimer$ = null), this.$ShowHideNodeHoverEffectHelper$($node$$10$$, $DvtScrollbarBackground$$)));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowHideNodeHoverEffectHelper$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowHideNodeHoverEffectHelper$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$getSelectionMode$() && ($dvt$$1$$.$_hover$ = $DvtScrollbarBackground$$);
    if (null != this.$_nodeHighlightBehavior$ && -1 != this.$_nodeHighlightBehavior$.indexOf("Node")) {
      var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = this.$_addHighlightedObjects$($dvt$$1$$.getData().getId(), $DvtScrollbar$$), $incoming$$ = -1 != this.$_nodeHighlightBehavior$.indexOf("In"), $DvtAdfDiagramDragSource$$ = -1 != this.$_nodeHighlightBehavior$.indexOf("Out"), $DvtScrollbarArrow$$ = -1 != this.$_nodeHighlightBehavior$.indexOf("End");
      if ($incoming$$ || $DvtAdfDiagramDragSource$$) {
        for (var $nodeId$$1$$ in $DvtScrollbarEvent$$) {
          var $curNode_outLinkIds$$ = this.$getNodeById$($nodeId$$1$$), $id$$4$$, $DvtAdfDiagramKeyboardHandler$$;
          if ($incoming$$) {
            var $DvtAdfDiagramEditorManager$$ = $curNode_outLinkIds$$.$_inLinkIds$;
            if ($DvtAdfDiagramEditorManager$$) {
              for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtAdfDiagramEditorManager$$.length;$DvtScrollbarEvent$$++) {
                if ($id$$4$$ = $DvtAdfDiagramEditorManager$$[$DvtScrollbarEvent$$], $DvtAdfDiagramKeyboardHandler$$ = this.$getLinkById$($id$$4$$), $DvtScrollbar$$[$id$$4$$] = $DvtAdfDiagramKeyboardHandler$$, $DvtScrollbarArrow$$) {
                  var $DvtAdfDiagramNodeEndpoint$$ = $DvtAdfDiagramKeyboardHandler$$.getData().$getStartId$();
                  $DvtAdfDiagramKeyboardHandler$$.$_bPromoted$ && ($DvtAdfDiagramNodeEndpoint$$ = this.$_containerLinkPromotionMap$[$id$$4$$][0]);
                  $DvtAdfDiagramKeyboardHandler$$ && this.$_addHighlightedObjects$($DvtAdfDiagramNodeEndpoint$$, $DvtScrollbar$$);
                }
              }
            }
          }
          if ($DvtAdfDiagramDragSource$$ && ($curNode_outLinkIds$$ = $curNode_outLinkIds$$.$_outLinkIds$)) {
            for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $curNode_outLinkIds$$.length;$DvtScrollbarEvent$$++) {
              $id$$4$$ = $curNode_outLinkIds$$[$DvtScrollbarEvent$$], $DvtAdfDiagramKeyboardHandler$$ = this.$getLinkById$($id$$4$$), $DvtScrollbar$$[$id$$4$$] = $DvtAdfDiagramKeyboardHandler$$, $DvtScrollbarArrow$$ && ($DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramKeyboardHandler$$.getData().$getEndId$(), $DvtAdfDiagramKeyboardHandler$$.$_bPromoted$ && ($DvtAdfDiagramEditorManager$$ = this.$_containerLinkPromotionMap$[$id$$4$$][1]), this.$_addHighlightedObjects$($DvtAdfDiagramEditorManager$$, $DvtScrollbar$$))
              ;
            }
          }
        }
      }
      this.$_updateAlphas$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_addHighlightedObjects$ = function $$dvt$$1$$$$AdfDiagram$$$$_addHighlightedObjects$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = this.$_getDescendants$($dvt$$1$$), $id$$5_startId$$1$$;
    for ($id$$5_startId$$1$$ in $DvtScrollbarEvent$$) {
      $DvtScrollbar$$[$id$$5_startId$$1$$] = this.$getNodeById$($id$$5_startId$$1$$), $DvtScrollbarBackground$$[$id$$5_startId$$1$$] = $DvtScrollbar$$[$id$$5_startId$$1$$];
    }
    for (var $DvtAdfDiagramDragSource$$ in this.$_links$) {
      $DvtScrollbarEvent$$ = this.$getLinkById$($DvtAdfDiagramDragSource$$);
      $id$$5_startId$$1$$ = $DvtScrollbarEvent$$.getData().$getStartId$();
      var $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.getData().$getEndId$();
      $DvtScrollbar$$[$id$$5_startId$$1$$] && $DvtScrollbar$$[$DvtScrollbarArrow$$] && ($DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$] = $DvtScrollbarEvent$$);
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_updateAlphas$ = function $$dvt$$1$$$$AdfDiagram$$$$_updateAlphas$$($bHighlight$$, $DvtScrollbarBackground$$) {
    if (this.$_isFlatDiagram$()) {
      $dvt$$1$$.$CategoryRolloverHandler$.$_updateAlpha$([this.$_linksPane$, this.$_nodesPane$], $bHighlight$$ ? .1 : 1);
      for (var $DvtScrollbar$$ in $DvtScrollbarBackground$$) {
        $DvtScrollbarBackground$$[$DvtScrollbar$$] instanceof $dvt$$1$$.$AdfDiagramLink$ && ($bHighlight$$ ? this.$moveToDiagramFront$($DvtScrollbarBackground$$[$DvtScrollbar$$]) : this.$moveToLinks$($DvtScrollbarBackground$$[$DvtScrollbar$$]));
      }
      for ($DvtScrollbar$$ in $DvtScrollbarBackground$$) {
        $DvtScrollbarBackground$$[$DvtScrollbar$$] instanceof $dvt$$1$$.$AdfDiagramNode$ && ($bHighlight$$ ? this.$moveToDiagramFront$($DvtScrollbarBackground$$[$DvtScrollbar$$]) : this.$moveToNodes$($DvtScrollbarBackground$$[$DvtScrollbar$$]));
      }
    } else {
      $DvtScrollbar$$ = [];
      for (var $DvtScrollbarEvent$$ in this.$_nodes$) {
        var $alpha$$3_node$$12_objectId$$ = this.$getNodeById$($DvtScrollbarEvent$$);
        $DvtScrollbar$$.push($alpha$$3_node$$12_objectId$$);
      }
      for (var $DvtAdfDiagramDragSource$$ in this.$_links$) {
        $DvtScrollbar$$.push(this.$getLinkById$($DvtAdfDiagramDragSource$$));
      }
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
        $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$[$DvtScrollbarEvent$$], $alpha$$3_node$$12_objectId$$ = $DvtAdfDiagramDragSource$$.getData().getId(), $alpha$$3_node$$12_objectId$$ = !$bHighlight$$ || $DvtScrollbarBackground$$[$alpha$$3_node$$12_objectId$$] ? 1 : .1, $dvt$$1$$.$CategoryRolloverHandler$.$_updateAlpha$($DvtAdfDiagramDragSource$$.$getDisplayables$(), $alpha$$3_node$$12_objectId$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_isFlatDiagram$ = function $$dvt$$1$$$$AdfDiagram$$$$_isFlatDiagram$$() {
    return 1 == this.$getSortedVisibleNodesByGroupDepth$().length;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowHideLinkHoverEffect$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowHideLinkHoverEffect$$($link$$8$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_ignoreRollover$ || ($DvtScrollbarBackground$$ ? this.$_highlightOverTimer$ || ($DvtScrollbar$$ ? this.$ShowHideLinkHoverEffectHelper$($link$$8$$, $DvtScrollbarBackground$$) : (this.$_highlightOverTimer$ = new $dvt$$1$$.$Timer$(this.$getCtx$(), 1E3 * $dvt$$1$$.$AdfDiagram$.$_HIGHLIGHT_ANIM_DELAY$, function() {
      this.$ShowHideLinkHoverEffectHelper$($link$$8$$, $DvtScrollbarBackground$$);
    }, this, 1), this.$_highlightOverTimer$.start())) : (this.$_highlightOverTimer$ && (this.$_highlightOverTimer$.stop(), this.$_highlightOverTimer$ = null), this.$ShowHideLinkHoverEffectHelper$($link$$8$$, $DvtScrollbarBackground$$)));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowHideLinkHoverEffectHelper$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowHideLinkHoverEffectHelper$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$getSelectionMode$() && ($dvt$$1$$.$_hover$ = $DvtScrollbarBackground$$);
    if (null != this.$_linkHighlightBehavior$ && -1 != this.$_linkHighlightBehavior$.indexOf("Link")) {
      var $DvtScrollbar$$ = {};
      $DvtScrollbar$$[$dvt$$1$$.getData().getId()] = $dvt$$1$$;
      var $DvtScrollbarEvent$$ = -1 != this.$_linkHighlightBehavior$.indexOf("End");
      -1 != this.$_linkHighlightBehavior$.indexOf("Start") && this.$_addHighlightedObjects$($dvt$$1$$.getData().$getStartId$(), $DvtScrollbar$$);
      $DvtScrollbarEvent$$ && this.$_addHighlightedObjects$($dvt$$1$$.getData().$getEndId$(), $DvtScrollbar$$);
      this.$_updateAlphas$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLayout$ = function $$dvt$$1$$$$AdfDiagram$$$$setLayout$$($event$$14_layout$$) {
    var $DvtScrollbarBackground$$ = this.$_layout$ != $event$$14_layout$$;
    this.$_layout$ = $event$$14_layout$$;
    this.$_bRendered$ && $DvtScrollbarBackground$$ && ($event$$14_layout$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$LAYOUT_KEY$, $event$$14_layout$$), this.dispatchEvent($event$$14_layout$$), this.$UpdateLayout$(), this.$UpdateAriaAttributes$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$UpdateLayout$ = function $$dvt$$1$$$$AdfDiagram$$$$UpdateLayout$$() {
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$(this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLayout$ = function $$dvt$$1$$$$AdfDiagram$$$$getLayout$$() {
    return this.$_layout$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLayoutCallback$ = function $$dvt$$1$$$$AdfDiagram$$$$getLayoutCallback$$() {
    this.$_layoutCallback$ || (this.$_layoutCallback$ = new $DvtAdfDiagramLayoutCallback$$);
    return this.$_layoutCallback$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagram$$$$setLayoutAttributes$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_layoutAttrs$ || (this.$_layoutAttrs$ = {});
    this.$_layoutAttrs$[$dvt$$1$$] = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagram$$$$getLayoutAttributes$$($dvt$$1$$) {
    return this.$_layoutAttrs$ ? this.$_layoutAttrs$[$dvt$$1$$] : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$zoomToFit$ = function $$dvt$$1$$$$AdfDiagram$$$$zoomToFit$$() {
    var $animator$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), this.$getAnimationDuration$());
    this.$_panZoomCanvas$.$zoomToFit$($animator$$, this.$GetViewBounds$());
    $animator$$.play();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$zoomAndCenter$ = function $$dvt$$1$$$$AdfDiagram$$$$zoomAndCenter$$() {
    this.$_panZoomCanvas$ && this.$_panZoomCanvas$.$zoomAndCenter$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SyncOverviewAndZoomToFit$ = function $$dvt$$1$$$$AdfDiagram$$$$SyncOverviewAndZoomToFit$$($animator$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $bCreatedAnimator$$ = !1;
    $animator$$1$$ || $DvtScrollbar$$ || ($bCreatedAnimator$$ = !0, $animator$$1$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), this.$getAnimationDuration$()));
    ($DvtScrollbar$$ = this.$GetLayoutViewport$($animator$$1$$)) && ($DvtScrollbarBackground$$ = $DvtScrollbar$$);
    $DvtScrollbarEvent$$ || (this.$_panZoomCanvas$.$zoomToFit$($animator$$1$$, $DvtScrollbarBackground$$), this.$_processCenterNode$(!0, $animator$$1$$), this.$_processPanZoomSettings$(!0, $animator$$1$$));
    this.$_overviewWindow$ && $DvtAdfDiagramOverviewUtils$$.$SyncOverviewContent$(this, $animator$$1$$);
    $bCreatedAnimator$$ && $animator$$1$$.play();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SortNodesByGroupDepth$ = function $$dvt$$1$$$$AdfDiagram$$$$SortNodesByGroupDepth$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ = [], $DvtScrollbar$$, $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < this.$_rootNodes$.length;$DvtScrollbarEvent$$++) {
      if ($DvtScrollbar$$ = this.$getNodeById$(this.$_rootNodes$[$DvtScrollbarEvent$$]), $dvt$$1$$ || $DvtScrollbar$$.$_bVisible$) {
        1 > $DvtScrollbarBackground$$.length && $DvtScrollbarBackground$$.push([]), $DvtScrollbarBackground$$[0].push($DvtScrollbar$$);
      }
    }
    0 < $DvtScrollbarBackground$$.length && this.$_sortNodesByGroupDepthHelper$($DvtScrollbarBackground$$, $DvtScrollbarBackground$$[0], 1, $dvt$$1$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_sortNodesByGroupDepthHelper$ = function $$dvt$$1$$$$AdfDiagram$$$$_sortNodesByGroupDepthHelper$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $childrenAtCurrentDepth$$ = !1, $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramDragSource$$++) {
      var $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $arChildIds$$ = $DvtScrollbarArrow$$.$_childNodeIds$;
      if ($arChildIds$$ && 0 < $arChildIds$$.length && ($DvtScrollbarArrow$$.$isDisclosed$() || $DvtScrollbarEvent$$)) {
        for ($DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $arChildIds$$.length;$DvtScrollbarArrow$$++) {
          var $childNode$$ = this.$getNodeById$($arChildIds$$[$DvtScrollbarArrow$$]);
          if ($DvtScrollbarEvent$$ || $childNode$$.$_bVisible$) {
            $dvt$$1$$.length <= $DvtScrollbar$$ && ($childrenAtCurrentDepth$$ = !0, $dvt$$1$$.push([])), $dvt$$1$$[$DvtScrollbar$$].push($childNode$$);
          }
        }
      }
    }
    $childrenAtCurrentDepth$$ && this.$_sortNodesByGroupDepthHelper$($dvt$$1$$, $dvt$$1$$[$DvtScrollbar$$], $DvtScrollbar$$ + 1, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$IsSkinAlta$ = function $$dvt$$1$$$$AdfDiagram$$$$IsSkinAlta$$() {
    return this.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_ALTA$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$UsePanelDrawer$ = function $$dvt$$1$$$$AdfDiagram$$$$UsePanelDrawer$$() {
    return !0;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$PreRender$ = function $$dvt$$1$$$$AdfDiagram$$$$PreRender$$() {
    $dvt$$1$$.$AdfDiagram$.$superclass$.$PreRender$.call(this);
    this.$_hiddenStackPreviewNode$ = null;
    if (this.$_isResize$) {
      var $stackPreviewNodeId$$ = this.$_stackPreviewNodeId$;
      $stackPreviewNodeId$$ && (this.$_hiddenStackPreviewNode$ = this.$getNodeById$($stackPreviewNodeId$$), this.$_hiddenStackPreviewNode$.$HideStackPreview$());
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$Render$ = function $$dvt$$1$$$$AdfDiagram$$$$Render$$() {
    this.$_handledEventXml$ || ($dvt$$1$$.$AdfDiagram$.$superclass$.$Render$.call(this), this.$InitComponentInternal$(), this.$RenderComponentInternal$());
    this.$_handledEventXml$ = !1;
    this.$_hiddenStackPreviewNode$ && (this.$_hiddenStackPreviewNode$.$ShowStackPreview$(), this.$_hiddenStackPreviewNode$ = null);
    this.$clearAutomationState$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetOptions$ = function $$dvt$$1$$$$AdfDiagram$$$$SetOptions$$($options$$6$$) {
    $dvt$$1$$.$AdfDiagram$.$superclass$.$SetOptions$.call(this, $options$$6$$);
    this.$GetJsonParser$().$loadJsonInitial$(this.$Options$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$InitComponentInternal$ = function $$dvt$$1$$$$AdfDiagram$$$$InitComponentInternal$$() {
    $dvt$$1$$.$AdfDiagram$.$superclass$.$InitComponentInternal$.call(this);
    var $currDisplayedPanel$$ = null, $DvtScrollbarBackground$$ = !1;
    this.$_panelDrawer$ && ($DvtScrollbarBackground$$ = !0, this.$_panelDrawer$.$isDisclosed$() && ($currDisplayedPanel$$ = this.$_panelDrawer$.$getDisplayedPanelId$()), this.$_panelDrawer$.$destroy$(), this.removeChild(this.$_panelDrawer$), this.$_panelDrawer$ = null);
    this.$_overviewWindowPanel$ && (this.$_overviewWindowPanel$.$destroy$(), this.removeChild(this.$_overviewWindowPanel$), this.$_overviewWindowPanel$ = null);
    this.$AddPanelDrawer$($DvtScrollbarBackground$$, $currDisplayedPanel$$);
    this.$hasSpaceForOverviewWindowPanel$() && this.$_overviewWindow$ && this.$AddOverviewWindow$();
    this.$setContextKeyboardHandlers$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AddPanelDrawer$ = function $$dvt$$1$$$$AdfDiagram$$$$AddPanelDrawer$$($isPanelDrawerRendered$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$, $downState_viewport$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bPalette$$ = this.$_paletteJson$ && !this.$isReadOnly$() && (this.$_nodeCreateEnabled$ || this.$_linkCreateEnabled$);
    this.$_searchPanel$ && this.$_searchPanel$.$_initialBehavior$ != $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_HIDDEN$ && ($DvtScrollbarArrow$$ = this.$_searchPanel$);
    if (this.$UsePanelDrawer$() && (this.$_legendJson$ || $bPalette$$ || $DvtScrollbarArrow$$)) {
      this.$_panelDrawer$ = this.$CreatePanelDrawer$();
      var $newDisplayedPanel$$;
      $DvtScrollbarArrow$$ && (this.$IsSkinAlta$() && (this.$_panelDrawer$.$setContentPadding$(), $DvtScrollbarArrow$$.$setButtonStyle$(this.$_buttonStyle$), $DvtScrollbarArrow$$.$setLabelStyle$(this.$getLabelStyle$())), $DvtScrollbarArrow$$.$setResultsMaxWidth$(this.$_panelDrawer$.$getMaxContentWidth$()), $DvtScrollbarArrow$$.$setResultsMaxHeight$(this.$_panelDrawer$.$getMaxContentHeight$()), $DvtScrollbarArrow$$.$setVisible$(!1), $DvtScrollbarArrow$$.$setState$($dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$), 
      this.$RenderSearchPanel$(), this.$_panelDrawer$.$setMaxContainerHeight$($DvtScrollbarArrow$$.$getDimensions$().$h$), $DvtScrollbarArrow$$.getParent().removeChild($DvtScrollbarArrow$$), $DvtScrollbarArrow$$.$setVisible$(!0), $DvtScrollbar$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH_ICON_ENA$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtScrollbarEvent$$ = new $dvt$$1$$.Image(this.$getCtx$(), 
      this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH_ICON_OVR$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $downState_viewport$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH_ICON_DWN$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "SEARCH"), 
      this.$_panelDrawer$.$addPanel$($DvtScrollbarArrow$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $downState_viewport$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$), $newDisplayedPanel$$ || $DvtScrollbarArrow$$.$_initialBehavior$ != $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_INIT_EXPANDED$ || ($newDisplayedPanel$$ = $dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$));
      $bPalette$$ && (this.$_palette$ = new $dvt$$1$$.$Palette$(this.$getCtx$(), "palette", this.$_panelDrawer$.$getMaxContentWidth$(), this.$_panelDrawer$.$getMaxContentHeight$(), this.$handlePaletteEvent$, this, this.$_dragSource$, this.$getResourcesMap$(), this.$_paletteStyles$), this.$_palette$.$setJSON$(this.$_paletteJson$), this.$addChild$(this.$_palette$), this.$_palette$.$render$(), this.$_panelDrawer$.$setMaxContainerHeight$(this.$_palette$.$getExpandedHeight$()), this.removeChild(this.$_palette$), 
      $DvtScrollbar$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE_ICON_ENA$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtScrollbarEvent$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE_ICON_OVR$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $downState_viewport$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE_ICON_DWN$], 
      0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "PALETTE"), this.$_panelDrawer$.$addPanel$(this.$_palette$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $downState_viewport$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE$), !$newDisplayedPanel$$ && this.$_palette$.$isDisclosed$() && ($newDisplayedPanel$$ = $dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE$));
      this.$_legendJson$ && ($DvtScrollbarArrow$$ = this.$_legendJson$, this.$_legend$ = $dvt$$1$$.$Legend$.newInstance(this.$getCtx$(), this.$processLegendEvent$, this), this.$addChild$(this.$_legend$), $DvtScrollbar$$ = this.$_getLegendMaxWidthValue$($DvtScrollbarArrow$$.maxWidth, this.getWidth()), $DvtScrollbar$$ = this.$_legend$.$getPreferredSize$($DvtScrollbarArrow$$, $DvtScrollbar$$, this.$_panelDrawer$.$getMaxContentHeight$()), this.$_legend$.$render$($DvtScrollbarArrow$$, $DvtScrollbar$$.$w$, 
      $DvtScrollbar$$.$h$), this.$_panelDrawer$.$setMaxContainerHeight$(this.$_legend$.$getContentDimensions$().$h$), this.removeChild(this.$_legend$), $DvtScrollbar$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND_ICON_ENA$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtScrollbarEvent$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND_ICON_OVR$], 0, 
      0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $downState_viewport$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND_ICON_DWN$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "LEGEND"), this.$_panelDrawer$.$addPanel$(this.$_legend$, $DvtScrollbar$$, $DvtScrollbarEvent$$, 
      $downState_viewport$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND$), $newDisplayedPanel$$ || "true" != $DvtScrollbarArrow$$.disclosed || ($newDisplayedPanel$$ = $dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND$));
      $DvtScrollbar$$ = null;
      $DvtScrollbarEvent$$ = !0;
      !this.$hasSpaceForOverviewWindowPanel$() && this.$_overviewWindow$ ? (this.$AddOverviewWindowTab$(this.$_panelDrawer$), this.$_refreshOverviewContent$ = !0, $downState_viewport$$ = $DvtAdfDiagramOverviewUtils$$.$CalcAdjustedViewport$(this, null), this.$_overviewWindow$.$setViewportDimensions$($downState_viewport$$), this.$_overviewWindowPanel$ = this.$_panelDrawer$) : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW$ && ($DvtScrollbarEvent$$ = !1);
      $isPanelDrawerRendered$$1$$ ? $isPanelDrawerRendered$$1$$ && !$DvtScrollbarBackground$$ ? $DvtScrollbar$$ = null : $isPanelDrawerRendered$$1$$ && $DvtScrollbarBackground$$ && $DvtScrollbarEvent$$ ? $DvtScrollbar$$ = $DvtScrollbarBackground$$ : $isPanelDrawerRendered$$1$$ && $DvtScrollbarBackground$$ && !$DvtScrollbarEvent$$ && ($DvtScrollbar$$ = $newDisplayedPanel$$) : $DvtScrollbar$$ = $newDisplayedPanel$$;
      this.$_panelDrawer$.$renderComponent$();
      $DvtScrollbar$$ && (this.$_panelDrawer$.$setDisplayedPanelId$($DvtScrollbar$$), this.$_panelDrawer$.$isDisclosed$() || this.$_panelDrawer$.$setDisclosed$(!0, !0));
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$hasSpaceForOverviewWindowPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$hasSpaceForOverviewWindowPanel$$() {
    var $bHasSpaceForOviewviewPanel$$ = !0, $DvtScrollbarBackground$$ = this.getHeight();
    this.$_panelDrawer$ && this.$_panelDrawer$.$getMaxContainerHeight$() + $dvt$$1$$.$AdfDiagram$.$OVERVIEW_MAX_HEIGHT$ >= $DvtScrollbarBackground$$ && ($bHasSpaceForOviewviewPanel$$ = !1);
    return $bHasSpaceForOviewviewPanel$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AddOverviewWindow$ = function $$dvt$$1$$$$AdfDiagram$$$$AddOverviewWindow$$() {
    if (this.$_overviewWindow$) {
      this.$_overviewWindowPanel$ || (this.$_overviewWindowPanel$ = this.$CreateOverviewWindowPanel$(), this.$PositionOverviewWindowPanel$(), this.$AddOverviewWindowTab$(this.$_overviewWindowPanel$), this.$_overviewWindowPanel$.$renderComponent$(), this.$_overviewWindowPanel$.$setDisplayedPanelId$($dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW$), this.$_overviewWindowPanel$.$setDisclosed$(this.$_overviewWindow$.$isDisclosed$(), !0), this.$_refreshOverviewContent$ = !0);
      var $viewport$$1$$ = $DvtAdfDiagramOverviewUtils$$.$CalcAdjustedViewport$(this, null);
      this.$_overviewWindow$.$setViewportDimensions$($viewport$$1$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AddOverviewWindowTab$ = function $$dvt$$1$$$$AdfDiagram$$$$AddOverviewWindowTab$$($panelDrawer$$) {
    this.$_overviewWindow$.$setVisible$(!1);
    this.$addChild$(this.$_overviewWindow$);
    this.$_overviewWindow$.$render$();
    this.removeChild(this.$_overviewWindow$);
    this.$_overviewWindow$.$setVisible$(!0);
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW_ICON_ENA$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtScrollbar$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW_ICON_OVR$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $DvtScrollbarEvent$$ = new $dvt$$1$$.Image(this.$getCtx$(), 
    this.$getResourcesMap$()[$dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW_ICON_DWN$], 0, 0, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$, $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$), $tip$$1$$ = $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "OVERVIEW");
    $panelDrawer$$.$addPanel$(this.$_overviewWindow$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $tip$$1$$, $dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateOverviewWindowPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateOverviewWindowPanel$$() {
    var $overviewWindowPanel$$ = new $dvt$$1$$.$PanelDrawer$(this.$getCtx$(), null, this, "ov");
    $overviewWindowPanel$$.$addEvtListener$($dvt$$1$$.$PanelDrawerEvent$.$TYPE$, this.$HandlePanelDrawerEvent$, !1, this);
    $overviewWindowPanel$$.$setDockSide$($dvt$$1$$.$PanelDrawer$.$DOCK_BOTTOM$);
    $overviewWindowPanel$$.$setMaxWidth$($dvt$$1$$.$AdfDiagram$.$OVERVIEW_MAX_WIDTH$);
    $overviewWindowPanel$$.$setMaxHeight$($dvt$$1$$.$AdfDiagram$.$OVERVIEW_MAX_HEIGHT$);
    this.$addChild$($overviewWindowPanel$$);
    return $overviewWindowPanel$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreatePanelDrawer$ = function $$dvt$$1$$$$AdfDiagram$$$$CreatePanelDrawer$$() {
    this.$_panelDrawer$ = new $dvt$$1$$.$PanelDrawer$(this.$getCtx$(), null, this, "pd");
    this.$_panelDrawer$.$addEvtListener$($dvt$$1$$.$PanelDrawerEvent$.$TYPE$, this.$HandlePanelDrawerEvent$, !1, this);
    this.$addChild$(this.$_panelDrawer$);
    this.$PositionPanelDrawer$();
    return this.$_panelDrawer$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$PositionOverviewWindowPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$PositionOverviewWindowPanel$$() {
    this.$_overviewWindowPanel$ && (this.$_overviewWindowPanel$.$setTranslateY$(this.getHeight()), $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? (this.$_overviewWindowPanel$.$setDiscloseDirection$($dvt$$1$$.$PanelDrawer$.$DIR_RIGHT$), this.$_overviewWindowPanel$.$setTranslateX$(0)) : this.$_overviewWindowPanel$.$setTranslateX$(this.getWidth()));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$PositionPanelDrawer$ = function $$dvt$$1$$$$AdfDiagram$$$$PositionPanelDrawer$$() {
    this.$_panelDrawer$.$setMaxWidth$(.5 * this.getWidth());
    this.$_panelDrawer$.$setMaxHeight$(.8 * this.getHeight());
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? (this.$_panelDrawer$.$setDiscloseDirection$($dvt$$1$$.$PanelDrawer$.$DIR_RIGHT$), this.$_panelDrawer$.$setTranslateX$(0)) : this.$_panelDrawer$.$setTranslateX$(this.getWidth());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ProcessNodesAndLinks$ = function $$dvt$$1$$$$AdfDiagram$$$$ProcessNodesAndLinks$$($dvt$$1$$) {
    if (!this.$_bRendered$ && !this.$_bCrossedZoomThreshold$ || this.$_renderZoom100Nodes$) {
      this.$_renderZoom100Nodes$ || this.$_processHighlighting$();
      for (var $DvtScrollbarBackground$$ = this.$SortNodesByGroupDepth$(!0), $DvtScrollbar$$ = $DvtScrollbarBackground$$.length - 1;0 <= $DvtScrollbar$$;$DvtScrollbar$$--) {
        var $DvtScrollbarEvent$$ = this.$createAfContext$(), $arNodes$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
        this.$CreateNodeContentsAtDepth$($arNodes$$, $DvtScrollbarEvent$$, $dvt$$1$$, !0);
        this.$RenderNodesAtDepth$($arNodes$$, $DvtScrollbarEvent$$, $dvt$$1$$, !0);
      }
      this.$_renderZoom100Nodes$ || this.$SetInitialVisibility$();
    }
    this.$RenderLinks$();
    if ("global" === this.$_layoutBehavior$) {
      this.$LayoutNodesWithGlobalLayout$($dvt$$1$$);
    } else {
      for (this.$resetSortedNodesArray$(), $DvtScrollbarBackground$$ = this.$getSortedVisibleNodesByGroupDepth$(), $DvtScrollbar$$ = $DvtScrollbarBackground$$.length - 1;0 <= $DvtScrollbar$$;$DvtScrollbar$$--) {
        $DvtScrollbarEvent$$ = this.$createAfContext$(), $arNodes$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$], this.$CreateNodeContentsAtDepth$($arNodes$$, $DvtScrollbarEvent$$, $dvt$$1$$), this.$RenderNodesAtDepth$($arNodes$$, $DvtScrollbarEvent$$, $dvt$$1$$), this.$_bCrossedZoomThreshold$ || this.$LayoutNodesAtDepth$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RenderComponentInternal$ = function $$dvt$$1$$$$AdfDiagram$$$$RenderComponentInternal$$($animator$$3$$) {
    this.$setInteractionEnabled$(!1);
    var $DvtScrollbarBackground$$ = 0 == this.$GetAllNodes$().length;
    if (!$DvtScrollbarBackground$$) {
      this.$_bRendered$ || (this.$_buttonBorderRadius$ = $dvt$$1$$.$AdfDiagram$.$getButtonBorderRadius$(this.$_diagramButtonStyles$));
      this.$_bAnimTransition$ || this.$ClearLayoutViewport$();
      this.$ProcessNodesAndLinks$($animator$$3$$);
      var $DvtScrollbar$$ = null == this.$_cachedViewBounds$;
      $DvtScrollbar$$ && (this.$_cachedViewBounds$ = this.$GetViewBounds$($animator$$3$$));
      if (this.$_overviewWindow$ && this.$_refreshOverviewContent$) {
        var $DvtScrollbarEvent$$ = $DvtAdfDiagramOverviewUtils$$.$CreateOverviewContent$(this, this.$_cachedViewBounds$, this.$_ovContentStyle$);
        this.$_overviewWindow$.$setContent$($DvtScrollbarEvent$$);
        this.$_refreshOverviewContent$ = !1;
      }
      $DvtScrollbarEvent$$ = this.$_panZoomCanvas$;
      if (this.$_isResize$ && !this.$IsLayoutViewport$()) {
        var $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ = this.$AdjustMinZoom$($animator$$3$$, this.$_cachedViewBounds$);
        $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ || ($bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ = this.$GetViewBounds$());
        $DvtScrollbarEvent$$.$center$(null, $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$);
      }
      this.$_processInitialSelections$();
      if (!this.$_bRendered$ && !this.$_bCrossedZoomThreshold$ || this.$_renderZoom100Nodes$) {
        this.$AdjustMinZoom$($animator$$3$$, this.$_cachedViewBounds$);
        if (!this.$_isResize$) {
          var $DvtAdfDiagramDragSource$$ = ($bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ = this.$IsLayoutViewport$()) ? this.$GetLayoutViewport$() : this.$_cachedViewBounds$;
          $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ && $DvtScrollbarEvent$$.$setZoomToFitPadding$();
          this.$_renderZoom100Nodes$ || this.$_panZoom$ && !$bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ || $DvtScrollbarEvent$$.$zoomToFit$(null, $DvtAdfDiagramDragSource$$);
        }
        this.$_syncOverviewAndPanZoom$ && this.$_overviewWindow$ && ($DvtAdfDiagramOverviewUtils$$.$ZoomToFitOverviewContent$(this, this.$_cachedViewBounds$, $animator$$3$$), $DvtScrollbarEvent$$.$zoomTo$($DvtScrollbarEvent$$.$getZoom$(), $DvtScrollbarEvent$$.$getPanX$(), $DvtScrollbarEvent$$.$getPanY$(), $animator$$3$$), $DvtScrollbarEvent$$.$panTo$($DvtScrollbarEvent$$.$getPanX$(), $DvtScrollbarEvent$$.$getPanY$(), $animator$$3$$));
        $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ = this.$_bAnimTransition$ || this.$_imageNotReadyList$ && 0 < this.$_imageNotReadyList$.length ? !1 : !0;
        this.$_processCenterNode$($bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$, $animator$$3$$);
        this.$_processPanZoomSettings$($bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$, $animator$$3$$);
        $DvtScrollbarEvent$$.$setPanningEnabled$(this.$_panningEnabled$);
        $DvtScrollbarEvent$$.$setPanDirection$(this.$getPanDirection$());
        $DvtScrollbarEvent$$.$setZoomingEnabled$(this.$_zoomingEnabled$);
        $DvtScrollbarEvent$$.$setZoomToFitEnabled$(this.$_zoomingEnabled$);
        $dvt$$1$$.$Agent$.$isEnvironmentBrowser$() && this.$_initAnim$ && this.$_bInitAnimEnabled$ && ($DvtScrollbarEvent$$ = this.$GetInitAnimHelper$(), this.$_overviewWindow$ && (this.$_overviewWindowPanel$.$setAlpha$(0), $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$ = new $dvt$$1$$.$AnimFadeIn$(this.$getCtx$(), this.$_overviewWindowPanel$, this.$getAnimationDuration$()), $DvtScrollbarEvent$$.$setOnEnd$($bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$.play, $bLayoutViewport_clearInitialSettings_ovFadeInAnim_viewBounds$$)), 
        $DvtScrollbarEvent$$.play(this.$_initAnim$));
        this.$_bAnimTransition$ && (this.$_bAnimTransition$ = !1, $dvt$$1$$.$AdfDiagramTransitionUtils$.$__animateTransition$(this, !0), this.$ClearLayoutViewport$());
      }
      $animator$$3$$ ? $dvt$$1$$.$Playable$.$appendOnEnd$($animator$$3$$, this.$_toggleRestoreButton$, this) : this.$_toggleRestoreButton$();
      this.$UpdateDrillBreadcrumbs$($animator$$3$$);
      this.$UpdateKeyboardFocus$();
      this.$_bRendered$ = !0;
      this.$_currentViewport$ = null;
      this.$UsePanelDrawer$() || (this.$getSearchPanel$() && this.$getSearchPanel$().$_initialBehavior$ != $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_HIDDEN$ ? this.$RenderSearchPanel$() : this.$RemoveSearchPanel$());
    }
    this.$RefreshEmptyText$($DvtScrollbarBackground$$);
    this.$_panningEnabled$ && ($DvtScrollbarBackground$$ = this.$_cachedViewBounds$, null != $DvtScrollbarBackground$$ && ($DvtScrollbarEvent$$ = this.$_panZoomCanvas$.$getZoom$($animator$$3$$), this.$ConstrainPanning$($DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y, $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.$h$, $DvtScrollbarEvent$$)));
    this.$_renderZoom100Nodes$ = null;
    this.$_bAfImageLoaded$ = !1;
    $animator$$3$$ || this.$processPreviewStack$();
    $DvtScrollbar$$ && (this.$_cachedViewBounds$ = null);
    this.$setInteractionEnabled$(!0);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$processPreviewStack$ = function $$dvt$$1$$$$AdfDiagram$$$$processPreviewStack$$() {
    if (this.$_stackPreviewNode$) {
      var $dvt$$1$$ = this.$getNodeById$(this.$_stackPreviewNode$);
      $dvt$$1$$ && $dvt$$1$$.$_stackBadgeHandler$.$ShowDialog$(!0);
      this.$_stackPreviewPanZoom$ && ($dvt$$1$$.$_stackBadgeHandler$.$ApplyLayoutPanZoom$(this.$_stackPreviewPanZoom$), this.$_stackPreviewPanZoom$ = null);
      this.$_stackPreviewNode$ = null;
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetInitialVisibility$ = function $$dvt$$1$$$$AdfDiagram$$$$SetInitialVisibility$$() {
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$setVisibility$(this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_toggleRestoreButton$ = function $$dvt$$1$$$$AdfDiagram$$$$_toggleRestoreButton$$() {
    this.$_isolatedNodes$ && 0 < this.$_isolatedNodes$.length ? this.$ShowRestoreButton$() : this.$HideRestoreButton$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processInitialSelections$ = function $$dvt$$1$$$$AdfDiagram$$$$_processInitialSelections$$() {
    if (this.$_selectionHandler$ && (this.$_selectedNodes$ || this.$_selectedLinks$)) {
      var $dvt$$1$$ = [], $DvtScrollbarBackground$$;
      for ($DvtScrollbarBackground$$ in this.$_nodes$) {
        var $DvtScrollbar$$ = this.$getNodeById$($DvtScrollbarBackground$$);
        $DvtScrollbar$$.$setSelected$(!1);
        $dvt$$1$$.push($DvtScrollbar$$);
      }
      for (var $DvtScrollbarEvent$$ in this.$_links$) {
        $DvtScrollbarBackground$$ = this.$getLinkById$($DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$setSelected$(!1), $dvt$$1$$.push($DvtScrollbarBackground$$);
      }
      $DvtScrollbarEvent$$ = [];
      if (this.$_selectedNodes$) {
        for (var $index$$48$$ in this.$_selectedNodes$) {
          $DvtScrollbarEvent$$.push(this.$_selectedNodes$[$index$$48$$]);
        }
      }
      if (this.$_selectedLinks$) {
        for ($index$$48$$ in this.$_selectedLinks$) {
          $DvtScrollbarEvent$$.push(this.$_selectedLinks$[$index$$48$$]);
        }
      }
      this.$_selectionHandler$.$processInitialSelections$($DvtScrollbarEvent$$, $dvt$$1$$);
      this.$_selectedLinks$ = this.$_selectedNodes$ = null;
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processHighlighting$ = function $$dvt$$1$$$$AdfDiagram$$$$_processHighlighting$$() {
    if (this.$_highlightedNodes$ || this.$_highlightedLinks$) {
      var $dvt$$1$$ = {};
      if (this.$_highlightedNodes$) {
        for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_highlightedNodes$.length;$DvtScrollbarBackground$$++) {
          $dvt$$1$$[this.$_highlightedNodes$[$DvtScrollbarBackground$$]] = this.$_highlightedNodes$[$DvtScrollbarBackground$$];
        }
      }
      if (this.$_highlightedLinks$) {
        for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_highlightedLinks$.length;$DvtScrollbarBackground$$++) {
          $dvt$$1$$[this.$_highlightedLinks$[$DvtScrollbarBackground$$]] = this.$_highlightedLinks$[$DvtScrollbarBackground$$];
        }
      }
      for (var $DvtScrollbar$$ in this.$_nodes$) {
        this.$getNodeById$($DvtScrollbar$$).$SetMaxAlpha$($dvt$$1$$[$DvtScrollbar$$] ? 1 : .1);
      }
      for (var $DvtScrollbarEvent$$ in this.$_links$) {
        this.$getLinkById$($DvtScrollbarEvent$$).$SetMaxAlpha$($dvt$$1$$[$DvtScrollbarEvent$$] ? 1 : .1);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RenderLinks$ = function $$dvt$$1$$$$AdfDiagram$$$$RenderLinks$$() {
    for (var $dvt$$1$$ in this.$_links$) {
      var $DvtScrollbarBackground$$ = this.$getLinkById$($dvt$$1$$);
      $DvtScrollbarBackground$$.$_bVisible$ && $DvtScrollbarBackground$$.$renderLink$();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RenderNodesAtDepth$ = function $$dvt$$1$$$$AdfDiagram$$$$RenderNodesAtDepth$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $oZoomFlag$$, $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $dvt$$1$$.length;$DvtAdfDiagramDragSource$$++) {
      var $DvtScrollbarArrow$$ = $dvt$$1$$[$DvtAdfDiagramDragSource$$];
      this.$_renderZoom100Nodes$ && $DvtScrollbarEvent$$ ? this.$_renderZoom100Nodes$[$DvtScrollbarArrow$$.getData().getId()] && ($oZoomFlag$$ = $DvtScrollbarArrow$$.$_bForceZoom100Facet$, $DvtScrollbarArrow$$.$setForceZoom100Facet$(!0), $DvtScrollbarArrow$$.$ClearNodeSize$(), $DvtScrollbarArrow$$.$isDisclosed$() ? ($DvtScrollbarArrow$$.$setDisclosed$(!1), $DvtScrollbarArrow$$.$renderNode$($DvtScrollbarBackground$$, $DvtScrollbar$$), $DvtScrollbarArrow$$.$setDisclosed$(!0)) : $DvtScrollbarArrow$$.$renderNode$($DvtScrollbarBackground$$, 
      $DvtScrollbar$$), $DvtScrollbarArrow$$.$setForceZoom100Facet$($oZoomFlag$$)) : $DvtScrollbarArrow$$.$renderNode$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$LayoutNodesWithGlobalLayout$ = function $$dvt$$1$$$$AdfDiagram$$$$LayoutNodesWithGlobalLayout$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ = this.$getLayout$(), $DvtScrollbar$$ = this.$CreateLayoutContext$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < this.$_rootNodes$.length;$DvtScrollbarEvent$$++) {
      var $parentId_rootNode$$ = this.$getNodeById$(this.$_rootNodes$[$DvtScrollbarEvent$$]), $DvtAdfDiagramDragSource$$ = this.$CreateLayoutContextNode$($parentId_rootNode$$, $DvtScrollbarBackground$$, !0, $DvtScrollbar$$);
      this.$_addChildren$($parentId_rootNode$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
      $DvtScrollbar$$.$addNode$($DvtAdfDiagramDragSource$$);
    }
    for (var $DvtScrollbarArrow$$ in this.$_links$) {
      if ($DvtScrollbarEvent$$ = this.$getLinkById$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_bVisible$) {
        $parentId_rootNode$$ = $DvtScrollbarEvent$$.getData().$getStartId$();
        $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.getData().$getEndId$();
        if (this.$_containerLinkPromotionMap$ && this.$_containerPromotionLinkMap$) {
          var $promotion$$ = this.$_containerLinkPromotionMap$[$DvtScrollbarArrow$$];
          $promotion$$ && ($parentId_rootNode$$ = $promotion$$[0], $DvtAdfDiagramDragSource$$ = $promotion$$[1]);
        }
        this.$getNodeById$($parentId_rootNode$$).$_bVisible$ && this.$getNodeById$($DvtAdfDiagramDragSource$$).$_bVisible$ && ($DvtScrollbarEvent$$ = this.$CreateLayoutContextLink$($DvtScrollbarEvent$$, $parentId_rootNode$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$, $DvtScrollbar$$), $DvtScrollbar$$.$addLink$($DvtScrollbarEvent$$));
      }
    }
    if (0 < $DvtScrollbar$$.$getNodeCount$() && ($DvtScrollbar$$ = this.$getLayoutCallback$().$doLayout$(this, $DvtScrollbar$$))) {
      $DvtScrollbarBackground$$ = $DvtScrollbar$$.$getNodeCount$();
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$;$DvtScrollbarEvent$$++) {
        $parentId_rootNode$$ = $DvtScrollbar$$.$getNodeByIndex$($DvtScrollbarEvent$$), $parentId_rootNode$$.$IsRendered$ || this.$renderNodeFromContext$($parentId_rootNode$$);
      }
      this.$ApplyLayoutContext$($DvtScrollbar$$, $dvt$$1$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_addChildren$ = function $$dvt$$1$$$$AdfDiagram$$$$_addChildren$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if ($dvt$$1$$.$isDisclosed$()) {
      $dvt$$1$$ = $dvt$$1$$.$_childNodeIds$;
      for (var $lcChildNodes$$ = [], $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $dvt$$1$$.length;$DvtAdfDiagramDragSource$$++) {
        var $DvtScrollbarArrow$$ = this.$getNodeById$($dvt$$1$$[$DvtAdfDiagramDragSource$$]);
        if ($DvtScrollbarArrow$$.$_bVisible$) {
          var $lcChildNode$$ = this.$CreateLayoutContextNode$($DvtScrollbarArrow$$, $DvtScrollbar$$, !0, $DvtScrollbarEvent$$);
          $DvtScrollbarEvent$$.$addNodeToMap$($lcChildNode$$);
          $lcChildNode$$.$setParentNode$($DvtScrollbarBackground$$);
          $lcChildNodes$$.push($lcChildNode$$);
          this.$_addChildren$($DvtScrollbarArrow$$, $lcChildNode$$, null, $DvtScrollbarEvent$$);
        }
      }
      $DvtScrollbarBackground$$.$setChildNodes$($lcChildNodes$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$LayoutNodesAtDepth$ = function $$dvt$$1$$$$AdfDiagram$$$$LayoutNodesAtDepth$$($arNodes$$2_nodesByGroupDepth$$3$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $arNodes$$2_nodesByGroupDepth$$3$$ = $arNodes$$2_nodesByGroupDepth$$3$$[$DvtScrollbarBackground$$];
    $DvtScrollbarBackground$$ = {};
    for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $arNodes$$2_nodesByGroupDepth$$3$$.length;$DvtScrollbarEvent$$++) {
      var $node$$19$$ = $arNodes$$2_nodesByGroupDepth$$3$$[$DvtScrollbarEvent$$];
      if ($node$$19$$.$_bVisible$) {
        var $DvtAdfDiagramDragSource$$ = $node$$19$$.getData().$getGroupId$();
        $DvtAdfDiagramDragSource$$ || ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagram$.$UNGROUPED_ID$);
        $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$] || ($DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$] = []);
        $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$].push($node$$19$$);
      }
    }
    for (var $DvtScrollbarArrow$$ in $DvtScrollbarBackground$$) {
      this.$LayoutNodes$($DvtScrollbarArrow$$, $DvtScrollbarBackground$$[$DvtScrollbarArrow$$], this.$GetLayoutAppliedToNode$($DvtScrollbarBackground$$[$DvtScrollbarArrow$$][0]), $DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$LayoutNodes$ = function $$dvt$$1$$$$AdfDiagram$$$$LayoutNodes$$($arCrossContainerLinkIds_groupId$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if (this.$getLayoutCallback$()) {
      var $containerId_layoutContext$$2$$ = $arCrossContainerLinkIds_groupId$$1$$;
      $containerId_layoutContext$$2$$ == $dvt$$1$$.$AdfDiagram$.$UNGROUPED_ID$ && ($containerId_layoutContext$$2$$ = null);
      for (var $containerId_layoutContext$$2$$ = this.$CreateLayoutContext$($DvtScrollbar$$, null, $containerId_layoutContext$$2$$), $DvtAdfDiagramDragSource$$ = {}, $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarArrow$$++) {
        $containerId_layoutContext$$2$$.$addNode$(this.$CreateLayoutContextNode$($DvtScrollbarBackground$$[$DvtScrollbarArrow$$], $DvtScrollbar$$, !1, $containerId_layoutContext$$2$$)), $DvtAdfDiagramDragSource$$[$DvtScrollbarBackground$$[$DvtScrollbarArrow$$].getData().getId()] = !0;
      }
      $DvtScrollbarBackground$$ = null;
      $DvtScrollbarArrow$$ = !0;
      $arCrossContainerLinkIds_groupId$$1$$ != $dvt$$1$$.$AdfDiagram$.$UNGROUPED_ID$ && ($DvtScrollbarBackground$$ = this.$getNodeById$($arCrossContainerLinkIds_groupId$$1$$), $DvtScrollbarArrow$$ = !1);
      $arCrossContainerLinkIds_groupId$$1$$ = null;
      $arCrossContainerLinkIds_groupId$$1$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$_crossChildLinkIds$ : this.$_arCrossContainerLinkIds$;
      for (var $linkId$$7$$ in this.$_links$) {
        var $lc$$1_link$$14$$ = this.$getLinkById$($linkId$$7$$);
        if ($lc$$1_link$$14$$.$_bVisible$ && (!$arCrossContainerLinkIds_groupId$$1$$ || -1 == $dvt$$1$$.$ArrayUtils$.$getIndex$($arCrossContainerLinkIds_groupId$$1$$, $linkId$$7$$))) {
          var $parentId$$1$$ = $lc$$1_link$$14$$.getData().$getStartId$(), $DvtAdfDiagramKeyboardHandler$$ = $lc$$1_link$$14$$.getData().$getEndId$();
          if (this.$_containerLinkPromotionMap$ && this.$_containerPromotionLinkMap$) {
            var $DvtAdfDiagramEditorManager$$ = this.$_containerLinkPromotionMap$[$linkId$$7$$];
            $DvtAdfDiagramEditorManager$$ && ($parentId$$1$$ = $DvtAdfDiagramEditorManager$$[0], $DvtAdfDiagramKeyboardHandler$$ = $DvtAdfDiagramEditorManager$$[1]);
          }
          $DvtAdfDiagramDragSource$$[$parentId$$1$$] && $DvtAdfDiagramDragSource$$[$DvtAdfDiagramKeyboardHandler$$] && ($lc$$1_link$$14$$ = this.$CreateLayoutContextLink$($lc$$1_link$$14$$, $parentId$$1$$, $DvtAdfDiagramKeyboardHandler$$, $DvtScrollbar$$, $containerId_layoutContext$$2$$), $containerId_layoutContext$$2$$.$addLink$($lc$$1_link$$14$$));
        }
      }
      this.$AddCrossContainerLinksToLayoutContext$($containerId_layoutContext$$2$$, $DvtScrollbarBackground$$, $DvtScrollbarEvent$$);
      0 < $containerId_layoutContext$$2$$.$getNodeCount$() && (this.$SortLayoutContext$($containerId_layoutContext$$2$$), ($containerId_layoutContext$$2$$ = this.$getLayoutCallback$().$doLayout$(this, $containerId_layoutContext$$2$$)) && this.$ApplyLayoutContext$($containerId_layoutContext$$2$$, $DvtScrollbarEvent$$, $DvtScrollbarArrow$$));
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AddCrossContainerLinksToLayoutContext$ = function $$dvt$$1$$$$AdfDiagram$$$$AddCrossContainerLinksToLayoutContext$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = null, $groupId$$2$$ = null, $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$getLayout$();
    $DvtScrollbarBackground$$ ? ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_crossChildLinkIds$, $groupId$$2$$ = $DvtScrollbarBackground$$.getData().getId()) : $DvtScrollbarEvent$$ = this.$_arCrossContainerLinkIds$;
    if ($DvtScrollbarEvent$$) {
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $DvtScrollbarEvent$$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$[$DvtScrollbarBackground$$], $lc$$2_link$$15$$ = this.$getLinkById$($DvtScrollbarArrow$$);
        if ($lc$$2_link$$15$$.$_bVisible$) {
          var $linkParentNode_pNodeContainers_parentId$$2$$ = $lc$$2_link$$15$$.getData().$getStartId$(), $cNodeContainers_childId$$2_linkChildNode$$ = $lc$$2_link$$15$$.getData().$getEndId$();
          this.$_containerLinkPromotionMap$ && this.$_containerPromotionLinkMap$ && ($DvtScrollbarArrow$$ = this.$_containerLinkPromotionMap$[$DvtScrollbarArrow$$]) && ($linkParentNode_pNodeContainers_parentId$$2$$ = $DvtScrollbarArrow$$[0], $cNodeContainers_childId$$2_linkChildNode$$ = $DvtScrollbarArrow$$[1]);
          $lc$$2_link$$15$$ = this.$CreateLayoutContextLink$($lc$$2_link$$15$$, $linkParentNode_pNodeContainers_parentId$$2$$, $cNodeContainers_childId$$2_linkChildNode$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$);
          $dvt$$1$$.$addLink$($lc$$2_link$$15$$);
          $linkParentNode_pNodeContainers_parentId$$2$$ = this.$getNodeById$($linkParentNode_pNodeContainers_parentId$$2$$);
          $cNodeContainers_childId$$2_linkChildNode$$ = this.$getNodeById$($cNodeContainers_childId$$2_linkChildNode$$);
          $linkParentNode_pNodeContainers_parentId$$2$$ = this.$GetContainerIdArray$($linkParentNode_pNodeContainers_parentId$$2$$);
          $cNodeContainers_childId$$2_linkChildNode$$ = this.$GetContainerIdArray$($cNodeContainers_childId$$2_linkChildNode$$);
          this.$_addCrossContainerNodes$($dvt$$1$$, $groupId$$2$$, $linkParentNode_pNodeContainers_parentId$$2$$, $DvtScrollbar$$);
          this.$_addCrossContainerNodes$($dvt$$1$$, $groupId$$2$$, $cNodeContainers_childId$$2_linkChildNode$$, $DvtScrollbar$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SortLayoutContext$ = function $$dvt$$1$$$$AdfDiagram$$$$SortLayoutContext$$($dvt$$1$$) {
    function $DvtScrollbarBackground$$($dvt$$1$$, $b$$2$$) {
      var $layoutContext$$4$$ = $dvt$$1$$.getData().$getRowIndex$(), $DvtScrollbar$$ = $b$$2$$.getData().$getRowIndex$();
      return $layoutContext$$4$$ == $DvtScrollbar$$ ? 0 : $layoutContext$$4$$ > $DvtScrollbar$$ ? 1 : -1;
    }
    var $DvtScrollbar$$ = this;
    $dvt$$1$$.$_arNodes$.sort(function($dvt$$1$$, $b$$3$$) {
      return $DvtScrollbarBackground$$($DvtScrollbar$$.$getNodeById$($dvt$$1$$.getId()), $DvtScrollbar$$.$getNodeById$($b$$3$$.getId()));
    });
    $dvt$$1$$.$_arLinks$.sort(function($dvt$$1$$, $b$$4$$) {
      return $DvtScrollbarBackground$$($DvtScrollbar$$.$getLinkById$($dvt$$1$$.getId()), $DvtScrollbar$$.$getLinkById$($b$$4$$.getId()));
    });
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetLayoutAppliedToNode$ = function $$dvt$$1$$$$AdfDiagram$$$$GetLayoutAppliedToNode$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$getLayout$();
    $dvt$$1$$ && ($dvt$$1$$ = $dvt$$1$$.getData().$getGroupId$()) && ($dvt$$1$$ = this.$getNodeById$($dvt$$1$$).$getLayout$()) && ($DvtScrollbarBackground$$ = $dvt$$1$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateLayoutContext$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateLayoutContext$$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ || ($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ = this.$getLayout$());
    $DvtScrollbarBackground$$ || ($DvtScrollbarBackground$$ = this.$getLayoutAttributes$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$));
    var $DvtScrollbarEvent$$ = this.$CreateEmptyLayoutContext$();
    $DvtScrollbarEvent$$.$setLayout$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$);
    $DvtScrollbarEvent$$.$setLayoutAttributes$($DvtScrollbarBackground$$);
    $DvtScrollbar$$ && ($DvtScrollbarEvent$$.$setContainerId$($DvtScrollbar$$), ($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ = this.$getNodeById$($DvtScrollbar$$)) && ($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ = $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$.$getContainerPadding$()) && $DvtScrollbarEvent$$.$setContainerPadding$($dvt$$1$$.$BaseDiagram$.$getLayoutContainerPadding$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$)));
    if (this.$_bRendered$ || this.$_currentViewport$) {
      $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ = this.$_currentViewport$ ? this.$_currentViewport$ : this.$_panZoomCanvas$.$getViewport$(), $DvtScrollbarBackground$$ = this.$_layoutOffset$ ? this.$_layoutOffset$ : new $dvt$$1$$.$Point$(0, 0), $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$ = new $dvt$$1$$.$DiagramRectangle$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$.x - $DvtScrollbarBackground$$.x, $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$.y - 
      $DvtScrollbarBackground$$.y, $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$.$w$, $containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$.$h$), $DvtScrollbarEvent$$.$setCurrentViewport$($containerPadding_currentViewport_groupNode$$3_layout$$7_viewportRect$$);
    }
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_resetTransitionState$ = function $$dvt$$1$$$$AdfDiagram$$$$_resetTransitionState$$() {
    this.$_linksPostStack$ = this.$_nodesPostStack$ = this.$_linksPostIsolate$ = this.$_nodesPostIsolate$ = this.$_linksPostDrill$ = this.$_nodesPostDrill$ = this.$_linksPostFilter$ = this.$_nodesPostFilter$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetXmlDomParser$ = function $$dvt$$1$$$$AdfDiagram$$$$GetXmlDomParser$$() {
    return new $dvt$$1$$.$AdfDiagramParser$(this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetJsonParser$ = function $$dvt$$1$$$$AdfDiagram$$$$GetJsonParser$$() {
    return new $dvt$$1$$.$AdfDiagramJsonParser$(this.$GetXmlDomParser$(), this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateNode$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateNode$$($nodeData$$) {
    return new $dvt$$1$$.$AdfDiagramNode$(this.$getCtx$(), $nodeData$$, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateLink$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateLink$$($linkData$$) {
    return new $dvt$$1$$.$AdfDiagramLink$(this.$getCtx$(), $linkData$$, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addNodeData$ = function $$dvt$$1$$$$AdfDiagram$$$$addNodeData$$($cardIndexes_nodeAttrGrps_nodeData$$1$$) {
    var $DvtScrollbarBackground$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$.getId(), $DvtScrollbar$$ = this.$getNodeById$($DvtScrollbarBackground$$);
    if ($DvtScrollbar$$) {
      if ($DvtScrollbar$$.getData().$_structureOnly$) {
        $DvtScrollbar$$.$_data$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$;
      } else {
        return;
      }
    } else {
      $DvtScrollbar$$ = this.$CreateNode$($cardIndexes_nodeAttrGrps_nodeData$$1$$), this.$_nodes$[$DvtScrollbarBackground$$] = $DvtScrollbar$$, this.$_nodesByRowIndex$[$cardIndexes_nodeAttrGrps_nodeData$$1$$.$getRowIndex$()] = $DvtScrollbar$$, this.$_arNodeIds$.push($DvtScrollbarBackground$$);
    }
    if (!$cardIndexes_nodeAttrGrps_nodeData$$1$$.$_structureOnly$) {
      $DvtScrollbar$$.$setNodeDef$(this.$GetNodeDef$($cardIndexes_nodeAttrGrps_nodeData$$1$$.$_templateId$));
      var $DvtScrollbarEvent$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$.$getGroupId$();
      $DvtScrollbarEvent$$ ? this.$getNodeById$($DvtScrollbarEvent$$).$addChildNode$($DvtScrollbar$$) : (this.$_nodesPane$.$addChild$($DvtScrollbar$$), this.$_rootNodes$.push($DvtScrollbarBackground$$));
      this.$_bRendered$ && this.$_newNodes$ && this.$_newNodes$.push($DvtScrollbar$$);
      if ($cardIndexes_nodeAttrGrps_nodeData$$1$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$.$getAttributeGroups$()) {
        this.$_attrGrpsMap$ || (this.$_attrGrpsMap$ = {});
        for (var $DvtScrollbarEvent$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$.length, $i$$17_index$$49$$ = 0;$i$$17_index$$49$$ < $DvtScrollbarEvent$$;$i$$17_index$$49$$++) {
          var $DvtAdfDiagramDragSource$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$[$i$$17_index$$49$$];
          if ($DvtAdfDiagramDragSource$$) {
            var $DvtScrollbarArrow$$ = this.$_attrGrpsMap$[$DvtAdfDiagramDragSource$$];
            $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = [], this.$_attrGrpsMap$[$DvtAdfDiagramDragSource$$] = $DvtScrollbarArrow$$);
            $DvtScrollbarArrow$$.push($DvtScrollbarBackground$$);
          }
        }
      }
      if ($cardIndexes_nodeAttrGrps_nodeData$$1$$ = this.$_cardIndexes$) {
        $i$$17_index$$49$$ = $DvtScrollbarEvent$$ = -1;
        if (0 < $cardIndexes_nodeAttrGrps_nodeData$$1$$.length) {
          for ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$, $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $cardIndexes_nodeAttrGrps_nodeData$$1$$.length;$DvtScrollbarArrow$$++) {
            var $entry_syncIdx$$ = $cardIndexes_nodeAttrGrps_nodeData$$1$$[$DvtScrollbarArrow$$];
            $entry_syncIdx$$ && 2 == $entry_syncIdx$$.length && ($entry_syncIdx$$[0] == $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$ ? ($DvtScrollbarEvent$$ = $DvtScrollbarArrow$$, $entry_syncIdx$$ = this.$_findPanelCardIndex$($DvtScrollbar$$, $entry_syncIdx$$[1]), $DvtScrollbar$$.$setStateProp$($DvtAdfDiagramDragSource$$, $entry_syncIdx$$)) : $entry_syncIdx$$[0] == $DvtScrollbarBackground$$ && ($i$$17_index$$49$$ = $DvtScrollbarArrow$$, $DvtScrollbar$$.$setStateProp$($DvtAdfDiagramDragSource$$, 
            $entry_syncIdx$$[1])));
          }
        }
        $DvtScrollbarEvent$$ > $i$$17_index$$49$$ && -1 != $i$$17_index$$49$$ && $cardIndexes_nodeAttrGrps_nodeData$$1$$.splice($i$$17_index$$49$$, 1);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addLinkData$ = function $$dvt$$1$$$$AdfDiagram$$$$addLinkData$$($dvt$$1$$) {
    if (!this.$getLinkById$($dvt$$1$$.getId())) {
      var $DvtScrollbarBackground$$ = this.$CreateLink$($dvt$$1$$);
      $DvtScrollbarBackground$$.$setLinkDef$(this.$GetLinkDef$($dvt$$1$$.$_templateId$));
      this.$_links$[$dvt$$1$$.getId()] = $DvtScrollbarBackground$$;
      this.$_linksByRowIndex$[$dvt$$1$$.$getRowIndex$()] = $DvtScrollbarBackground$$;
      this.$_arLinkIds$.push($dvt$$1$$.getId());
      var $DvtScrollbar$$ = this.$getNodeById$($dvt$$1$$.$getStartId$()), $DvtScrollbarEvent$$ = this.$getNodeById$($dvt$$1$$.$getEndId$());
      if ($DvtScrollbar$$ && $DvtScrollbarEvent$$) {
        $DvtScrollbar$$.$addOutLinkId$($dvt$$1$$.getId());
        $DvtScrollbarEvent$$.$addInLinkId$($dvt$$1$$.getId());
        var $groupId$$6$$ = $dvt$$1$$.$getGroupId$(), $DvtScrollbar$$ = $DvtScrollbar$$.getData().$getGroupId$(), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getData().$getGroupId$();
        $groupId$$6$$ ? $groupId$$6$$ == $DvtScrollbar$$ && $groupId$$6$$ == $DvtScrollbarEvent$$ ? this.$getNodeById$($groupId$$6$$).$addChildLink$($DvtScrollbarBackground$$) : this.$getNodeById$($groupId$$6$$).$addCrossChildLink$($DvtScrollbarBackground$$) : $DvtScrollbar$$ || $DvtScrollbarEvent$$ ? (this.$_nodesPane$.$addChild$($DvtScrollbarBackground$$), $DvtScrollbarBackground$$.$_linkParent$ = this.$_nodesPane$, $DvtScrollbarBackground$$.$_bCrossContainerLink$ = !0, this.$_arCrossContainerLinkIds$ || 
        (this.$_arCrossContainerLinkIds$ = []), this.$_arCrossContainerLinkIds$.push($dvt$$1$$.getId())) : (this.$_linksPane$.$addChild$($DvtScrollbarBackground$$), $DvtScrollbarBackground$$.$_linkParent$ = this.$_linksPane$, $DvtScrollbarBackground$$.$_bCrossContainerLink$ = !1);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetContainerIdArray$ = function $$dvt$$1$$$$AdfDiagram$$$$GetContainerIdArray$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = [$dvt$$1$$.getData().getId()];
    for ($dvt$$1$$ = $dvt$$1$$.getData().$getGroupId$();$dvt$$1$$;) {
      $DvtScrollbarBackground$$ || ($DvtScrollbarBackground$$ = []), $DvtScrollbarBackground$$.push($dvt$$1$$), $dvt$$1$$ = this.$getNodeById$($dvt$$1$$).getData().$getGroupId$();
    }
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.reverse();
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getNodeById$ = function $$dvt$$1$$$$AdfDiagram$$$$getNodeById$$($dvt$$1$$) {
    return this.$_nodes$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetNodeByRowIndex$ = function $$dvt$$1$$$$AdfDiagram$$$$GetNodeByRowIndex$$($dvt$$1$$) {
    return this.$_nodesByRowIndex$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLinkById$ = function $$dvt$$1$$$$AdfDiagram$$$$getLinkById$$($dvt$$1$$) {
    return this.$_links$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetLinkByRowIndex$ = function $$dvt$$1$$$$AdfDiagram$$$$GetLinkByRowIndex$$($dvt$$1$$) {
    return this.$_linksByRowIndex$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addNodeDef$ = function $$dvt$$1$$$$AdfDiagram$$$$addNodeDef$$($dvt$$1$$) {
    this.$_nodeDefs$[$dvt$$1$$.getId()] = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addLinkDef$ = function $$dvt$$1$$$$AdfDiagram$$$$addLinkDef$$($dvt$$1$$) {
    this.$_linkDefs$[$dvt$$1$$.getId()] = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetNodeDef$ = function $$dvt$$1$$$$AdfDiagram$$$$GetNodeDef$$($dvt$$1$$) {
    return this.$_nodeDefs$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetLinkDef$ = function $$dvt$$1$$$$AdfDiagram$$$$GetLinkDef$$($dvt$$1$$) {
    return this.$_linkDefs$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateNodeContentsAtDepth$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateNodeContentsAtDepth$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $i$$18$$ = 0;$i$$18$$ < $dvt$$1$$.length;$i$$18$$++) {
      var $DvtAdfDiagramDragSource$$ = $dvt$$1$$[$i$$18$$];
      if ($DvtScrollbarEvent$$) {
        if (this.$_renderZoom100Nodes$) {
          if (this.$_renderZoom100Nodes$[$DvtAdfDiagramDragSource$$.getData().getId()]) {
            var $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$_bForceZoom100Facet$;
            $DvtAdfDiagramDragSource$$.$setForceZoom100Facet$(!0);
            $DvtAdfDiagramDragSource$$.$isDisclosed$() ? ($DvtAdfDiagramDragSource$$.$setDisclosed$(!1), $DvtAdfDiagramDragSource$$.$createNodeContents$($DvtScrollbarBackground$$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$.$setDisclosed$(!0)) : $DvtAdfDiagramDragSource$$.$createNodeContents$($DvtScrollbarBackground$$, $DvtScrollbar$$);
            $DvtAdfDiagramDragSource$$.$setForceZoom100Facet$($DvtScrollbarArrow$$);
          }
        } else {
          $DvtAdfDiagramDragSource$$.$createNodeContents$($DvtScrollbarBackground$$, $DvtScrollbar$$);
        }
      } else {
        $DvtAdfDiagramDragSource$$.$createNodeContents$($DvtScrollbarBackground$$, $DvtScrollbar$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetStackPreviewNodeId$ = function $$dvt$$1$$$$AdfDiagram$$$$SetStackPreviewNodeId$$($dvt$$1$$) {
    this.$_stackPreviewNodeId$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$IsStackPreview$ = function $$dvt$$1$$$$AdfDiagram$$$$IsStackPreview$$() {
    return this.$_stackPreviewNodeId$ ? !0 : !1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandlePanelDrawerEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$HandlePanelDrawerEvent$$($event$$15_isDisclosed$$) {
    var $DvtScrollbarBackground$$ = $event$$15_isDisclosed$$.$_activePanel$;
    $event$$15_isDisclosed$$ = $event$$15_isDisclosed$$.$getSubType$() == $dvt$$1$$.$PanelDrawerEvent$.$SUBTYPE_SHOW$;
    var $DvtScrollbar$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$();
    if ($DvtScrollbarBackground$$ == $dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW$ && this.$_overviewWindowPanel$ != this.$_panelDrawer$) {
      $DvtScrollbar$$.properties[$dvt$$1$$.$OverviewWindow$.$OVERVIEW_DISCLOSED_KEY$] = $event$$15_isDisclosed$$;
    } else {
      if (this.$_legend$ && ($DvtScrollbar$$.properties[$dvt$$1$$.$PanZoomComponent$.$LEGEND_DISCLOSED_EVENT_KEY$] = $DvtScrollbarBackground$$ == $dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND$ && $event$$15_isDisclosed$$), this.$_palette$ && ($DvtScrollbar$$.properties[$dvt$$1$$.$Palette$.$PALETTE_DISCLOSED_KEY$] = $DvtScrollbarBackground$$ == $dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE$ && $event$$15_isDisclosed$$), this.$_overviewWindow$ && this.$_overviewWindowPanel$ == this.$_panelDrawer$ && ($DvtScrollbar$$.properties[$dvt$$1$$.$OverviewWindow$.$OVERVIEW_DISCLOSED_KEY$] = 
      $DvtScrollbarBackground$$ == $dvt$$1$$.$PanelDrawer$.$PANEL_OVERVIEW$ && $event$$15_isDisclosed$$), this.$_searchPanel$) {
        $DvtScrollbarBackground$$ = new $dvt$$1$$.$SearchEvent$($DvtScrollbarBackground$$ == $dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$ && $event$$15_isDisclosed$$ ? $dvt$$1$$.$SearchEvent$.$SEARCH_EXPAND_EVENT$ : $dvt$$1$$.$SearchEvent$.$SEARCH_COLLAPSE_EVENT$);
        this.dispatchEvent($DvtScrollbarBackground$$);
        return;
      }
    }
    this.dispatchEvent($DvtScrollbar$$);
    this.$setContextKeyboardHandlers$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandlePanEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$HandlePanEvent$$($event$$16$$) {
    var $DvtScrollbarBackground$$ = $event$$16$$.$getSubType$();
    $dvt$$1$$.$AdfDiagram$.$superclass$.$HandlePanEvent$.call(this, $event$$16$$);
    if ($DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_PANNED$) {
      if (this.$IsStackPreview$()) {
        this.$_updatePreviewStackPanZoomState$(!1);
        return;
      }
      this.$_updatePanZoomState$(!1);
    }
    this.$HideNodeTransientToolbar$(!0);
    this.$HideNodeHoverDetails$();
    this.$_legendPanel$ && ($DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_BEGIN$ ? this.$_legendPanel$.$setMouseEnabled$(!1) : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_END$ && this.$_legendPanel$.$setMouseEnabled$(!0));
    this.$_palettePanel$ && ($DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_BEGIN$ ? this.$_palettePanel$.$setMouseEnabled$(!1) : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_END$ && this.$_palettePanel$.$setMouseEnabled$(!0));
    this.$_overviewWindowPanel$ && ($DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_PANNING$ ? $DvtAdfDiagramOverviewUtils$$.$HandlePanEvent$(this, $event$$16$$) : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_BEGIN$ ? this.$_overviewWindowPanel$.$setMouseEnabled$(!1) : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_END$ && this.$_overviewWindowPanel$.$setMouseEnabled$(!0));
    this.$_panelDrawer$ ? $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_BEGIN$ ? this.$_panelDrawer$.$deEmphasizeStart$() : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_END$ && this.$_panelDrawer$.$deEmphasizeEnd$() : this.$getSearchPanel$() && ($DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_BEGIN$ ? this.$getSearchPanel$().$deEmphasizeStart$() : $DvtScrollbarBackground$$ === $dvt$$1$$.$PanEvent$.$SUBTYPE_DRAG_PAN_END$ && this.$getSearchPanel$().$deEmphasizeEnd$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleZoomEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleZoomEvent$$($event$$17$$) {
    var $DvtScrollbarBackground$$ = $event$$17$$.$getSubType$();
    $dvt$$1$$.$AdfDiagram$.$superclass$.$HandleZoomEvent$.call(this, $event$$17$$);
    if (this.$IsStackPreview$()) {
      this.$_updatePreviewStackPanZoomState$($DvtScrollbarBackground$$ == $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_TO_FIT_END$);
    } else {
      switch($DvtScrollbarBackground$$) {
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ADJUST_PAN_CONSTRAINTS$:
          if (this.$_panningEnabled$) {
            var $DvtScrollbar$$ = $event$$17$$.$_newZoom$, $DvtScrollbarEvent$$ = this.$_cachedViewBounds$ ? this.$_cachedViewBounds$ : this.$GetViewBounds$($event$$17$$.$_animator$);
            this.$ConstrainPanning$($DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y, $DvtScrollbarEvent$$.$w$, $DvtScrollbarEvent$$.$h$, $DvtScrollbar$$);
          }
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOMING$:
          this.$HideNodeFlyOuts$(!0);
          this.$HideNodeHoverDetails$();
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_TO_FIT_CALC_BOUNDS$:
          this.$IsLayoutViewport$() || ($DvtScrollbarEvent$$ = this.$_cachedViewBounds$ ? this.$_cachedViewBounds$ : this.$GetViewBounds$($event$$17$$.$_animator$), $event$$17$$.$setZoomToFitBounds$($DvtScrollbarEvent$$));
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_TO_FIT_BEGIN$:
          this.$_setRerenderImmediate$(!0);
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_TO_FIT_END$:
          this.$_updatePanZoomState$(!0);
          this.$_setRerenderImmediate$(!1);
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_AND_CENTER$:
          this.$HandleZoomAndCenter$();
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOMED$:
          $event$$17$$.$_oldZoom$ !== $event$$17$$.$_newZoom$ && (this.$_zoomBeforeRender$ || (this.$_zoomBeforeRender$ = $event$$17$$.$_oldZoom$), $DvtScrollbarEvent$$ = this.$getCtx$(), $dvt$$1$$.$Agent$.$isEnvironmentBrowser$() && this.$_bRendered$ && !this.$_rerenderImmediate$ ? (this.$RerenderTimer$ ? this.$RerenderTimer$.reset() : this.$RerenderTimer$ = new $dvt$$1$$.$Timer$($DvtScrollbarEvent$$, this.$RerenderWaitTime$, this.$Rerender$, this, 1), this.$RerenderTimer$.start()) : this.$Rerender$());
          ($DvtScrollbarEvent$$ = this.$_transientToolbarDataId$) && ($DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbarEvent$$)) && $DvtScrollbarEvent$$.$IsTransientToolbarOnClick$() && $DvtScrollbarEvent$$.$RefreshTransientToolbar$();
          for ($DvtScrollbar$$ in this.$_nodes$) {
            $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbar$$), $DvtScrollbarEvent$$.$_bVisible$ && $DvtScrollbarEvent$$.$RefreshContainerBadgeVisibility$();
          }
          this.$_updatePanZoomState$(!1);
          break;
        case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOM_END$:
          for ($DvtScrollbar$$ in this.$_nodes$) {
            $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbar$$), $DvtScrollbarEvent$$.$cleanUp$();
          }
        ;
      }
      this.$_legendPanel$ && ($DvtScrollbarBackground$$ === $dvt$$1$$.$ZoomEvent$.$SUBTYPE_DRAG_ZOOM_BEGIN$ ? (this.$_oldLegendAlpha$ = this.$_legendPanel$.$getAlpha$(), this.$_legendPanel$.$setAlpha$($dvt$$1$$.$AdfDiagram$.$_MOUSE_DRAG_ALPHA$), this.$_legendPanel$.$setMouseEnabled$(!1)) : $DvtScrollbarBackground$$ === $dvt$$1$$.$ZoomEvent$.$SUBTYPE_DRAG_ZOOM_END$ && (this.$_legendPanel$.$setAlpha$(this.$_oldLegendAlpha$), this.$_legendPanel$.$setMouseEnabled$(!0)));
      this.$_overviewWindowPanel$ && ($DvtScrollbarBackground$$ === $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOMING$ ? $DvtAdfDiagramOverviewUtils$$.$HandleZoomEvent$(this, $event$$17$$) : $DvtScrollbarBackground$$ === $dvt$$1$$.$ZoomEvent$.$SUBTYPE_DRAG_ZOOM_BEGIN$ ? (this.$_oldOverviewAlpha$ = this.$_overviewWindowPanel$.$getAlpha$(), this.$_overviewWindowPanel$.$setAlpha$($dvt$$1$$.$AdfDiagram$.$_MOUSE_DRAG_ALPHA$), this.$_overviewWindowPanel$.$setMouseEnabled$(!1)) : $DvtScrollbarBackground$$ === $dvt$$1$$.$ZoomEvent$.$SUBTYPE_DRAG_ZOOM_END$ && 
      (this.$_overviewWindowPanel$.$setAlpha$(this.$_oldOverviewAlpha$), this.$_overviewWindowPanel$.$setMouseEnabled$(!0)));
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$Rerender$ = function $$dvt$$1$$$$AdfDiagram$$$$Rerender$$() {
    var $dvt$$1$$ = this.$_panZoomCanvas$.$getZoom$();
    if (this.$_zoomBeforeRender$ != $dvt$$1$$) {
      var $DvtScrollbarBackground$$ = Math.min(this.$_zoomBeforeRender$, 1), $dvt$$1$$ = Math.min($dvt$$1$$, 1), $DvtScrollbarBackground$$ = Math.ceil($DvtScrollbarBackground$$ / .25), $dvt$$1$$ = Math.ceil($dvt$$1$$ / .25);
      if ($DvtScrollbarBackground$$ !== $dvt$$1$$) {
        this.$_bCrossedZoomThreshold$ = !0, this.$RenderComponentInternal$(), this.$_bCrossedZoomThreshold$ = !1;
      } else {
        if (!this.$_bSupportsVectorEffects$) {
          for ($DvtScrollbarBackground$$ = this.$getSortedVisibleNodesByGroupDepth$(), $dvt$$1$$ = $DvtScrollbarBackground$$.length - 1;0 <= $dvt$$1$$;$dvt$$1$$--) {
            for (var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$], $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
              $DvtScrollbar$$[$DvtScrollbarEvent$$].$RefreshSelectionEffect$();
            }
          }
        }
      }
    }
    this.$_zoomBeforeRender$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleZoomAndCenter$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleZoomAndCenter$$() {
    var $arSelectedNodes_link$$17_linkBounds$$ = [], $DvtScrollbarBackground$$ = [], $DvtScrollbar$$;
    if (this.$_selectionHandler$) {
      var $DvtScrollbarEvent$$ = this.$_selectionHandler$.getSelection();
      if ($DvtScrollbarEvent$$) {
        for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarEvent$$.length;$DvtScrollbar$$++) {
          var $selItem$$ = $DvtScrollbarEvent$$[$DvtScrollbar$$];
          $selItem$$ instanceof $dvt$$1$$.$AdfDiagramNode$ ? $selItem$$.$_bVisible$ && !$selItem$$.$_bHiddenAncestor$ && $arSelectedNodes_link$$17_linkBounds$$.push($selItem$$) : $selItem$$ instanceof $dvt$$1$$.$AdfDiagramLink$ && $selItem$$.$_bVisible$ && $DvtScrollbarBackground$$.push($selItem$$);
        }
      }
      if (0 < $arSelectedNodes_link$$17_linkBounds$$.length || 0 < $DvtScrollbarBackground$$.length) {
        for (var $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $arSelectedNodes_link$$17_linkBounds$$.length;$DvtScrollbarEvent$$++) {
          $DvtScrollbar$$ = $arSelectedNodes_link$$17_linkBounds$$[$DvtScrollbarEvent$$], $DvtScrollbar$$ = $DvtScrollbar$$.$getDimensions$(this.$_panZoomCanvas$.$_contentPane$), $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$.$grow$($DvtScrollbar$$.x, $DvtScrollbar$$.y), $DvtAdfDiagramDragSource$$.$grow$($DvtScrollbar$$.x + $DvtScrollbar$$.$w$, $DvtScrollbar$$.y + $DvtScrollbar$$.$h$)) : $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Rectangle$($DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbar$$.$w$, 
          $DvtScrollbar$$.$h$);
        }
        for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
          $arSelectedNodes_link$$17_linkBounds$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $arSelectedNodes_link$$17_linkBounds$$ = $arSelectedNodes_link$$17_linkBounds$$.$getDimensions$(this.$_panZoomCanvas$.$_contentPane$), $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$.$grow$($arSelectedNodes_link$$17_linkBounds$$.x, $arSelectedNodes_link$$17_linkBounds$$.y), $DvtAdfDiagramDragSource$$.$grow$($arSelectedNodes_link$$17_linkBounds$$.x + $arSelectedNodes_link$$17_linkBounds$$.$w$, 
          $arSelectedNodes_link$$17_linkBounds$$.y + $arSelectedNodes_link$$17_linkBounds$$.$h$)) : $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Rectangle$($arSelectedNodes_link$$17_linkBounds$$.x, $arSelectedNodes_link$$17_linkBounds$$.y, $arSelectedNodes_link$$17_linkBounds$$.$w$, $arSelectedNodes_link$$17_linkBounds$$.$h$);
        }
      }
      $DvtScrollbarBackground$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), this.$getAnimationDuration$());
      this.$_panZoomCanvas$.$center$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$);
      this.$_panZoomCanvas$.$zoomTo$(1, null, null, $DvtScrollbarBackground$$);
      $DvtScrollbarBackground$$.play();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetAttributeGroupsHelper$ = function $$dvt$$1$$$$AdfDiagram$$$$SetAttributeGroupsHelper$$($arAttrGrps$$, $DvtScrollbarBackground$$) {
    this.$_arOldAttrGrps$ = this.$_arAttrGrps$;
    this.$_arOldExplodedStacks$ = this.$_arExplodedStacks$;
    this.$_arAttrGrps$ = $arAttrGrps$$;
    this.$_arExplodedStacks$ = $DvtScrollbarBackground$$;
    if (this.$_bRendered$ && !this.$_eventType$) {
      var $DvtScrollbar$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$();
      $DvtScrollbar$$.properties[$dvt$$1$$.$AdfDiagram$.$GROUP_BY_KEY$] = $arAttrGrps$$ ? $arAttrGrps$$.join($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$) : "";
      $DvtScrollbar$$.properties[$dvt$$1$$.$AdfDiagram$.$GROUP_BY_UNGROUPED_KEY$] = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.join($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$) : "";
      this.dispatchEvent($DvtScrollbar$$);
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processStack$(this);
    }
    this.$_arOldExplodedStacks$ = this.$_arOldAttrGrps$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setAttributeGroups$ = function $$dvt$$1$$$$AdfDiagram$$$$setAttributeGroups$$($dvt$$1$$) {
    this.$SetAttributeGroupsHelper$($dvt$$1$$, null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getAttributeGroups$ = function $$dvt$$1$$$$AdfDiagram$$$$getAttributeGroups$$() {
    return this.$_arAttrGrps$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setExplodedStacks$ = function $$dvt$$1$$$$AdfDiagram$$$$setExplodedStacks$$($dvt$$1$$) {
    this.$SetAttributeGroupsHelper$(this.$getAttributeGroups$(), $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setHiddenAttributeGroups$ = function $$dvt$$1$$$$AdfDiagram$$$$setHiddenAttributeGroups$$($arHiddenAttrGrps_event$$20$$) {
    this.$_arHiddenAttrGrps$ = $arHiddenAttrGrps_event$$20$$;
    this.$_bRendered$ && !this.$_eventType$ && ($arHiddenAttrGrps_event$$20$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$GROUP_BY_HIDDEN_KEY$, $arHiddenAttrGrps_event$$20$$ ? $arHiddenAttrGrps_event$$20$$.join($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$) : ""), this.dispatchEvent($arHiddenAttrGrps_event$$20$$), $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$(this));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setOverviewWindow$ = function $$dvt$$1$$$$AdfDiagram$$$$setOverviewWindow$$($ovWindow$$) {
    this.$_overviewWindow$ && this.$_overviewWindow$.$removeEvtListener$($dvt$$1$$.$ViewportChangeEvent$.$TYPE$, this.$HandleViewportChange$, !1, this);
    this.$_overviewWindow$ = $ovWindow$$;
    this.$_overviewWindow$.$addEvtListener$($dvt$$1$$.$ViewportChangeEvent$.$TYPE$, this.$HandleViewportChange$, !1, this);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleViewportChange$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleViewportChange$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$_newDim$;
    $dvt$$1$$ = $dvt$$1$$.$_oldDim$;
    var $DvtScrollbar$$ = this.$_panZoomCanvas$.$getZoom$();
    this.$_panZoomCanvas$.$panBy$(-(($DvtScrollbarBackground$$.x - $dvt$$1$$.x) * $DvtScrollbar$$), -(($DvtScrollbarBackground$$.y - $dvt$$1$$.y) * $DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$UpdateOverviewNode$ = function $$dvt$$1$$$$AdfDiagram$$$$UpdateOverviewNode$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_overviewWindow$ && !this.$IsStackPreview$() && $DvtAdfDiagramOverviewUtils$$.$UpdateOverviewNode$(this, $dvt$$1$$, $DvtScrollbarBackground$$, this.$_ovContentStyle$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$VisitNodes$ = function $$dvt$$1$$$$AdfDiagram$$$$VisitNodes$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ in this.$_nodes$) {
      var $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbar$$);
      $dvt$$1$$.call($DvtScrollbarBackground$$, $DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setNodeDisclosed$ = function $$dvt$$1$$$$AdfDiagram$$$$setNodeDisclosed$$($event$$22_nodeId$$10$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if ($DvtScrollbarBackground$$ && !this.$getNodeById$($event$$22_nodeId$$10$$).getData().$_childrenFetched$) {
      this.$setInteractionEnabled$(!1), this.dispatchEvent(new $dvt$$1$$.$AdfDiagramFetchEvent$($dvt$$1$$.$AdfDiagramFetchEvent$.$DISCLOSE$, $event$$22_nodeId$$10$$));
    } else {
      var $bDisclosureChanged$$ = !1, $DvtAdfDiagramDragSource$$ = -1;
      this.$_disclosedNodes$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$(this.$_disclosedNodes$, $event$$22_nodeId$$10$$));
      !$DvtScrollbarBackground$$ && -1 < $DvtAdfDiagramDragSource$$ ? (this.$_disclosedNodes$.splice($DvtAdfDiagramDragSource$$, 1), $bDisclosureChanged$$ = !0) : $DvtScrollbarBackground$$ && 0 > $DvtAdfDiagramDragSource$$ && (this.$_disclosedNodes$ || (this.$_disclosedNodes$ = []), this.$_disclosedNodes$.push($event$$22_nodeId$$10$$), $bDisclosureChanged$$ = !0);
      if ($bDisclosureChanged$$ || $DvtScrollbarEvent$$) {
        $DvtScrollbarBackground$$ ? this.$_disclosingNode$ = $event$$22_nodeId$$10$$ : this.$_undisclosingNode$ = $event$$22_nodeId$$10$$, $DvtScrollbar$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerDisclosure$(this, !1), $bDisclosureChanged$$ && ($event$$22_nodeId$$10$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$ROW_DISCLOSURE_KEY$, this.$_disclosedNodes$.join($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$)), this.dispatchEvent($event$$22_nodeId$$10$$))
        ;
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$drillNode$ = function $$dvt$$1$$$$AdfDiagram$$$$drillNode$$($nodeId$$11$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = !0;
    if ($nodeId$$11$$) {
      if ($DvtScrollbar$$ = this.$getNodeById$($nodeId$$11$$), !$DvtScrollbar$$.$isContainer$()) {
        $DvtScrollbarEvent$$ = !1;
      } else {
        if (!$DvtScrollbar$$.getData().$_childrenFetched$) {
          this.$setInteractionEnabled$(!1);
          this.dispatchEvent(new $dvt$$1$$.$AdfDiagramFetchEvent$($dvt$$1$$.$AdfDiagramFetchEvent$.$DRILL$, $nodeId$$11$$));
          return;
        }
      }
    }
    if ($DvtScrollbarEvent$$ && (this.$_drilledNodePath$ = this.$_createDrillPath$($nodeId$$11$$), $DvtScrollbar$$ && $DvtScrollbar$$.$isFocused$() && ($DvtScrollbar$$ = $DvtScrollbar$$.$_childNodeIds$) && 0 < $DvtScrollbar$$.length)) {
      for (var $childIndex$$ = 0;$childIndex$$ < $DvtScrollbar$$.length;$childIndex$$++) {
        var $DvtAdfDiagramDragSource$$ = this.$getNodeById$($DvtScrollbar$$[$childIndex$$]);
        if ($DvtAdfDiagramDragSource$$.$_bVisible$) {
          this.$EventManager$.$setFocusObj$($DvtAdfDiagramDragSource$$);
          break;
        }
      }
    }
    $DvtScrollbarBackground$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$processDrill$(this, !1);
    this.$_bRendered$ && $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$ROOT_ROW_KEY$, $nodeId$$11$$ ? $nodeId$$11$$ : "null"), this.dispatchEvent($DvtScrollbarEvent$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_createDrillPath$ = function $$dvt$$1$$$$AdfDiagram$$$$_createDrillPath$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = null;
    if ($dvt$$1$$) {
      for ($DvtScrollbarBackground$$ = [];$dvt$$1$$;) {
        $DvtScrollbarBackground$$.push($dvt$$1$$), $dvt$$1$$ = this.$getNodeById$($dvt$$1$$).getData().$getGroupId$();
      }
      $DvtScrollbarBackground$$.reverse();
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isolateNode$ = function $$dvt$$1$$$$AdfDiagram$$$$isolateNode$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$ = this.$_getNodeNetwork$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$_isolateNodeMap$($dvt$$1$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getNodeNetwork$ = function $$dvt$$1$$$$AdfDiagram$$$$_getNodeNetwork$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_getDescendants$($dvt$$1$$), $DvtScrollbarEvent$$ = this.$_mapUnion$(null, $DvtScrollbar$$);
    if (0 < $DvtScrollbarBackground$$) {
      for (var $descId$$ in $DvtScrollbar$$) {
        var $DvtAdfDiagramDragSource$$ = this.$getNodeById$($descId$$), $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$_outLinkIds$;
        if ($DvtScrollbarArrow$$) {
          for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarArrow$$.length;$DvtScrollbar$$++) {
            var $link$$19$$ = this.$getLinkById$($DvtScrollbarArrow$$[$DvtScrollbar$$]), $DvtScrollbarEvent$$ = this.$_mapUnion$($DvtScrollbarEvent$$, this.$_getNodeNetwork$($link$$19$$.getData().$getEndId$(), $DvtScrollbarBackground$$ - 1))
          }
        }
        if ($DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$.$_inLinkIds$) {
          for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtAdfDiagramDragSource$$.length;$DvtScrollbar$$++) {
            $link$$19$$ = this.$getLinkById$($DvtAdfDiagramDragSource$$[$DvtScrollbar$$]), $DvtScrollbarEvent$$ = this.$_mapUnion$($DvtScrollbarEvent$$, this.$_getNodeNetwork$($link$$19$$.getData().$getStartId$(), $DvtScrollbarBackground$$ - 1));
          }
        }
      }
    }
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getDescendants$ = function $$dvt$$1$$$$AdfDiagram$$$$_getDescendants$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = {}, $DvtScrollbar$$ = this.$getNodeById$($dvt$$1$$), $DvtScrollbarEvent$$ = $DvtScrollbar$$.$isContainer$() && !$DvtScrollbar$$.getData().$_childrenFetched$;
    $DvtScrollbarBackground$$[$dvt$$1$$] = $DvtScrollbarEvent$$;
    if ($DvtScrollbar$$.$isContainer$() && $DvtScrollbar$$.getData().$_childrenFetched$) {
      for ($dvt$$1$$ = $DvtScrollbar$$.$_childNodeIds$, $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
        $DvtScrollbarBackground$$ = this.$_mapUnion$($DvtScrollbarBackground$$, this.$_getDescendants$($dvt$$1$$[$DvtScrollbar$$]));
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getAncestors$ = function $$dvt$$1$$$$AdfDiagram$$$$_getAncestors$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {};
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbarEvent$$), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$isContainer$() && !$DvtScrollbarEvent$$.getData().$_childrenFetched$;
      $DvtScrollbar$$[$dvt$$1$$] = $DvtScrollbarEvent$$;
    }
    for ($DvtScrollbarEvent$$ = $dvt$$1$$;$DvtScrollbarEvent$$;) {
      $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbarEvent$$), ($DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getData().$getGroupId$()) && ($DvtScrollbar$$[$DvtScrollbarEvent$$] = !1);
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getNode$ = function $$dvt$$1$$$$AdfDiagram$$$$getNode$$($dvt$$1$$) {
    return this.$GetNodeByRowIndex$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLink$ = function $$dvt$$1$$$$AdfDiagram$$$$getLink$$($dvt$$1$$) {
    return this.$GetLinkByRowIndex$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetAllLinks$ = function $$dvt$$1$$$$AdfDiagram$$$$GetAllLinks$$() {
    var $dvt$$1$$ = [], $DvtScrollbarBackground$$;
    for ($DvtScrollbarBackground$$ in this.$_links$) {
      $dvt$$1$$.push($DvtScrollbarBackground$$);
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetAllNodes$ = function $$dvt$$1$$$$AdfDiagram$$$$GetAllNodes$$() {
    var $dvt$$1$$ = [], $DvtScrollbarBackground$$;
    for ($DvtScrollbarBackground$$ in this.$_nodes$) {
      $dvt$$1$$.push($DvtScrollbarBackground$$);
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getAllNodeMap$ = function $$dvt$$1$$$$AdfDiagram$$$$_getAllNodeMap$$() {
    var $dvt$$1$$ = {}, $DvtScrollbarBackground$$;
    for ($DvtScrollbarBackground$$ in this.$_nodes$) {
      var $DvtScrollbar$$ = this.$getNodeById$($DvtScrollbarBackground$$), $DvtScrollbar$$ = $DvtScrollbar$$.$isContainer$() && !$DvtScrollbar$$.$_childrenFetched$;
      $dvt$$1$$[$DvtScrollbarBackground$$] = $DvtScrollbar$$;
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isolateStack$ = function $$dvt$$1$$$$AdfDiagram$$$$isolateStack$$($nodeId$$20_nodeMap$$3$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $stackName$$ = this.$_nodeStackMap$[$nodeId$$20_nodeMap$$3$$], $DvtAdfDiagramDragSource$$ = null, $DvtScrollbarArrow$$ = this.$getAttributeGroups$();
    $stackName$$ ? $DvtAdfDiagramDragSource$$ = this.$_stackNodeMap$[$stackName$$] : ($stackName$$ = this.$CreateStackName$($nodeId$$20_nodeMap$$3$$, $DvtScrollbarArrow$$), $DvtAdfDiagramDragSource$$ = [$nodeId$$20_nodeMap$$3$$]);
    if ($stackName$$) {
      $nodeId$$20_nodeMap$$3$$ = {};
      for (var $i$$24$$ = 0;$i$$24$$ < $DvtAdfDiagramDragSource$$.length;$i$$24$$++) {
        var $network$$1$$ = this.$_getNodeNetwork$($DvtAdfDiagramDragSource$$[$i$$24$$], $DvtScrollbarBackground$$), $networkId$$;
        for ($networkId$$ in $network$$1$$) {
          var $DvtAdfDiagramKeyboardHandler$$ = this.$CreateStackName$($networkId$$, $DvtScrollbarArrow$$);
          $stackName$$ === $DvtAdfDiagramKeyboardHandler$$ && -1 == $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtAdfDiagramDragSource$$, $networkId$$) && $DvtAdfDiagramDragSource$$.push($networkId$$);
        }
        $nodeId$$20_nodeMap$$3$$ = this.$_mapUnion$($nodeId$$20_nodeMap$$3$$, $network$$1$$);
      }
      this.$_isolateNodeMap$($nodeId$$20_nodeMap$$3$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_concatMap$ = function $$dvt$$1$$$$AdfDiagram$$$$_concatMap$$($map$$) {
    var $DvtScrollbarBackground$$ = "", $DvtScrollbar$$ = !0, $DvtScrollbarEvent$$;
    for ($DvtScrollbarEvent$$ in $map$$) {
      $DvtScrollbar$$ || ($DvtScrollbarBackground$$ += $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$), $DvtScrollbarBackground$$ += $DvtScrollbarEvent$$, $DvtScrollbarBackground$$ += $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$, $DvtScrollbarBackground$$ += $map$$[$DvtScrollbarEvent$$], $DvtScrollbar$$ = !1;
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.restore = function $$dvt$$1$$$$AdfDiagram$$$restore$($event$$24_suppressAnimation$$7$$) {
    var $DvtScrollbarBackground$$ = this.$_isolatedNodes$;
    this.$_isolatedNodeMap$ = this.$_isolatedNodes$ = null;
    $DvtScrollbarBackground$$ && ($event$$24_suppressAnimation$$7$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$processIsolate$(this));
    $event$$24_suppressAnimation$$7$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$ISOLATED_NODES_KEY$, this.$_concatMap$(this.$_isolatedNodeMap$));
    this.dispatchEvent($event$$24_suppressAnimation$$7$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_isolateNodeMap$ = function $$dvt$$1$$$$AdfDiagram$$$$_isolateNodeMap$$($event$$25_nodeMap$$4$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$ === $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_UNION$) {
      this.$_isolatedNodeMap$ = this.$_isolatedNodeMap$ ? this.$_isolatedNodeMap$ : this.$_getAllNodeMap$(), this.$_isolatedNodeMap$ = this.$_mapUnion$(this.$_isolatedNodeMap$, $event$$25_nodeMap$$4$$);
    } else {
      if ($DvtScrollbarBackground$$ === $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_REPLACE$) {
        this.$_isolatedNodeMap$ = $event$$25_nodeMap$$4$$;
      } else {
        if ($event$$25_nodeMap$$4$$) {
          if (this.$_isolatedNodeMap$) {
            this.$_isolatedNodeMap$ = {};
            $DvtScrollbarBackground$$ = {};
            for (var $DvtScrollbarEvent$$ in $event$$25_nodeMap$$4$$) {
              for (var $curId$$1$$ = $DvtScrollbarEvent$$;$curId$$1$$;) {
                ($curId$$1$$ = this.$getNodeById$($curId$$1$$).getData().$getGroupId$()) && ($DvtScrollbarBackground$$[$curId$$1$$] = $curId$$1$$);
              }
            }
            for ($DvtScrollbarEvent$$ in $event$$25_nodeMap$$4$$) {
              -1 != $dvt$$1$$.$ArrayUtils$.$getIndex$(this.$_isolatedNodes$, $DvtScrollbarEvent$$) ? this.$_isolatedNodeMap$[$DvtScrollbarEvent$$] = $event$$25_nodeMap$$4$$[$DvtScrollbarEvent$$] : $DvtScrollbarBackground$$[$DvtScrollbarEvent$$] && (this.$_isolatedNodeMap$[$DvtScrollbarEvent$$] = !1);
            }
          } else {
            this.$_isolatedNodeMap$ = this.$_mapUnion$(null, $event$$25_nodeMap$$4$$);
          }
        }
      }
    }
    this.$_isolatedNodes$ = this.$_keyList$(this.$_isolatedNodeMap$);
    $DvtScrollbar$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$processIsolate$(this);
    $event$$25_nodeMap$$4$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$ISOLATED_NODES_KEY$, this.$_concatMap$(this.$_isolatedNodeMap$));
    this.dispatchEvent($event$$25_nodeMap$$4$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_keyList$ = function $$dvt$$1$$$$AdfDiagram$$$$_keyList$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = null;
    if ($dvt$$1$$) {
      var $DvtScrollbarBackground$$ = [], $DvtScrollbar$$;
      for ($DvtScrollbar$$ in $dvt$$1$$) {
        $DvtScrollbarBackground$$.push($DvtScrollbar$$);
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_mapUnion$ = function $$dvt$$1$$$$AdfDiagram$$$$_mapUnion$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {};
    if ($dvt$$1$$) {
      for (var $DvtScrollbarEvent$$ in $dvt$$1$$) {
        $DvtScrollbar$$[$DvtScrollbarEvent$$] = $dvt$$1$$[$DvtScrollbarEvent$$];
      }
    }
    if ($DvtScrollbarBackground$$) {
      for (var $obj2$$ in $DvtScrollbarBackground$$) {
        $DvtScrollbar$$[$obj2$$] = $DvtScrollbarBackground$$[$obj2$$];
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateStackName$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateStackName$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = "", $DvtScrollbarEvent$$ = this.$getNodeById$($dvt$$1$$), $nodeAttrGroups$$ = $DvtScrollbarEvent$$.getData().$getAttributeGroups$(), $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramDragSource$$++) {
      var $DvtScrollbarArrow$$ = null;
      if ($nodeAttrGroups$$) {
        for (var $j$$3$$ = 0;$j$$3$$ < $nodeAttrGroups$$.length;$j$$3$$++) {
          if (0 === $nodeAttrGroups$$[$j$$3$$].indexOf($DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$])) {
            $DvtScrollbarArrow$$ = $nodeAttrGroups$$[$j$$3$$];
            break;
          }
        }
      }
      $DvtScrollbarArrow$$ && ($DvtScrollbar$$ += $DvtScrollbarArrow$$, $DvtScrollbar$$ += ";");
    }
    if (0 == $DvtScrollbar$$.length) {
      return null;
    }
    ($DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getData().$getGroupId$()) && ($DvtScrollbar$$ = $DvtScrollbarEvent$$ + ":" + $DvtScrollbar$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateButton$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateButton$$($iconEna_ovr$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $hh$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    var $buttonStyles$$1$$ = this.$_diagramButtonStyles$, $IMAGE_SIZE$$ = $dvt$$1$$.$PanelDrawer$.$IMAGE_SIZE$;
    $DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$);
    $hh$$ || ($hh$$ = $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$);
    var $borderRadius$$ = this.$_buttonBorderRadius$, $DvtAdfDiagramKeyboardHandler$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarEvent$$, $hh$$);
    $DvtAdfDiagramKeyboardHandler$$.$setRx$($borderRadius$$);
    $DvtAdfDiagramKeyboardHandler$$.$setRy$($borderRadius$$);
    var $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$), $DvtAdfDiagramNodeEndpoint$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$);
    $DvtAdfDiagramKeyboardHandler$$.$setFill$($DvtAdfDiagramEditorManager$$);
    $DvtAdfDiagramKeyboardHandler$$.$setStroke$($DvtAdfDiagramNodeEndpoint$$);
    $iconEna_ovr$$ && ($DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.Image(this.$getCtx$(), $iconEna_ovr$$, 0, 0, $IMAGE_SIZE$$, $IMAGE_SIZE$$), $DvtAdfDiagramKeyboardHandler$$.$addChild$($DvtAdfDiagramEditorManager$$), $DvtAdfDiagramEditorManager$$.$setTranslate$(.5 * ($DvtScrollbarEvent$$ - $DvtAdfDiagramEditorManager$$.getWidth()), $DvtAdfDiagramDragSource$$ + .5 * ($hh$$ - $DvtAdfDiagramDragSource$$ - $DvtAdfDiagramEditorManager$$.getHeight())));
    $iconEna_ovr$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarEvent$$, $hh$$);
    $iconEna_ovr$$.$setRx$($borderRadius$$);
    $iconEna_ovr$$.$setRy$($borderRadius$$);
    $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$);
    $DvtAdfDiagramNodeEndpoint$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$);
    $iconEna_ovr$$.$setFill$($DvtAdfDiagramEditorManager$$);
    $iconEna_ovr$$.$setStroke$($DvtAdfDiagramNodeEndpoint$$);
    $DvtScrollbarBackground$$ && ($DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.Image(this.$getCtx$(), $DvtScrollbarBackground$$, 0, 0, $IMAGE_SIZE$$, $IMAGE_SIZE$$), $iconEna_ovr$$.$addChild$($DvtAdfDiagramEditorManager$$), $DvtAdfDiagramEditorManager$$.$setTranslate$(.5 * ($DvtScrollbarEvent$$ - $DvtAdfDiagramEditorManager$$.getWidth()), $DvtAdfDiagramDragSource$$ + .5 * ($hh$$ - $DvtAdfDiagramDragSource$$ - $DvtAdfDiagramEditorManager$$.getHeight())));
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarEvent$$, $hh$$);
    $DvtScrollbarBackground$$.$setRx$($borderRadius$$);
    $DvtScrollbarBackground$$.$setRy$($borderRadius$$);
    $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$);
    $DvtAdfDiagramNodeEndpoint$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($buttonStyles$$1$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$);
    $DvtScrollbarBackground$$.$setFill$($DvtAdfDiagramEditorManager$$);
    $DvtScrollbarBackground$$.$setStroke$($DvtAdfDiagramNodeEndpoint$$);
    $DvtScrollbar$$ && ($DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.Image(this.$getCtx$(), $DvtScrollbar$$, 0, 0, $IMAGE_SIZE$$, $IMAGE_SIZE$$), $DvtScrollbarBackground$$.$addChild$($DvtAdfDiagramEditorManager$$), $DvtAdfDiagramEditorManager$$.$setTranslate$(.5 * ($DvtScrollbarEvent$$ - $DvtAdfDiagramEditorManager$$.getWidth()), $DvtAdfDiagramDragSource$$ + .5 * ($hh$$ - $DvtAdfDiagramDragSource$$ - $DvtAdfDiagramEditorManager$$.getHeight())));
    $DvtScrollbar$$ = new $dvt$$1$$.$Button$(this.$getCtx$(), $DvtAdfDiagramKeyboardHandler$$, $iconEna_ovr$$, $DvtScrollbarBackground$$, null, $DvtScrollbarArrow$$);
    $DvtScrollbar$$.$setPixelHinting$();
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateRestoreButton$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateRestoreButton$$() {
    var $button$$1_restoreEna$$ = this.$getResourcesMap$().restoreEna, $DvtScrollbarBackground$$ = this.$getResourcesMap$().restoreOvr, $DvtScrollbar$$ = this.$getResourcesMap$().restoreDwn, $DvtScrollbarEvent$$ = this.$getResourcesMap$().restoreTip, $button$$1_restoreEna$$ = this.$CreateButton$($button$$1_restoreEna$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagram$.$_WIDE_BUTTON_SIZE$, $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$ + this.$_buttonBorderRadius$, this.$_buttonBorderRadius$, 
    "restore"), $DvtScrollbarBackground$$ = {$getTooltip$:function() {
      return $DvtScrollbarEvent$$;
    }}, $thisRef$$ = this;
    $DvtScrollbarBackground$$.$HandleClick$ = function $$DvtScrollbarBackground$$$$HandleClick$$($button$$1_restoreEna$$) {
      $dvt$$1$$.$EventManager$.$consumeEvent$($button$$1_restoreEna$$);
      $thisRef$$.$HandleRestore$();
    };
    $DvtScrollbarBackground$$.$isUnrelatedToSelection$ = function $$DvtScrollbarBackground$$$$isUnrelatedToSelection$$() {
      return !0;
    };
    this.$getEventManager$().$associate$($button$$1_restoreEna$$, $DvtScrollbarBackground$$);
    return $button$$1_restoreEna$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleRestore$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleRestore$$($evt$$22$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($evt$$22$$);
    this.restore($DvtScrollbar$$);
    this.$HideRestoreButton$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowRestoreButton$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowRestoreButton$$() {
    if (!this.$_restoreButton$ && $dvt$$1$$.$Agent$.$isEnvironmentBrowser$() && "off" != this.$_showRestore$) {
      this.$_restoreButton$ = new $dvt$$1$$.$Container$(this.$getCtx$());
      var $button$$2_topMargin$$ = this.$CreateRestoreButton$();
      this.$_restoreButton$.$addChild$($button$$2_topMargin$$);
      this.$addChild$(this.$_restoreButton$);
      var $DvtScrollbarBackground$$ = this.$_restoreButton$.$getDimensions$();
      $button$$2_topMargin$$.$setTranslateY$(-this.$_buttonBorderRadius$);
      $button$$2_topMargin$$.$setClipPath$(this.$CreateClipRect$(-5, 0, $DvtScrollbarBackground$$.$w$ + 10, $DvtScrollbarBackground$$.$h$ + 5, "restoreButtonClip"));
      $button$$2_topMargin$$ = this.$_panZoomCanvas$.$getTranslateY$();
      this.$_restoreButton$.$setTranslate$(.5 * (this.getWidth() - ($DvtScrollbarBackground$$.x + $DvtScrollbarBackground$$.$w$)), $button$$2_topMargin$$);
      this.$_restoreButton$.$setAlpha$(0);
      $DvtScrollbarBackground$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), .25);
      $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_restoreButton$, this.$_restoreButton$.$getAlpha$, this.$_restoreButton$.$setAlpha$, 1);
      $DvtScrollbarBackground$$.play();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideRestoreButton$ = function $$dvt$$1$$$$AdfDiagram$$$$HideRestoreButton$$() {
    if (this.$_restoreButton$) {
      var $anim$$1$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), .25);
      $anim$$1$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_restoreButton$, this.$_restoreButton$.$getAlpha$, this.$_restoreButton$.$setAlpha$, 0);
      $anim$$1$$.$setOnEnd$(this.$RemoveRestoreButton$, this);
      $anim$$1$$.play();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RemoveRestoreButton$ = function $$dvt$$1$$$$AdfDiagram$$$$RemoveRestoreButton$$() {
    this.$_restoreButton$ && (this.$_restoreButton$.$destroy$(), this.$_restoreButton$.getParent().removeChild(this.$_restoreButton$), this.$_restoreButton$ = null);
    var $dvt$$1$$ = this.$getCtx$().$getTooltipManager$();
    $dvt$$1$$ && $dvt$$1$$.$hideTooltip$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CalcOffsetToPanNodeIntoView$ = function $$dvt$$1$$$$AdfDiagram$$$$CalcOffsetToPanNodeIntoView$$($nodeId$$22$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$GetViewBounds$($DvtScrollbarBackground$$, [$nodeId$$22$$], []), $DvtScrollbarEvent$$ = this.$_panZoomCanvas$.$getViewport$(), $diffX_ztfPadding$$ = this.$_panZoomCanvas$.$_zoomToFitPadding$ / this.$_panZoomCanvas$.$getZoom$();
    $DvtScrollbarEvent$$.x += $diffX_ztfPadding$$;
    $DvtScrollbarEvent$$.y += $diffX_ztfPadding$$;
    $DvtScrollbarEvent$$.$w$ -= 2 * $diffX_ztfPadding$$;
    $DvtScrollbarEvent$$.$h$ -= 2 * $diffX_ztfPadding$$;
    var $DvtAdfDiagramDragSource$$ = $diffX_ztfPadding$$ = 0;
    $DvtScrollbar$$.x + $DvtScrollbar$$.$w$ > $DvtScrollbarEvent$$.x + $DvtScrollbarEvent$$.$w$ && ($diffX_ztfPadding$$ += $DvtScrollbarEvent$$.x + $DvtScrollbarEvent$$.$w$ - ($DvtScrollbar$$.x + $DvtScrollbar$$.$w$), $DvtScrollbarEvent$$.x -= $diffX_ztfPadding$$);
    $DvtScrollbar$$.x < $DvtScrollbarEvent$$.x && ($diffX_ztfPadding$$ += $DvtScrollbarEvent$$.x - $DvtScrollbar$$.x, $DvtScrollbarEvent$$.x -= $diffX_ztfPadding$$);
    $DvtScrollbar$$.y + $DvtScrollbar$$.$h$ > $DvtScrollbarEvent$$.y + $DvtScrollbarEvent$$.$h$ && ($DvtAdfDiagramDragSource$$ += $DvtScrollbarEvent$$.y + $DvtScrollbarEvent$$.$h$ - ($DvtScrollbar$$.y + $DvtScrollbar$$.$h$), $DvtScrollbarEvent$$.y -= $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$.y < $DvtScrollbarEvent$$.y && ($DvtAdfDiagramDragSource$$ += $DvtScrollbarEvent$$.y - $DvtScrollbar$$.y, $DvtScrollbarEvent$$.y -= $DvtAdfDiagramDragSource$$);
    return new $dvt$$1$$.$Point$($diffX_ztfPadding$$, $DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setReadOnly$ = function $$dvt$$1$$$$AdfDiagram$$$$setReadOnly$$($dvt$$1$$) {
    this.$_editor$ = $dvt$$1$$ ? null : new $DvtAdfDiagramEditorManager$$(this.$getCtx$(), this);
    this.$_readOnly$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isReadOnly$ = function $$dvt$$1$$$$AdfDiagram$$$$isReadOnly$$() {
    return this.$_readOnly$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setHasDragSource$ = function $$dvt$$1$$$$AdfDiagram$$$$setHasDragSource$$($dvt$$1$$) {
    this.$_hasDragSource$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLinkToolEnabled$ = function $$dvt$$1$$$$AdfDiagram$$$$setLinkToolEnabled$$($dvt$$1$$) {
    this.$_linkToolEnabled$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setStickyNodeEnabled$ = function $$dvt$$1$$$$AdfDiagram$$$$setStickyNodeEnabled$$($dvt$$1$$) {
    this.$_stickyNodeEnabled$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCreateLinkDef$ = function $$dvt$$1$$$$AdfDiagram$$$$setCreateLinkDef$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_createLinkDef$ = $DvtScrollbarBackground$$;
    this.$_createLinkPaletteId$ = $dvt$$1$$;
    this.$addLinkDef$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getCreateLinkData$ = function $$dvt$$1$$$$AdfDiagram$$$$getCreateLinkData$$() {
    if (!this.$_createLinkDef$) {
      var $linkDef$$2_ret$$ = new $dvt$$1$$.$AdfDiagramLinkDef$;
      $linkDef$$2_ret$$.setId("FakeLinkDef");
      $linkDef$$2_ret$$.$setLinkWidth$("3px");
      $linkDef$$2_ret$$.$setLinkColor$("green");
      $linkDef$$2_ret$$.$setLinkStyle$($dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DOT$);
      this.$setCreateLinkDef$("fake", $linkDef$$2_ret$$);
    }
    $linkDef$$2_ret$$ = {};
    $linkDef$$2_ret$$.$linkDef$ = this.$_createLinkDef$;
    $linkDef$$2_ret$$.$paletteId$ = this.$_createLinkPaletteId$;
    return $linkDef$$2_ret$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCreateNodeStamp$ = function $$dvt$$1$$$$AdfDiagram$$$$setCreateNodeStamp$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_createNodeDef$ = this.$createNodeDef$($DvtScrollbarBackground$$);
    this.$_createNodePaletteId$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getCreateNodeData$ = function $$dvt$$1$$$$AdfDiagram$$$$getCreateNodeData$$() {
    var $dvt$$1$$ = {};
    $dvt$$1$$.$nodeDef$ = this.$_createNodeDef$;
    $dvt$$1$$.$paletteId$ = this.$_createNodePaletteId$;
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$handlePaletteEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$handlePaletteEvent$$($data$$31_event$$26$$) {
    if ("selection" == $data$$31_event$$26$$.type) {
      var $DvtScrollbarBackground$$ = $data$$31_event$$26$$.selection;
      if ($DvtScrollbarBackground$$ && 1 <= $DvtScrollbarBackground$$.length) {
        this.$setStickyNodeEnabled$(!1);
        this.$setLinkToolEnabled$(!1);
        for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
          $data$$31_event$$26$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
          var $DvtScrollbarEvent$$ = $data$$31_event$$26$$.$paletteId$, $itemId$$ = $data$$31_event$$26$$.id, $DvtAdfDiagramDragSource$$ = $data$$31_event$$26$$.$def$;
          $data$$31_event$$26$$.type == $DvtPaletteLinkItem$$.$LINK_TYPE$ ? (this.$setLinkToolEnabled$(!0), this.$setCreateLinkDef$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$), $data$$31_event$$26$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$Palette$.$PALETTE_ACTIVE_LINK_KEY$, $itemId$$), this.dispatchEvent($data$$31_event$$26$$)) : $data$$31_event$$26$$.type == $DvtPaletteLinkItem$$.$NODE_TYPE$ && (this.$setCreateNodeStamp$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$), 
          this.$setStickyNodeEnabled$(!0));
        }
      } else {
        this.$setStickyNodeEnabled$(!1), this.$setLinkToolEnabled$(!1);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$createNodeDef$ = function $$dvt$$1$$$$AdfDiagram$$$$createNodeDef$$($stamp$$2$$) {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AdfDiagramNodeDef$;
    $DvtScrollbarBackground$$.setId("FakeNodeDef" + this.$_fakeNodeDefCount$);
    this.$_fakeNodeDefCount$++;
    $DvtScrollbarBackground$$.$setNodeTemplate$($stamp$$2$$, "zoom100");
    $DvtScrollbarBackground$$.$setNodeTemplate$($stamp$$2$$, "zoom75");
    $DvtScrollbarBackground$$.$setNodeTemplate$($stamp$$2$$, "zoom50");
    $DvtScrollbarBackground$$.$setNodeTemplate$($stamp$$2$$, "zoom25");
    this.$addNodeDef$($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$__isDragAvailable$ = function $$dvt$$1$$$$AdfDiagram$$$$__isDragAvailable$$($dvt$$1$$) {
    return this.$_hasDragSource$ ? this.$_selectionHandler$ ? $dvt$$1$$[0] : null : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$__getDragTransferable$ = function $$dvt$$1$$$$AdfDiagram$$$$__getDragTransferable$$($dvt$$1$$) {
    $dvt$$1$$.$isSelected$() || (this.$_selectionHandler$.$processClick$($dvt$$1$$, !1), this.$EventManager$.$fireSelectionEvent$());
    $dvt$$1$$ = [];
    for (var $DvtScrollbarBackground$$ = this.$_selectionHandler$.getSelection(), $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$].getId();
      this.$__addRowKeyToDragTransferable$($DvtScrollbarEvent$$, $dvt$$1$$);
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$__addRowKeyToDragTransferable$ = function $$dvt$$1$$$$AdfDiagram$$$$__addRowKeyToDragTransferable$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    "N" == $dvt$$1$$.substring(0, 1) && $DvtScrollbarBackground$$.push($dvt$$1$$.substring(1));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$__getDragFeedback$ = function $$dvt$$1$$$$AdfDiagram$$$$__getDragFeedback$$() {
    for (var $dvt$$1$$ = [], $DvtScrollbarBackground$$ = this.$_selectionHandler$.getSelection(), $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      this.$__addDisplayableToDragFeedback$($DvtScrollbarBackground$$[$DvtScrollbar$$].$__getDisplayable$(), $dvt$$1$$);
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$__addDisplayableToDragFeedback$ = function $$dvt$$1$$$$AdfDiagram$$$$__addDisplayableToDragFeedback$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$.push($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$Log$ = function $$dvt$$1$$$$AdfDiagram$$$$Log$$($msg$$, $DvtScrollbarBackground$$) {
    this.dispatchEvent($dvt$$1$$.$EventFactory$.$newAdfLogEvent$($DvtScrollbarBackground$$, $msg$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setResources$ = function $$dvt$$1$$$$AdfDiagram$$$$setResources$$($childNodes$$1_uris$$) {
    this.$_addToResourcesMap$($childNodes$$1_uris$$);
    $childNodes$$1_uris$$ = $childNodes$$1_uris$$.$getChildNodes$();
    for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $childNodes$$1_uris$$.length;$DvtScrollbarBackground$$++) {
      var $DvtScrollbar$$ = $childNodes$$1_uris$$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = $DvtScrollbar$$.getName();
      $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_LEGEND$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_PALETTE$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_SEARCHPANEL$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_PANELDRAWER$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == 
      $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_CONTROLPANEL$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_TRANSIENT_TOOLBAR$ ? this.$_addToResourcesMap$($DvtScrollbar$$) : $DvtScrollbarEvent$$ == $dvt$$1$$.$AdfDiagram$.$_ELEM_RESOURCES_NODE$ && this.$_addToResourcesMap$($DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_addToResourcesMap$ = function $$dvt$$1$$$$AdfDiagram$$$$_addToResourcesMap$$($dvt$$1$$) {
    $dvt$$1$$ = $dvt$$1$$.getAttributes();
    for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$.length;$DvtScrollbarBackground$$++) {
      var $DvtScrollbar$$ = $dvt$$1$$[$DvtScrollbarBackground$$];
      this.$getResourcesMap$()[$DvtScrollbar$$.name] = $DvtScrollbar$$.value;
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AdjustViewSpace$ = function $$dvt$$1$$$$AdfDiagram$$$$AdjustViewSpace$$($dvt$$1$$) {
    this.$_panZoomCanvas$.$setTranslateY$($dvt$$1$$);
    this.$_panZoomCanvas$.$setSize$(this.getWidth(), this.getHeight() - $dvt$$1$$);
    this.$_panelDrawer$ && this.$_panelDrawer$.$setTranslateY$($dvt$$1$$);
    this.$_restoreButton$ && this.$_restoreButton$.$setTranslateY$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateClipRect$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateClipRect$$($x$$62$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $clipPath_id$$15$$) {
    $clipPath_id$$15$$ = new $dvt$$1$$.$ClipPath$($clipPath_id$$15$$);
    $clipPath_id$$15$$.$addRect$($x$$62$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    return $clipPath_id$$15$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$UpdateDrillBreadcrumbs$ = function $$dvt$$1$$$$AdfDiagram$$$$UpdateDrillBreadcrumbs$$($animator$$16$$) {
    if (this.$_drilledNodePath$) {
      var $DvtScrollbarBackground$$ = !0;
      this.$_oldDrillBreadcrumbs$ = this.$_drillBreadcrumbs$;
      var $DvtScrollbar$$ = this.$getBreadcrumbsOptions$();
      this.$_drillBreadcrumbs$ = new $dvt$$1$$.$Breadcrumbs$(this.$getCtx$(), this.$_processDrillBreadcrumbsEvent$, this, $DvtScrollbar$$);
      this.$_drillBreadcrumbs$.setId(this.getId() + "_bc");
      this.$addChild$(this.$_drillBreadcrumbs$);
      this.$_drillBreadcrumbs$.$setTranslateX$(5);
      this.$_oldDrillBreadcrumbs$ && this.$EventManager$.$removeComponentKeyboardHandler$(this.$_oldDrillBreadcrumbs$.$getEventManager$());
      this.$_drillBreadcrumbs$ && this.$EventManager$.$addComponentKeyboardHandlerAt$(this.$_drillBreadcrumbs$.$getEventManager$());
      $animator$$16$$ && (this.$_drillBreadcrumbs$.$setAlpha$(0), $animator$$16$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_drillBreadcrumbs$, this.$_drillBreadcrumbs$.$getAlpha$, this.$_drillBreadcrumbs$.$setAlpha$, 1));
      this.$_oldDrillBreadcrumbs$ ? (this.$_drillBreadcrumbs$.$setTranslateY$(this.$_oldDrillBreadcrumbs$.$getTranslateY$()), $animator$$16$$ && $animator$$16$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_oldDrillBreadcrumbs$, this.$_oldDrillBreadcrumbs$.$getAlpha$, this.$_oldDrillBreadcrumbs$.$setAlpha$, 0)) : $DvtScrollbarBackground$$ = !1;
      var $DvtScrollbar$$ = {items:[]}, $DvtScrollbarEvent$$ = {id:null};
      $DvtScrollbarEvent$$.label = this.$getResourcesMap$().drillRoot;
      $DvtScrollbar$$.items.push($DvtScrollbarEvent$$);
      for (var $i$$31$$ = 0;$i$$31$$ < this.$_drilledNodePath$.length;$i$$31$$++) {
        var $DvtScrollbarEvent$$ = {}, $DvtAdfDiagramDragSource$$ = this.$_drilledNodePath$[$i$$31$$];
        $DvtScrollbarEvent$$.id = $DvtAdfDiagramDragSource$$;
        var $DvtAdfDiagramDragSource$$ = this.$getNodeById$($DvtAdfDiagramDragSource$$), $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getLabel$();
        $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getShortDesc$());
        $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = "...");
        $DvtScrollbarEvent$$.label = $DvtScrollbarArrow$$;
        $DvtScrollbar$$.items.push($DvtScrollbarEvent$$);
      }
      this.$_drillBreadcrumbs$.$render$($DvtScrollbar$$, this.$Width$ - 10);
      $DvtScrollbar$$ = this.$_drillBreadcrumbs$.$getDimensions$();
      this.$AdjustViewSpace$(5 + $DvtScrollbar$$.y + $DvtScrollbar$$.$h$ + 10);
      $animator$$16$$ && $DvtScrollbarBackground$$ ? ($animator$$16$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_drillBreadcrumbs$, this.$_drillBreadcrumbs$.$getTranslateY$, this.$_drillBreadcrumbs$.$setTranslateY$, 5), this.$_oldDrillBreadcrumbs$ && ($animator$$16$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_oldDrillBreadcrumbs$, this.$_oldDrillBreadcrumbs$.$getTranslateY$, this.$_oldDrillBreadcrumbs$.$setTranslateY$, 5), $dvt$$1$$.$Playable$.$appendOnEnd$($animator$$16$$, this.$RemoveOldDrillBreadcrumbs$, 
      this))) : (this.$_drillBreadcrumbs$.$setTranslateY$(5), this.$_oldDrillBreadcrumbs$ && this.$RemoveOldDrillBreadcrumbs$());
    } else {
      if (this.$_drillBreadcrumbs$) {
        var $thisRef$$1$$ = this, $DvtScrollbarBackground$$ = function $$DvtScrollbarBackground$$$() {
          $thisRef$$1$$.$AdjustViewSpace$(0);
        };
        $animator$$16$$ ? ($animator$$16$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_drillBreadcrumbs$, this.$_drillBreadcrumbs$.$getAlpha$, this.$_drillBreadcrumbs$.$setAlpha$, 0), $dvt$$1$$.$Playable$.$appendOnEnd$($animator$$16$$, this.$RemoveDrillBreadcrumbs$, this), $dvt$$1$$.$Playable$.$appendOnEnd$($animator$$16$$, $DvtScrollbarBackground$$)) : (this.$RemoveDrillBreadcrumbs$(), $DvtScrollbarBackground$$());
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RemoveDrillBreadcrumbs$ = function $$dvt$$1$$$$AdfDiagram$$$$RemoveDrillBreadcrumbs$$() {
    this.$EventManager$.$removeComponentKeyboardHandler$(this.$_drillBreadcrumbs$.$getEventManager$());
    this.$_drillBreadcrumbs$.getParent().removeChild(this.$_drillBreadcrumbs$);
    this.$_drillBreadcrumbs$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RemoveOldDrillBreadcrumbs$ = function $$dvt$$1$$$$AdfDiagram$$$$RemoveOldDrillBreadcrumbs$$() {
    this.$_oldDrillBreadcrumbs$.getParent().removeChild(this.$_oldDrillBreadcrumbs$);
    this.$_oldDrillBreadcrumbs$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processDrillBreadcrumbsEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_processDrillBreadcrumbsEvent$$($event$$27$$) {
    $event$$27$$ instanceof $dvt$$1$$.$BreadcrumbsDrillEvent$ && this.$drillNode$($event$$27$$.getId());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getBreadcrumbs$ = function $$dvt$$1$$$$AdfDiagram$$$$getBreadcrumbs$$() {
    return this.$_drillBreadcrumbs$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ShowNodeTransientToolbar$ = function $$dvt$$1$$$$AdfDiagram$$$$ShowNodeTransientToolbar$$($node$$40$$, $DvtScrollbarBackground$$) {
    this.$HideNodeTransientToolbar$();
    if ($node$$40$$.$IsTransientToolbarOnClick$()) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$;
      $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ComponentTouchEvent$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$touch$);
      $DvtScrollbar$$ = this.$getCtx$().$pageToStageCoords$($DvtScrollbar$$.pageX, $DvtScrollbar$$.pageY);
      $node$$40$$.$ShowTransientToolbar$($DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideNodeTransientToolbar$ = function $$dvt$$1$$$$AdfDiagram$$$$HideNodeTransientToolbar$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_transientToolbarDataId$;
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$ = this.$getNodeById$($DvtScrollbarBackground$$)) && $DvtScrollbarBackground$$.$IsTransientToolbarOnClick$() && $DvtScrollbarBackground$$.$HideTransientToolbar$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HideNodeFlyOuts$ = function $$dvt$$1$$$$AdfDiagram$$$$HideNodeFlyOuts$$($dvt$$1$$) {
    this.$HideNodeTransientToolbar$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetTransientToolbarDataId$ = function $$dvt$$1$$$$AdfDiagram$$$$SetTransientToolbarDataId$$($dvt$$1$$) {
    this.$_transientToolbarDataId$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetShowRestore$ = function $$dvt$$1$$$$AdfDiagram$$$$SetShowRestore$$($dvt$$1$$) {
    this.$_showRestore$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCenterNode$ = function $$dvt$$1$$$$AdfDiagram$$$$setCenterNode$$($dvt$$1$$) {
    this.$_centerNode$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addToAfImageNotReadyList$ = function $$dvt$$1$$$$AdfDiagram$$$$addToAfImageNotReadyList$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_imageNotReadyList$ || (this.$_imageNotReadyList$ = []);
    this.$_imageNotReadyList$.push({url:$DvtScrollbarBackground$$, nodeId:$dvt$$1$$.getData().getId(), zoom:$dvt$$1$$.$getZoom$()});
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$onAfImageLoaded$ = function $$dvt$$1$$$$AdfDiagram$$$$onAfImageLoaded$$($image$$2$$) {
    if (this.$_imageNotReadyList$ && 0 < this.$_imageNotReadyList$.length) {
      this.$_renderZoom100Nodes$ || (this.$_renderZoom100Nodes$ = {});
      for (var $DvtScrollbarBackground$$ = this.$_imageNotReadyList$.length - 1;0 <= $DvtScrollbarBackground$$;$DvtScrollbarBackground$$--) {
        if (this.$_imageNotReadyList$[$DvtScrollbarBackground$$].url == $image$$2$$.url) {
          if (1 == this.$_imageNotReadyList$[$DvtScrollbarBackground$$].zoom) {
            var $DvtScrollbar$$ = this.$_imageNotReadyList$[$DvtScrollbarBackground$$].$nodeId$;
            this.$_renderZoom100Nodes$[$DvtScrollbar$$] = this.$getNodeById$($DvtScrollbar$$);
          }
          this.$_imageNotReadyList$.splice($DvtScrollbarBackground$$, 1);
        }
      }
      $dvt$$1$$.$Agent$.$isEnvironmentBrowser$() ? (this.$_imageLoadTimer$ && this.$_imageLoadTimer$.$isRunning$() || this.$setInteractionEnabled$(!1), this.$StopImageLoadTimer$(), this.$StartImageLoadTimer$()) : this.$RenderComponentInternal$();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$StopImageLoadTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$StopImageLoadTimer$$() {
    this.$_imageLoadTimer$ && (this.$_imageLoadTimer$.stop(), this.$_imageLoadTimer$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$StartImageLoadTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$StartImageLoadTimer$$() {
    this.$_imageLoadTimer$ = new $dvt$$1$$.$Timer$(this.$getCtx$(), 1E3, this.$HandleImageLoadTimer$, this, 1);
    this.$_imageLoadTimer$.start();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleImageLoadTimer$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleImageLoadTimer$$() {
    this.$StopImageLoadTimer$();
    this.$_bAfImageLoaded$ = !0;
    if (this.$RerenderTimer$ && this.$RerenderTimer$.$isRunning$()) {
      this.$setInteractionEnabled$(!0);
    } else {
      var $animator$$17$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), this.$getAnimationDuration$()), $DvtScrollbarBackground$$ = this;
      $dvt$$1$$.$Playable$.$appendOnEnd$($animator$$17$$, function() {
        $DvtScrollbarBackground$$.$setInteractionEnabled$(!0);
      });
      this.$_clearPanningConstraints$();
      this.$_syncOverviewAndPanZoom$ = !0;
      this.$RenderComponentInternal$($animator$$17$$);
      this.$_syncOverviewAndPanZoom$ = !1;
      $animator$$17$$.play();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$startParsingData$ = function $$dvt$$1$$$$AdfDiagram$$$$startParsingData$$() {
    this.$_bRendered$ && (this.$_newNodes$ = []);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$stopParsingData$ = function $$dvt$$1$$$$AdfDiagram$$$$stopParsingData$$() {
    if (this.$_bRendered$ && 0 < this.$_newNodes$.length) {
      for (var $dvt$$1$$ = this.$createAfContext$(), $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_newNodes$.length;$DvtScrollbarBackground$$++) {
        this.$_newNodes$[$DvtScrollbarBackground$$].$SetAlpha$(0), this.$_newNodes$[$DvtScrollbarBackground$$].$setForceZoom100Facet$(!0), this.$_newNodes$[$DvtScrollbarBackground$$].$createNodeContents$($dvt$$1$$);
      }
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_newNodes$.length;$DvtScrollbarBackground$$++) {
        this.$_newNodes$[$DvtScrollbarBackground$$].$renderNode$($dvt$$1$$);
      }
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_newNodes$.length;$DvtScrollbarBackground$$++) {
        this.$_newNodes$[$DvtScrollbarBackground$$].$setForceZoom100Facet$(!1), "dvtDiagramFetchEvent" == this.$_eventType$ && this.$_newNodes$[$DvtScrollbarBackground$$].$setVisible$(!1);
      }
    }
    this.$_newNodes$ = null;
    this.$_drillRoot$ && (($dvt$$1$$ = this.$getNodeById$(this.$_drillRoot$)) && $dvt$$1$$.$isContainer$() && $dvt$$1$$.getData().$_childrenFetched$ && (this.$_drilledNodePath$ = this.$_createDrillPath$(this.$_drillRoot$)), this.$_drillRoot$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$getSearchPanel$$($dvt$$1$$) {
    $dvt$$1$$ && !this.$_searchPanel$ && (this.$_searchPanel$ = this.$CreateSearchPanel$());
    return this.$_searchPanel$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateSearchPanel$$() {
    var $panel$$ = new $dvt$$1$$.$SearchPanel$(this.$getCtx$(), this.$HandleSearchEvent$, this);
    $panel$$.$setSkinName$(this.$_skinName$);
    $panel$$.$setResultsMaxWidth$(.75 * this.getWidth());
    $panel$$.$setResultsMaxHeight$(.75 * this.getHeight());
    this.$EventManager$.$addComponentKeyboardHandler$($panel$$);
    return $panel$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$HandleSearchEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$HandleSearchEvent$$($dvt$$1$$) {
    this.dispatchEvent($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$enableSearchKeyboardHandler$ = function $$dvt$$1$$$$AdfDiagram$$$$enableSearchKeyboardHandler$$() {
    this.$EventManager$.$setCurrentKeyboardHandler$(this.$getSearchPanel$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$enableDiagramKeyboardHandler$ = function $$dvt$$1$$$$AdfDiagram$$$$enableDiagramKeyboardHandler$$() {
    this.$EventManager$.$setCurrentKeyboardHandler$(this.$EventManager$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$LoadSearchResultsData$ = function $$dvt$$1$$$$AdfDiagram$$$$LoadSearchResultsData$$($xNode$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getSearchPanel$();
    if ($DvtScrollbar$$) {
      for (var $DvtScrollbarEvent$$ = $xNode$$;$DvtScrollbarEvent$$ && $DvtScrollbarEvent$$.getName() != $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$;) {
        $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getFirstChild();
      }
      $DvtScrollbarEvent$$ && $DvtScrollbar$$.$parseResultsData$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$LoadSearchResultsDataJson$ = function $$dvt$$1$$$$AdfDiagram$$$$LoadSearchResultsDataJson$$($jsonData$$2$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getSearchPanel$();
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = $jsonData$$2$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$];
      $DvtScrollbarEvent$$ && $DvtScrollbar$$.$parseResultsDataJson$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RenderSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$RenderSearchPanel$$() {
    var $searchPanel$$3$$ = this.$getSearchPanel$();
    $searchPanel$$3$$ && !$searchPanel$$3$$.$canReuse$() && (this.$addChild$($searchPanel$$3$$), $searchPanel$$3$$.$renderComponent$($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "SEARCH"), this.$getResourcesMap$()));
    this.$SetSearchPanel$($searchPanel$$3$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$SetSearchPanel$$($dvt$$1$$) {
    this.$_searchPanel$ = $dvt$$1$$;
    this.$PositionSearchPanel$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$RemoveSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$RemoveSearchPanel$$() {
    this.$_searchPanel$ && (this.$_searchPanel$.getParent() && this.$_searchPanel$.getParent().removeChild(this.$_searchPanel$), this.$_searchPanel$.$destroy$ && this.$_searchPanel$.$destroy$(), this.$_searchPanel$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$PositionSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$PositionSearchPanel$$() {
    var $transX$$;
    this.$_searchPanel$ && !this.$UsePanelDrawer$() && ($transX$$ = $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? $dvt$$1$$.$AdfDiagram$.$_SEARCH_PANEL_POS_PADDING$ : this.getWidth() - $dvt$$1$$.$AdfDiagram$.$_SEARCH_PANEL_POS_PADDING$ - this.$_searchPanel$.getWidth(), this.$_searchPanel$.$setTranslate$($transX$$, $dvt$$1$$.$AdfDiagram$.$_SEARCH_PANEL_POS_PADDING$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateClientBehaviorHandler$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateClientBehaviorHandler$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return new $DvtAdfDiagramClientBehaviorHandler$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setOverviewWindowContentStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setOverviewWindowContentStyle$$($dvt$$1$$) {
    this.$_ovContentStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$FocusSearchField$ = function $$dvt$$1$$$$AdfDiagram$$$$FocusSearchField$$() {
    if (this.$_searchPanel$) {
      var $searchPanel$$4$$ = this.$_searchPanel$, $DvtScrollbarBackground$$ = function $$DvtScrollbarBackground$$$() {
        $searchPanel$$4$$.$focusTextField$();
      };
      this.$UsePanelDrawer$() ? this.$_panelDrawer$.$isDisclosed$() ? this.$_panelDrawer$.$getDisplayedPanelId$() == $dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$ ? this.$_searchPanel$.$focusTextField$() : this.$_panelDrawer$.$setDisplayedPanelId$($dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$, !1, $DvtScrollbarBackground$$) : (this.$_panelDrawer$.$setDisplayedPanelId$($dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$), this.$_panelDrawer$.$setDisclosed$(!0, !1, $DvtScrollbarBackground$$)) : this.$_searchPanel$.$_state$ == 
      $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ ? this.$_searchPanel$.$toggleExpandCollapse$($DvtScrollbarBackground$$) : this.$_searchPanel$.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$ && this.$_searchPanel$.$focusTextField$();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isSearchPanelDisclosed$ = function $$dvt$$1$$$$AdfDiagram$$$$isSearchPanelDisclosed$$() {
    return this.$_searchPanel$ && (this.$UsePanelDrawer$() && this.$_panelDrawer$.$isDisclosed$() && this.$_panelDrawer$.$getDisplayedPanelId$() == $dvt$$1$$.$PanelDrawer$.$PANEL_SEARCH$ || !this.$UsePanelDrawer$() && this.$_searchPanel$.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$) ? !0 : !1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$collapseSearchPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$collapseSearchPanel$$() {
    this.$isSearchPanelDisclosed$() && (this.$UsePanelDrawer$() ? this.$_panelDrawer$.$setDisclosed$(!1, !1) : this.$_searchPanel$.$toggleExpandCollapse$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setNodeStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setNodeStyles$$($dvt$$1$$) {
    this.$_nodeStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLinkStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setLinkStyles$$($dvt$$1$$) {
    this.$_linkStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getBreadcrumbsStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$getBreadcrumbsStyles$$($dvt$$1$$) {
    return this.$_breadcrumbsStyles$ && this.$_breadcrumbsStyles$[$dvt$$1$$] ? this.$_breadcrumbsStyles$[$dvt$$1$$] : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setBreadcrumbsStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setBreadcrumbsStyles$$($dvt$$1$$) {
    this.$_breadcrumbsStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getEditorStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$getEditorStyles$$() {
    if (!this.$_editorStyleMap$) {
      var $editorStyleMap$$ = {};
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_ENA$] = this.$_nodeStyles$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$];
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_ENA$] = "#FFFFFF";
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_DWN$] = this.$_nodeStyles$[$dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$];
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_DWN$] = "#FFFFFF";
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BORDER_COLOR_ATTR$] = this.$_linkStyles$[$dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$];
      $editorStyleMap$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BG_COLOR_ATTR$] = "#FFFFFF";
      this.$_editorStyleMap$ = $editorStyleMap$$;
    }
    return this.$_editorStyleMap$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$createAfContext$ = function $$dvt$$1$$$$AdfDiagram$$$$createAfContext$$($node$$42_nodeId$$25$$) {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AfContext$(this.$getCtx$(), this.$getEventManager$());
    $DvtScrollbarBackground$$.$setSkinName$(this.$_skinName$);
    $DvtScrollbarBackground$$.$setImageCallback$(this, this.$onAfImageLoaded$, this.$addToAfImageNotReadyList$);
    $DvtScrollbarBackground$$.$setMenuDropdownContainer$(this);
    $node$$42_nodeId$$25$$ && ($node$$42_nodeId$$25$$ = this.$getNodeById$($node$$42_nodeId$$25$$)) && $DvtScrollbarBackground$$.$setELContext$($node$$42_nodeId$$25$$.getData().$_elAttributes$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$panelCardEventCallback$ = function $$dvt$$1$$$$AdfDiagram$$$$panelCardEventCallback$$($eventType$$4$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $dvt$$1$$.$AfPanelCard$.$SET_PROP_EVENT$ == $eventType$$4$$ ? this.$_bBlockCardPropEvent$ || this.$fireCardPropEvent$($DvtScrollbarBackground$$, $DvtScrollbar$$) : $dvt$$1$$.$AfPanelCard$.$FETCH_DATA_EVENT$ == $eventType$$4$$ && (this.$_bBlockFetchCardEvent$ || this.$fireFetchCardEvent$($DvtScrollbarBackground$$, $DvtScrollbar$$, this.$_detailNodeContents$ ? !0 : !1));
    this.$HideNodeTransientToolbar$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$fireCardPropEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$fireCardPropEvent$$($nodeId$$27_nodeIdList$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (!this.$_bBlockCardPropEvent$) {
      if ($nodeId$$27_nodeIdList$$ == $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$) {
        this.$_cardIndexes$ = this.$cleanupPanelCardList$($DvtScrollbarBackground$$), this.$_cardIndexes$.push([$nodeId$$27_nodeIdList$$, $DvtScrollbarBackground$$]);
      } else {
        if (isNaN($DvtScrollbarBackground$$)) {
          if ($nodeId$$27_nodeIdList$$ = $nodeId$$27_nodeIdList$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$), $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$), $nodeId$$27_nodeIdList$$.length == $DvtScrollbarBackground$$.length) {
            for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $nodeId$$27_nodeIdList$$.length;$DvtScrollbar$$++) {
              this.$_cardIndexes$ = this.$removeFromPanelCardList$($nodeId$$27_nodeIdList$$[$DvtScrollbar$$]), this.$_cardIndexes$.push([$nodeId$$27_nodeIdList$$[$DvtScrollbar$$], parseInt($DvtScrollbarBackground$$[$DvtScrollbar$$])]);
            }
          }
        } else {
          if ($DvtScrollbar$$) {
            return;
          }
          this.$_cardIndexes$ = this.$removeFromPanelCardList$($nodeId$$27_nodeIdList$$);
          this.$_cardIndexes$.push([$nodeId$$27_nodeIdList$$, $DvtScrollbarBackground$$]);
        }
      }
      this.$_fireCardPropEvent$();
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_fireCardPropEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$_fireCardPropEvent$$() {
    var $event$$30_params$$ = {};
    $event$$30_params$$.cardIndexes = this.$convertPanelCardListToString$(this.$_cardIndexes$);
    $event$$30_params$$ = new $dvt$$1$$.$PanelCardEvent$($dvt$$1$$.$PanelCardEvent$.$PANELCARD_INDEX_EVENT$, $event$$30_params$$);
    this.dispatchEvent($event$$30_params$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$fireFetchCardEvent$ = function $$dvt$$1$$$$AdfDiagram$$$$fireFetchCardEvent$$($nodeId$$28_nodeIdList$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$fireCardPropEvent$($nodeId$$28_nodeIdList$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    if (!this.$_bBlockFetchCardEvent$ && ($nodeId$$28_nodeIdList$$1$$ = this.$getNodesNeedFetchPanelCard$($nodeId$$28_nodeIdList$$1$$, $DvtScrollbarBackground$$))) {
      var $DvtScrollbarEvent$$ = {};
      $DvtScrollbarEvent$$.clientRowKey = $nodeId$$28_nodeIdList$$1$$;
      $DvtScrollbarEvent$$.nextc = $DvtScrollbarBackground$$;
      $DvtScrollbarEvent$$.pchw = $DvtScrollbar$$;
      $DvtScrollbarBackground$$ = new $dvt$$1$$.$PanelCardEvent$($dvt$$1$$.$PanelCardEvent$.$PANELCARD_FETCH_EVENT$, $DvtScrollbarEvent$$);
      this.dispatchEvent($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$cleanupPanelCardList$ = function $$dvt$$1$$$$AdfDiagram$$$$cleanupPanelCardList$$($sdiIndex$$1$$) {
    var $DvtScrollbarBackground$$ = this;
    return this.$_cardIndexes$.filter(function($DvtScrollbar$$) {
      return $DvtScrollbar$$ && 2 == $DvtScrollbar$$.length && $DvtScrollbar$$[0] != $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtScrollbar$$[0]), -1 == $DvtScrollbarBackground$$.$_findPanelCardIndex$($DvtScrollbar$$, $sdiIndex$$1$$)) ? !0 : !1;
    });
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$removeFromPanelCardList$ = function $$dvt$$1$$$$AdfDiagram$$$$removeFromPanelCardList$$($dvt$$1$$) {
    return this.$_cardIndexes$.filter(function($DvtScrollbarBackground$$) {
      return $DvtScrollbarBackground$$ && 2 == $DvtScrollbarBackground$$.length ? $DvtScrollbarBackground$$[0] != $dvt$$1$$ : !1;
    });
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_findPanelCardIndex$ = function $$dvt$$1$$$$AdfDiagram$$$$_findPanelCardIndex$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if ($dvt$$1$$) {
      var $DvtScrollbar$$ = this.$_getFirstPanelCard$($dvt$$1$$);
      if ($DvtScrollbar$$) {
        return $DvtScrollbar$$.$getVisibleDetailItemIndex$($DvtScrollbarBackground$$, $dvt$$1$$.getData());
      }
    }
    return -1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getFirstPanelCard$ = function $$dvt$$1$$$$AdfDiagram$$$$_getFirstPanelCard$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_getFirstPanelCardTemplate$($dvt$$1$$);
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$stamp$($dvt$$1$$.getData().$_elAttributes$));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getFirstPanelCardTemplate$ = function $$dvt$$1$$$$AdfDiagram$$$$_getFirstPanelCardTemplate$$($node$$46$$) {
    if (!$node$$46$$) {
      return null;
    }
    var $DvtScrollbarBackground$$ = $node$$46$$.$getZoom$();
    $node$$46$$.$setForceZoom100Facet$(!0);
    var $DvtScrollbar$$ = $node$$46$$.$GetNodeTemplate$(), $DvtScrollbarEvent$$ = [];
    $DvtScrollbarEvent$$.push($DvtScrollbar$$);
    for (var $panelCard$$2$$;0 < $DvtScrollbarEvent$$.length;) {
      $DvtScrollbar$$ = $DvtScrollbarEvent$$.splice(0, 1);
      $DvtScrollbar$$ = $DvtScrollbar$$[0];
      if ($DvtScrollbar$$ instanceof $dvt$$1$$.$AfPanelCard$) {
        $panelCard$$2$$ = $DvtScrollbar$$;
        break;
      }
      for (var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getNumChildren$(), $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtAdfDiagramDragSource$$;$DvtScrollbarArrow$$++) {
        $DvtScrollbarEvent$$.push($DvtScrollbar$$.$getChildAt$($DvtScrollbarArrow$$));
      }
    }
    $node$$46$$.$setForceZoom100Facet$(!1);
    $node$$46$$.$setZoom$($DvtScrollbarBackground$$);
    return $panelCard$$2$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$convertPanelCardListToString$ = function $$dvt$$1$$$$AdfDiagram$$$$convertPanelCardListToString$$($panelCardList$$) {
    var $DvtScrollbarBackground$$ = null;
    if ($panelCardList$$) {
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $panelCardList$$.length;$DvtScrollbar$$++) {
        var $DvtScrollbarEvent$$ = $panelCardList$$[$DvtScrollbar$$];
        $DvtScrollbarEvent$$ && 2 == $DvtScrollbarEvent$$.length && ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$ + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $DvtScrollbarEvent$$[0] + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $DvtScrollbarEvent$$[1] : $DvtScrollbarEvent$$[0] + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $DvtScrollbarEvent$$[1]);
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getNodesNeedFetchPanelCard$ = function $$dvt$$1$$$$AdfDiagram$$$$getNodesNeedFetchPanelCard$$($nodeId$$30$$, $DvtScrollbarBackground$$) {
    if ($nodeId$$30$$ == $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$) {
      var $DvtScrollbar$$ = "", $DvtScrollbarEvent$$ = this;
      this.$VisitVisibleNodes$(function($dvt$$1$$) {
        $DvtScrollbar$$ = $DvtScrollbarEvent$$.$_getNodesNeedFetchPanelCard$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
      }, this);
      return 0 == $DvtScrollbar$$.length ? null : $DvtScrollbar$$;
    }
    return $nodeId$$30$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_getNodesNeedFetchPanelCard$ = function $$dvt$$1$$$$AdfDiagram$$$$_getNodesNeedFetchPanelCard$$($node$$49_panelCard$$3$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = -1, $nodeId$$31$$ = $node$$49_panelCard$$3$$.getData().getId();
    ($node$$49_panelCard$$3$$ = this.$_getFirstPanelCard$($node$$49_panelCard$$3$$)) && $node$$49_panelCard$$3$$.$isPanelCardDeliveryLazy$() && (-1 == $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $node$$49_panelCard$$3$$.$getVisibleDetailItemIndex$($DvtScrollbarBackground$$)), -1 == $DvtScrollbarEvent$$ || this.$isShowDetailItemLoaded$($nodeId$$31$$, $DvtScrollbarEvent$$) || (0 < $DvtScrollbar$$.length && ($DvtScrollbar$$ += $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$), $DvtScrollbar$$ += $nodeId$$31$$));
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$VisitVisibleNodes$ = function $$dvt$$1$$$$AdfDiagram$$$$VisitVisibleNodes$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ in this.$_nodes$) {
      var $DvtScrollbarEvent$$ = this.$getNodeById$($DvtScrollbar$$);
      $DvtScrollbarEvent$$.$_bVisible$ && $dvt$$1$$.call($DvtScrollbarBackground$$, $DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$startParsingPanelCardData$ = function $$dvt$$1$$$$AdfDiagram$$$$startParsingPanelCardData$$() {
    this.$_newNodes$ = [];
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addPanelCardData$ = function $$dvt$$1$$$$AdfDiagram$$$$addPanelCardData$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getNodeById$($dvt$$1$$);
    $DvtScrollbar$$ && ($DvtScrollbar$$.getData().$addElAttributes$($DvtScrollbarBackground$$), this.$_newNodes$.push($DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addPanelCardDataJson$ = function $$dvt$$1$$$$AdfDiagram$$$$addPanelCardDataJson$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getNodeById$($dvt$$1$$);
    $DvtScrollbar$$ && ($DvtScrollbar$$.getData().$addElAttributesJson$($DvtScrollbarBackground$$), this.$_newNodes$.push($DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$stopParsingPanelCardData$ = function $$dvt$$1$$$$AdfDiagram$$$$stopParsingPanelCardData$$() {
    this.$_newNodes$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$applyPanelCardData$ = function $$dvt$$1$$$$AdfDiagram$$$$applyPanelCardData$$($nodeIdList$$4$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    try {
      $nodeIdList$$4$$ = $nodeIdList$$4$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$);
      var $DvtScrollbarEvent$$ = null, $bSwitchOneCard$$, $DvtAdfDiagramDragSource$$ = !1;
      isNaN($DvtScrollbarBackground$$) ? ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$), 1 == $DvtScrollbarEvent$$.length && (this.$_bBlockCardPropEvent$ = $DvtAdfDiagramDragSource$$ = !0)) : $bSwitchOneCard$$ = !0;
      this.$_bBlockFetchCardEvent$ = !0;
      $DvtScrollbar$$ = "true" == $DvtScrollbar$$;
      for (var $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $nodeIdList$$4$$.length;$DvtScrollbarArrow$$++) {
        var $nodeId$$35$$ = $nodeIdList$$4$$[$DvtScrollbarArrow$$], $node$$53$$ = this.$getNodeById$($nodeId$$35$$);
        $DvtScrollbar$$ && $node$$53$$.$_detailContents$ && ($node$$53$$ = $node$$53$$.$_detailContents$);
        var $displayObj$$ = this.$getPanelCard$($node$$53$$);
        if ($displayObj$$) {
          var $DvtAdfDiagramEditorManager$$ = 0, $DvtAdfDiagramKeyboardHandler$$ = this.$_bBlockCardPropEvent$, $DvtAdfDiagramNodeEndpoint$$ = this.$_bBlockFetchCardEvent$;
          if ($bSwitchOneCard$$) {
            $DvtAdfDiagramEditorManager$$ = parseInt($DvtScrollbarBackground$$);
          } else {
            if ($DvtAdfDiagramDragSource$$) {
              var $DvtAdfDiagramDropTarget$$ = $displayObj$$;
              $DvtAdfDiagramDropTarget$$ && ($DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramDropTarget$$.$getVisibleDetailItemIndex$($DvtScrollbarBackground$$, $node$$53$$.getData()));
            } else {
              $DvtAdfDiagramEditorManager$$ = parseInt($DvtScrollbarEvent$$[$DvtScrollbarArrow$$]);
            }
          }
          if (!$DvtAdfDiagramDragSource$$) {
            this.$_bBlockFetchCardEvent$ = !0;
            var $DvtItemListEvent$$ = this.$getPanelCardState$($nodeId$$35$$);
            $DvtItemListEvent$$ && $DvtAdfDiagramEditorManager$$ == $DvtItemListEvent$$ ? this.$_bBlockCardPropEvent$ = !0 : ($DvtItemListEvent$$ = this.$getPanelCardState$($dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$)) && $DvtAdfDiagramEditorManager$$ == this.$_findPanelCardIndex$($node$$53$$, $DvtItemListEvent$$) && (this.$_bBlockCardPropEvent$ = !0);
          }
          this.$setShowDetailItemLoaded$($nodeId$$35$$, $DvtAdfDiagramEditorManager$$);
          $displayObj$$.$displayDetailItem$($DvtAdfDiagramEditorManager$$);
          this.$_bBlockCardPropEvent$ = $DvtAdfDiagramKeyboardHandler$$;
          this.$_bBlockFetchCardEvent$ = $DvtAdfDiagramNodeEndpoint$$;
        } else {
          $node$$53$$.$setStateProp$($dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$, $DvtAdfDiagramEditorManager$$);
        }
      }
      this.$_bBlockFetchCardEvent$ = this.$_bBlockCardPropEvent$ = !1;
    } catch ($DvtPaletteEventManager$$) {
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getPanelCard$ = function $$dvt$$1$$$$AdfDiagram$$$$getPanelCard$$($ndoArray_node$$54$$) {
    if (!$ndoArray_node$$54$$) {
      return null;
    }
    var $DvtScrollbarBackground$$ = $ndoArray_node$$54$$.$GetAfComponentRoot$();
    if (!$DvtScrollbarBackground$$) {
      return null;
    }
    $ndoArray_node$$54$$ = [];
    for ($ndoArray_node$$54$$.push($DvtScrollbarBackground$$);0 < $ndoArray_node$$54$$.length;) {
      $DvtScrollbarBackground$$ = $ndoArray_node$$54$$.splice(0, 1);
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[0];
      if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AfPanelCard$) {
        return $DvtScrollbarBackground$$;
      }
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.$getNumChildren$();$DvtScrollbar$$++) {
        var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getChildAt$($DvtScrollbar$$);
        $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AfComponent$ && $ndoArray_node$$54$$.push($DvtScrollbarEvent$$);
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getPanelCardState$ = function $$dvt$$1$$$$AdfDiagram$$$$getPanelCardState$$($dvt$$1$$) {
    if (this.$_cardIndexes$) {
      for (var $DvtScrollbarBackground$$ = this.$_cardIndexes$.length - 1;0 <= $DvtScrollbarBackground$$;$DvtScrollbarBackground$$--) {
        var $DvtScrollbar$$ = this.$_cardIndexes$[$DvtScrollbarBackground$$];
        if ($DvtScrollbar$$ && 2 == $DvtScrollbar$$.length && $DvtScrollbar$$[0] == $dvt$$1$$) {
          return $DvtScrollbar$$[1];
        }
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isShowDetailItemLoaded$ = function $$dvt$$1$$$$AdfDiagram$$$$isShowDetailItemLoaded$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !0;
    this.$_nodeAndLoadedCardsMap$[$dvt$$1$$] && ($DvtScrollbar$$ = this.$_nodeAndLoadedCardsMap$[$dvt$$1$$][$DvtScrollbarBackground$$]);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setShowDetailItemLoaded$ = function $$dvt$$1$$$$AdfDiagram$$$$setShowDetailItemLoaded$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getNodeById$($dvt$$1$$);
    $DvtScrollbar$$ && ($DvtScrollbar$$ = this.$_getFirstPanelCardTemplate$($DvtScrollbar$$), !$DvtScrollbar$$ || $DvtScrollbar$$ && $DvtScrollbar$$.$isPanelCardDeliveryLazy$()) && (this.$_nodeAndLoadedCardsMap$[$dvt$$1$$] || (this.$_nodeAndLoadedCardsMap$[$dvt$$1$$] = []), this.$_nodeAndLoadedCardsMap$[$dvt$$1$$][$DvtScrollbarBackground$$] = !0);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_clearStateFromCache$ = function $$dvt$$1$$$$AdfDiagram$$$$_clearStateFromCache$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ in this.$_nodes$) {
      var $DvtScrollbar$$ = this.$_nodes$[$DvtScrollbarBackground$$];
      $DvtScrollbar$$ && $DvtScrollbar$$.$setStateProp$($dvt$$1$$, null);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_setPanelCardState$ = function $$dvt$$1$$$$AdfDiagram$$$$_setPanelCardState$$($node$$56$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbarBackground$$ = this.$_findPanelCardIndex$($node$$56$$, $DvtScrollbarBackground$$);
    -1 != $DvtScrollbarBackground$$ && ($DvtScrollbar$$ || ($DvtScrollbar$$ = $dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$), $node$$56$$.$setStateProp$($DvtScrollbar$$, $DvtScrollbarBackground$$));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardIndexes$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardIndexes$$($a$$34_s$$4$$) {
    if (null != $a$$34_s$$4$$) {
      var $DvtScrollbarBackground$$;
      $a$$34_s$$4$$ = $a$$34_s$$4$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$);
      if (!(0 == $a$$34_s$$4$$.length || $a$$34_s$$4$$.length & 1)) {
        var $DvtScrollbar$$ = $dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$;
        this.$_clearStateFromCache$($DvtScrollbar$$);
        for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $a$$34_s$$4$$.length;$DvtScrollbarEvent$$ += 2) {
          var $node$$57$$;
          if ($a$$34_s$$4$$[$DvtScrollbarEvent$$] == $dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$) {
            $node$$57$$ = null;
            for ($DvtScrollbarBackground$$ in this.$_nodes$) {
              var $DvtAdfDiagramDragSource$$ = this.$_nodes$[$DvtScrollbarBackground$$];
              null != $DvtAdfDiagramDragSource$$ && null == $DvtAdfDiagramDragSource$$.$getStateProp$($DvtScrollbar$$) && this.$_setPanelCardState$($DvtAdfDiagramDragSource$$, $a$$34_s$$4$$[$DvtScrollbarEvent$$ + 1], $DvtScrollbar$$);
            }
            this.$_cardIndexes$.push([$a$$34_s$$4$$[$DvtScrollbarEvent$$], $a$$34_s$$4$$[$DvtScrollbarEvent$$ + 1]]);
          } else {
            $node$$57$$ = this.$getNodeById$($a$$34_s$$4$$[$DvtScrollbarEvent$$]), this.$_cardIndexes$.push([$a$$34_s$$4$$[$DvtScrollbarEvent$$], parseInt($a$$34_s$$4$$[$DvtScrollbarEvent$$ + 1])]);
          }
          $node$$57$$ && $node$$57$$.$setStateProp$ && $node$$57$$.$setStateProp$($DvtScrollbar$$, $a$$34_s$$4$$[$DvtScrollbarEvent$$ + 1]);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setNodeShowDetailItemIndexMap$ = function $$dvt$$1$$$$AdfDiagram$$$$setNodeShowDetailItemIndexMap$$($arr$$10_s$$5$$) {
    $arr$$10_s$$5$$ = $arr$$10_s$$5$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$);
    if (!(0 == $arr$$10_s$$5$$.length || $arr$$10_s$$5$$.length & 1)) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $arr$$10_s$$5$$.length;$DvtScrollbarBackground$$ += 2) {
        this.$setShowDetailItemLoaded$($arr$$10_s$$5$$[$DvtScrollbarBackground$$], parseInt($arr$$10_s$$5$$[$DvtScrollbarBackground$$ + 1]));
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setShowDetailItems$ = function $$dvt$$1$$$$AdfDiagram$$$$setShowDetailItems$$($arr$$11_s$$6$$) {
    $arr$$11_s$$6$$ = $arr$$11_s$$6$$.split($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$);
    if (!(0 == $arr$$11_s$$6$$.length || $arr$$11_s$$6$$.length & 1)) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $arr$$11_s$$6$$.length;$DvtScrollbarBackground$$ += 2) {
        var $DvtScrollbar$$ = this.$getNodeById$($arr$$11_s$$6$$[$DvtScrollbarBackground$$]), $DvtScrollbarEvent$$ = parseInt($arr$$11_s$$6$$[$DvtScrollbarBackground$$ + 1]);
        0 < $DvtScrollbarEvent$$ && $DvtScrollbar$$.$setStateProp$($dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$, $DvtScrollbarEvent$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardNavButtonSkin$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardNavButtonSkin$$($dvt$$1$$) {
    this.$_cardNavButtonSkin$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardSelectorList$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardSelectorList$$($dvt$$1$$) {
    if ($dvt$$1$$) {
      var $DvtScrollbarBackground$$ = !1;
      if (null == this.$_cardSelectorList$) {
        this.$_cardSelectorList$ = $dvt$$1$$;
      } else {
        for (var $DvtScrollbar$$, $DvtScrollbarEvent$$, $i$$42$$ = 0;$i$$42$$ < $dvt$$1$$.length;$i$$42$$++) {
          $DvtScrollbar$$ = $dvt$$1$$[$i$$42$$];
          for (var $DvtAdfDiagramDragSource$$ = !1, $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < this.$_cardSelectorList$.length;$DvtScrollbarArrow$$++) {
            if ($DvtScrollbarEvent$$ = this.$_cardSelectorList$[$DvtScrollbarArrow$$], $DvtScrollbarEvent$$[0] == $DvtScrollbar$$[0] && $DvtScrollbarEvent$$[1] == $DvtScrollbar$$[1] && $DvtScrollbarEvent$$[2] == $DvtScrollbar$$[2]) {
              $DvtAdfDiagramDragSource$$ = !0;
              break;
            }
          }
          if (!$DvtAdfDiagramDragSource$$) {
            $DvtScrollbarBackground$$ = !0;
            break;
          }
        }
      }
      $DvtScrollbarBackground$$ && (this.$_cardSelectorList$ = $dvt$$1$$, this.$_controlPanel$ && this.$_controlPanel$.$updateCardSelectorList$());
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$syncPanelCards$ = function $$dvt$$1$$$$AdfDiagram$$$$syncPanelCards$$($sdiId$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbarBackground$$ || ($DvtScrollbarBackground$$ = $DvtScrollbar$$);
    this.$fireFetchCardEvent$($dvt$$1$$.$AdfDiagram$.$SYNC_PANEL_CARDS_KEY$, $DvtScrollbarBackground$$, !1);
    this.$_bBlockFetchCardEvent$ = this.$_bBlockCardPropEvent$ = !0;
    this.$VisitNodes$(function($dvt$$1$$) {
      this.$syncOnePanelCard$($dvt$$1$$, $sdiId$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
      return !1;
    }, this);
    this.$_bBlockFetchCardEvent$ = this.$_bBlockCardPropEvent$ = !1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$syncOnePanelCard$ = function $$dvt$$1$$$$AdfDiagram$$$$syncOnePanelCard$$($beginNode$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $nodeData$$2$$ = $beginNode$$.getData(), $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$ = $dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$, $numSdis$$, $j$$6$$, $sdiTemp$$, $DvtAdfDiagramEditorManager$$ = !1;
    if ($DvtAdfDiagramDragSource$$ = this.$getPanelCard$($beginNode$$)) {
      $DvtAdfDiagramEditorManager$$ = !0;
      $numSdis$$ = $DvtAdfDiagramDragSource$$.$getNumChildren$();
      var $DvtAdfDiagramKeyboardHandler$$ = null, $DvtAdfDiagramNodeEndpoint$$ = null, $DvtAdfDiagramDropTarget$$ = $DvtAdfDiagramDragSource$$.$isPanelCardDeliveryLazy$();
      for ($j$$6$$ = 0;$j$$6$$ < $numSdis$$;$j$$6$$++) {
        if ($sdiTemp$$ = $DvtAdfDiagramDragSource$$.$getChildAt$($j$$6$$), $DvtAdfDiagramKeyboardHandler$$ = $sdiTemp$$.$getText$(), $DvtAdfDiagramNodeEndpoint$$ = $sdiTemp$$.$getIcon$(), $sdiTemp$$.getId() == $DvtScrollbarBackground$$ || $DvtAdfDiagramKeyboardHandler$$ && $DvtAdfDiagramKeyboardHandler$$ == $DvtScrollbar$$ || $DvtAdfDiagramNodeEndpoint$$ && $DvtAdfDiagramNodeEndpoint$$ == $DvtScrollbarEvent$$) {
          $DvtAdfDiagramDragSource$$.$getDisplayedDetailItemIndex$() != $j$$6$$ && (!$DvtAdfDiagramDropTarget$$ || $beginNode$$.$_bVisible$ || this.$isShowDetailItemLoaded$($nodeData$$2$$.getId(), $j$$6$$) ? $DvtAdfDiagramDragSource$$.$displayDetailItem$($j$$6$$) : $beginNode$$.$setStateProp$($DvtScrollbarArrow$$, $j$$6$$));
          break;
        }
      }
    }
    if (!$DvtAdfDiagramEditorManager$$ && ($DvtAdfDiagramDragSource$$ || ($DvtAdfDiagramDragSource$$ = this.$_getFirstPanelCard$($beginNode$$)), $DvtAdfDiagramDragSource$$)) {
      for ($numSdis$$ = $DvtAdfDiagramDragSource$$.$getDetailItemCount$(), $j$$6$$ = 0;$j$$6$$ < $numSdis$$;$j$$6$$++) {
        if ($sdiTemp$$ = $DvtAdfDiagramDragSource$$.$getVisibleChild$($j$$6$$), $DvtAdfDiagramKeyboardHandler$$ = $sdiTemp$$.$getText$(), $DvtAdfDiagramNodeEndpoint$$ = $sdiTemp$$.$getIcon$(), $sdiTemp$$.getId() == $DvtScrollbarBackground$$ || $DvtAdfDiagramKeyboardHandler$$ && $DvtAdfDiagramKeyboardHandler$$ == $DvtScrollbar$$ || $DvtAdfDiagramNodeEndpoint$$ && $DvtAdfDiagramNodeEndpoint$$ == $DvtScrollbarEvent$$) {
          $beginNode$$.$setStateProp$($DvtScrollbarArrow$$, $j$$6$$);
          break;
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardStyle$$($dvt$$1$$) {
    this.$_cardCSSStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardHeaderStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardHeaderStyle$$($dvt$$1$$) {
    this.$_cardHeaderStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardNavButtonStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardNavButtonStyle$$($dvt$$1$$) {
    this.$_cardNavButtonStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardNavButtonHoverStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardNavButtonHoverStyle$$($dvt$$1$$) {
    this.$_cardNavButtonHoverStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardNavButtonActiveStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardNavButtonActiveStyle$$($dvt$$1$$) {
    this.$_cardNavButtonActiveStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardTrainButtonStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardTrainButtonStyle$$($dvt$$1$$) {
    this.$_cardTrainButtonStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardTrainButtonHoverStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardTrainButtonHoverStyle$$($dvt$$1$$) {
    this.$_cardTrainButtonHoverStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardTrainButtonActiveStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardTrainButtonActiveStyle$$($dvt$$1$$) {
    this.$_cardTrainButtonActiveStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardNextButtonIcon$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardNextButtonIcon$$($dvt$$1$$) {
    this.$_cardNextButtonIcon$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setCardPrevButtonIcon$ = function $$dvt$$1$$$$AdfDiagram$$$$setCardPrevButtonIcon$$($dvt$$1$$) {
    this.$_cardPrevButtonIcon$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_updatePanZoomState$ = function $$dvt$$1$$$$AdfDiagram$$$$_updatePanZoomState$$($event$$32_panZoomInfo_pzc$$2_reset$$) {
    $event$$32_panZoomInfo_pzc$$2_reset$$ ? $event$$32_panZoomInfo_pzc$$2_reset$$ = "null" : ($event$$32_panZoomInfo_pzc$$2_reset$$ = this.$_panZoomCanvas$, $event$$32_panZoomInfo_pzc$$2_reset$$ = $event$$32_panZoomInfo_pzc$$2_reset$$.$getPanX$() + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $event$$32_panZoomInfo_pzc$$2_reset$$.$getPanY$() + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $event$$32_panZoomInfo_pzc$$2_reset$$.$getZoom$());
    $event$$32_panZoomInfo_pzc$$2_reset$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$PanZoomComponent$.$PAN_ZOOM_KEY$, $event$$32_panZoomInfo_pzc$$2_reset$$);
    this.dispatchEvent($event$$32_panZoomInfo_pzc$$2_reset$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_updatePreviewStackPanZoomState$ = function $$dvt$$1$$$$AdfDiagram$$$$_updatePreviewStackPanZoomState$$($event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$) {
    $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$ ? $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$ = "null" : ($event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$ = this.$_panZoomCanvas$, $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$ = $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$.$getPanX$() + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$.$getPanY$() + $dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$ + $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$.$getZoom$());
    $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$PREVIEW_PAN_ZOOM_KEY$, $event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$);
    this.dispatchEvent($event$$33_panZoomInfo$$1_pzc$$3_reset$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setStackPreviewColor$ = function $$dvt$$1$$$$AdfDiagram$$$$setStackPreviewColor$$($dvt$$1$$) {
    this.$_stackPreviewColor$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setStackBadgeStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setStackBadgeStyles$$($dvt$$1$$) {
    this.$_stackBadgeStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setStackUnderlayStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setStackUnderlayStyles$$($dvt$$1$$) {
    this.$_stackStackUnderlayStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setDiagramButtonStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setDiagramButtonStyles$$($dvt$$1$$) {
    this.$_diagramButtonStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.$getButtonBorderRadius$ = function $$dvt$$1$$$$AdfDiagram$$$getButtonBorderRadius$$($styles$$3$$) {
    var $DvtScrollbarBackground$$ = 0;
    $styles$$3$$ && $styles$$3$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] && $styles$$3$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] instanceof $dvt$$1$$.$CSSStyle$ && ($DvtScrollbarBackground$$ = $styles$$3$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$].$getBorderRadius$());
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.$getButtonFill$ = function $$dvt$$1$$$$AdfDiagram$$$getButtonFill$$($styles$$4$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    if ($styles$$4$$ && $styles$$4$$[$DvtScrollbarBackground$$]) {
      var $DvtScrollbarEvent$$ = $styles$$4$$[$DvtScrollbarBackground$$];
      $DvtScrollbarEvent$$ && ($DvtScrollbar$$ = $DvtScrollbarEvent$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getBackgroundImage$(), $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagram$.$CreateFill$($DvtScrollbar$$, $DvtScrollbarEvent$$));
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.$getButtonStroke$ = function $$dvt$$1$$$$AdfDiagram$$$getButtonStroke$$($styles$$5$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null, $DvtScrollbarEvent$$;
    if ($styles$$5$$ && $styles$$5$$[$DvtScrollbarBackground$$]) {
      var $style$$3$$ = $styles$$5$$[$DvtScrollbarBackground$$];
      ($DvtScrollbarEvent$$ = $style$$3$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$)) || ($DvtScrollbarEvent$$ = $style$$3$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_TOP_COLOR$));
      $DvtScrollbarEvent$$ && ($DvtScrollbar$$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarEvent$$, 1, 1));
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.$CreateFill$ = function $$dvt$$1$$$$AdfDiagram$$$CreateFill$$($color$$5$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    if ($DvtScrollbarBackground$$ && $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$CSSGradient$) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$_arColors$, $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_arAlphas$, $arStops$$ = $DvtScrollbarBackground$$.$_arRatios$, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAngle$(), $DvtScrollbar$$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $arStops$$)
    } else {
      $color$$5$$ && ($DvtScrollbar$$ = new $dvt$$1$$.$SolidFill$($color$$5$$, 1));
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateDropShadowFilter$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateDropShadowFilter$$($shadowStyle$$) {
    return $dvt$$1$$.$Agent$.$isPlatformGecko$() ? null : $dvt$$1$$.$StyleUtils$.$getShadow$($shadowStyle$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetControlPanel$ = function $$dvt$$1$$$$AdfDiagram$$$$GetControlPanel$$() {
    var $cpBehavior$$ = this.$GetControlPanelBehavior$();
    return $cpBehavior$$ != $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_HIDDEN$ ? new $dvt$$1$$.$AdfDiagramControlPanel$(this.$getCtx$(), this, $cpBehavior$$ == $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_INIT_COLLAPSED$ ? $dvt$$1$$.$ControlPanel$.$STATE_COLLAPSED$ : $dvt$$1$$.$ControlPanel$.$STATE_EXPANDED$) : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setSyncCardOff$ = function $$dvt$$1$$$$AdfDiagram$$$$setSyncCardOff$$() {
    this.$_bSyncCardOff$ = !0;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getShowPopupBehaviors$ = function $$dvt$$1$$$$AdfDiagram$$$$getShowPopupBehaviors$$() {
    return this.$_showPopupBehaviors$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$addShowPopupBehavior$ = function $$dvt$$1$$$$AdfDiagram$$$$addShowPopupBehavior$$($dvt$$1$$) {
    this.$_showPopupBehaviors$ || (this.$_showPopupBehaviors$ = []);
    this.$_showPopupBehaviors$.push($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$IsNodeIsolateValid$ = function $$dvt$$1$$$$AdfDiagram$$$$IsNodeIsolateValid$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_nodesPostContainerDisclosure$;
    if (!$DvtScrollbarBackground$$ || 1 == $DvtScrollbarBackground$$.length && $dvt$$1$$ == $DvtScrollbarBackground$$[0]) {
      return !1;
    }
    if (this.$getNodeById$($dvt$$1$$).$_bStack$) {
      for (var $DvtScrollbar$$ = this.$_nodeStackMap$[$dvt$$1$$], $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        var $bHiddenAncestor_nodeId$$40$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$];
        if ($bHiddenAncestor_nodeId$$40$$ != $dvt$$1$$ && this.$_nodeStackMap$[$bHiddenAncestor_nodeId$$40$$] != $DvtScrollbar$$) {
          var $DvtAdfDiagramDragSource$$ = this.$getNodeById$($bHiddenAncestor_nodeId$$40$$), $bHiddenAncestor_nodeId$$40$$ = this.$IsAncestorNode$($bHiddenAncestor_nodeId$$40$$, $dvt$$1$$) && $DvtAdfDiagramDragSource$$.$_bHiddenAncestor$;
          if (!$bHiddenAncestor_nodeId$$40$$) {
            return !0;
          }
        }
      }
    } else {
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        if ($bHiddenAncestor_nodeId$$40$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $bHiddenAncestor_nodeId$$40$$ != $dvt$$1$$ && ($DvtAdfDiagramDragSource$$ = this.$getNodeById$($bHiddenAncestor_nodeId$$40$$), !this.$IsAncestorNode$($dvt$$1$$, $bHiddenAncestor_nodeId$$40$$) && ($bHiddenAncestor_nodeId$$40$$ = this.$IsAncestorNode$($bHiddenAncestor_nodeId$$40$$, $dvt$$1$$) && $DvtAdfDiagramDragSource$$.$_bHiddenAncestor$, !$bHiddenAncestor_nodeId$$40$$))) {
          return !0;
        }
      }
    }
    return !1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$IsAncestorNode$ = function $$dvt$$1$$$$AdfDiagram$$$$IsAncestorNode$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = this.$getNodeById$($DvtScrollbarBackground$$).getData().$getGroupId$();$DvtScrollbar$$;) {
      if ($DvtScrollbar$$ == $dvt$$1$$) {
        return !0;
      }
      $DvtScrollbar$$ = this.$getNodeById$($DvtScrollbar$$).getData().$getGroupId$();
    }
    return !1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getAutomation$ = function $$dvt$$1$$$$AdfDiagram$$$$getAutomation$$() {
    this.$Automation$ || (this.$Automation$ = new $DvtAdfDiagramAutomation$$(this));
    return this.$Automation$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getSortedVisibleNodesByGroupDepth$ = function $$dvt$$1$$$$AdfDiagram$$$$getSortedVisibleNodesByGroupDepth$$() {
    this.$_visibleNodesByGroupDepth$ || (this.$_visibleNodesByGroupDepth$ = this.$SortNodesByGroupDepth$(!1));
    return this.$_visibleNodesByGroupDepth$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$resetSortedNodesArray$ = function $$dvt$$1$$$$AdfDiagram$$$$resetSortedNodesArray$$() {
    this.$_visibleNodesByGroupDepth$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$ResetNodesAndLinks$ = function $$dvt$$1$$$$AdfDiagram$$$$ResetNodesAndLinks$$($bRepopulateNodesAndLinks_linkId$$12$$) {
    var $DvtScrollbarBackground$$ = this.$_linksPane$.getParent().$getChildIndex$(this.$_linksPane$), $DvtScrollbar$$ = this.$_nodesPane$.getParent().$getChildIndex$(this.$_nodesPane$), $DvtScrollbarEvent$$ = this.$_topPane$.getParent().$getChildIndex$(this.$_topPane$);
    this.$_oldLinksPane$ = this.$_linksPane$;
    this.$_oldNodesPane$ = this.$_nodesPane$;
    this.$_oldTopPane$ = this.$_topPane$;
    this.$_linksPane$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    this.$_nodesPane$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    this.$_topPane$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    this.$_oldLinksPane$.getParent().$addChildAt$(this.$_linksPane$, $DvtScrollbarBackground$$);
    this.$_oldLinksPane$.getParent().removeChild(this.$_oldLinksPane$);
    this.$_oldNodesPane$.getParent().$addChildAt$(this.$_nodesPane$, $DvtScrollbar$$);
    this.$_oldNodesPane$.getParent().removeChild(this.$_oldNodesPane$);
    this.$_oldTopPane$.getParent().$addChildAt$(this.$_topPane$, $DvtScrollbarEvent$$);
    this.$_oldTopPane$.getParent().removeChild(this.$_oldTopPane$);
    this.$_oldLinksPane$.$setAlpha$(0);
    this.$_oldLinksPane$.$setMouseEnabled$(!1);
    this.$_oldNodesPane$.$setAlpha$(0);
    this.$_oldNodesPane$.$setMouseEnabled$(!1);
    this.$_oldTopPane$.$setAlpha$(0);
    this.$_oldTopPane$.$setMouseEnabled$(!1);
    this.$addChild$(this.$_oldLinksPane$);
    this.$addChild$(this.$_oldNodesPane$);
    this.$addChild$(this.$_oldTopPane$);
    this.$_oldNodes$ = this.$_nodes$;
    this.$_oldArNodeIds$ = this.$_arNodeIds$;
    this.$_nodes$ = {};
    this.$_nodesByRowIndex$ = {};
    this.$_arNodeIds$ = [];
    this.$_rootNodes$ = [];
    if ($bRepopulateNodesAndLinks_linkId$$12$$) {
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_oldArNodeIds$.length;$DvtScrollbarBackground$$++) {
        $DvtScrollbar$$ = this.$_oldArNodeIds$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = this.$_oldNodes$[$DvtScrollbar$$], this.$addNodeData$($DvtScrollbarEvent$$.getData()), this.$getNodeById$($DvtScrollbar$$).$CopyState$($DvtScrollbarEvent$$);
      }
    }
    this.$_oldLinks$ = this.$_links$;
    this.$_oldArLinkIds$ = this.$_arLinkIds$;
    this.$_links$ = {};
    this.$_linksByRowIndex$ = {};
    this.$_arLinkIds$ = [];
    this.$_arCrossContainerLinkIds$ = null;
    if ($bRepopulateNodesAndLinks_linkId$$12$$) {
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_oldArLinkIds$.length;$DvtScrollbarBackground$$++) {
        $bRepopulateNodesAndLinks_linkId$$12$$ = this.$_oldArLinkIds$[$DvtScrollbarBackground$$], $DvtScrollbar$$ = this.$_oldLinks$[$bRepopulateNodesAndLinks_linkId$$12$$], this.$addLinkData$($DvtScrollbar$$.getData()), this.$getLinkById$($bRepopulateNodesAndLinks_linkId$$12$$).$CopyState$($DvtScrollbar$$);
      }
    }
    this.$_drillBreadcrumbs$ && (this.$RemoveDrillBreadcrumbs$(), this.$AdjustViewSpace$(0));
    this.$_overviewNodes$ = this.$_overviewContent$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateDataAnimationState$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateDataAnimationState$$() {
    var $dvt$$1$$ = {$panZoomMatrix$:this.$_panZoomCanvas$.$_contentPane$.$getMatrix$(), $panZoomCanvasTy$:this.$_panZoomCanvas$.$getTranslateY$(), $panZoomCanvasSize$:this.$_panZoomCanvas$.$getSize$(), $panelDrawerTy$:this.$_panelDrawer$ ? this.$_panelDrawer$.$getTranslateY$() : null, $restoreButtonTy$:this.$_restoreButton$ ? this.$_restoreButton$.$getTranslateY$() : null, $drillBreadcrumbs$:this.$_drillBreadcrumbs$, $stackNodeMap$:this.$_stackNodeMap$, $nodeStackMap$:this.$_nodeStackMap$, $arNodeIds$:this.$_arNodeIds$, 
    $arLinkIds$:this.$_arLinkIds$};
    this.$_overviewWindow$ && ($dvt$$1$$.$overviewViewportRect$ = this.$_overviewWindow$.$GetViewportRectangle$(), $dvt$$1$$.$overviewContent$ = this.$_overviewContent$, $dvt$$1$$.$overviewNodes$ = this.$_overviewNodes$);
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$CreateCustomAnimPlayable$ = function $$dvt$$1$$$$AdfDiagram$$$$CreateCustomAnimPlayable$$() {
    return new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), null, this.$getAnimationDuration$());
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setButtonStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setButtonStyle$$($dvt$$1$$) {
    this.$_buttonStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setLabelStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$setLabelStyle$$($dvt$$1$$) {
    this.$_labelStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLabelStyle$ = function $$dvt$$1$$$$AdfDiagram$$$$getLabelStyle$$() {
    return this.$_labelStyle$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$SetPanZoomCanvasHeight$ = function $$dvt$$1$$$$AdfDiagram$$$$SetPanZoomCanvasHeight$$($dvt$$1$$) {
    this.$_panZoomCanvas$.$setSize$(this.$_panZoomCanvas$.$getSize$().$w$, $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetPanZoomCanvasHeight$ = function $$dvt$$1$$$$AdfDiagram$$$$GetPanZoomCanvasHeight$$() {
    return this.$_panZoomCanvas$.$getSize$().$h$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$AnimateUpdate$ = function $$dvt$$1$$$$AdfDiagram$$$$AnimateUpdate$$($dataAnimHandler$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = {}, $arNodes$$6_explodedStacks$$ = {};
    if (!$DvtScrollbarBackground$$.$stackNodeMap$ && this.$_stackNodeMap$) {
      for (var $DvtAdfDiagramDragSource$$ in this.$_stackNodeMap$) {
        $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$] = !0;
      }
    } else {
      if ($DvtScrollbarBackground$$.$stackNodeMap$ && !this.$_stackNodeMap$) {
        for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$.$stackNodeMap$) {
          $arNodes$$6_explodedStacks$$[$DvtAdfDiagramDragSource$$] = !0;
        }
      } else {
        if ($DvtScrollbarBackground$$.$stackNodeMap$ && this.$_stackNodeMap$) {
          for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$.$stackNodeMap$) {
            this.$_stackNodeMap$[$DvtAdfDiagramDragSource$$] || ($arNodes$$6_explodedStacks$$[$DvtAdfDiagramDragSource$$] = !0);
          }
          for ($DvtAdfDiagramDragSource$$ in this.$_stackNodeMap$) {
            $DvtScrollbarBackground$$.$stackNodeMap$[$DvtAdfDiagramDragSource$$] || ($DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$] = !0);
          }
        }
      }
    }
    for ($DvtAdfDiagramDragSource$$ in $arNodes$$6_explodedStacks$$) {
      for (var $arNodes$$6_explodedStacks$$ = $DvtScrollbarBackground$$.$stackNodeMap$[$DvtAdfDiagramDragSource$$], $DvtScrollbarArrow$$ = $arNodes$$6_explodedStacks$$[0], $DvtScrollbarArrow$$ = this.$_nodes$[$DvtScrollbarArrow$$], $DvtScrollbarArrow$$ = new $dvt$$1$$.$Point$($DvtScrollbarArrow$$.$getTranslateX$(), $DvtScrollbarArrow$$.$getTranslateY$()), $i$$45$$ = 1;$i$$45$$ < $arNodes$$6_explodedStacks$$.length;$i$$45$$++) {
        this.$_nodes$[$arNodes$$6_explodedStacks$$[$i$$45$$]].$_dataAnimStackPos$ = $DvtScrollbarArrow$$;
      }
    }
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarEvent$$) {
      for ($arNodes$$6_explodedStacks$$ = this.$_stackNodeMap$[$DvtAdfDiagramDragSource$$], $DvtScrollbarArrow$$ = $arNodes$$6_explodedStacks$$[0], $DvtScrollbarArrow$$ = this.$_oldNodes$[$DvtScrollbarArrow$$], $DvtScrollbarArrow$$ = new $dvt$$1$$.$Point$($DvtScrollbarArrow$$.$getTranslateX$(), $DvtScrollbarArrow$$.$getTranslateY$()), $i$$45$$ = 1;$i$$45$$ < $arNodes$$6_explodedStacks$$.length;$i$$45$$++) {
        this.$_nodes$[$arNodes$$6_explodedStacks$$[$i$$45$$]].$_dataAnimStackPos$ = $DvtScrollbarArrow$$;
      }
    }
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$panZoomMatrix$;
    $DvtAdfDiagramDragSource$$ = this.$_panZoomCanvas$.$_contentPane$.$getMatrix$();
    $DvtScrollbarEvent$$.$equals$($DvtAdfDiagramDragSource$$) || ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), this.$_panZoomCanvas$.$_contentPane$.$setMatrix$($DvtScrollbarEvent$$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_MATRIX$, this.$_panZoomCanvas$.$_contentPane$, this.$_panZoomCanvas$.$_contentPane$.$getMatrix$, this.$_panZoomCanvas$.$_contentPane$.$setMatrix$, $DvtAdfDiagramDragSource$$));
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$panZoomCanvasTy$;
    $DvtAdfDiagramDragSource$$ = this.$_panZoomCanvas$.$getTranslateY$();
    $DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ && ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), this.$_panZoomCanvas$.$setTranslateY$($DvtScrollbarEvent$$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_panZoomCanvas$, this.$_panZoomCanvas$.$getTranslateY$, this.$_panZoomCanvas$.$setTranslateY$, $DvtAdfDiagramDragSource$$));
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$panZoomCanvasSize$;
    $DvtAdfDiagramDragSource$$ = this.$_panZoomCanvas$.$getSize$();
    $DvtScrollbarEvent$$.$h$ != $DvtAdfDiagramDragSource$$.$h$ && ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), this.$SetPanZoomCanvasHeight$($DvtScrollbarEvent$$.$h$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$GetPanZoomCanvasHeight$, this.$SetPanZoomCanvasHeight$, $DvtAdfDiagramDragSource$$.$h$));
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$panelDrawerTy$;
    this.$_panelDrawer$ && null != $DvtScrollbarEvent$$ && ($DvtAdfDiagramDragSource$$ = this.$_panelDrawer$.$getTranslateY$(), $DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ && ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), this.$_panelDrawer$.$setTranslateY$($DvtScrollbarEvent$$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_panelDrawer$, this.$_panelDrawer$.$getTranslateY$, this.$_panelDrawer$.$setTranslateY$, $DvtAdfDiagramDragSource$$)));
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$restoreButtonTy$;
    this.$_restoreButton$ && null != $DvtScrollbarEvent$$ && ($DvtAdfDiagramDragSource$$ = this.$_restoreButton$.$getTranslateY$(), $DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ && ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), this.$_restoreButton$.$setTranslateY$($DvtScrollbarEvent$$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_restoreButton$, this.$_restoreButton$.$getTranslateY$, this.$_restoreButton$.$setTranslateY$, $DvtAdfDiagramDragSource$$)));
    var $oldDrillBreadcrumbs$$ = $DvtScrollbarBackground$$.$drillBreadcrumbs$, $DvtScrollbarEvent$$ = this.$_drillBreadcrumbs$;
    $oldDrillBreadcrumbs$$ && $DvtScrollbarEvent$$ ? ($DvtScrollbar$$ || ($DvtScrollbar$$ = this.$CreateCustomAnimPlayable$()), $DvtScrollbarEvent$$.$setAlpha$(0), this.$addChild$($oldDrillBreadcrumbs$$), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $oldDrillBreadcrumbs$$, $oldDrillBreadcrumbs$$.$getAlpha$, $oldDrillBreadcrumbs$$.$setAlpha$, 0), $DvtScrollbar$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$, $DvtScrollbarEvent$$.$getAlpha$, 
    $DvtScrollbarEvent$$.$setAlpha$, 1), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbar$$, function() {
      $oldDrillBreadcrumbs$$.getParent().removeChild($oldDrillBreadcrumbs$$);
      $oldDrillBreadcrumbs$$.$destroy$();
    })) : $DvtScrollbarEvent$$ ? ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$(), this.$_drillBreadcrumbs$.$setAlpha$(0), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_drillBreadcrumbs$, this.$_drillBreadcrumbs$.$getAlpha$, this.$_drillBreadcrumbs$.$setAlpha$, 1), $dataAnimHandler$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$)) : $oldDrillBreadcrumbs$$ && ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$(), 
    this.$addChild$($oldDrillBreadcrumbs$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $oldDrillBreadcrumbs$$, $oldDrillBreadcrumbs$$.$getAlpha$, $oldDrillBreadcrumbs$$.$setAlpha$, 0), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $oldDrillBreadcrumbs$$.getParent().removeChild($oldDrillBreadcrumbs$$);
      $oldDrillBreadcrumbs$$.$destroy$();
    }), $dataAnimHandler$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$));
    $DvtScrollbarBackground$$.$overviewViewportRect$ && $DvtScrollbarBackground$$.$overviewContent$ && $DvtScrollbarBackground$$.$overviewNodes$ && this.$_overviewWindow$ && this.$_overviewContent$ && this.$_overviewNodes$ && $DvtAdfDiagramOverviewUtils$$.$AnimateUpdate$(this, $dataAnimHandler$$, $DvtScrollbarBackground$$.$overviewViewportRect$, this.$_overviewWindow$, $DvtScrollbarBackground$$.$overviewContent$, this.$_overviewContent$, $DvtScrollbarBackground$$.$overviewNodes$, this.$_overviewNodes$, 
    $DvtScrollbarBackground$$.$arNodeIds$, this.$_arNodeIds$);
    $DvtScrollbar$$ && $dataAnimHandler$$.add($DvtScrollbar$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getNavigableLinksForNodeId$ = function $$dvt$$1$$$$AdfDiagram$$$$getNavigableLinksForNodeId$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = [], $DvtScrollbar$$;
    for ($DvtScrollbar$$ in this.$_links$) {
      var $DvtScrollbarEvent$$ = this.$getLinkById$($DvtScrollbar$$), $startId$$2$$ = this.$getLinkStartId$($DvtScrollbarEvent$$), $DvtAdfDiagramDragSource$$ = this.$getLinkEndId$($DvtScrollbarEvent$$);
      $startId$$2$$ != $dvt$$1$$ && $DvtAdfDiagramDragSource$$ != $dvt$$1$$ || !$DvtScrollbarEvent$$.$_bVisible$ || $DvtScrollbarBackground$$.push($DvtScrollbarEvent$$);
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLinkStartId$ = function $$dvt$$1$$$$AdfDiagram$$$$getLinkStartId$$($dvt$$1$$) {
    return $dvt$$1$$.$_bPromoted$ ? this.$_containerLinkPromotionMap$[$dvt$$1$$.getData().getId()][0] : $dvt$$1$$.getData().$getStartId$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getLinkEndId$ = function $$dvt$$1$$$$AdfDiagram$$$$getLinkEndId$$($dvt$$1$$) {
    return $dvt$$1$$.$_bPromoted$ ? this.$_containerLinkPromotionMap$[$dvt$$1$$.getData().getId()][1] : $dvt$$1$$.getData().$getEndId$();
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getBreadcrumbsOptions$ = function $$dvt$$1$$$$AdfDiagram$$$$getBreadcrumbsOptions$$() {
    var $enabledStyle$$ = this.$getBreadcrumbsStyles$($dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$), $DvtScrollbarBackground$$ = this.$getBreadcrumbsStyles$($dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$), $DvtScrollbar$$ = this.$getBreadcrumbsStyles$($dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$), $DvtScrollbarEvent$$ = this.$getBreadcrumbsStyles$($dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DIS$);
    return {$labelStyle$:$enabledStyle$$, $labelStyleOver$:$DvtScrollbarBackground$$, $labelStyleDown$:$DvtScrollbar$$, $disabledLabelStyle$:$DvtScrollbarEvent$$};
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setPaletteStyles$ = function $$dvt$$1$$$$AdfDiagram$$$$setPaletteStyles$$($dvt$$1$$) {
    this.$_paletteStyles$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$destroyOldContent$ = function $$dvt$$1$$$$AdfDiagram$$$$destroyOldContent$$() {
    if (this.$_oldArNodeIds$) {
      for (var $dvt$$1$$ = this.$_oldArNodeIds$.length - 1;0 <= $dvt$$1$$;$dvt$$1$$--) {
        this.$_oldNodes$[this.$_oldArNodeIds$[$dvt$$1$$]].$destroy$();
      }
    }
    if (this.$_oldArLinkIds$) {
      for ($dvt$$1$$ = this.$_oldArLinkIds$.length - 1;0 <= $dvt$$1$$;$dvt$$1$$--) {
        this.$_oldLinks$[this.$_oldArLinkIds$[$dvt$$1$$]].$destroy$();
      }
    }
    this.$_oldArLinkIds$ = this.$_oldLinks$ = this.$_oldArNodeIds$ = this.$_oldNodes$ = null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processCenterNode$ = function $$dvt$$1$$$$AdfDiagram$$$$_processCenterNode$$($clearNode$$, $DvtScrollbarBackground$$) {
    if (this.$_centerNode$) {
      var $DvtScrollbar$$ = this.$getNodeById$(this.$_centerNode$);
      if ($DvtScrollbar$$ && $DvtScrollbar$$.$_bVisible$) {
        var $DvtScrollbarEvent$$ = this.$_panZoomCanvas$, $centerPoint_contentBounds_zoom$$4$$ = $DvtScrollbar$$.$getContentBounds$(), $centerPoint_contentBounds_zoom$$4$$ = new $dvt$$1$$.$Point$($centerPoint_contentBounds_zoom$$4$$.x + .5 * $centerPoint_contentBounds_zoom$$4$$.$w$, $centerPoint_contentBounds_zoom$$4$$.y + .5 * $centerPoint_contentBounds_zoom$$4$$.$h$), $DvtScrollbar$$ = this.$LocalToStage$($centerPoint_contentBounds_zoom$$4$$, $DvtScrollbar$$, $DvtScrollbarBackground$$), $DvtScrollbar$$ = 
        this.$StageToLocal$($DvtScrollbar$$, $DvtScrollbarEvent$$.$_contentPane$, $DvtScrollbarBackground$$), $centerPoint_contentBounds_zoom$$4$$ = $DvtScrollbarEvent$$.$getZoom$($DvtScrollbarBackground$$);
        $DvtScrollbarEvent$$.$panTo$(this.$Width$ / 2 - $DvtScrollbar$$.x * $centerPoint_contentBounds_zoom$$4$$, this.$Height$ / 2 - $DvtScrollbar$$.y * $centerPoint_contentBounds_zoom$$4$$, $DvtScrollbarBackground$$);
      }
      $clearNode$$ && (this.$_centerNode$ = null);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_processPanZoomSettings$ = function $$dvt$$1$$$$AdfDiagram$$$$_processPanZoomSettings$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_panZoom$ && !this.$IsLayoutViewport$() && (this.$_setRerenderImmediate$(!0), this.$_panZoomCanvas$.$zoomTo$(this.$_panZoom$.zoom, 0, 0, $DvtScrollbarBackground$$), this.$_panZoomCanvas$.$panTo$(this.$_panZoom$.$panX$, this.$_panZoom$.$panY$, $DvtScrollbarBackground$$), $dvt$$1$$ && (this.$_panZoom$ = null), this.$_setRerenderImmediate$(!1));
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_clearPanningConstraints$ = function $$dvt$$1$$$$AdfDiagram$$$$_clearPanningConstraints$$() {
    var $dvt$$1$$ = this.$_panZoomCanvas$;
    $dvt$$1$$.$setMinPanX$(null);
    $dvt$$1$$.$setMinPanY$(null);
    $dvt$$1$$.$setMaxPanX$(null);
    $dvt$$1$$.$setMaxPanY$(null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_setRerenderImmediate$ = function $$dvt$$1$$$$AdfDiagram$$$$_setRerenderImmediate$$($dvt$$1$$) {
    this.$_rerenderImmediate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$convertPanelCardIdToIndex$ = function $$dvt$$1$$$$AdfDiagram$$$$convertPanelCardIdToIndex$$($dvt$$1$$) {
    if (this.$_cardSelectorList$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_cardSelectorList$.length;$DvtScrollbarBackground$$++) {
        if (this.$_cardSelectorList$[$DvtScrollbarBackground$$][2] == $dvt$$1$$) {
          return $DvtScrollbarBackground$$;
        }
      }
    }
    return -1;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$convertIndexToPanelCardId$ = function $$dvt$$1$$$$AdfDiagram$$$$convertIndexToPanelCardId$$($dvt$$1$$) {
    return this.$_cardSelectorList$ ? this.$_cardSelectorList$[$dvt$$1$$] ? this.$_cardSelectorList$[$dvt$$1$$][2] : null : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setSummary$ = function $$dvt$$1$$$$AdfDiagram$$$$setSummary$$($dvt$$1$$) {
    this.$_summary$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getAccessibilityStates$ = function $$dvt$$1$$$$AdfDiagram$$$$getAccessibilityStates$$() {
    var $states$$ = [];
    this.$_drilledNodePath$ && $states$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "STATE_DRILLED"));
    this.$IsStackPreview$() && ($states$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "STATE_PREVIEW_MODE")), $states$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "COLON_SEP_LIST", [$dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "SIZE"), this.$getNodeById$(this.$_stackPreviewNodeId$).$_stackCount$])));
    return $states$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetComponentDescription$ = function $$dvt$$1$$$$AdfDiagram$$$$GetComponentDescription$$() {
    var $desc$$ = $dvt$$1$$.$Displayable$.$generateAriaLabel$(this.$_summary$, this.$getAccessibilityStates$());
    return $desc$$ ? $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "COLON_SEP_LIST", [$dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "DIAGRAM"), $desc$$]) : $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "DIAGRAM");
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setContextKeyboardHandlers$ = function $$dvt$$1$$$$AdfDiagram$$$$setContextKeyboardHandlers$$() {
    var $handlers$$ = [this];
    this.$_panelDrawer$ && ($handlers$$.push(this.$_panelDrawer$), this.$_panelDrawer$.$isDisclosed$() && this.$_panelDrawer$.$getDisplayedPanelId$() == $dvt$$1$$.$PanelDrawer$.$PANEL_PALETTE$ && $handlers$$.push(this.$_palette$), this.$_panelDrawer$.$isDisclosed$() && this.$_panelDrawer$.$getDisplayedPanelId$() == $dvt$$1$$.$PanelDrawer$.$PANEL_LEGEND$ && $handlers$$.push(this.$_legend$));
    this.$_overviewWindowPanel$ && this.$_overviewWindowPanel$ != this.$_panelDrawer$ && $handlers$$.push(this.$_overviewWindowPanel$);
    this.$getCtx$().$setKeyboardFocusArray$($handlers$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$setAutomationState$ = function $$dvt$$1$$$$AdfDiagram$$$$setAutomationState$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_automationStatesMap$ || (this.$_automationStatesMap$ = {});
    this.$_automationStatesMap$[$dvt$$1$$] || (this.$_automationStatesMap$[$dvt$$1$$] = {});
    this.$_automationStatesMap$[$dvt$$1$$][$DvtScrollbarBackground$$] = $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getAutomationState$ = function $$dvt$$1$$$$AdfDiagram$$$$getAutomationState$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return null != this.$_automationStatesMap$ && null != this.$_automationStatesMap$[$dvt$$1$$] ? this.$_automationStatesMap$[$dvt$$1$$][$DvtScrollbarBackground$$] : null;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$clearAutomationState$ = function $$dvt$$1$$$$AdfDiagram$$$$clearAutomationState$$() {
    0 == this.$_interactionDisableCounter$ && (this.$_automationStatesMap$ = null);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$renderNodeFromContext$ = function $$dvt$$1$$$$AdfDiagram$$$$renderNodeFromContext$$($nodeContext_relNodePos$$) {
    var $DvtScrollbarBackground$$ = this.$getNodeById$($nodeContext_relNodePos$$.getId());
    if ($DvtScrollbarBackground$$.$isDisclosed$()) {
      for (var $DvtScrollbar$$ = this.$CreateEmptyLayoutContext$(), $DvtScrollbarEvent$$ = $nodeContext_relNodePos$$.$getChildNodes$(), $i$$48$$ = 0;$i$$48$$ < $DvtScrollbarEvent$$.length;$i$$48$$++) {
        var $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$i$$48$$];
        $DvtAdfDiagramDragSource$$.$IsRendered$ || this.$renderNodeFromContext$($DvtAdfDiagramDragSource$$);
        $DvtScrollbar$$.$addNode$($DvtAdfDiagramDragSource$$);
      }
      this.$ApplyLayoutContext$($DvtScrollbar$$);
      ($DvtScrollbarEvent$$ = $nodeContext_relNodePos$$.$getContainerPadding$()) && $DvtScrollbarBackground$$.$setContainerPadding$($dvt$$1$$.$BaseDiagram$.$getContainerPadding$($DvtScrollbarEvent$$));
    }
    $DvtScrollbarEvent$$ = this.$createAfContext$();
    $DvtScrollbarBackground$$.$createNodeContents$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$renderNode$($DvtScrollbarEvent$$);
    this.$UpdateNodeLayoutContext$($nodeContext_relNodePos$$, $DvtScrollbarBackground$$);
    if ($DvtScrollbarBackground$$.$isDisclosed$()) {
      for ($DvtScrollbarEvent$$ = $nodeContext_relNodePos$$.$getChildNodes$(), $i$$48$$ = 0;$i$$48$$ < $DvtScrollbarEvent$$.length;$i$$48$$++) {
        $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$i$$48$$];
        $nodeContext_relNodePos$$ = new $dvt$$1$$.$DiagramPoint$(0, 0);
        if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$GetChildNodePanePosition$()) {
          var $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$getContainerPadding$();
          $nodeContext_relNodePos$$.x += $DvtScrollbar$$.x - $DvtScrollbarArrow$$.left;
          $nodeContext_relNodePos$$.y += $DvtScrollbar$$.y - $DvtScrollbarArrow$$.top;
        }
        $DvtScrollbar$$ = $DvtAdfDiagramDragSource$$.$ContentOffset$;
        $DvtAdfDiagramDragSource$$.$ContentOffset$ = new $dvt$$1$$.$DiagramPoint$($DvtScrollbar$$.x + $nodeContext_relNodePos$$.x, $DvtScrollbar$$.y + $nodeContext_relNodePos$$.y);
      }
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$_addCrossContainerNodes$ = function $$dvt$$1$$$$AdfDiagram$$$$_addCrossContainerNodes$$($layoutContext$$7$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $layout$$8$$ = $layoutContext$$7$$.$getLayout$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.length - 1;0 <= $DvtAdfDiagramDragSource$$;$DvtAdfDiagramDragSource$$--) {
      var $DvtScrollbarArrow$$ = this.$getNodeById$($DvtScrollbar$$[$DvtAdfDiagramDragSource$$]), $cnpPos$$1_nodeGroupId$$ = $DvtScrollbarArrow$$.getData().$getGroupId$();
      if (!$cnpPos$$1_nodeGroupId$$ || $cnpPos$$1_nodeGroupId$$ == $DvtScrollbarBackground$$) {
        break;
      }
      var $nodeContext$$1$$ = this.$CreateLayoutContextNode$($DvtScrollbarArrow$$, $layout$$8$$, !1, $layoutContext$$7$$);
      $nodeContext$$1$$.$setReadOnly$(!0);
      $nodeContext$$1$$.$setContainerId$($cnpPos$$1_nodeGroupId$$);
      var $relNodePos$$1$$ = new $dvt$$1$$.$DiagramPoint$($DvtScrollbarArrow$$.$getTranslateX$(), $DvtScrollbarArrow$$.$getTranslateY$());
      if ($DvtScrollbarEvent$$) {
        var $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.$getDestVal$($DvtScrollbarArrow$$, $DvtScrollbarArrow$$.$getTranslateX$), $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$getDestVal$($DvtScrollbarArrow$$, $DvtScrollbarArrow$$.$getTranslateY$);
        null == $DvtAdfDiagramEditorManager$$ || isNaN($DvtAdfDiagramEditorManager$$) || null == $DvtScrollbarArrow$$ || isNaN($DvtScrollbarArrow$$) || ($relNodePos$$1$$ = new $dvt$$1$$.$DiagramPoint$($DvtAdfDiagramEditorManager$$, $DvtScrollbarArrow$$));
      }
      $DvtAdfDiagramEditorManager$$ = this.$getNodeById$($cnpPos$$1_nodeGroupId$$);
      if ($cnpPos$$1_nodeGroupId$$ = $DvtAdfDiagramEditorManager$$.$GetChildNodePanePosition$($DvtScrollbarEvent$$)) {
        $DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramEditorManager$$.$getContainerPadding$(), $relNodePos$$1$$.x += $cnpPos$$1_nodeGroupId$$.x - $DvtAdfDiagramEditorManager$$.left, $relNodePos$$1$$.y += $cnpPos$$1_nodeGroupId$$.y - $DvtAdfDiagramEditorManager$$.top;
      }
      $nodeContext$$1$$.setPosition($relNodePos$$1$$);
      $layoutContext$$7$$.$addNodeToMap$($nodeContext$$1$$);
    }
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetMinZoomFactor$ = function $$dvt$$1$$$$AdfDiagram$$$$GetMinZoomFactor$$() {
    return .5;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetLinkTranslationOffset$ = function $$dvt$$1$$$$AdfDiagram$$$$GetLinkTranslationOffset$$($containerId$$1_link$$27_node$$69$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $offset$$15$$ = new $dvt$$1$$.$Point$(0, 0);
    if ("global" !== this.$_layoutBehavior$ || !$containerId$$1_link$$27_node$$69$$.$getGroupId$()) {
      $offset$$15$$ = $DvtScrollbar$$;
    } else {
      if ($containerId$$1_link$$27_node$$69$$.$getGroupId$() != $DvtScrollbarBackground$$.$_coordinateContainerId$) {
        $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$_coordinateContainerId$;
        for ($containerId$$1_link$$27_node$$69$$ = this.$getNodeById$($containerId$$1_link$$27_node$$69$$.$getGroupId$());$containerId$$1_link$$27_node$$69$$;) {
          var $DvtAdfDiagramDragSource$$ = $containerId$$1_link$$27_node$$69$$.$GetChildNodePanePosition$();
          $offset$$15$$.x -= $DvtAdfDiagramDragSource$$.x - $containerId$$1_link$$27_node$$69$$.$GetPosition$($DvtScrollbarEvent$$).x;
          $offset$$15$$.y -= $DvtAdfDiagramDragSource$$.y - $containerId$$1_link$$27_node$$69$$.$GetPosition$($DvtScrollbarEvent$$).y;
          $containerId$$1_link$$27_node$$69$$ = $containerId$$1_link$$27_node$$69$$.$getGroupId$();
          $containerId$$1_link$$27_node$$69$$ = $containerId$$1_link$$27_node$$69$$ != $DvtScrollbarBackground$$ ? this.$getNodeById$($containerId$$1_link$$27_node$$69$$) : null;
        }
        $DvtScrollbarBackground$$ || ($offset$$15$$.x += $DvtScrollbar$$.x, $offset$$15$$.y += $DvtScrollbar$$.y);
      }
    }
    return $offset$$15$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$UpdateKeyboardFocus$ = function $$dvt$$1$$$$AdfDiagram$$$$UpdateKeyboardFocus$$() {
    var $focucedObjId_focusObj$$ = null, $DvtScrollbarBackground$$ = this.$getEventManager$().$getFocus$();
    if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ || $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramLink$) {
      $focucedObjId_focusObj$$ = $DvtScrollbarBackground$$.getData().getId();
      $focucedObjId_focusObj$$ = $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ ? this.$getNodeById$($focucedObjId_focusObj$$) : this.$getLinkById$($focucedObjId_focusObj$$);
      if ($DvtScrollbarBackground$$ == $focucedObjId_focusObj$$) {
        return;
      }
      $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && $DvtScrollbarBackground$$.$setFlyOutEnabled$();
    }
    if ($focucedObjId_focusObj$$ && !$focucedObjId_focusObj$$.$_bVisible$ || $focucedObjId_focusObj$$ && $focucedObjId_focusObj$$.$_bVisible$ && $focucedObjId_focusObj$$.$isHiddenAncestor$ && $focucedObjId_focusObj$$.$_bHiddenAncestor$) {
      $focucedObjId_focusObj$$ = null;
    }
    $focucedObjId_focusObj$$ || ($focucedObjId_focusObj$$ = this.$GetInitialFocusNode$());
    this.$getEventManager$().$setFocusObj$($focucedObjId_focusObj$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$GetInitialFocusNode$ = function $$dvt$$1$$$$AdfDiagram$$$$GetInitialFocusNode$$() {
    function $findFocusNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
      if (!$dvt$$1$$.$ArrayUtils$.isArray($DvtScrollbar$$) || 0 === $DvtScrollbar$$.length) {
        return null;
      }
      for (var $nextLevel$$ = [], $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
        var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$[$DvtScrollbarEvent$$];
        if ($DvtAdfDiagramDragSource$$.$_bVisible$ && !$DvtAdfDiagramDragSource$$.$_bHiddenAncestor$) {
          return $DvtAdfDiagramDragSource$$;
        }
        for (var $count$$9$$ = $DvtAdfDiagramDragSource$$.$getChildNodeCount$(), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$.$_childNodeIds$, $j$$8$$ = 0;$j$$8$$ < $count$$9$$;$j$$8$$++) {
          $nextLevel$$.push($DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramDragSource$$[$j$$8$$]));
        }
      }
      return $findFocusNode$$($DvtScrollbarBackground$$, $nextLevel$$);
    }
    var $DvtScrollbarBackground$$ = this.$getSortedVisibleNodesByGroupDepth$();
    return $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$[0] ? $findFocusNode$$(this, $DvtScrollbarBackground$$[0]) : null;
  };
  $dvt$$1$$.$Bundle$.$addDefaultStrings$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, {STATE_STACKED:"Stacked", STATE_PREVIEW_MODE:"Preview Mode", STATE_HAS_ADDITIONAL_LINKS:"Has Additional Links", STATE_DRILLED:"Drilled", SIZE:"Size", PROMOTED_LINK_ARIA_DESC:"Indirect"});
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramContainerBadgeHandler$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramContainerBadgeHandler");
  $DvtAdfDiagramContainerBadgeHandler$$.prototype.Init = function $$DvtAdfDiagramContainerBadgeHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_diagram$ = $dvt$$1$$;
    this.$_node$ = $DvtScrollbarBackground$$;
    this.$_button$ = $DvtScrollbar$$;
    this.$_button$.$setTooltip$(this.$_diagram$.$getResourcesMap$()[this.$_node$.$isDisclosed$() ? "discloseExpandedTip" : "discloseCollapsedTip"]);
  };
  $DvtAdfDiagramContainerBadgeHandler$$.prototype.$getTooltip$ = function $$DvtAdfDiagramContainerBadgeHandler$$$$$getTooltip$$() {
    return this.$_button$.$getTooltip$();
  };
  $DvtAdfDiagramContainerBadgeHandler$$.prototype.$HandleClick$ = function $$DvtAdfDiagramContainerBadgeHandler$$$$$HandleClick$$($event$$35_nodeId$$47$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($event$$35_nodeId$$47$$);
    $event$$35_nodeId$$47$$ = this.$_node$.getData().getId();
    this.$_diagram$.$setNodeDisclosed$($event$$35_nodeId$$47$$, !this.$_node$.$isDisclosed$());
  };
  $DvtAdfDiagramContainerBadgeHandler$$.prototype.$isUnrelatedToSelection$ = function $$DvtAdfDiagramContainerBadgeHandler$$$$$isUnrelatedToSelection$$() {
    return !0;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramDataAnimationHandler$$, $dvt$$1$$.$DataAnimationHandler$, "DvtAdfDiagramDataAnimationHandler");
  $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$ = 0;
  $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$ = 1;
  $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$ = 2;
  $DvtAdfDiagramDataAnimationHandler$$.prototype.Init = function $$DvtAdfDiagramDataAnimationHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    $DvtAdfDiagramDataAnimationHandler$$.$superclass$.Init.call(this, $dvt$$1$$, $DvtScrollbarBackground$$);
    this.$_skipLinks$ = this.$_skipNodes$ = this.$_oldLinks$ = this.$_newNodes$ = this.$_oldNodes$ = null;
  };
  $DvtAdfDiagramDataAnimationHandler$$.prototype.$ConstructAnimation$ = function $$DvtAdfDiagramDataAnimationHandler$$$$$ConstructAnimation$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $oldLinks$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $newArNodeIds$$) {
    if (!this.$getCtx$().$isOffscreen$()) {
      $dvt$$1$$ && $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$AnimateUpdate$(this, $dvt$$1$$);
      $dvt$$1$$ = {};
      for (var $nodeId$$48_oldNodeId_tmpOldLinks$$ in $DvtScrollbarEvent$$) {
        $dvt$$1$$[$nodeId$$48_oldNodeId_tmpOldLinks$$] = $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$];
      }
      $DvtScrollbarEvent$$ = $dvt$$1$$;
      $dvt$$1$$ = {};
      for (var $linkId$$15$$ in $DvtAdfDiagramDragSource$$) {
        $dvt$$1$$[$linkId$$15$$] = $DvtAdfDiagramDragSource$$[$linkId$$15$$];
      }
      $DvtAdfDiagramDragSource$$ = $dvt$$1$$;
      $dvt$$1$$ = {};
      for ($nodeId$$48_oldNodeId_tmpOldLinks$$ in $DvtScrollbar$$) {
        $dvt$$1$$[$nodeId$$48_oldNodeId_tmpOldLinks$$] = $DvtScrollbar$$[$nodeId$$48_oldNodeId_tmpOldLinks$$];
      }
      $DvtScrollbar$$ = $dvt$$1$$;
      $nodeId$$48_oldNodeId_tmpOldLinks$$ = {};
      for ($linkId$$15$$ in $oldLinks$$) {
        $nodeId$$48_oldNodeId_tmpOldLinks$$[$linkId$$15$$] = $oldLinks$$[$linkId$$15$$];
      }
      $oldLinks$$ = $nodeId$$48_oldNodeId_tmpOldLinks$$;
      this.$_oldNodes$ = $DvtScrollbar$$;
      this.$_newNodes$ = $DvtScrollbarEvent$$;
      this.$_oldLinks$ = $oldLinks$$;
      this.$_skipNodes$ = {};
      this.$_skipLinks$ = {};
      if ($DvtScrollbar$$) {
        for ($dvt$$1$$ = 0;$dvt$$1$$ < $DvtScrollbarArrow$$.length;$dvt$$1$$++) {
          if ($nodeId$$48_oldNodeId_tmpOldLinks$$ = $DvtScrollbarArrow$$[$dvt$$1$$], this.$_skipNodes$[$nodeId$$48_oldNodeId_tmpOldLinks$$]) {
            delete $DvtScrollbar$$[$nodeId$$48_oldNodeId_tmpOldLinks$$], delete $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$];
          } else {
            var $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$[$nodeId$$48_oldNodeId_tmpOldLinks$$];
            if ($DvtAdfDiagramEditorManager$$) {
              var $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$];
              $DvtAdfDiagramKeyboardHandler$$ ? ($DvtAdfDiagramKeyboardHandler$$.$AnimateUpdate$(this, $DvtAdfDiagramEditorManager$$), delete $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$]) : $DvtAdfDiagramEditorManager$$.$AnimateDelete$(this, $DvtScrollbarBackground$$);
            }
          }
        }
      }
      $DvtScrollbarArrow$$ = [];
      for ($dvt$$1$$ = 0;$dvt$$1$$ < $newArNodeIds$$.length;$dvt$$1$$++) {
        $nodeId$$48_oldNodeId_tmpOldLinks$$ = $newArNodeIds$$[$dvt$$1$$], $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$] && $DvtScrollbarArrow$$.push($nodeId$$48_oldNodeId_tmpOldLinks$$);
      }
      for ($dvt$$1$$ = 0;$dvt$$1$$ < $DvtScrollbarArrow$$.length;$dvt$$1$$++) {
        $nodeId$$48_oldNodeId_tmpOldLinks$$ = $DvtScrollbarArrow$$[$dvt$$1$$], this.$_skipNodes$[$nodeId$$48_oldNodeId_tmpOldLinks$$] ? (delete $DvtScrollbar$$[$nodeId$$48_oldNodeId_tmpOldLinks$$], delete $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$]) : $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$] && $DvtScrollbarEvent$$[$nodeId$$48_oldNodeId_tmpOldLinks$$].$AnimateInsert$(this);
      }
      if ($oldLinks$$) {
        for (var $DvtAdfDiagramNodeEndpoint$$ in $oldLinks$$) {
          if (this.$_skipLinks$[$DvtAdfDiagramNodeEndpoint$$]) {
            delete $oldLinks$$[$DvtAdfDiagramNodeEndpoint$$], delete $DvtAdfDiagramDragSource$$[$DvtAdfDiagramNodeEndpoint$$];
          } else {
            if ($DvtScrollbar$$ = $oldLinks$$[$DvtAdfDiagramNodeEndpoint$$]) {
              ($DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramNodeEndpoint$$]) ? ($DvtScrollbarEvent$$.$AnimateUpdate$(this, $DvtScrollbar$$), delete $DvtAdfDiagramDragSource$$[$DvtAdfDiagramNodeEndpoint$$]) : $DvtScrollbar$$.$AnimateDelete$(this, $DvtScrollbarBackground$$);
            }
          }
        }
      }
      for ($linkId$$15$$ in $DvtAdfDiagramDragSource$$) {
        this.$_skipLinks$[$linkId$$15$$] ? (delete $oldLinks$$[$linkId$$15$$], delete $DvtAdfDiagramDragSource$$[$linkId$$15$$]) : $DvtAdfDiagramDragSource$$[$linkId$$15$$] && $DvtAdfDiagramDragSource$$[$linkId$$15$$].$AnimateInsert$(this);
      }
      this.$_skipLinks$ = this.$_skipNodes$ = this.$_oldLinks$ = this.$_newNodes$ = this.$_oldNodes$ = null;
    }
  };
  $DvtAdfDiagramDataAnimationHandler$$.prototype.$SkipDescendants$ = function $$DvtAdfDiagramDataAnimationHandler$$$$$SkipDescendants$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (!$DvtScrollbar$$ || 0 > $DvtScrollbar$$) {
      $DvtScrollbar$$ = 0;
    }
    var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getNodeById$($dvt$$1$$);
    if ($DvtScrollbarEvent$$) {
      var $childNodeIds$$2$$ = $DvtScrollbarEvent$$.$_childNodeIds$;
      if ($childNodeIds$$2$$) {
        for ($dvt$$1$$ = 0;$dvt$$1$$ < $childNodeIds$$2$$.length;$dvt$$1$$++) {
          var $DvtAdfDiagramDragSource$$ = $childNodeIds$$2$$[$dvt$$1$$];
          1 > $DvtScrollbar$$ && (this.$_skipNodes$[$DvtAdfDiagramDragSource$$] = !0);
          this.$SkipDescendants$($DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$, $DvtScrollbar$$ - 1);
        }
      }
      if (1 > $DvtScrollbar$$) {
        if ($DvtScrollbarBackground$$ = $DvtScrollbarEvent$$.$_childLinkIds$) {
          for ($dvt$$1$$ = 0;$dvt$$1$$ < $DvtScrollbarBackground$$.length;$dvt$$1$$++) {
            this.$_skipLinks$[$DvtScrollbarBackground$$[$dvt$$1$$]] = !0;
          }
        }
        if ($DvtScrollbarBackground$$ = $DvtScrollbarEvent$$.$_crossChildLinkIds$) {
          for ($dvt$$1$$ = 0;$dvt$$1$$ < $DvtScrollbarBackground$$.length;$dvt$$1$$++) {
            this.$_skipLinks$[$DvtScrollbarBackground$$[$dvt$$1$$]] = !0;
          }
        }
      }
    }
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramFlyOutButton$$, $dvt$$1$$.$Container$, "DvtAdfDiagramFlyOutButton");
  $DvtAdfDiagramFlyOutButton$$.$_BUTTON_WIDTH$ = 44;
  $DvtAdfDiagramFlyOutButton$$.$_BUTTON_HEIGHT$ = 44;
  $DvtAdfDiagramFlyOutButton$$.$_ICON_WIDTH$ = 24;
  $DvtAdfDiagramFlyOutButton$$.$_ICON_HEIGHT$ = 24;
  $DvtAdfDiagramFlyOutButton$$.prototype.Init = function $$DvtAdfDiagramFlyOutButton$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $tooltip$$1$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bRoundTopRight$$1$$, $bRoundBottomLeft$$1$$, $bRoundBottomRight$$1$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramDropTarget$$) {
    $DvtAdfDiagramFlyOutButton$$.$superclass$.Init.call(this, $dvt$$1$$, null, $DvtAdfDiagramKeyboardHandler$$);
    this.$_tooltip$ = $tooltip$$1$$;
    this.$RenderSelf$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtScrollbarArrow$$, $bRoundTopRight$$1$$, $bRoundBottomLeft$$1$$, $bRoundBottomRight$$1$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramDropTarget$$);
    $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.$associate$(this, this);
  };
  $DvtAdfDiagramFlyOutButton$$.prototype.$getTooltip$ = function $$DvtAdfDiagramFlyOutButton$$$$$getTooltip$$() {
    return this.$_tooltip$ ? this.$_tooltip$ : null;
  };
  $DvtAdfDiagramFlyOutButton$$.prototype.getWidth = function $$DvtAdfDiagramFlyOutButton$$$$getWidth$() {
    return $DvtAdfDiagramFlyOutButton$$.$_BUTTON_WIDTH$;
  };
  $DvtAdfDiagramFlyOutButton$$.prototype.getHeight = function $$DvtAdfDiagramFlyOutButton$$$$getHeight$() {
    return $DvtAdfDiagramFlyOutButton$$.$_BUTTON_HEIGHT$;
  };
  $DvtAdfDiagramFlyOutButton$$.prototype.$RenderSelf$ = function $$DvtAdfDiagramFlyOutButton$$$$$RenderSelf$$($button$$5_context$$11$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $bRoundTopLeft$$2_upState$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$2$$, $rx$$1_styleMap$$2$$, $callback$$70$$, $DvtAdfDiagramEditorManager$$) {
    var $DvtAdfDiagramKeyboardHandler$$ = this.getWidth(), $DvtAdfDiagramNodeEndpoint$$ = this.getHeight(), $DvtAdfDiagramDropTarget$$ = $DvtAdfDiagramFlyOutButton$$.$_ICON_WIDTH$, $DvtItemListEvent$$ = $DvtAdfDiagramFlyOutButton$$.$_ICON_WIDTH$, $DvtPaletteEventManager$$ = .5 * ($DvtAdfDiagramKeyboardHandler$$ - $DvtAdfDiagramDropTarget$$), $DvtScrollbarThumb$$ = .5 * ($DvtAdfDiagramNodeEndpoint$$ - $DvtItemListEvent$$), $DvtPaletteItem$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($rx$$1_styleMap$$2$$, 
    $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$), $DvtPaletteDefaults$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($rx$$1_styleMap$$2$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$), $DvtPaletteSelectionHandler$$ = $dvt$$1$$.$AdfDiagram$.$getButtonFill$($rx$$1_styleMap$$2$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$), $DvtAdfDiagramJsonUtils$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($rx$$1_styleMap$$2$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$), $DvtAdfDiagramNodeExpandHandler$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($rx$$1_styleMap$$2$$, 
    $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$), $DvtAdfDiagramLinkEndpoint$$ = $dvt$$1$$.$AdfDiagram$.$getButtonStroke$($rx$$1_styleMap$$2$$, $dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$);
    $rx$$1_styleMap$$2$$ = $dvt$$1$$.$AdfDiagram$.$getButtonBorderRadius$($rx$$1_styleMap$$2$$);
    $DvtAdfDiagramDragSource$$ = this.$GetPathArray$($DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramNodeEndpoint$$, $rx$$1_styleMap$$2$$, $bRoundTopLeft$$2_upState$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$2$$);
    $bRoundTopLeft$$2_upState$$2$$ = new $dvt$$1$$.$Path$($button$$5_context$$11$$, $DvtAdfDiagramDragSource$$);
    $bRoundTopLeft$$2_upState$$2$$.$setFill$($DvtPaletteItem$$);
    $bRoundTopLeft$$2_upState$$2$$.$setStroke$($DvtAdfDiagramJsonUtils$$);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Image($button$$5_context$$11$$, $DvtScrollbarBackground$$, $DvtPaletteEventManager$$, $DvtScrollbarThumb$$, $DvtAdfDiagramDropTarget$$, $DvtItemListEvent$$);
    $bRoundTopLeft$$2_upState$$2$$.$addChild$($DvtScrollbarBackground$$);
    $DvtPaletteItem$$ = new $dvt$$1$$.$Path$($button$$5_context$$11$$, $DvtAdfDiagramDragSource$$);
    $DvtPaletteItem$$.$setFill$($DvtPaletteDefaults$$);
    $DvtPaletteItem$$.$setStroke$($DvtAdfDiagramNodeExpandHandler$$);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Image($button$$5_context$$11$$, $DvtScrollbar$$, $DvtPaletteEventManager$$, $DvtScrollbarThumb$$, $DvtAdfDiagramDropTarget$$, $DvtItemListEvent$$);
    $DvtPaletteItem$$.$addChild$($DvtScrollbarBackground$$);
    $DvtScrollbar$$ = new $dvt$$1$$.$Path$($button$$5_context$$11$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$.$setFill$($DvtPaletteSelectionHandler$$);
    $DvtScrollbar$$.$setStroke$($DvtAdfDiagramLinkEndpoint$$);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Image($button$$5_context$$11$$, $DvtScrollbarEvent$$, $DvtPaletteEventManager$$, $DvtScrollbarThumb$$, $DvtAdfDiagramDropTarget$$, $DvtItemListEvent$$);
    $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    $button$$5_context$$11$$ = new $dvt$$1$$.$Button$($button$$5_context$$11$$, $bRoundTopLeft$$2_upState$$2$$, $DvtPaletteItem$$, $DvtScrollbar$$, null, null, $callback$$70$$, $DvtAdfDiagramEditorManager$$);
    $button$$5_context$$11$$.$setPixelHinting$();
    this.$addChild$($button$$5_context$$11$$);
    this.$_button$ = $button$$5_context$$11$$;
  };
  $DvtAdfDiagramFlyOutButton$$.prototype.$GetPathArray$ = function $$DvtAdfDiagramFlyOutButton$$$$$GetPathArray$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $bRoundTopRight$$3$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$) {
    var $arPath$$1$$ = [];
    $arPath$$1$$.push("M", $DvtScrollbar$$, 0);
    $arPath$$1$$.push("L", $dvt$$1$$ - $DvtScrollbar$$, 0);
    $bRoundTopRight$$3$$ ? $arPath$$1$$.push("A", $DvtScrollbar$$, $DvtScrollbar$$, 0, 0, 1, $dvt$$1$$, $DvtScrollbar$$) : $arPath$$1$$.push("L", $dvt$$1$$, 0, "L", $dvt$$1$$, $DvtScrollbar$$);
    $arPath$$1$$.push("L", $dvt$$1$$, $DvtScrollbarBackground$$ - $DvtScrollbar$$);
    $DvtScrollbarArrow$$ ? $arPath$$1$$.push("A", $DvtScrollbar$$, $DvtScrollbar$$, 0, 0, 1, $dvt$$1$$ - $DvtScrollbar$$, $DvtScrollbarBackground$$) : $arPath$$1$$.push("L", $dvt$$1$$, $DvtScrollbarBackground$$, "L", $dvt$$1$$ - $DvtScrollbar$$, $DvtScrollbarBackground$$);
    $arPath$$1$$.push("L", $DvtScrollbar$$, $DvtScrollbarBackground$$);
    $DvtAdfDiagramDragSource$$ ? $arPath$$1$$.push("A", $DvtScrollbar$$, $DvtScrollbar$$, 0, 0, 1, 0, $DvtScrollbarBackground$$ - $DvtScrollbar$$) : $arPath$$1$$.push("L", 0, $DvtScrollbarBackground$$, "L", 0, $DvtScrollbarBackground$$ - $DvtScrollbar$$);
    $arPath$$1$$.push("L", 0, $DvtScrollbar$$);
    $DvtScrollbarEvent$$ ? $arPath$$1$$.push("A", $DvtScrollbar$$, $DvtScrollbar$$, 0, 0, 1, $DvtScrollbar$$, 0) : $arPath$$1$$.push("L", 0, 0, "L", $DvtScrollbar$$, 0);
    return $arPath$$1$$;
  };
  "undefined" != typeof $dvt$$1$$.$AnimFadeIn$ && $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramLinkAnimFadeIn$$, $dvt$$1$$.$AnimFadeIn$, "DvtAdfDiagramLinkAnimFadeIn");
  $DvtAdfDiagramLinkAnimFadeIn$$.prototype.Init = function $$DvtAdfDiagramLinkAnimFadeIn$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtAdfDiagramLinkAnimFadeIn$$.$superclass$.Init.call(this, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $DvtAdfDiagramLinkAnimFadeIn$$.prototype.$InitEndState$ = function $$DvtAdfDiagramLinkAnimFadeIn$$$$$InitEndState$$($obj$$29$$) {
    this.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $obj$$29$$, $obj$$29$$.$getAlpha$, $obj$$29$$.$setAlpha$, Math.min(1, $obj$$29$$.$GetMaxAlpha$()));
  };
  $dvt$$1$$.$AdfDiagramInitAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramInitAnim$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramInitAnim");
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.Init = function $$dvt$$1$$$$AdfDiagramInitAnim$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_context$ = $dvt$$1$$;
    this.$_view$ = $DvtScrollbarBackground$$;
    this.$_onEndObj$ = this.$_onEnd$ = null;
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$GetEnableInteractionFunc$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$GetEnableInteractionFunc$$() {
    var $dvt$$1$$ = this.$_view$;
    return function() {
      $dvt$$1$$.$setInteractionEnabled$(!0);
    };
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.play = function $$dvt$$1$$$$AdfDiagramInitAnim$$$play$($type$$91$$) {
    this.$_view$.$setInteractionEnabled$(!1);
    switch($type$$91$$) {
      case $dvt$$1$$.$BlackBoxAnimationHandler$.$ALPHA_FADE$:
        this.$PlayBlackBoxAnim$($type$$91$$);
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_EXPLODE$:
        this.$PlayExplode$();
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_ELASTIC_EXPLODE$:
        this.$PlayExplode$(!0);
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_GROW_LINKS$:
        this.$PlayGrowLinks$();
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_POP$:
        this.$PlayPop$();
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_EXPLODE_GROW_LINKS$:
        this.$PlayExplodeGrowLinks$();
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_ELASTIC_EXPLODE_GROW_LINKS$:
        this.$PlayExplodeGrowLinks$(!0);
        break;
      case $dvt$$1$$.$AdfDiagram$.$INIT_ANIM_POP_GROW_LINKS$:
        this.$PlayPopGrowLinks$();
    }
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$setOnEnd$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$setOnEnd$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_onEnd$ = $dvt$$1$$;
    this.$_onEndObj$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$ : null;
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$getOnEnd$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$getOnEnd$$() {
    return [this.$_onEnd$, this.$_onEndObj$];
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayBlackBoxAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayBlackBoxAnim$$($anim$$2_type$$92$$) {
    var $DvtScrollbarBackground$$ = this.$_view$;
    this.$_view$.$_panZoomCanvas$ && this.$_view$.$_panZoomCanvas$.$_contentPane$ && ($DvtScrollbarBackground$$ = this.$_view$.$_panZoomCanvas$.$_contentPane$);
    $anim$$2_type$$92$$ = $dvt$$1$$.$BlackBoxAnimationHandler$.$getInAnimation$(this.$_context$, $anim$$2_type$$92$$, $DvtScrollbarBackground$$, null, this.$_view$.$getAnimationDuration$());
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($anim$$2_type$$92$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($anim$$2_type$$92$$, this.$GetEnableInteractionFunc$());
    $anim$$2_type$$92$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayExplode$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayExplode$$($bElastic_explodeNodes$$) {
    this.$_view$.$_nodesPane$.$setAlpha$(0);
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimFadeIn$(this.$_context$, this.$_view$.$_nodesPane$, this.$_view$.$getAnimationDuration$());
    $bElastic_explodeNodes$$ = this.$CreateExplodeAnim$($bElastic_explodeNodes$$);
    var $DvtScrollbar$$ = this.$CreateFadeInLinksAnim$(), $DvtScrollbarBackground$$ = new $dvt$$1$$.$SequentialPlayable$(this.$_context$, $DvtScrollbarBackground$$, $bElastic_explodeNodes$$, $DvtScrollbar$$);
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$GetEnableInteractionFunc$());
    $DvtScrollbarBackground$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayGrowLinks$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayGrowLinks$$() {
    this.$_view$.$_nodesPane$.$setAlpha$(0);
    var $growLinks_seqPlayable$$1$$ = this.$CreateGrowLinksAnim$(), $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimFadeIn$(this.$_context$, this.$_view$.$_nodesPane$, this.$_view$.$getAnimationDuration$()), $growLinks_seqPlayable$$1$$ = new $dvt$$1$$.$SequentialPlayable$(this.$_context$, $DvtScrollbarBackground$$, $growLinks_seqPlayable$$1$$);
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($growLinks_seqPlayable$$1$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($growLinks_seqPlayable$$1$$, this.$GetEnableInteractionFunc$());
    $growLinks_seqPlayable$$1$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayPop$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayPop$$() {
    var $popInNodes_seqPlayable$$2$$ = this.$CreatePopAnim$(), $DvtScrollbarBackground$$ = this.$CreateFadeInLinksAnim$(), $popInNodes_seqPlayable$$2$$ = new $dvt$$1$$.$SequentialPlayable$(this.$_context$, $popInNodes_seqPlayable$$2$$, $DvtScrollbarBackground$$);
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($popInNodes_seqPlayable$$2$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($popInNodes_seqPlayable$$2$$, this.$GetEnableInteractionFunc$());
    $popInNodes_seqPlayable$$2$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayExplodeGrowLinks$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayExplodeGrowLinks$$($bElastic$$1_explodeNodes$$1$$) {
    this.$_view$.$_nodesPane$.$setAlpha$(0);
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimFadeIn$(this.$_context$, this.$_view$.$_nodesPane$, this.$_view$.$getAnimationDuration$());
    $bElastic$$1_explodeNodes$$1$$ = this.$CreateExplodeAnim$($bElastic$$1_explodeNodes$$1$$);
    var $DvtScrollbar$$ = this.$CreateGrowLinksAnim$(), $DvtScrollbarBackground$$ = new $dvt$$1$$.$SequentialPlayable$(this.$_context$, $DvtScrollbarBackground$$, $bElastic$$1_explodeNodes$$1$$, $DvtScrollbar$$);
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$GetEnableInteractionFunc$());
    $DvtScrollbarBackground$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$PlayPopGrowLinks$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$PlayPopGrowLinks$$() {
    var $popInNodes$$1_seqPlayable$$4$$ = this.$CreatePopAnim$(), $DvtScrollbarBackground$$ = this.$CreateGrowLinksAnim$(), $popInNodes$$1_seqPlayable$$4$$ = new $dvt$$1$$.$SequentialPlayable$(this.$_context$, $popInNodes$$1_seqPlayable$$4$$, $DvtScrollbarBackground$$);
    this.$_onEnd$ && $dvt$$1$$.$Playable$.$appendOnEnd$($popInNodes$$1_seqPlayable$$4$$, this.$_onEnd$, this.$_onEndObj$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($popInNodes$$1_seqPlayable$$4$$, this.$GetEnableInteractionFunc$());
    $popInNodes$$1_seqPlayable$$4$$.play();
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$CreateExplodeAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$CreateExplodeAnim$$($bElastic$$2$$) {
    for (var $DvtScrollbarBackground$$ = this.$_view$.$_rootNodes$, $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = [], $node$$74_ty$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$ = Number.MAX_VALUE, $cy_minY$$ = Number.MAX_VALUE, $maxX$$ = Number.MIN_VALUE, $maxY$$ = Number.MIN_VALUE, $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramEditorManager$$++) {
      $node$$74_ty$$ = this.$_view$.$getNodeById$($DvtScrollbarBackground$$[$DvtAdfDiagramEditorManager$$]), $node$$74_ty$$.$_bVisible$ && ($DvtScrollbar$$.push($node$$74_ty$$), $DvtAdfDiagramDragSource$$ = $node$$74_ty$$.$getTranslateX$(), $node$$74_ty$$ = $node$$74_ty$$.$getTranslateY$(), $DvtScrollbarEvent$$.push(new $dvt$$1$$.$Point$($DvtAdfDiagramDragSource$$, $node$$74_ty$$)), $DvtAdfDiagramDragSource$$ < $DvtScrollbarArrow$$ && ($DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$), $node$$74_ty$$ < 
      $cy_minY$$ && ($cy_minY$$ = $node$$74_ty$$), $DvtAdfDiagramDragSource$$ > $maxX$$ && ($maxX$$ = $DvtAdfDiagramDragSource$$), $node$$74_ty$$ > $maxY$$ && ($maxY$$ = $node$$74_ty$$));
    }
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarArrow$$ + ($maxX$$ - $DvtScrollbarArrow$$) / 2;
    $cy_minY$$ += ($maxY$$ - $cy_minY$$) / 2;
    for ($DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramEditorManager$$++) {
      $node$$74_ty$$ = this.$_view$.$getNodeById$($DvtScrollbarBackground$$[$DvtAdfDiagramEditorManager$$]), $node$$74_ty$$.$_bVisible$ && $node$$74_ty$$.$setTranslate$($DvtAdfDiagramDragSource$$, $cy_minY$$);
    }
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimMoveTo$(this.$_context$, $DvtScrollbar$$, $DvtScrollbarEvent$$, ($bElastic$$2$$ ? 1.75 : 1) * this.$_view$.$getAnimationDuration$());
    $bElastic$$2$$ && $DvtScrollbarBackground$$.$setEasing$($dvt$$1$$.$BaseAnimation$.$EASING_ELASTIC_OUT$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$CreateGrowLinksAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$CreateGrowLinksAnim$$() {
    var $growLinks$$3$$ = new $dvt$$1$$.$CustomAnimation$(this.$_context$, null, this.$_view$.$getAnimationDuration$()), $DvtScrollbarBackground$$ = $growLinks$$3$$.$_animator$, $DvtScrollbar$$ = new $dvt$$1$$.$CustomAnimation$(this.$_context$, null, .5 * $growLinks$$3$$.$getDuration$()), $DvtScrollbarEvent$$ = $DvtScrollbar$$.$_animator$, $link$$28_links$$1$$ = this.$_view$.$_links$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$;
    for ($DvtAdfDiagramDragSource$$ in $link$$28_links$$1$$) {
      if ($link$$28_links$$1$$ = this.$_view$.$getLinkById$($DvtAdfDiagramDragSource$$), $link$$28_links$$1$$.$_bVisible$) {
        $DvtScrollbarArrow$$ = $link$$28_links$$1$$.$getPoints$();
        var $growAnimType$$ = $dvt$$1$$.$Animator$.$TYPE_GROW_POLYLINE$;
        isNaN($DvtScrollbarArrow$$[0]) ? ($growAnimType$$ = $dvt$$1$$.$Animator$.$TYPE_GROW_PATH$, $link$$28_links$$1$$.$setPoints$(["M", $DvtScrollbarArrow$$[1], $DvtScrollbarArrow$$[2], "L", $DvtScrollbarArrow$$[1] + 1E-4, $DvtScrollbarArrow$$[2]])) : $link$$28_links$$1$$.$setPoints$([$DvtScrollbarArrow$$[0], $DvtScrollbarArrow$$[1], $DvtScrollbarArrow$$[0] + 1E-4, $DvtScrollbarArrow$$[1]]);
        $link$$28_links$$1$$.$setAlpha$(0);
        $DvtScrollbarBackground$$.$addProp$($growAnimType$$, $link$$28_links$$1$$, $link$$28_links$$1$$.$getPoints$, $link$$28_links$$1$$.$setPoints$, $DvtScrollbarArrow$$);
        $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $link$$28_links$$1$$, $link$$28_links$$1$$.$getAlpha$, $link$$28_links$$1$$.$setAlpha$, Math.min(1, $link$$28_links$$1$$.$GetMaxAlpha$()));
      }
    }
    return new $dvt$$1$$.$ParallelPlayable$(this.$_context$, $growLinks$$3$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$CreatePopAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$CreatePopAnim$$() {
    for (var $arNodes$$8$$ = [], $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_view$.$_rootNodes$.length;$DvtScrollbarBackground$$++) {
      var $DvtScrollbar$$ = this.$_view$.$getNodeById$(this.$_view$.$_rootNodes$[$DvtScrollbarBackground$$]);
      $DvtScrollbar$$.$_bVisible$ && $arNodes$$8$$.push($DvtScrollbar$$);
    }
    return new $dvt$$1$$.$CombinedAnimPopIn$(this.$_context$, $arNodes$$8$$, !1, this.$_view$.$getAnimationDuration$(), 2 * this.$_view$.$getAnimationDuration$());
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$GetLinksArray$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$GetLinksArray$$() {
    var $dvt$$1$$ = [], $DvtScrollbarBackground$$;
    for ($DvtScrollbarBackground$$ in this.$_view$.$_links$) {
      var $DvtScrollbar$$ = this.$_view$.$getLinkById$($DvtScrollbarBackground$$);
      $DvtScrollbar$$.$_bVisible$ && $dvt$$1$$.push($DvtScrollbar$$);
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramInitAnim$.prototype.$CreateFadeInLinksAnim$ = function $$dvt$$1$$$$AdfDiagramInitAnim$$$$CreateFadeInLinksAnim$$() {
    for (var $dvt$$1$$ = this.$GetLinksArray$(), $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$.length;$DvtScrollbarBackground$$++) {
      $dvt$$1$$[$DvtScrollbarBackground$$].$setAlpha$(0);
    }
    return new $DvtAdfDiagramLinkAnimFadeIn$$(this.$_context$, $dvt$$1$$, this.$_view$.$getAnimationDuration$());
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramLayoutCallback$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramLayoutCallback");
  $DvtAdfDiagramLayoutCallback$$.prototype.Init = function $$DvtAdfDiagramLayoutCallback$$$$Init$() {
    this.$_layouts$ = {};
  };
  $DvtAdfDiagramLayoutCallback$$.prototype.$addLayout$ = function $$DvtAdfDiagramLayoutCallback$$$$$addLayout$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_layouts$[$dvt$$1$$] = [$DvtScrollbarBackground$$, void 0];
  };
  $DvtAdfDiagramLayoutCallback$$.prototype.$doLayout$ = function $$DvtAdfDiagramLayoutCallback$$$$$doLayout$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getLayout$(), $DvtScrollbarEvent$$ = this.$_layouts$[$DvtScrollbar$$], $func$$8$$ = $DvtScrollbarEvent$$[0], $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$[1];
    if ($func$$8$$) {
      $DvtScrollbarEvent$$ ? $func$$8$$.call($DvtScrollbarEvent$$, $DvtScrollbarBackground$$) : $func$$8$$($DvtScrollbarBackground$$);
    } else {
      return $dvt$$1$$.$Log$("Function for layout " + $DvtScrollbar$$ + " is not defined", "2"), null;
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramLayoutContainer$$, $dvt$$1$$.$Container$, "DvtAdfDiagramLayoutContainer");
  $DvtAdfDiagramLayoutContainer$$.prototype.Init = function $$DvtAdfDiagramLayoutContainer$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtAdfDiagramLayoutContainer$$.$superclass$.Init.call(this, $dvt$$1$$, null, $DvtScrollbar$$);
    this.$_diagram$ = $DvtScrollbarBackground$$;
    this.$_nodes$ = {};
  };
  $DvtAdfDiagramLayoutContainer$$.prototype.$addNode$ = function $$DvtAdfDiagramLayoutContainer$$$$$addNode$$($dvt$$1$$) {
    this.$_nodes$[$dvt$$1$$.getData().getId()] = $dvt$$1$$;
    this.$addChild$($dvt$$1$$);
  };
  $DvtAdfDiagramLayoutContainer$$.prototype.$layout$ = function $$DvtAdfDiagramLayoutContainer$$$$$layout$$($animator$$22$$) {
    if (this.$_diagram$.$getLayoutCallback$()) {
      var $DvtScrollbarBackground$$ = this.$_diagram$.$CreateEmptyLayoutContext$();
      $DvtScrollbarBackground$$.$setLayoutAttributes$({padding:10});
      var $DvtScrollbar$$, $DvtScrollbarEvent$$;
      for ($DvtScrollbar$$ in this.$_nodes$) {
        $DvtScrollbarEvent$$ = this.$_nodes$[$DvtScrollbar$$], $DvtScrollbarBackground$$.$addNode$(this.$_diagram$.$CreateLayoutContextNode$($DvtScrollbarEvent$$, null, !1, $DvtScrollbarBackground$$));
      }
      0 < $DvtScrollbarBackground$$.$getNodeCount$() && (this.$_diagram$.$SortLayoutContext$($DvtScrollbarBackground$$), $dvt$$1$$.$DiagramLayoutUtils$.$gridLayout$($DvtScrollbarBackground$$), this.$ApplyLayoutContext$($DvtScrollbarBackground$$, $animator$$22$$));
    }
  };
  $DvtAdfDiagramLayoutContainer$$.prototype.$ApplyLayoutContext$ = function $$DvtAdfDiagramLayoutContainer$$$$$ApplyLayoutContext$$($layoutContext$$10$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $layoutContext$$10$$.$getNodeCount$();$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $layoutContext$$10$$.$getNodeByIndex$($DvtScrollbar$$), $link$$30_node$$78$$ = this.$getNodeById$($DvtScrollbarEvent$$.getId()), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getPosition$();
      $DvtAdfDiagramDragSource$$ && $link$$30_node$$78$$.$SetPosition$($DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y, $DvtScrollbarBackground$$);
      var $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$getLabelBounds$(), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getLabelPosition$();
      $DvtAdfDiagramDragSource$$ && $DvtScrollbarArrow$$ && $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = new $dvt$$1$$.$Point$($DvtScrollbarEvent$$.x - $DvtAdfDiagramDragSource$$.x, $DvtScrollbarEvent$$.y - $DvtAdfDiagramDragSource$$.y), $DvtScrollbarBackground$$ ? ($DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_RECTANGLE$, $link$$30_node$$78$$, $link$$30_node$$78$$.$getLabelBounds$, $link$$30_node$$78$$.$setLabelBounds$, $DvtScrollbarArrow$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_POINT$, 
      $link$$30_node$$78$$, $link$$30_node$$78$$.$getLabelPosition$, $link$$30_node$$78$$.$setLabelPosition$, $DvtScrollbarEvent$$)) : ($link$$30_node$$78$$.$setLabelBounds$($DvtScrollbarArrow$$), $link$$30_node$$78$$.$setLabelPosition$($DvtScrollbarEvent$$)));
    }
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $layoutContext$$10$$.$getLinkCount$();$DvtScrollbar$$++) {
      $DvtScrollbarEvent$$ = $layoutContext$$10$$.$getLinkByIndex$($DvtScrollbar$$);
      $link$$30_node$$78$$ = this.$getLinkById$($DvtScrollbarEvent$$.getId());
      if ($DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$getPoints$()) {
        $DvtScrollbarBackground$$ && $link$$30_node$$78$$.$getPoints$() ? ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$Animator$.$TYPE_POLYLINE$, 0 < $DvtScrollbarArrow$$.length && isNaN($DvtScrollbarArrow$$[0]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$Animator$.$TYPE_PATH$), $DvtScrollbarBackground$$.$addProp$($DvtAdfDiagramDragSource$$, $link$$30_node$$78$$, $link$$30_node$$78$$.$getPoints$, $link$$30_node$$78$$.$setPoints$, $DvtScrollbarArrow$$)) : $link$$30_node$$78$$.$setPoints$($DvtScrollbarArrow$$)
        ;
      }
      $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$getLabelBounds$();
      $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getLabelPosition$();
      $DvtScrollbarArrow$$ && $DvtScrollbarEvent$$ && ($DvtScrollbarBackground$$ ? ($DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_RECTANGLE$, $link$$30_node$$78$$, $link$$30_node$$78$$.$getLabelBounds$, $link$$30_node$$78$$.$setLabelBounds$, $DvtScrollbarArrow$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_POINT$, $link$$30_node$$78$$, $link$$30_node$$78$$.$getLabelPosition$, $link$$30_node$$78$$.$setLabelPosition$, $DvtScrollbarEvent$$)) : ($link$$30_node$$78$$.$setLabelBounds$($DvtScrollbarArrow$$), 
      $link$$30_node$$78$$.$setLabelPosition$($DvtScrollbarEvent$$)));
    }
  };
  $DvtAdfDiagramLayoutContainer$$.prototype.$getNodeById$ = function $$DvtAdfDiagramLayoutContainer$$$$$getNodeById$$($dvt$$1$$) {
    ($dvt$$1$$ = this.$_nodes$[$dvt$$1$$]) || ($dvt$$1$$ = this.$_diagram$.$getNodeById$($dvt$$1$$));
    return $dvt$$1$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramLinkData$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramLinkData");
  $DvtAdfDiagramLinkData$$.prototype.Init = function $$DvtAdfDiagramLinkData$$$$Init$() {
    this.$_endId$ = this.$_startId$ = this.$_templateId$ = this.$_groupId$ = this.$_id$ = null;
    this.$_elAttributes$ = [];
    this.$_layoutAttributes$ = null;
    this.$_rowIndex$ = -1;
  };
  $DvtAdfDiagramLinkData$$.prototype.setId = function $$DvtAdfDiagramLinkData$$$$setId$($dvt$$1$$) {
    this.$_id$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.getId = function $$DvtAdfDiagramLinkData$$$$getId$() {
    return this.$_id$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setRowIndex$ = function $$DvtAdfDiagramLinkData$$$$$setRowIndex$$($dvt$$1$$) {
    this.$_rowIndex$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$getRowIndex$ = function $$DvtAdfDiagramLinkData$$$$$getRowIndex$$() {
    return this.$_rowIndex$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setGroupId$ = function $$DvtAdfDiagramLinkData$$$$$setGroupId$$($dvt$$1$$) {
    this.$_groupId$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$getGroupId$ = function $$DvtAdfDiagramLinkData$$$$$getGroupId$$() {
    return this.$_groupId$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setTemplateId$ = function $$DvtAdfDiagramLinkData$$$$$setTemplateId$$($dvt$$1$$) {
    this.$_templateId$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setStartId$ = function $$DvtAdfDiagramLinkData$$$$$setStartId$$($dvt$$1$$) {
    this.$_startId$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$getStartId$ = function $$DvtAdfDiagramLinkData$$$$$getStartId$$() {
    return this.$_startId$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setEndId$ = function $$DvtAdfDiagramLinkData$$$$$setEndId$$($dvt$$1$$) {
    this.$_endId$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$getEndId$ = function $$DvtAdfDiagramLinkData$$$$$getEndId$$() {
    return this.$_endId$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setElAttributes$ = function $$DvtAdfDiagramLinkData$$$$$setElAttributes$$($dvt$$1$$) {
    this.$_elAttributes$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$setLayoutAttributes$ = function $$DvtAdfDiagramLinkData$$$$$setLayoutAttributes$$($dvt$$1$$) {
    this.$_layoutAttributes$ = $dvt$$1$$;
  };
  $DvtAdfDiagramLinkData$$.prototype.$getLayoutAttributes$ = function $$DvtAdfDiagramLinkData$$$$$getLayoutAttributes$$() {
    return this.$_layoutAttributes$;
  };
  $dvt$$1$$.$AdfDiagramLink$ = function $$dvt$$1$$$$AdfDiagramLink$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramLink$, $dvt$$1$$.$BaseDiagramLink$, "dvt.AdfDiagramLink");
  $dvt$$1$$.$AdfDiagramLink$.$_DEFAULT_LINK_WIDTH$ = 1;
  $dvt$$1$$.$AdfDiagramLink$.$_DEFAULT_LINK_LENGTH$ = 28;
  $dvt$$1$$.$AdfDiagramLink$.$_START_CONNECTOR$ = 0;
  $dvt$$1$$.$AdfDiagramLink$.$_END_CONNECTOR$ = 1;
  $dvt$$1$$.$AdfDiagramLink$.$_HIT_DETECTION_WIDTH_OFFSET$ = 4;
  $dvt$$1$$.$AdfDiagramLink$.$COLOR$ = "linkColor";
  $dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$ = "linkSelectColor";
  $dvt$$1$$.$AdfDiagramLink$.$HOVER_INNER_COLOR$ = "linkHoverInnerColor";
  $dvt$$1$$.$AdfDiagramLink$.$HOVER_OUTER_COLOR$ = "linkHoverOuterColor";
  $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_COLOR$ = "linkPromotedColor";
  $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_STYLE$ = "linkPromotedStyle";
  $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$ = "linkPromotedWidth";
  $dvt$$1$$.$AdfDiagramLink$.$LABEL_STYLE$ = "linkLabelStyle";
  $dvt$$1$$.$AdfDiagramLink$.prototype.Init = function $$dvt$$1$$$$AdfDiagramLink$$$Init$($context$$19_linkStyles$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $dvt$$1$$.$AdfDiagramLink$.$superclass$.Init.call(this, $context$$19_linkStyles$$1$$, $DvtScrollbarBackground$$.getId(), $DvtScrollbar$$);
    this.$_data$ = $DvtScrollbarBackground$$;
    this.$_linkDef$;
    this.$_linkColor$;
    this.$_linkWidth$;
    this.$_linkType$;
    this.$_linkStyle$;
    this.$_shortDesc$;
    this.$_endConnectorType$;
    this.$_startConnectorType$;
    this.$_label$;
    this.$_bRendered$ = !0;
    this.$_categories$;
    this.$_initialPoints$;
    this.$_deleteEnabled$ = this.$_updateEnabled$ = this.$_hover$ = !1;
    this.$_dragItems$ = {};
    this.$_linkParent$;
    this.$_bCrossContainerLink$ = !1;
    this.$_maxAlpha$ = 1;
    this.$_linkUnderlay$;
    this.$_savedStroke$;
    this.$_hitDetectionUnderlay$;
    this.$_bFocusEffect$ = this.$_bFocused$ = !1;
    this.$_showPopupBehaviors$;
    this.$_bDirty$ = this.$_bPromoted$ = !1;
    this.$GetDiagram$().$getEventManager$().$associate$(this, this);
    this.$_keyboardNavNode$;
    this.$_tabStopsConnectorArray$ = [];
    $dvt$$1$$.$Agent$.$isPlatformGecko$();
    $dvt$$1$$.$Agent$.$isPlatformIE$();
    $context$$19_linkStyles$$1$$ = this.$_diagram$.$_linkStyles$;
    this.$_defaultColor$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$COLOR$];
    this.$_selectColor$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$];
    this.$_hoverInnerColor$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_INNER_COLOR$];
    this.$_hoverOuterColor$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_OUTER_COLOR$];
    this.$_linkLabelStyles$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$LABEL_STYLE$];
    this.$_promotedColor$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_COLOR$];
    this.$_promotedStyle$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_STYLE$];
    this.$_promotedWidth$ = $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$] ? $context$$19_linkStyles$$1$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$] : $dvt$$1$$.$AdfDiagramLink$.$_DEFAULT_LINK_WIDTH$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetDiagram$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetDiagram$$() {
    if (this.$_diagram$) {
      return this.$_diagram$;
    }
    if (this.$_cachedDiagram$) {
      return this.$_cachedDiagram$;
    }
    for (var $parent$$2$$ = this.getParent();$parent$$2$$;) {
      if ($parent$$2$$ instanceof $dvt$$1$$.$AdfDiagram$) {
        return $parent$$2$$;
      }
      $parent$$2$$ = $parent$$2$$.getParent();
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getDimensionsWithStroke$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getDimensionsWithStroke$$($animator$$24_dims$$2_points$$1$$) {
    $animator$$24_dims$$2_points$$1$$ = $animator$$24_dims$$2_points$$1$$ ? $animator$$24_dims$$2_points$$1$$.$getDestVal$(this, this.$getPoints$) : this.$getPoints$();
    $animator$$24_dims$$2_points$$1$$ = $dvt$$1$$.$PathUtils$.$getDimensions$($animator$$24_dims$$2_points$$1$$);
    var $DvtScrollbarBackground$$ = this.$_hitDetectionUnderlay$.$getStroke$().getWidth();
    $animator$$24_dims$$2_points$$1$$.x -= $DvtScrollbarBackground$$ / 2;
    $animator$$24_dims$$2_points$$1$$.y -= $DvtScrollbarBackground$$ / 2;
    $animator$$24_dims$$2_points$$1$$.$h$ += $DvtScrollbarBackground$$;
    $animator$$24_dims$$2_points$$1$$.$w$ += $DvtScrollbarBackground$$;
    this.$_startConnector$ && ($animator$$24_dims$$2_points$$1$$ = this.$_startConnector$.$getDimensions$(this).$getUnion$($animator$$24_dims$$2_points$$1$$));
    this.$_endConnector$ && ($animator$$24_dims$$2_points$$1$$ = this.$_endConnector$.$getDimensions$(this).$getUnion$($animator$$24_dims$$2_points$$1$$));
    return $animator$$24_dims$$2_points$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$showHoverEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$showHoverEffect$$() {
    this.$_showFeedback$(!0, this.$_selected$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$hideHoverEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$hideHoverEffect$$() {
    this.$_bFocusEffect$ || this.$_selected$ ? this.$_showFeedback$(this.$_bFocusEffect$, this.$_selected$) : this.$_bHighlight$ && this.$_hideFeedback$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$showRollOverEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$showRollOverEffect$$($event$$36$$) {
    this.$GetDiagram$().$ShowLinkHoverEffect$(this, $event$$36$$ instanceof $dvt$$1$$.KeyboardEvent);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$hideRollOverEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$hideRollOverEffect$$() {
    this.$GetDiagram$().$HideLinkHoverEffect$(this);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$ApplyStrokeToUnderlay$ = function $$dvt$$1$$$$AdfDiagramLink$$$$ApplyStrokeToUnderlay$$($dvt$$1$$) {
    $dvt$$1$$ = $dvt$$1$$ ? this.$_selectColor$ : this.$_hoverOuterColor$;
    if (this.$_linkUnderlay$) {
      var $DvtScrollbarBackground$$ = this.$_linkUnderlay$.$getStroke$().clone();
      $DvtScrollbarBackground$$.$setColor$($dvt$$1$$);
      $DvtScrollbarBackground$$.$setWidth$(2 + this.$GetAppliedLinkWidth$());
      this.$ApplyLinkStyle$($DvtScrollbarBackground$$, !0);
      this.$_linkUnderlay$.$setStroke$($DvtScrollbarBackground$$, 2);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$HandleClick$ = function $$dvt$$1$$$$AdfDiagramLink$$$$HandleClick$$() {
    this.$GetDiagram$().$HandleLinkClick$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_showFeedback$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_showFeedback$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_bHighlight$ = !0;
    this.$_preserveKeyboardFocusEffect$ = !1;
    if ($DvtScrollbarBackground$$) {
      this.$_savedStroke$ || (this.$_savedStroke$ = this.$getShape$().$getStroke$());
      var $DvtScrollbarEvent$$ = this.$getShape$().$getStroke$().clone();
      $DvtScrollbarEvent$$.$setColor$ && $DvtScrollbarEvent$$.$setColor$(this.$_hoverInnerColor$);
      this.$getShape$().$setStroke$($DvtScrollbarEvent$$);
      this.$_startConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_START_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_startConnector$, $DvtScrollbarEvent$$);
      this.$_endConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_END_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_endConnector$, $DvtScrollbarEvent$$);
    } else {
      this.$_savedStroke$ && (this.$getShape$().$setStroke$(this.$_savedStroke$), this.$_startConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_START_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_startConnector$, this.$_savedStroke$), this.$_endConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_END_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_endConnector$, this.$_savedStroke$), this.$_savedStroke$ = null);
    }
    this.$_linkUnderlay$ || (this.$_linkUnderlay$ = this.$CreateFeedbackUnderlay$(), this.$addChildAt$(this.$_linkUnderlay$, 0));
    this.$ApplyStrokeToUnderlay$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_hideFeedback$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_hideFeedback$$() {
    this.$_bHighlight$ = !1;
    this.$_savedStroke$ && (this.$getShape$().$setStroke$(this.$_savedStroke$), this.$_startConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_START_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_startConnector$, this.$_savedStroke$), this.$_endConnector$ && this.$IsStandardConnector$($dvt$$1$$.$AdfDiagramLink$.$_END_CONNECTOR$) && this.$ReplaceConnectorColor$(this.$_endConnector$, this.$_savedStroke$), this.$_savedStroke$ = null);
    this.$_linkUnderlay$ && (this.removeChild(this.$_linkUnderlay$), this.$_linkUnderlay$.$destroy$ && this.$_linkUnderlay$.$destroy$(), this.$_linkUnderlay$ = null);
    this.$_preserveKeyboardFocusEffect$ || this.$_updateKeyboardFocusEffect$(null);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getDatatip$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getDatatip$$() {
    return this.$getShortDesc$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setShortDesc$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setShortDesc$$($dvt$$1$$) {
    this.$_shortDesc$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getShortDesc$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getShortDesc$$() {
    if (this.$_bPromoted$) {
      var $DvtScrollbarBackground$$ = null;
      1 < this.$_promotionCount$ ? $DvtScrollbarBackground$$ = this.$_diagram$.$getResourcesMap$().promotedLinksTip : this.$_shortDesc$ || ($DvtScrollbarBackground$$ = this.$_diagram$.$getResourcesMap$().promotedLinkTip);
      if ($DvtScrollbarBackground$$) {
        return $dvt$$1$$.$Bundle$.format($DvtScrollbarBackground$$, [this.$_promotionCount$]);
      }
    }
    return this.$_shortDesc$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLayoutAttributes$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.getData().$getLayoutAttributes$();
    return $DvtScrollbarBackground$$ && $dvt$$1$$ ? $DvtScrollbarBackground$$[$dvt$$1$$] : {};
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setEndConnectorType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setEndConnectorType$$($dvt$$1$$) {
    this.$_endConnectorType$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getEndConnectorType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getEndConnectorType$$() {
    return this.$_endConnectorType$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setStartConnectorType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setStartConnectorType$$($dvt$$1$$) {
    this.$_startConnectorType$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getStartConnectorType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getStartConnectorType$$() {
    return this.$_startConnectorType$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.getData = function $$dvt$$1$$$$AdfDiagramLink$$$getData$() {
    return this.$_data$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkDef$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkDef$$($dvt$$1$$) {
    if (this.$_linkDef$ = $dvt$$1$$) {
      $dvt$$1$$.$stamp$(this.getData().$_elAttributes$, this), this.$_refreshCursor$();
    }
    this.$_bDirty$ = !0;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkColor$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkColor$$($dvt$$1$$) {
    this.$_linkColor$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLinkColor$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLinkColor$$() {
    return this.$_linkColor$ ? this.$_linkColor$ : this.$_defaultColor$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkWidth$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkWidth$$($dvt$$1$$) {
    this.$_linkWidth$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLinkWidth$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLinkWidth$$() {
    return this.$_linkWidth$ ? this.$_linkWidth$ : $dvt$$1$$.$AdfDiagramLink$.$_DEFAULT_LINK_WIDTH$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkLength$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkLength$$($dvt$$1$$) {
    this.$_linkLength$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLinkLength$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLinkLength$$() {
    return this.$_linkLength$ ? this.$_linkLength$ : $dvt$$1$$.$AdfDiagramLink$.$_DEFAULT_LINK_LENGTH$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkType$$($dvt$$1$$) {
    this.$_linkType$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLinkType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLinkType$$() {
    return this.$_linkType$ ? this.$_linkType$ : this.$GetDefaultLinkType$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetDefaultLinkType$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetDefaultLinkType$$() {
    return $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_DIRECT$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLinkStyle$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLinkStyle$$($dvt$$1$$) {
    this.$_linkStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLinkStyle$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLinkStyle$$() {
    return this.$_linkStyle$ ? this.$_linkStyle$ : $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_SOLID$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setLabel$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setLabel$$($dvt$$1$$) {
    this.$_label$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLabel$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLabel$$() {
    return this.$_label$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setRendered$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setRendered$$($dvt$$1$$) {
    this.$_bRendered$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$isRendered$ = function $$dvt$$1$$$$AdfDiagramLink$$$$isRendered$$() {
    return this.$_bRendered$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setUpdateEnabled$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setUpdateEnabled$$($dvt$$1$$) {
    this.$_updateEnabled$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$isUpdateEnabled$ = function $$dvt$$1$$$$AdfDiagramLink$$$$isUpdateEnabled$$() {
    return this.$_updateEnabled$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setDeleteEnabled$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setDeleteEnabled$$($dvt$$1$$) {
    this.$_deleteEnabled$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$DestroyContent$ = function $$dvt$$1$$$$AdfDiagramLink$$$$DestroyContent$$() {
    if (this.$_endConnector$) {
      var $dvt$$1$$ = this.$_endConnector$.getParent();
      $dvt$$1$$ && $dvt$$1$$.removeChild(this.$_endConnector$);
      this.$_endConnector$.$destroy$ && this.$_endConnector$.$destroy$();
      this.$setEndConnector$(null);
    }
    this.$_startConnector$ && (($dvt$$1$$ = this.$_startConnector$.getParent()) && $dvt$$1$$.removeChild(this.$_startConnector$), this.$_startConnector$.$destroy$ && this.$_startConnector$.$destroy$(), this.$setStartConnector$(null));
    this.$getShape$() && (this.removeChild(this.$getShape$()), this.$getShape$().$destroy$ && this.$getShape$().$destroy$(), this.$setShape$(null));
    this.$_linkUnderlay$ && (this.removeChild(this.$_linkUnderlay$), this.$_linkUnderlay$.$destroy$ && this.$_linkUnderlay$.$destroy$(), this.$_linkUnderlay$ = null);
    this.$_hitDetectionUnderlay$ && (this.removeChild(this.$_hitDetectionUnderlay$), this.$_hitDetectionUnderlay$.$destroy$ && this.$_hitDetectionUnderlay$.$destroy$(), this.$_hitDetectionUnderlay$ = null);
    this.$_hover$ = !1;
    this.$_savedStroke$ = null;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$renderLink$ = function $$dvt$$1$$$$AdfDiagramLink$$$$renderLink$$() {
    if (!this.$getShape$() || this.$_bDirty$) {
      this.$DestroyContent$();
      var $DvtScrollbarBackground$$ = null, $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = null, $oldLabelAlpha$$ = null;
      this.$_labelObj$ && ($DvtScrollbarBackground$$ = this.$getLabelBounds$(), $DvtScrollbar$$ = this.$getLabelPosition$(), $DvtScrollbarEvent$$ = this.$_labelRotAngle$, $DvtAdfDiagramDragSource$$ = this.$_labelRotPoint$, $oldLabelAlpha$$ = this.$_labelObj$.$getAlpha$(), this.removeChild(this.$_labelObj$), this.$_labelObj$.$destroy$ && this.$_labelObj$.$destroy$(), this.$_labelObj$ = null);
      var $DvtScrollbarArrow$$ = this.$_pathCmds$;
      $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = ["M", 0, 0, "L", 0, 0]);
      var $DvtAdfDiagramEditorManager$$ = this.getData().getId();
      this.$setShape$(new $dvt$$1$$.$Path$(this.$getCtx$(), $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$));
      this.$getShape$().$setFill$(null);
      this.$addChildAt$(this.$getShape$(), 0);
      $DvtScrollbarArrow$$ = this.$GetAppliedLinkColor$();
      $DvtAdfDiagramEditorManager$$ = this.$GetAppliedLinkWidth$();
      $DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarArrow$$, 1, $DvtAdfDiagramEditorManager$$);
      $dvt$$1$$.$Agent$.$isTouchDevice$() && $dvt$$1$$.$Agent$.$isBrowserSafari$() && 1 == $dvt$$1$$.$Agent$.$getDevicePixelRatio$() && $DvtScrollbarArrow$$.$setFixedWidth$(!0);
      this.$ApplyLinkStyle$($DvtScrollbarArrow$$);
      this.$getShape$().$setStroke$($DvtScrollbarArrow$$);
      $DvtScrollbarArrow$$ = this.$getEndConnectorType$();
      this.$setEndConnector$(this.$CreateConnector$(this.$_points$, $DvtScrollbarArrow$$, 1, this.$getConnectorTemplate$($dvt$$1$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$)));
      $DvtScrollbarArrow$$ = this.$getStartConnectorType$();
      this.$setStartConnector$(this.$CreateConnector$(this.$_points$, $DvtScrollbarArrow$$, 0, this.$getConnectorTemplate$($dvt$$1$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$)));
      this.$_refreshSelectionEffect$();
      !this.$_bPromoted$ && this.$HasLabel$() && (this.$_labelObj$ = this.$CreateLabel$(), this.$addChild$(this.$_labelObj$), $DvtScrollbarBackground$$ && this.$setLabelBounds$($DvtScrollbarBackground$$), $DvtScrollbar$$ && this.$setLabelPosition$($DvtScrollbar$$), null != $DvtScrollbarEvent$$ && this.$setLabelRotationAngle$($DvtScrollbarEvent$$), $DvtAdfDiagramDragSource$$ && this.$setLabelRotationPoint$($DvtAdfDiagramDragSource$$), null != $oldLabelAlpha$$ && this.$_labelObj$.$setAlpha$($oldLabelAlpha$$));
      this.$_hitDetectionUnderlay$ || (this.$_hitDetectionUnderlay$ = this.$CreateUnderlay$("#000000", 0, $dvt$$1$$.$AdfDiagramLink$.$_HIT_DETECTION_WIDTH_OFFSET$), this.$addChildAt$(this.$_hitDetectionUnderlay$, 0));
      this.$addAccessibilityAttributes$();
      this.$_bDirty$ = !1;
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetAppliedLinkColor$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetAppliedLinkColor$$() {
    return this.$_bPromoted$ ? this.$_promotedColor$ : this.$getLinkColor$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetAppliedLinkStyle$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetAppliedLinkStyle$$() {
    return this.$_bPromoted$ ? this.$_promotedStyle$ : this.$getLinkStyle$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetAppliedLinkWidth$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetAppliedLinkWidth$$() {
    return this.$_bPromoted$ ? this.$_promotedWidth$ : this.$getLinkWidth$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getStartConnectorOffset$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getStartConnectorOffset$$() {
    if (this.$_startConnector$) {
      var $DvtScrollbarBackground$$, $DvtScrollbar$$ = this.$getConnectorTemplate$($dvt$$1$$.$DiagramLinkConnectorUtils$.$START_CONNECTOR$);
      $DvtScrollbar$$ || ($DvtScrollbarBackground$$ = this.$getShape$().$getStroke$().clone(), $DvtScrollbarBackground$$.$setType$($dvt$$1$$.$Stroke$.$SOLID$));
      return $dvt$$1$$.$DiagramLinkConnectorUtils$.$GetConnectorOffset$(this.$_startConnector$, this.$getStartConnectorType$(), $DvtScrollbar$$, $DvtScrollbarBackground$$, this);
    }
    return 0;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getEndConnectorOffset$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getEndConnectorOffset$$() {
    if (this.$_endConnector$) {
      var $DvtScrollbarBackground$$, $DvtScrollbar$$ = this.$getConnectorTemplate$($dvt$$1$$.$DiagramLinkConnectorUtils$.$END_CONNECTOR$);
      $DvtScrollbar$$ || ($DvtScrollbarBackground$$ = this.$getShape$().$getStroke$().clone(), $DvtScrollbarBackground$$.$setType$($dvt$$1$$.$Stroke$.$SOLID$));
      return $dvt$$1$$.$DiagramLinkConnectorUtils$.$GetConnectorOffset$(this.$_endConnector$, this.$getEndConnectorType$(), $DvtScrollbar$$, $DvtScrollbarBackground$$, this);
    }
    return 0;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setSelected$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setSelected$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramLink$.$superclass$.$setSelected$.call(this, $DvtScrollbarBackground$$);
    this.$_refreshSelectionEffect$();
    this.$UpdateAccessibilityAttributes$();
    !this.$GetDiagram$().$isReadOnly$() && this.$isUpdateEnabled$() && ($DvtScrollbarBackground$$ ? (this.$hideConnectors$(), this.$showUpdateHandles$()) : (this.$hideUpdateHandles$(), this.$showConnectors$()));
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_refreshSelectionEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_refreshSelectionEffect$$() {
    var $dvt$$1$$ = this.$isSelectable$() && this.$_hover$;
    $dvt$$1$$ || this.$_bFocusEffect$ || this.$_selected$ ? this.$_showFeedback$($dvt$$1$$ || this.$_bFocusEffect$, this.$_selected$) : this.$_bHighlight$ && this.$_hideFeedback$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getCategories$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getCategories$$() {
    if (!this.$_categories$) {
      this.$_categories$ = [];
      var $DvtScrollbarBackground$$ = this.getData().$getStartId$(), $DvtScrollbar$$ = this.getData().$getEndId$(), $DvtScrollbarBackground$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbar$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getCategories$(), $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$.$getCategories$();
      if ($DvtScrollbar$$ && $DvtScrollbarBackground$$) {
        for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
          0 <= $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarBackground$$, $DvtScrollbar$$[$DvtScrollbarEvent$$]) && this.$_categories$.push($DvtScrollbar$$[$DvtScrollbarEvent$$]);
        }
      }
    }
    return this.$_categories$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getDisplayables$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getDisplayables$$() {
    return [this];
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$InsertLinkIntoParent$ = function $$dvt$$1$$$$AdfDiagramLink$$$$InsertLinkIntoParent$$($dvt$$1$$) {
    $dvt$$1$$ && (this.$_bCrossContainerLink$ ? $dvt$$1$$.$addChild$(this) : $dvt$$1$$.$addChildAt$(this, 0));
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetParentContainer$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetParentContainer$$() {
    var $dvt$$1$$ = null, $DvtScrollbarBackground$$ = this.$GetDiagram$();
    $DvtScrollbarBackground$$ && ($dvt$$1$$ = this.$_linkParent$, $dvt$$1$$ || ($dvt$$1$$ = $DvtScrollbarBackground$$.$_linksPane$));
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setVisible$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setVisible$$($DvtScrollbarBackground$$) {
    this.$_bVisible$ != $DvtScrollbarBackground$$ && this.$GetDiagram$().$setAutomationState$(this.getData().getId(), "visible", this.$_bVisible$);
    $dvt$$1$$.$AdfDiagramLink$.$superclass$.$setVisible$.call(this, $DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$GetDiagram$();
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = this.$GetParentContainer$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.contains(this);
      $DvtScrollbarBackground$$ && !$DvtAdfDiagramDragSource$$ ? (this.$InsertLinkIntoParent$($DvtScrollbarEvent$$), this.$_cachedDiagram$ = null) : !$DvtScrollbarBackground$$ && $DvtAdfDiagramDragSource$$ && ($DvtScrollbarEvent$$.removeChild(this), this.$_cachedDiagram$ = $DvtScrollbar$$);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$CreateLabel$ = function $$dvt$$1$$$$AdfDiagramLink$$$$CreateLabel$$() {
    var $DvtScrollbarBackground$$ = null, $DvtScrollbar$$ = this.$GetLabelTemplate$();
    $DvtScrollbar$$ ? ($DvtScrollbarBackground$$ = this.$GetDiagram$().$createAfContext$(), $DvtScrollbarBackground$$.$setELContext$(this.getData().$_elAttributes$), $DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndLayout$($DvtScrollbarBackground$$, $DvtScrollbar$$, this)) : this.$_label$ && ($DvtScrollbarBackground$$ = new $dvt$$1$$.$OutputText$(this.$getCtx$(), this.$_label$, 0, 0), this.$_linkLabelStyles$ && $DvtScrollbarBackground$$.$setCSSStyle$(this.$_linkLabelStyles$));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getLabelBounds$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getLabelBounds$$() {
    var $dvt$$1$$ = null;
    this.$_labelObj$ && ($dvt$$1$$ = this.$_labelObj$.$getDimensions$());
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getConnectorTemplate$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getConnectorTemplate$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_linkDef$;
    return $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getConnectorTemplate$($dvt$$1$$) : null;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetLabelTemplate$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetLabelTemplate$$() {
    var $dvt$$1$$ = this.$_linkDef$;
    return $dvt$$1$$ ? $dvt$$1$$.$_labelTemplate$ : null;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$HasLabel$ = function $$dvt$$1$$$$AdfDiagramLink$$$$HasLabel$$() {
    return this.$_label$ || this.$GetLabelTemplate$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getAfComponent$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getAfComponent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_endConnector$);
    $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$.getId() == $DvtScrollbarBackground$$ ? $DvtScrollbar$$ = $DvtScrollbarEvent$$ : ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_startConnector$)) && $DvtScrollbarEvent$$.getId() == $DvtScrollbarBackground$$ ? $DvtScrollbar$$ = $DvtScrollbarEvent$$ : this.$GetLabelTemplate$() && this.$_labelObj$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_labelObj$)) && $DvtScrollbarEvent$$.getId() == 
    $DvtScrollbarBackground$$ && ($DvtScrollbar$$ = $DvtScrollbarEvent$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setPromoted$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setPromoted$$($dvt$$1$$) {
    this.$_bPromoted$ != $dvt$$1$$ && (this.$_bDirty$ = !0);
    this.$_bPromoted$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setPromotionCount$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setPromotionCount$$($dvt$$1$$) {
    this.$_promotionCount$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$showUpdateHandles$ = function $$dvt$$1$$$$AdfDiagramLink$$$$showUpdateHandles$$() {
    if (!this.$_startHandle$) {
      var $dvt$$1$$ = new $DvtAdfDiagramLinkEndpoint$$(this.$getCtx$(), this, $DvtAdfDiagramLinkEndpoint$$.$START_TYPE$, this.$getLinkStart$(), this.getId(), this.$_diagram$.$getEditorStyles$());
      this.$_startHandle$ = $dvt$$1$$;
      this.$addChild$($dvt$$1$$);
    }
    this.$_endHandle$ || (this.$_endHandle$ = $dvt$$1$$ = new $DvtAdfDiagramLinkEndpoint$$(this.$getCtx$(), this, $DvtAdfDiagramLinkEndpoint$$.$END_TYPE$, this.$getLinkEnd$(), this.getId(), this.$_diagram$.$getEditorStyles$()), this.$addChild$($dvt$$1$$));
    this.$GetDiagram$().$moveToDiagramFront$(this);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$hideUpdateHandles$ = function $$dvt$$1$$$$AdfDiagramLink$$$$hideUpdateHandles$$() {
    this.$_startHandle$ && this.removeChild(this.$_startHandle$);
    this.$_endHandle$ && this.removeChild(this.$_endHandle$);
    this.$_endHandle$ = this.$_startHandle$ = null;
    this.$GetDiagram$().$moveToLinks$(this);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$hideConnectors$ = function $$dvt$$1$$$$AdfDiagramLink$$$$hideConnectors$$() {
    this.$_startConnector$ && (this.$getShape$().removeChild(this.$_startConnector$), this.$_linkUnderlay$ && this.$_linkUnderlay$.$hideUnderlayStart$());
    this.$_endConnector$ && (this.$getShape$().removeChild(this.$_endConnector$), this.$_linkUnderlay$ && this.$_linkUnderlay$.$hideUnderlayEnd$());
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$showConnectors$ = function $$dvt$$1$$$$AdfDiagramLink$$$$showConnectors$$() {
    this.$_startConnector$ && (this.$getShape$().$addChild$(this.$_startConnector$), this.$_linkUnderlay$ && this.$_linkUnderlay$.$showUnderlayStart$());
    this.$_endConnector$ && (this.$getShape$().$addChild$(this.$_endConnector$), this.$_linkUnderlay$ && this.$_linkUnderlay$.$showUnderlayEnd$());
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$startLinkChange$ = function $$dvt$$1$$$$AdfDiagramLink$$$$startLinkChange$$($dvt$$1$$) {
    this.$_initialPoints$ = this.$getPoints$();
    this.$_dragItems$[$dvt$$1$$] = !0;
    this.$setMouseEnabled$(!1);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$updateLinkChange$ = function $$dvt$$1$$$$AdfDiagramLink$$$$updateLinkChange$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$;
    $dvt$$1$$ == $DvtAdfDiagramLinkEndpoint$$.$START_TYPE$ ? ($DvtScrollbar$$ = $DvtScrollbarBackground$$, $DvtScrollbarEvent$$ = this.$getLinkEnd$()) : ($DvtScrollbar$$ = this.$getLinkStart$(), $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$);
    this.$setPoints$([$DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y]);
    this.$renderLink$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$endLinkChange$ = function $$dvt$$1$$$$AdfDiagramLink$$$$endLinkChange$$($dvt$$1$$) {
    this.$_dragItems$[$dvt$$1$$] = !1;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$endLinkChangeNewNode$ = function $$dvt$$1$$$$AdfDiagramLink$$$$endLinkChangeNewNode$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$endLinkChange$($dvt$$1$$);
    this.$updateLinkChange$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$setMouseEnabled$(!0);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$endLinkChangeRestore$ = function $$dvt$$1$$$$AdfDiagramLink$$$$endLinkChangeRestore$$($dvt$$1$$) {
    this.$endLinkChange$($dvt$$1$$);
    var $DvtScrollbarBackground$$ = !1;
    for ($dvt$$1$$ in this.$_dragItems$) {
      this.$_dragItems$[$dvt$$1$$] && ($DvtScrollbarBackground$$ = !0);
    }
    $DvtScrollbarBackground$$ || (this.$restoreLinkPosition$(), this.$_initialPoints$ = null);
    this.$setMouseEnabled$(!0);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$restoreLinkPosition$ = function $$dvt$$1$$$$AdfDiagramLink$$$$restoreLinkPosition$$() {
    this.$setPoints$(this.$_initialPoints$);
    this.$renderLink$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetRelativeLabelBounds$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetRelativeLabelBounds$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $mat_minX$$1$$ = $dvt$$1$$.$BaseDiagramLink$.$CalcLabelMatrix$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$ = $mat_minX$$1$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y));
    $DvtScrollbarEvent$$ = $mat_minX$$1$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x + $DvtScrollbar$$.$w$, $DvtScrollbar$$.y));
    $DvtAdfDiagramDragSource$$ = $mat_minX$$1$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y + $DvtScrollbar$$.$h$));
    $DvtScrollbar$$ = $mat_minX$$1$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x + $DvtScrollbar$$.$w$, $DvtScrollbar$$.y + $DvtScrollbar$$.$h$));
    var $mat_minX$$1$$ = Math.min(Math.min($DvtScrollbarBackground$$.x, $DvtScrollbarEvent$$.x), Math.min($DvtAdfDiagramDragSource$$.x, $DvtScrollbar$$.x)), $DvtScrollbarArrow$$ = Math.min(Math.min($DvtScrollbarBackground$$.y, $DvtScrollbarEvent$$.y), Math.min($DvtAdfDiagramDragSource$$.y, $DvtScrollbar$$.y));
    return new $dvt$$1$$.$Rectangle$($mat_minX$$1$$, $DvtScrollbarArrow$$, Math.max(Math.max($DvtScrollbarBackground$$.x, $DvtScrollbarEvent$$.x), Math.max($DvtAdfDiagramDragSource$$.x, $DvtScrollbar$$.x)) - $mat_minX$$1$$, Math.max(Math.max($DvtScrollbarBackground$$.y, $DvtScrollbarEvent$$.y), Math.max($DvtAdfDiagramDragSource$$.y, $DvtScrollbar$$.y)) - $DvtScrollbarArrow$$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$SetMaxAlpha$ = function $$dvt$$1$$$$AdfDiagramLink$$$$SetMaxAlpha$$($dvt$$1$$) {
    this.$_maxAlpha$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$GetMaxAlpha$ = function $$dvt$$1$$$$AdfDiagramLink$$$$GetMaxAlpha$$() {
    return this.$_maxAlpha$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getNextNavigable$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getNextNavigable$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [];
    if ($DvtScrollbarBackground$$.type == $dvt$$1$$.MouseEvent.$CLICK$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$SPACE$ && $DvtScrollbarBackground$$.ctrlKey) {
      return this;
    }
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$UP_ARROW$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$) {
      this.$_updateKeyboardFocusEffect$(null);
      ($DvtScrollbar$$ = this.$_keyboardNavNode$) || ($DvtScrollbar$$ = this.$_diagram$.$getNodeById$(this.$_diagram$.$getLinkStartId$(this)));
      var $DvtScrollbarEvent$$ = this, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getNavigableLinksForNodeId$($DvtScrollbar$$.getData().getId()), $keyboardHandler$$ = this.$_diagram$.$getEventManager$().$KeyboardHandler$;
      $keyboardHandler$$ && $keyboardHandler$$.$getNextNavigableLink$ && ($DvtScrollbarEvent$$ = $keyboardHandler$$.$getNextNavigableLink$($DvtScrollbar$$, this, $DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$));
      $DvtScrollbarEvent$$.$setKeyboardFocusNode$($DvtScrollbar$$);
      return $DvtScrollbarEvent$$;
    }
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$RIGHT_ARROW$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$LEFT_ARROW$) {
      if ($DvtScrollbar$$ = this.$_findConnectorByDirection$($DvtScrollbarBackground$$.keyCode)) {
        return this.$_updateKeyboardFocusEffect$($DvtScrollbar$$), this.$_preserveKeyboardFocusEffect$ = !0, this;
      }
      this.$_updateKeyboardFocusEffect$(null);
      $DvtScrollbarBackground$$ = this.$_movingToStart$($DvtScrollbarBackground$$.keyCode) ? this.$_diagram$.$getLinkStartId$(this) : this.$_diagram$.$getLinkEndId$(this);
      return this.$_diagram$.$getNodeById$($DvtScrollbarBackground$$);
    }
    $DvtScrollbar$$ = this.$_diagram$.$getSortedVisibleNodesByGroupDepth$()[0];
    return $dvt$$1$$.$KeyboardHandler$.$getNextAdjacentNavigable$(this, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$showKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$showKeyboardFocusEffect$$() {
    this.$showHoverEffect$();
    this.$_bFocusEffect$ = !0;
    this.$setFocused$(!0);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$hideKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$hideKeyboardFocusEffect$$() {
    this.$_bFocusEffect$ = !1;
    this.$_hover$ || this.$hideHoverEffect$();
    this.$setFocused$(!1);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setFocused$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setFocused$$($dvt$$1$$) {
    this.$_bFocused$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$isFocused$ = function $$dvt$$1$$$$AdfDiagramLink$$$$isFocused$$() {
    return this.$_bFocused$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$isShowingKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$isShowingKeyboardFocusEffect$$() {
    return this.$_bFocusEffect$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$eventContextCallback$ = function $$dvt$$1$$$$AdfDiagramLink$$$$eventContextCallback$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$[$dvt$$1$$.$BaseComponentEvent$.$CLIENT_ROW_KEY$] = this.getData().getId());
    this.$GetDiagram$().$HideNodeTransientToolbar$();
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getShowPopupBehaviors$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getShowPopupBehaviors$$() {
    if (!this.$_showPopupBehaviors$ && this.$_linkDef$ && this.$_linkDef$.$getShowPopupBehaviors$()) {
      var $DvtScrollbarBackground$$ = this.$_linkDef$.$getShowPopupBehaviors$(), $DvtScrollbar$$ = this.$GetDiagram$().$createAfContext$();
      $DvtScrollbar$$.$setELContext$(this.getData().$_elAttributes$);
      this.$_showPopupBehaviors$ = [];
      for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        this.$_showPopupBehaviors$[$DvtScrollbarEvent$$] = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbar$$, $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], null);
      }
    }
    return this.$_showPopupBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getAriaLabel$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getAriaLabel$$() {
    return $dvt$$1$$.$Displayable$.$generateAriaLabel$(this.$getShortDesc$(), this.$getAccessibilityStates$());
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getAccessibilityStates$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getAccessibilityStates$$() {
    var $DvtScrollbarBackground$$ = [];
    this.$isSelectable$() && $DvtScrollbarBackground$$.push(this.$isSelected$() ? $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_SELECTED") : $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_UNSELECTED"));
    this.$_bPromoted$ && $DvtScrollbarBackground$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "PROMOTED_LINK_ARIA_DESC"));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$UpdateAccessibilityAttributes$ = function $$dvt$$1$$$$AdfDiagramLink$$$$UpdateAccessibilityAttributes$$() {
    if (!$dvt$$1$$.$Agent$.$deferAriaCreation$()) {
      var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
      $DvtScrollbarBackground$$ && this.$setAriaProperty$("label", $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$addAccessibilityAttributes$ = function $$dvt$$1$$$$AdfDiagramLink$$$$addAccessibilityAttributes$$() {
    var $dvt$$1$$ = this.$getAriaLabel$();
    $dvt$$1$$ && (this.$setAriaRole$("img"), this.$setAriaProperty$("label", $dvt$$1$$));
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$CopyState$ = function $$dvt$$1$$$$AdfDiagramLink$$$$CopyState$$($DvtScrollbarBackground$$) {
    this.$_categories$ = $dvt$$1$$.$ArrayUtils$.copy($DvtScrollbarBackground$$.$_categories$);
    this.$_selected$ = $DvtScrollbarBackground$$.$_selected$;
    this.$_hover$ = $DvtScrollbarBackground$$.$_hover$;
    this.$_bFocused$ = $DvtScrollbarBackground$$.$_bFocused$;
    this.$_bFocusEffect$ = $DvtScrollbarBackground$$.$_bFocusEffect$;
    this.$_bVisible$ = $DvtScrollbarBackground$$.$_bVisible$;
    this.$_arPoints$ = $dvt$$1$$.$ArrayUtils$.copy($DvtScrollbarBackground$$.$_arPoints$);
    this.$_points$ = $dvt$$1$$.$ArrayUtils$.copy($DvtScrollbarBackground$$.$_points$);
    this.$_pathCmds$ = $dvt$$1$$.$ArrayUtils$.copy($DvtScrollbarBackground$$.$_pathCmds$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$destroy$ = function $$dvt$$1$$$$AdfDiagramLink$$$$destroy$$() {
    this.$DestroyContent$();
    $dvt$$1$$.$AdfDiagramLink$.$superclass$.$destroy$.call(this);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$CreateCustomAnimPlayable$ = function $$dvt$$1$$$$AdfDiagramLink$$$$CreateCustomAnimPlayable$$() {
    return new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), null, this.$GetDiagram$().$getAnimationDuration$());
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$AnimateUpdate$ = function $$dvt$$1$$$$AdfDiagramLink$$$$AnimateUpdate$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_bVisible$, $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $DvtScrollbar$$.$getPoints$(), $DvtScrollbarArrow$$ = this.$_bVisible$;
    $DvtAdfDiagramDragSource$$ == $DvtScrollbarArrow$$ && $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ ? ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $DvtScrollbar$$.$getPoints$(), $DvtAdfDiagramDragSource$$ = this.$getPoints$(), $dvt$$1$$.$ArrayUtils$.$equals$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$, $DvtAdfDiagramDragSource$$) || ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$setPoints$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$), 
    $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $dvt$$1$$.$Animator$.$TYPE_POLYLINE$, 0 < $DvtAdfDiagramDragSource$$.length && isNaN($DvtAdfDiagramDragSource$$[0]) && ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $dvt$$1$$.$Animator$.$TYPE_PATH$), $DvtScrollbarEvent$$.$_animator$.$addProp$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$, this, this.$getPoints$, this.$setPoints$, $DvtAdfDiagramDragSource$$)), $DvtScrollbar$$.$_labelObj$ && this.$_labelObj$ && 
    ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $DvtScrollbar$$.$_labelObj$.$getMatrix$(), $DvtAdfDiagramDragSource$$ = this.$_labelObj$.$getMatrix$(), $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$.$equals$($DvtAdfDiagramDragSource$$) || ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_labelObj$.$setMatrix$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_MATRIX$, 
    this.$_labelObj$, this.$_labelObj$.$getMatrix$, this.$_labelObj$.$setMatrix$, $DvtAdfDiagramDragSource$$))), $DvtScrollbar$$.$getShape$() && this.$getShape$() && ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = $DvtScrollbar$$.$getShape$().$getStroke$(), $DvtAdfDiagramDragSource$$ = this.$getShape$().$getStroke$(), $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ && $DvtAdfDiagramDragSource$$ && $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ instanceof $dvt$$1$$.$SolidStroke$ && 
    $DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$SolidStroke$ && ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$.$getColor$() != $DvtAdfDiagramDragSource$$.$getColor$() || $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$.getWidth() != $DvtAdfDiagramDragSource$$.getWidth()) && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$getShape$().$setStroke$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_STROKE$, 
    this.$getShape$(), this.$getShape$().$getStroke$, this.$getShape$().$setStroke$, $DvtAdfDiagramDragSource$$))), $DvtScrollbarEvent$$ && $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$)) : ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtAdfDiagramDragSource$$ && $linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ ? ($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$ = this.$GetParentContainer$(), 
    $DvtScrollbar$$.$InsertLinkIntoParent$($linkAnimType$$1_linkParent_oldMat$$1_oldPoints_oldStroke$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getAlpha$, $DvtScrollbar$$.$setAlpha$, 0), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbar$$.getParent().removeChild($DvtScrollbar$$);
      $DvtScrollbar$$.$destroy$();
    }), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$)) : $DvtScrollbarArrow$$ && (this.$setAlpha$(0), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, this.$GetMaxAlpha$()), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$)));
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$AnimateInsert$ = function $$dvt$$1$$$$AdfDiagramLink$$$$AnimateInsert$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !0, $DvtScrollbarEvent$$ = this.getData().$getGroupId$();
    $DvtScrollbarEvent$$ && (this.$GetDiagram$().$_oldNodes$[$DvtScrollbarEvent$$] || ($DvtScrollbar$$ = !1));
    $DvtScrollbar$$ && ($DvtScrollbar$$ = new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), this.$GetDiagram$().$getAnimationDuration$()), $DvtScrollbarEvent$$ = $DvtScrollbar$$.$_animator$, this.$setAlpha$(0), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, this.$_maxAlpha$), $DvtScrollbarBackground$$.add($DvtScrollbar$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$));
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$AnimateDelete$ = function $$dvt$$1$$$$AdfDiagramLink$$$$AnimateDelete$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = !0, $DvtAdfDiagramDragSource$$ = this.getData().$getGroupId$();
    $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getNodeById$($DvtAdfDiagramDragSource$$)) && $DvtAdfDiagramDragSource$$.$GetChildNodePane$() ? this.$InsertLinkIntoParent$($DvtAdfDiagramDragSource$$.$GetChildNodePane$()) : $DvtScrollbarEvent$$ = !1 : this.$InsertLinkIntoParent$($DvtScrollbar$$.$_linksPane$);
    if ($DvtScrollbarEvent$$) {
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), $DvtScrollbar$$.$getAnimationDuration$());
      $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, 0);
      var $thisRef$$5$$ = this;
      $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
        $thisRef$$5$$.getParent().removeChild($thisRef$$5$$);
        $thisRef$$5$$.$destroy$();
      });
      $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$setKeyboardFocusConnector$ = function $$dvt$$1$$$$AdfDiagramLink$$$$setKeyboardFocusConnector$$($dvt$$1$$) {
    this.$_keyboardNavConnector$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_updateKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_updateKeyboardFocusEffect$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_keyboardNavConnector$;
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$hideKeyboardFocusEffect$ && $DvtScrollbarBackground$$.$hideKeyboardFocusEffect$();
    $dvt$$1$$ && $dvt$$1$$.$showKeyboardFocusEffect$ && $dvt$$1$$.$showKeyboardFocusEffect$();
    this.$setKeyboardFocusConnector$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_movingToStart$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_movingToStart$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getLinkStart$(), $DvtScrollbarEvent$$ = this.$getLinkEnd$(), $DvtScrollbar$$ = $DvtScrollbar$$.x < $DvtScrollbarEvent$$.x ? !0 : !1;
    return $DvtScrollbarBackground$$ == $dvt$$1$$.KeyboardEvent.$RIGHT_ARROW$ && $DvtScrollbar$$ || $DvtScrollbarBackground$$ == $dvt$$1$$.KeyboardEvent.$LEFT_ARROW$ && !$DvtScrollbar$$ ? !1 : !0;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_findConnectorByDirection$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_findConnectorByDirection$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = null, $DvtScrollbarBackground$$ = this.$_movingToStart$($dvt$$1$$) ? this.$_startConnector$ : this.$_endConnector$;
    $dvt$$1$$ = this.$findFocusableObject$($DvtScrollbarBackground$$);
    this.$_keyboardNavConnector$ == $dvt$$1$$ && ($dvt$$1$$ = null);
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$HandleKeyboardEvent$ = function $$dvt$$1$$$$AdfDiagramLink$$$$HandleKeyboardEvent$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ENTER$) {
      var $DvtScrollbar$$ = this.$GetDiagram$().$getEventManager$(), $DvtScrollbarEvent$$ = this.$getShape$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$localToStage$(this.$CalPointForMouseEvent$());
      $DvtScrollbarBackground$$ = $dvt$$1$$.$DomEventFactory$.$generateMouseEventFromKeyboardEvent$($DvtScrollbarBackground$$, this.$getCtx$(), $dvt$$1$$.MouseEvent.$CLICK$, $DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y);
      $DvtScrollbarBackground$$.target = $DvtScrollbarEvent$$;
      $DvtScrollbar$$.$PreOnClick$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$CalPointForMouseEvent$ = function $$dvt$$1$$$$AdfDiagramLink$$$$CalPointForMouseEvent$$() {
    var $DvtScrollbarBackground$$ = this.$_points$, $DvtScrollbar$$ = 0, $DvtScrollbarEvent$$ = 0;
    4 < $DvtScrollbarBackground$$.length ? ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.length / 2, 0 == $DvtScrollbarEvent$$ % 2 ? ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$ + 1]) : ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$ - 1], $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$])) : 4 == $DvtScrollbarBackground$$.length && ($DvtScrollbar$$ = ($DvtScrollbarBackground$$[0] + 
    $DvtScrollbarBackground$$[2]) / 2, $DvtScrollbarEvent$$ = ($DvtScrollbarBackground$$[1] + $DvtScrollbarBackground$$[3]) / 2);
    return new $dvt$$1$$.$Point$($DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$IsStandardConnector$ = function $$dvt$$1$$$$AdfDiagramLink$$$$IsStandardConnector$$($dvt$$1$$) {
    return (0 == $dvt$$1$$ ? this.$getStartConnectorType$() : this.$getEndConnectorType$()) ? !0 : !1;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$findFocusableObject$ = function $$dvt$$1$$$$AdfDiagramLink$$$$findFocusableObject$$($DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < this.$_tabStopsConnectorArray$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = this.$_tabStopsConnectorArray$[$DvtScrollbar$$];
      if ($DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AfComponent$ && $DvtScrollbarEvent$$.$_bgShape$ == $DvtScrollbarBackground$$) {
        return $DvtScrollbarEvent$$;
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getTabStopsArray$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getTabStopsArray$$() {
    this.$_tabStopsConnectorArray$ || (this.$_tabStopsConnectorArray$ = []);
    return this.$_tabStopsConnectorArray$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getCurrentTabStop$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getCurrentTabStop$$() {
    return this.$_keyboardNavConnector$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$resetTabStops$ = function $$dvt$$1$$$$AdfDiagramLink$$$$resetTabStops$$() {
    this.$setKeyboardFocusConnector$(null);
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$_refreshCursor$ = function $$dvt$$1$$$$AdfDiagramLink$$$$_refreshCursor$$() {
    if (this.$isSelectable$()) {
      this.setCursor("pointer");
    } else {
      var $DvtScrollbarBackground$$ = this.$getShowPopupBehaviors$();
      if ($dvt$$1$$.$ArrayUtils$.isArray($DvtScrollbarBackground$$)) {
        for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
          if ($DvtScrollbarBackground$$[$DvtScrollbar$$] && "click" == $DvtScrollbarBackground$$[$DvtScrollbar$$].$getTriggerType$()) {
            this.setCursor("pointer");
            return;
          }
        }
      }
      this.setCursor(null);
    }
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getAutomationState$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getAutomationState$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetDiagram$().$getAutomationState$(this.getData().getId(), $dvt$$1$$);
    return null == $DvtScrollbarBackground$$ && "visible" == $dvt$$1$$ ? this.$_bVisible$ : $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramLink$.prototype.$getGroupId$ = function $$dvt$$1$$$$AdfDiagramLink$$$$getGroupId$$() {
    return this.getData().$getGroupId$();
  };
  $dvt$$1$$.$AdfDiagramLinkDef$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$() {
    this.Init();
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramLinkDef$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramLinkDef");
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE$ = "__linkType__";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_DIRECT$ = "direct";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_DIRECT_ROUNDED$ = "directRounded";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_DIRECT_SMOOTH$ = "directSmooth";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_ORTHOGONAL$ = "orthogonal";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_ORTHOGONAL_ROUNDED$ = "orthogonalRounded";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_ORTHOGONAL_SMOOTH$ = "orthogonalSmooth";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_TYPE_CURVED$ = "curved";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_SOLID$ = "solid";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DASH$ = "dash";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DOT$ = "dot";
  $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DASH_DOT$ = "dashDot";
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.Init = function $$dvt$$1$$$$AdfDiagramLinkDef$$$Init$() {
    this.$_propMap$ = this.$_id$ = null;
    this.$_connectorTemplates$;
    this.$_labelTemplate$;
    this.$_showPopupBehaviors$ = null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.setId = function $$dvt$$1$$$$AdfDiagramLinkDef$$$setId$($dvt$$1$$) {
    this.$_id$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.getId = function $$dvt$$1$$$$AdfDiagramLinkDef$$$getId$() {
    return this.$_id$;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLinkWidth$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLinkWidth$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLinkWidth$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLinkWidth$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLinkLength$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLinkLength$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLinkLength$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLinkLength$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLinkColor$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLinkColor$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLinkColor$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLinkColor$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLinkType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLinkType$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLinkType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLinkType$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLinkStyle$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLinkStyle$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLinkStyle$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLinkStyle$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLabel$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLabel$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getLabel$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getLabel$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setLabelTemplate$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setLabelTemplate$$($dvt$$1$$) {
    this.$_labelTemplate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setRendered$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setRendered$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_RENDERED$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setReadOnly$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setReadOnly$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setSelectable$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setSelectable$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setShortDesc$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setShortDesc$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getShortDesc$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getShortDesc$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setEndConnectorType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setEndConnectorType$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getEndConnectorType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getEndConnectorType$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setStartConnectorType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setStartConnectorType$$($DvtScrollbarBackground$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getStartConnectorType$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getStartConnectorType$$() {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$) : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$setConnectorTemplate$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$setConnectorTemplate$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_connectorTemplates$ || (this.$_connectorTemplates$ = {});
    this.$_connectorTemplates$[$DvtScrollbarBackground$$] = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getConnectorTemplate$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getConnectorTemplate$$($dvt$$1$$) {
    return $dvt$$1$$ && this.$_connectorTemplates$ ? this.$_connectorTemplates$[$dvt$$1$$] : null;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$addShowPopupBehavior$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$addShowPopupBehavior$$($dvt$$1$$) {
    this.$_showPopupBehaviors$ || (this.$_showPopupBehaviors$ = []);
    this.$_showPopupBehaviors$.push($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$getShowPopupBehaviors$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$getShowPopupBehaviors$$() {
    return this.$_showPopupBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramLinkDef$.prototype.$stamp$ = function $$dvt$$1$$$$AdfDiagramLinkDef$$$$stamp$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (this.$_propMap$) {
      var $DvtScrollbarEvent$$ = this.$_propMap$.$stamp$($DvtScrollbarBackground$$);
      $DvtScrollbar$$.$setLinkColor$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$));
      $DvtScrollbar$$.$setLinkWidth$($DvtScrollbarEvent$$.$getIntegerProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$));
      $DvtScrollbar$$.$setLinkLength$($DvtScrollbarEvent$$.$getIntegerProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$));
      $DvtScrollbar$$.$setLinkType$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$));
      $DvtScrollbar$$.$setLinkStyle$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$));
      $DvtScrollbar$$.$setShortDesc$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$));
      $DvtScrollbar$$.$setEndConnectorType$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$));
      $DvtScrollbar$$.$setStartConnectorType$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$));
      $DvtScrollbar$$.$setLabel$($DvtScrollbarEvent$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$));
      $DvtScrollbar$$.$setRendered$($DvtScrollbarEvent$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_RENDERED$));
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$, !1);
      $DvtScrollbar$$.$setUpdateEnabled$(!$DvtAdfDiagramDragSource$$);
      $DvtScrollbar$$.$setDeleteEnabled$(!$DvtAdfDiagramDragSource$$);
      $DvtScrollbar$$.$setSelectable$($DvtScrollbarEvent$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$, !0));
    }
  };
  $dvt$$1$$.$AdfDiagramNodeData$ = function $$dvt$$1$$$$AdfDiagramNodeData$$() {
    this.Init();
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramNodeData$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramNodeData");
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.Init = function $$dvt$$1$$$$AdfDiagramNodeData$$$Init$() {
    this.$_templateId$ = this.$_id$ = null;
    this.$_elAttributes$ = [];
    this.$_attrGrps$ = this.$_groupId$ = null;
    this.$_hasAnchorListener$ = !1;
    this.$_layoutAttributes$ = null;
    this.$_showNodeActions$ = this.$_showStack$ = this.$_showDrill$ = this.$_showExpandChildren$ = this.$_showIsolate$ = !0;
    this.$_rowIndex$ = -1;
    this.$_childrenFetched$ = this.$_container$ = this.$_structureOnly$ = !1;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$mergeProps$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$mergeProps$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramNodeData$.$superclass$.$mergeProps$.call(this, $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$_id$ = this.$_id$;
    $DvtScrollbarBackground$$.$_templateId$ = this.$_templateId$;
    $DvtScrollbarBackground$$.$_elAttributes$ = this.$_elAttributes$;
    $DvtScrollbarBackground$$.$_groupId$ = this.$_groupId$;
    $DvtScrollbarBackground$$.$_attrGrps$ = this.$_attrGrps$;
    $DvtScrollbarBackground$$.$_hasAnchorListener$ = this.$_hasAnchorListener$;
    $DvtScrollbarBackground$$.$_layoutAttributes$ = this.$_layoutAttributes$;
    $DvtScrollbarBackground$$.$_showIsolate$ = this.$_showIsolate$;
    $DvtScrollbarBackground$$.$_showExpandChildren$ = this.$_showExpandChildren$;
    $DvtScrollbarBackground$$.$_showDrill$ = this.$_showDrill$;
    $DvtScrollbarBackground$$.$_showStack$ = this.$_showStack$;
    $DvtScrollbarBackground$$.$_showNodeActions$ = this.$_showNodeActions$;
    $DvtScrollbarBackground$$.$_rowIndex$ = this.$_rowIndex$;
    $DvtScrollbarBackground$$.$_structureOnly$ = this.$_structureOnly$;
    $DvtScrollbarBackground$$.$_container$ = this.$_container$;
    $DvtScrollbarBackground$$.$_childrenFetched$ = this.$_childrenFetched$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.clone = function $$dvt$$1$$$$AdfDiagramNodeData$$$clone$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AdfDiagramNodeData$;
    this.$mergeProps$($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.setId = function $$dvt$$1$$$$AdfDiagramNodeData$$$setId$($dvt$$1$$) {
    this.$_id$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.getId = function $$dvt$$1$$$$AdfDiagramNodeData$$$getId$() {
    return this.$_id$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setTemplateId$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setTemplateId$$($dvt$$1$$) {
    this.$_templateId$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setElAttributes$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setElAttributes$$($dvt$$1$$) {
    this.$_elAttributes$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$addElAttributes$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$addElAttributes$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$, $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      $DvtScrollbarBackground$$ = $dvt$$1$$[$DvtScrollbar$$], this.$_elAttributes$[$DvtScrollbarBackground$$.name] = $DvtScrollbarBackground$$.value;
    }
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$addElAttributesJson$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$addElAttributesJson$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ in $dvt$$1$$) {
      this.$_elAttributes$[$DvtScrollbarBackground$$] = $dvt$$1$$[$DvtScrollbarBackground$$];
    }
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setGroupId$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setGroupId$$($dvt$$1$$) {
    this.$_groupId$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$getGroupId$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$getGroupId$$() {
    return this.$_groupId$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setAttributeGroups$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setAttributeGroups$$($dvt$$1$$) {
    this.$_attrGrps$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$getAttributeGroups$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$getAttributeGroups$$() {
    return this.$_attrGrps$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setHasAnchorListener$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setHasAnchorListener$$($dvt$$1$$) {
    this.$_hasAnchorListener$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setLayoutAttributes$$($dvt$$1$$) {
    this.$_layoutAttributes$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$getLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$getLayoutAttributes$$() {
    return this.$_layoutAttributes$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setShowIsolate$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setShowIsolate$$($dvt$$1$$) {
    this.$_showIsolate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setShowExpandChildren$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setShowExpandChildren$$($dvt$$1$$) {
    this.$_showExpandChildren$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setShowDrill$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setShowDrill$$($dvt$$1$$) {
    this.$_showDrill$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setShowStack$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setShowStack$$($dvt$$1$$) {
    this.$_showStack$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setShowNodeActions$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setShowNodeActions$$($dvt$$1$$) {
    this.$_showNodeActions$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setRowIndex$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setRowIndex$$($dvt$$1$$) {
    this.$_rowIndex$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$getRowIndex$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$getRowIndex$$() {
    return this.$_rowIndex$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setStructureOnly$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setStructureOnly$$() {
    this.$_structureOnly$ = !0;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setContainer$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setContainer$$($dvt$$1$$) {
    this.$_container$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$isContainer$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$isContainer$$() {
    return this.$_container$;
  };
  $dvt$$1$$.$AdfDiagramNodeData$.prototype.$setChildrenFetched$ = function $$dvt$$1$$$$AdfDiagramNodeData$$$$setChildrenFetched$$($dvt$$1$$) {
    this.$_childrenFetched$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$ = function $$dvt$$1$$$$AdfDiagramNode$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramNode$, $dvt$$1$$.$BaseDiagramNode$, "dvt.AdfDiagramNode");
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$ = 10;
  $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$ = 4;
  $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_ALPHA$ = .95;
  $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_OFFSET$ = 3;
  $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$ = 10;
  $dvt$$1$$.$AdfDiagramNode$.$_STACK_BADGE_OFFSET$ = 4;
  $dvt$$1$$.$AdfDiagramNode$.$_TOOLBAR_SHADOW_STYLE$ = "2 2 3 0 rgba(0, 0, 0, 0.5)";
  $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_COLOR$ = "#ffffff";
  $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_ALPHA$ = .9;
  $dvt$$1$$.$AdfDiagramNode$.$_SELECTION_FILL_MODE$ = !1;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_BADGE_MIN_ZOOM$ = 0;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_X$ = 0;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_Y$ = 1;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$ = 2;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$ = 3;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RX$ = 4;
  $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RY$ = 5;
  $dvt$$1$$.$AdfDiagramNode$.$_CHANGE_Z_ORDER_ON_HIGHLIGHT$ = !0;
  $dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$ = "nodeSelectColor";
  $dvt$$1$$.$AdfDiagramNode$.$HOVER_INNER_COLOR$ = "nodeHoverInnerColor";
  $dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$ = "nodeHoverOuterColor";
  $dvt$$1$$.$AdfDiagramNode$.$CONTAINER_STYLE$ = "nodeContainerStyle";
  $dvt$$1$$.$AdfDiagramNode$.$OVERVIEW_STYLE$ = "nodeOverviewStyle";
  $dvt$$1$$.$AdfDiagramNode$.$OVERVIEW_CONTAINER_STYLE$ = "nodeOverviewContainerStyle";
  $dvt$$1$$.$AdfDiagramNode$.$LABEL_STYLE$ = "nodeLabelStyle";
  $dvt$$1$$.$AdfDiagramNode$.$CSS_STYLE$ = "nodeCSSStyle";
  $dvt$$1$$.$AdfDiagramNode$.prototype.Init = function $$dvt$$1$$$$AdfDiagramNode$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$AdfDiagramNode$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, $DvtScrollbar$$.getId(), $DvtScrollbarEvent$$);
    this.$_contentPane$;
    this.$_data$ = $DvtScrollbar$$;
    this.$_diagram$ = $DvtScrollbarEvent$$;
    this.$_nodeDef$;
    this.$_childNodeIds$;
    this.$_childLinkIds$;
    this.$_crossChildLinkIds$;
    this.$_shortDesc$;
    this.$_bStack$ = !1;
    this.$_stackCount$ = 0;
    this.$_stackBadge$;
    this.$_stackUnderlay$;
    this.$_stackBadgeHandler$;
    this.$_bPartialExpand$ = !1;
    this.$_partialExpandIndicator$;
    this.$_nodeWidth$;
    this.$_nodeHeight$;
    this.$_zoom$ = -1;
    this.$_bIgnoreNextRender$ = !1;
    this.$_layoutBounds$;
    this.$_overlays$;
    this.$_label$;
    this.$_labelDims$;
    this.$_backgroundObj$;
    this.$_backgroundMouseEventCatcher$;
    this.$_nodeUnderlay$;
    this.$_bForceZoom100Facet$ = this.$_hover$ = !1;
    this.$_bFlyOutEnabled$ = !0;
    this.$_flyOuts$;
    this.$_flyOutsPos$;
    this.$_flyOutAnim$;
    this.$_flyInAnim$;
    this.$_bDisclosureChanged$ = this.$_bDisclosed$ = this.$_bFlyInAnimCanceled$ = !1;
    this.$_childNodePane$;
    this.$_childNodePaneDims$;
    this.$_containerChrome$;
    this.$_containerTopObj$;
    this.$_containerTopBounds$;
    this.$_containerTopAvailBounds$;
    this.$_containerBottomObj$;
    this.$_containerBottomBounds$;
    this.$_containerBottomAvailBounds$;
    this.$_containerLeftObj$;
    this.$_containerLeftBounds$;
    this.$_containerLeftAvailBounds$;
    this.$_containerRightObj$;
    this.$_containerRightBounds$;
    this.$_containerRightAvailBounds$;
    this.$_containerPadding$ = {left:$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$, right:$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$, top:$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$, bottom:$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$};
    this.$_containerUnderlay$;
    this.$_layout$;
    this.$_nodeParent$;
    this.$_visibleChildNodeCount$ = 0;
    this.$_containerBadge$;
    this.$_containerBadgeHandler$;
    this.$_nodeWidth100$;
    this.$_nodeHeight100$;
    this.$_oldNodeWidth$;
    this.$_oldNodeHeight$;
    this.$_bHiddenAncestorChanged$ = this.$_bHiddenAncestor$ = !1;
    this.$_oldLabelBounds$;
    this.$_oldLabelPos$;
    this.$_oldLabelRotAngle$;
    this.$_oldLabelRotPoint$;
    this.$_bFocusEffect$ = this.$_bFocused$ = this.$_bHoverEffect$ = this.$_deleteEnabled$ = !1;
    this.$_focusUnderlay$;
    this.$_shadow$;
    this.$_bPreventHoverEffect$ = !1;
    this.$_maxAlpha$ = 1;
    this.$_afRootPlaceholder$;
    this.$_showPopupBehaviors$;
    this.$_clientBehaviors$;
    this.$_draggable$ = !0;
    this.$_stateProps$ = {};
    this.$GetDiagram$().$getEventManager$().$associate$(this, this);
    $dvt$$1$$.$Agent$.$isPlatformGecko$();
    $DvtScrollbarBackground$$ = this.$_diagram$.$_nodeStyles$;
    this.$_selectColor$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$];
    this.$_hoverInnerColor$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_INNER_COLOR$];
    this.$_hoverOuterColor$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$];
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$CONTAINER_STYLE$]) {
      this.$_defaultContainerBgColor$ = $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$), this.$_defaultContainerBorderColor$ = $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$), this.$_defaultContainerBorderRx$ = $dvt$$1$$.$CSSStyle$.$toNumber$($DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$));
    }
    this.$_nodeLabelStyles$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$LABEL_STYLE$];
    this.$_containerStyle$;
    this.$_overviewStyle$;
    this.$_overviewContainerStyle$;
    this.$_partialExpandIndicatorContainer$;
    this.$_tabStopsNodeArray$;
    this.$_curTabStopIdx$ = -1;
    this.$_linkHandle$;
    this.$_width$;
    this.$_height$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetDiagram$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetDiagram$$() {
    if (this.$_diagram$) {
      return this.$_diagram$;
    }
    if (this.$_cachedDiagram$) {
      return this.$_cachedDiagram$;
    }
    for (var $DvtScrollbarBackground$$ = this.getParent();$DvtScrollbarBackground$$;) {
      if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagram$) {
        return $DvtScrollbarBackground$$;
      }
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getParent();
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$IsTransientToolbarOnClick$ = function $$dvt$$1$$$$AdfDiagramNode$$$$IsTransientToolbarOnClick$$() {
    return !0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$showHoverEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$showHoverEffect$$() {
    this.$_bHiddenAncestor$ || this.$_bPreventHoverEffect$ || (this.$_bHoverEffect$ = !0, this.$_bHighlight$ && this.$_hideFeedback$(), this.$_showFeedback$(!0, this.$_selected$), $dvt$$1$$.$Agent$.$isTouchDevice$() || this.$showLinkHandle$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$hideHoverEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$hideHoverEffect$$() {
    this.$_bHiddenAncestor$ || (this.$_bHoverEffect$ = !1, this.$_bHighlight$ && this.$_hideFeedback$(), (this.$_bFocusEffect$ || this.$_selected$) && this.$_showFeedback$(this.$_bFocusEffect$, this.$_selected$), $dvt$$1$$.$Agent$.$isTouchDevice$() || this.$hideLinkHandle$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$showRollOverEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$showRollOverEffect$$($DvtScrollbarBackground$$) {
    this.$_bHiddenAncestor$ || (this.$GetDiagram$().$ShowNodeHoverEffect$(this, $DvtScrollbarBackground$$ instanceof $dvt$$1$$.KeyboardEvent), !this.$IsTransientToolbarOnClick$() && this.$isFlyOutEnabled$() && (this.$CancelFlyInAnim$(), this.$ShowFlyOuts$()));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$hideRollOverEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$hideRollOverEffect$$($DvtScrollbarBackground$$) {
    this.$GetDiagram$().$HideNodeHoverEffect$(this);
    this.$IsTransientToolbarOnClick$() || this.$HideFlyOuts$($DvtScrollbarBackground$$ instanceof $dvt$$1$$.KeyboardEvent);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$showHoverDetails$ = function $$dvt$$1$$$$AdfDiagramNode$$$$showHoverDetails$$($dvt$$1$$) {
    this.$_bHiddenAncestor$ || this.$GetDiagram$().$ShowNodeHoverDetails$(this, $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$hideHoverDetails$ = function $$dvt$$1$$$$AdfDiagramNode$$$$hideHoverDetails$$() {
    this.$GetDiagram$().$HideNodeHoverDetails$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleClick$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleClick$$($dvt$$1$$) {
    this.$_bHiddenAncestor$ || this.$GetDiagram$().$HandleNodeClick$(this, $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleDblClick$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleDblClick$$() {
    this.$_bHiddenAncestor$ || this.$GetDiagram$().$HandleNodeDblClick$(this);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetFirstShape$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetFirstShape$$() {
    return this.$isDisclosed$() ? this.$_getFirstShape$(this.$_containerChrome$) : this.$_getFirstShape$(this.$_afRoot$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getFirstShape$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getFirstShape$$($DvtScrollbarBackground$$) {
    for ($DvtScrollbarBackground$$ = [$DvtScrollbarBackground$$];0 < $DvtScrollbarBackground$$.length;) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.splice(0, 1)[0];
      if ($DvtScrollbar$$ instanceof $dvt$$1$$.$Shape$) {
        return $DvtScrollbar$$;
      }
      if ($DvtScrollbar$$ instanceof $dvt$$1$$.$Container$) {
        for (var $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getNumChildren$(), $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$;$DvtAdfDiagramDragSource$$++) {
          var $child$$2$$ = $DvtScrollbar$$.$getChildAt$($DvtAdfDiagramDragSource$$);
          $DvtScrollbarBackground$$.push($child$$2$$);
        }
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_showFeedback$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_showFeedback$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$_bHighlight$;
    this.$_bHighlight$ = !0;
    if ($dvt$$1$$.$AdfDiagramNode$.$_CHANGE_Z_ORDER_ON_HIGHLIGHT$ && !this.$_diagram$.$_bDragged$ && this.$ReorderNodes$()) {
      var $DvtAdfDiagramDragSource$$ = this.$GetParentContainer$();
      $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.contains(this) && this.$InsertNodeIntoParent$($DvtAdfDiagramDragSource$$);
    }
    $DvtScrollbarEvent$$ || this.$ShowHighlight$($DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ReorderNodes$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ReorderNodes$$() {
    return this.$isSelectable$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_hideFeedback$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_hideFeedback$$() {
    this.$_bHighlight$ = !1;
    if ($dvt$$1$$.$AdfDiagramNode$.$_CHANGE_Z_ORDER_ON_HIGHLIGHT$ && !this.$_diagram$.$_bDragged$ && this.$ReorderNodes$()) {
      var $DvtScrollbarBackground$$ = this.$GetParentContainer$();
      $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.contains(this) && this.$InsertNodeIntoParent$($DvtScrollbarBackground$$);
    }
    this.$HideHighlight$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ShowHighlight$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ShowHighlight$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$GetHighlightShape$(!0);
    $dvt$$1$$ != $DvtScrollbar$$.$IsShowingHoverEffect$ && ($dvt$$1$$ ? $DvtScrollbar$$.$showHoverEffect$() : $DvtScrollbar$$.$hideHoverEffect$());
    $DvtScrollbar$$.$setSelected$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HideHighlight$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HideHighlight$$() {
    var $dvt$$1$$ = this.$GetHighlightShape$(!1);
    $dvt$$1$$ && ($dvt$$1$$.$hideHoverEffect$(), $dvt$$1$$.$setSelected$(!1));
    this.$_nodeUnderlay$ && (this.$_nodeUnderlay$.getParent().removeChild(this.$_nodeUnderlay$), this.$_nodeUnderlay$.$destroy$ && this.$_nodeUnderlay$.$destroy$(), this.$_nodeUnderlay$ = null);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetHighlightShape$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetHighlightShape$$($dvt$$1$$) {
    !this.$_nodeUnderlay$ && $dvt$$1$$ && (this.$_nodeUnderlay$ = this.$CreateUnderlay$(), this.$UpdateHighlightStrokes$(), this.$_stackUnderlay$ ? this.$_stackUnderlay$.$addChildAt$(this.$_nodeUnderlay$, 2) : this.$_getContentContainer$().$addChildAt$(this.$_nodeUnderlay$, 0));
    return this.$_nodeUnderlay$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateUnderlay$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateUnderlay$$() {
    var $DvtScrollbarBackground$$ = this.$getContentBounds$(), $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), $DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y, $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.$h$);
    $DvtScrollbarBackground$$.$setRx$(1);
    $DvtScrollbarBackground$$.$setRy$(1);
    $DvtScrollbarBackground$$.$setSolidFill$(this.$_hoverInnerColor$);
    $DvtScrollbarBackground$$.$setMouseEnabled$(!1);
    this.$GrowUnderlayForStack$($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GrowUnderlayForStack$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GrowUnderlayForStack$$($DvtScrollbarBackground$$) {
    this.$_bStack$ && ($DvtScrollbarBackground$$.$setX$($DvtScrollbarBackground$$.$getX$() - $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$), $DvtScrollbarBackground$$.$setY$($DvtScrollbarBackground$$.$getY$() - $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$), $DvtScrollbarBackground$$.$setWidth$($DvtScrollbarBackground$$.getWidth() + 2 * $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$), $DvtScrollbarBackground$$.$setHeight$($DvtScrollbarBackground$$.getHeight() + 2 * $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$UpdateHighlightStrokes$ = function $$dvt$$1$$$$AdfDiagramNode$$$$UpdateHighlightStrokes$$() {
    if (this.$_nodeUnderlay$) {
      var $DvtScrollbarBackground$$ = this.$_diagram$.$_bSupportsVectorEffects$ ? 1 : 1 / this.$_diagram$.$_panZoomCanvas$.$getZoom$(), $DvtScrollbar$$ = 4 * $DvtScrollbarBackground$$, $DvtScrollbarEvent$$ = 2 * $DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$ = 2 * $DvtScrollbarBackground$$, $shis_sow$$ = 2 * $DvtScrollbarBackground$$, $DvtScrollbarArrow$$ = 4 * $DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$ = 2 * $DvtScrollbarBackground$$, $DvtScrollbarBackground$$ = new $dvt$$1$$.$SolidStroke$(this.$_hoverInnerColor$, 
      1, $DvtScrollbar$$);
      $DvtScrollbarBackground$$.$setFixedWidth$(!0);
      $DvtScrollbar$$ = new $dvt$$1$$.$SolidStroke$(this.$_hoverOuterColor$, 1, $DvtScrollbar$$ + 2 * $DvtScrollbarEvent$$);
      $DvtScrollbar$$.$setFixedWidth$(!0);
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$SolidStroke$(this.$_hoverInnerColor$, 1, $DvtAdfDiagramDragSource$$);
      $DvtScrollbarEvent$$.$setFixedWidth$(!0);
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SolidStroke$(this.$_selectColor$, 1, $DvtAdfDiagramDragSource$$ + 2 * $shis_sow$$);
      $DvtAdfDiagramDragSource$$.$setFixedWidth$(!0);
      $shis_sow$$ = new $dvt$$1$$.$SolidStroke$(this.$_hoverInnerColor$, 1, $DvtScrollbarArrow$$);
      $shis_sow$$.$setFixedWidth$(!0);
      $DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidStroke$(this.$_selectColor$, 1, $DvtScrollbarArrow$$ + 2 * $DvtAdfDiagramEditorManager$$);
      $DvtScrollbarArrow$$.$setFixedWidth$(!0);
      this.$_nodeUnderlay$.$setSelectedStroke$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$).$setHoverStroke$($DvtScrollbarBackground$$, $DvtScrollbar$$).$setSelectedHoverStroke$($shis_sow$$, $DvtScrollbarArrow$$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getDatatip$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getDatatip$$() {
    return this.$_bHiddenAncestor$ || this.$_diagram$.$_transientToolbarDataId$ == this.getData().getId() ? null : this.$getShortDesc$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setShortDesc$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setShortDesc$$($dvt$$1$$) {
    this.$_shortDesc$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getShortDesc$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getShortDesc$$() {
    return this.$_shortDesc$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLayoutAttributes$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLayoutAttributes$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.getData().$getLayoutAttributes$();
    return $DvtScrollbarBackground$$ && $dvt$$1$$ ? $DvtScrollbarBackground$$[$dvt$$1$$] : {};
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.getData = function $$dvt$$1$$$$AdfDiagramNode$$$getData$() {
    return this.$_data$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setNodeDef$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setNodeDef$$($dvt$$1$$) {
    if (this.$_nodeDef$ = $dvt$$1$$) {
      $dvt$$1$$.$stamp$(this.getData().$_elAttributes$, this), this.$_refreshCursor$();
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getNodeDef$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getNodeDef$$() {
    return this.$_nodeDef$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setLayout$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setLayout$$($dvt$$1$$) {
    this.$_layout$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLayout$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLayout$$() {
    return this.$_layout$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$renderNode$ = function $$dvt$$1$$$$AdfDiagramNode$$$$renderNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (this.$_bIgnoreNextRender$) {
      this.$_diagram$.$_bSupportsVectorEffects$ || this.$RefreshSelectionEffect$(), this.$_bIgnoreNextRender$ = !1;
    } else {
      var $DvtScrollbarEvent$$ = this.getWidth(), $DvtAdfDiagramDragSource$$ = this.getHeight(), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = this.$isDisclosed$();
      if ($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$) {
        var $DvtScrollbarArrow$$ = this.$CalcChildNodePaneBounds$($DvtScrollbar$$);
        this.$_childNodePaneDims$ = $DvtScrollbarArrow$$;
        var $DvtScrollbarEvent$$ = $DvtScrollbarArrow$$.$w$, $DvtAdfDiagramDragSource$$ = $DvtScrollbarArrow$$.$h$, $DvtAdfDiagramEditorManager$$ = this.$getContainerPadding$();
        $DvtAdfDiagramEditorManager$$ && ($DvtScrollbarEvent$$ = "auto" === $DvtAdfDiagramEditorManager$$.left || "auto" === $DvtAdfDiagramEditorManager$$.right ? Number.MAX_VALUE : $DvtScrollbarEvent$$ + ($DvtAdfDiagramEditorManager$$.left + $DvtAdfDiagramEditorManager$$.right), $DvtAdfDiagramDragSource$$ = "auto" === $DvtAdfDiagramEditorManager$$.top || "auto" === $DvtAdfDiagramEditorManager$$.bottom ? Number.MAX_VALUE : $DvtAdfDiagramDragSource$$ + ($DvtAdfDiagramEditorManager$$.top + $DvtAdfDiagramEditorManager$$.bottom));
      } else {
        this.$_nodeWidth100$ && (this.$_nodeWidth$ = this.$_nodeWidth100$);
        this.$_nodeHeight100$ && (this.$_nodeHeight$ = this.$_nodeHeight100$);
        this.$_nodeWidth$ && ($DvtScrollbarEvent$$ = this.$_nodeWidth$);
        this.$_nodeHeight$ && ($DvtAdfDiagramDragSource$$ = this.$_nodeHeight$);
        var $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = !1, $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = !1;
        $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ *= this.$_zoom$ : ($bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = !0, $DvtScrollbarEvent$$ = Number.MAX_VALUE);
        $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$ *= this.$_zoom$ : ($bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = !0, $DvtAdfDiagramDragSource$$ = Number.MAX_VALUE);
      }
      $DvtScrollbarBackground$$.$setAvailableWidth$($DvtScrollbarEvent$$);
      $DvtScrollbarBackground$$.$setAvailableHeight$($DvtAdfDiagramDragSource$$);
      !$bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ && this.$_afRoot$ && $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_afRoot$);
      var $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$, $nodeHeight$$ = $DvtAdfDiagramDragSource$$;
      this.$_containerRightBounds$ = this.$_containerLeftBounds$ = this.$_containerBottomBounds$ = this.$_containerTopBounds$ = null;
      if ($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$) {
        $DvtScrollbarEvent$$ = -this.$_childNodePaneDims$.x, $DvtAdfDiagramDragSource$$ = -this.$_childNodePaneDims$.y, $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$, this.$_nodeHeight$ = $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = this.$_childNodePaneDims$.$h$ + ("auto" === $DvtAdfDiagramEditorManager$$.top ? $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ : 
        $DvtAdfDiagramEditorManager$$.top) + ("auto" === $DvtAdfDiagramEditorManager$$.bottom ? $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ : $DvtAdfDiagramEditorManager$$.bottom), this.$_containerLeftObj$ && ($DvtScrollbarBackground$$.$setAvailableWidth$(Number.MAX_VALUE), $DvtScrollbarBackground$$.$setAvailableHeight$("auto" === $DvtAdfDiagramEditorManager$$.top || "auto" === $DvtAdfDiagramEditorManager$$.bottom ? Number.MAX_VALUE : this.$_nodeHeight$), 
        $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerLeftObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerLeftObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$ < this.$_nodeHeight$ && ($DvtScrollbarBackground$$.$setAvailableHeight$(this.$_nodeHeight$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerLeftObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = 
        $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerLeftObj$)), this.$_containerLeftBounds$ = $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$, this.$_nodeHeight$ = Math.max($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$, this.$_nodeHeight$), $DvtScrollbarEvent$$ += $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$w$, this.$_containerLeftAvailBounds$ = {$w$:Number.MAX_VALUE, $h$:this.$_nodeHeight$}), this.$_containerRightObj$ && ($DvtScrollbarBackground$$.$setAvailableWidth$(Number.MAX_VALUE), 
        $DvtScrollbarBackground$$.$setAvailableHeight$("auto" === $DvtAdfDiagramEditorManager$$.top || "auto" === $DvtAdfDiagramEditorManager$$.bottom ? Number.MAX_VALUE : this.$_nodeHeight$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerRightObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerRightObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$ < this.$_nodeHeight$ && ($DvtScrollbarBackground$$.$setAvailableHeight$(this.$_nodeHeight$), 
        $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerRightObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerRightObj$)), this.$_containerRightBounds$ = $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$, this.$_nodeHeight$ = Math.max($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$, this.$_nodeHeight$), this.$_containerRightAvailBounds$ = {$w$:Number.MAX_VALUE, $h$:this.$_nodeHeight$}), this.$_containerLeftBounds$ && 
        this.$_containerLeftBounds$.$h$ < this.$_nodeHeight$ && this.$_containerLeftBounds$.$h$ > $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ && ($DvtScrollbarBackground$$.$setAvailableHeight$(this.$_nodeHeight$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerLeftObj$), this.$_containerLeftBounds$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerLeftObj$)), $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = 
        (this.$_containerLeftBounds$ ? this.$_containerLeftBounds$.$w$ : 0) + (this.$_containerRightBounds$ ? this.$_containerRightBounds$.$w$ : 0), this.$_nodeWidth$ = $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = this.$_childNodePaneDims$.$w$ + ("auto" === $DvtAdfDiagramEditorManager$$.left ? $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ : $DvtAdfDiagramEditorManager$$.left) + ("auto" === 
        $DvtAdfDiagramEditorManager$$.right ? $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ : $DvtAdfDiagramEditorManager$$.right) + $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$, this.$_containerTopObj$ && ($DvtScrollbarBackground$$.$setAvailableWidth$("auto" === $DvtAdfDiagramEditorManager$$.left || "auto" === $DvtAdfDiagramEditorManager$$.right ? Number.MAX_VALUE : this.$_nodeWidth$), $DvtScrollbarBackground$$.$setAvailableHeight$(Number.MAX_VALUE), 
        $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerTopObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerTopObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$w$ < this.$_nodeWidth$ && ($DvtScrollbarBackground$$.$setAvailableWidth$(this.$_nodeWidth$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerTopObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = 
        $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerTopObj$)), this.$_containerTopBounds$ = $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$, this.$_nodeWidth$ = Math.max($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$w$, this.$_nodeWidth$), this.$_nodeHeight$ += $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$, $DvtAdfDiagramDragSource$$ += $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$, this.$_containerLeftObj$ && this.$_containerLeftObj$.$setTranslateY$($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$), 
        this.$_containerRightObj$ && this.$_containerRightObj$.$setTranslateY$($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$), this.$_containerTopAvailBounds$ = {$w$:this.$_nodeWidth$, $h$:Number.MAX_VALUE}), this.$_containerBottomObj$ && ($DvtScrollbarBackground$$.$setAvailableWidth$("auto" === $DvtAdfDiagramEditorManager$$.left || "auto" === $DvtAdfDiagramEditorManager$$.right ? Number.MAX_VALUE : this.$_nodeWidth$), $DvtScrollbarBackground$$.$setAvailableHeight$(Number.MAX_VALUE), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, 
        this.$_containerBottomObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerBottomObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$w$ < this.$_nodeWidth$ && ($DvtScrollbarBackground$$.$setAvailableWidth$(this.$_nodeWidth$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerBottomObj$), $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerBottomObj$)), 
        this.$_containerBottomBounds$ = $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$, this.$_containerBottomObj$.$setTranslateY$(this.$_nodeHeight$), this.$_nodeWidth$ = Math.max($bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$w$, this.$_nodeWidth$), this.$_nodeHeight$ += $bDisclosed$$1_cbDims_clDims_crDims_ctDims$$.$h$, this.$_containerBottomAvailBounds$ = {$w$:this.$_nodeWidth$, $h$:Number.MAX_VALUE}), this.$_containerTopBounds$ && this.$_containerTopBounds$.$w$ < this.$_nodeWidth$ && this.$_containerTopBounds$.$w$ > 
        $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ && ($DvtScrollbarBackground$$.$setAvailableWidth$(this.$_nodeWidth$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_containerTopObj$), $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_containerTopObj$), $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$.$h$ !== 
        this.$_containerTopBounds$.$h$ && ($DvtAdfDiagramDragSource$$ += $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$.$h$ - this.$_containerTopBounds$.$h$), this.$_containerTopBounds$ = $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$), this.$_containerRightObj$ && this.$_containerRightObj$.$setTranslateX$(this.$_nodeWidth$ - this.$_containerRightBounds$.$w$), $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = 
        (this.$_containerTopBounds$ ? this.$_containerTopBounds$.$h$ : 0) + (this.$_containerBottomBounds$ ? this.$_containerBottomBounds$.$h$ : 0), $DvtAdfDiagramEditorManager$$ && ("auto" === $DvtAdfDiagramEditorManager$$.top && "auto" === $DvtAdfDiagramEditorManager$$.bottom ? $DvtAdfDiagramEditorManager$$.top = $DvtAdfDiagramEditorManager$$.bottom = (this.$_nodeHeight$ - this.$_childNodePaneDims$.$h$ - $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$) / 
        2 : "auto" === $DvtAdfDiagramEditorManager$$.top ? $DvtAdfDiagramEditorManager$$.top = this.$_nodeHeight$ - this.$_childNodePaneDims$.$h$ - $DvtAdfDiagramEditorManager$$.bottom - $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ : "auto" === $DvtAdfDiagramEditorManager$$.bottom && ($DvtAdfDiagramEditorManager$$.bottom = this.$_nodeHeight$ - this.$_childNodePaneDims$.$h$ - $DvtAdfDiagramEditorManager$$.top - $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$), 
        "auto" === $DvtAdfDiagramEditorManager$$.left && "auto" === $DvtAdfDiagramEditorManager$$.right ? $DvtAdfDiagramEditorManager$$.left = $DvtAdfDiagramEditorManager$$.right = (this.$_nodeWidth$ - this.$_childNodePaneDims$.$w$ - $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$) / 2 : "auto" === $DvtAdfDiagramEditorManager$$.left ? $DvtAdfDiagramEditorManager$$.left = this.$_nodeWidth$ - this.$_childNodePaneDims$.$w$ - $DvtAdfDiagramEditorManager$$.right - $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ : 
        "auto" === $DvtAdfDiagramEditorManager$$.right && ($DvtAdfDiagramEditorManager$$.right = this.$_nodeWidth$ - this.$_childNodePaneDims$.$w$ - $DvtAdfDiagramEditorManager$$.left - $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$), $DvtScrollbarEvent$$ += $DvtAdfDiagramEditorManager$$.left, $DvtAdfDiagramDragSource$$ += $DvtAdfDiagramEditorManager$$.top), $DvtScrollbarEvent$$ != this.$_childNodePane$.$getTranslateX$() && this.$_childNodePane$.$setTranslateX$($DvtScrollbarEvent$$), 
        $DvtAdfDiagramDragSource$$ != this.$_childNodePane$.$getTranslateY$() && this.$_childNodePane$.$setTranslateY$($DvtAdfDiagramDragSource$$), this.$RenderContainerChrome$();
      } else {
        if ($bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ || $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$) {
          $DvtScrollbarArrow$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_afRoot$, this.$_afRoot$.getParent()), $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ && (this.$_nodeWidth100$ = this.$_nodeWidth$ = $DvtScrollbarArrow$$.$w$), $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ && (this.$_nodeHeight100$ = this.$_nodeHeight$ = $DvtScrollbarArrow$$.$h$);
        }
        $DvtScrollbarArrow$$ = 1 / this.$_zoom$;
        this.$_afRoot$.$setScale$($DvtScrollbarArrow$$ * this.$_afRoot$.$getScaleX$(), $DvtScrollbarArrow$$ * this.$_afRoot$.$getScaleY$());
        this.$_nodeWidth$ || (this.$_nodeWidth100$ = this.$_nodeWidth$ = $DvtScrollbarEvent$$);
        this.$_nodeHeight$ || (this.$_nodeHeight100$ = this.$_nodeHeight$ = $DvtAdfDiagramDragSource$$);
        $DvtScrollbarArrow$$ = this.$_nodeWidth$;
        $nodeHeight$$ = this.$_nodeHeight$;
      }
      this.$_labelObj$ ? ($DvtScrollbarBackground$$.$setAvailableWidth$(Number.MAX_VALUE), $DvtScrollbarBackground$$.$setAvailableHeight$(Number.MAX_VALUE), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_labelObj$), this.$_labelDims$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_labelObj$)) : this.$_labelDims$ = null;
      this.$_backgroundObj$ && ($DvtScrollbarBackground$$.$setAvailableWidth$($DvtScrollbarArrow$$), $DvtScrollbarBackground$$.$setAvailableHeight$($nodeHeight$$), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_backgroundObj$), this.$_backgroundObj$ instanceof $dvt$$1$$.$SimpleMarker$ || this.$_backgroundObj$ instanceof $dvt$$1$$.$ImageMarker$ ? ($DvtScrollbarEvent$$ = ($DvtAdfDiagramEditorManager$$ = this.$_backgroundObj$.$getStroke$()) ? $DvtAdfDiagramEditorManager$$.getWidth() / 
      2 : 0, $DvtAdfDiagramEditorManager$$ = this.$_backgroundObj$.$getCx$() - this.$_backgroundObj$.getWidth() / 2 - $DvtScrollbarEvent$$ + $DvtScrollbarArrow$$ / 2, $DvtScrollbarEvent$$ = this.$_backgroundObj$.$getCy$() - this.$_backgroundObj$.getHeight() / 2 - $DvtScrollbarEvent$$ + $nodeHeight$$ / 2, this.$_backgroundObj$.$setCenter$($DvtAdfDiagramEditorManager$$, $DvtScrollbarEvent$$, !0).$setSize$($DvtScrollbarArrow$$, $nodeHeight$$)) : ($DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$(this.$_backgroundObj$, 
      this), $DvtScrollbarEvent$$ = this.$_backgroundObj$.$getMatrix$().clone(), $DvtScrollbarEvent$$.translate(-$DvtAdfDiagramEditorManager$$.x, -$DvtAdfDiagramEditorManager$$.y), $DvtScrollbarEvent$$.scale(this.$_nodeWidth$ / $DvtAdfDiagramEditorManager$$.$w$, this.$_nodeHeight$ / $DvtAdfDiagramEditorManager$$.$h$), this.$_backgroundObj$.$setMatrix$($DvtScrollbarEvent$$)), this.$_backgroundMouseEventCatcher$.$setWidth$($DvtScrollbarArrow$$), this.$_backgroundMouseEventCatcher$.$setHeight$($nodeHeight$$));
      if (this.$_overlays$) {
        for ($DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < this.$_overlays$.length;$DvtAdfDiagramEditorManager$$++) {
          $DvtScrollbarEvent$$ = this.$_overlays$[$DvtAdfDiagramEditorManager$$].overlay, $DvtScrollbarBackground$$.$setAvailableWidth$(Number.MAX_VALUE), $DvtScrollbarBackground$$.$setAvailableHeight$(Number.MAX_VALUE), $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$), $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = this.$_overlays$[$DvtAdfDiagramEditorManager$$].position, $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = 
          $dvt$$1$$.$AfComponentFactory$.$getBounds$($DvtScrollbarEvent$$, this), $DvtAdfDiagramDragSource$$ = $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$.x * $DvtScrollbarArrow$$, $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ = $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$.y * $nodeHeight$$, $DvtAdfDiagramDragSource$$ -= .5 * $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$.$w$, 
          $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$ -= .5 * $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$.$h$, $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$ = $DvtScrollbarEvent$$.$getMatrix$().clone(), $bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$.translate($DvtAdfDiagramDragSource$$, $bUnknownHeight_ctDimsUpdated_defaultPadding_minFacetWidth_overlayPos_overlayY_verticalFacetHeight$$), 
          $DvtScrollbarEvent$$.$setMatrix$($bUnknownWidth_minFacetHeight_overlayBounds_overlayMat_sideFacetWidth$$);
        }
      }
      this.$_bStack$ && this.$setStack$(this.$_bStack$);
      this.$isContainer$() && this.$RefreshContainerBadge$();
      this.$_bPartialExpand$ && this.$setPartiallyExpanded$(this.$_bPartialExpand$);
      this.$addAccessibilityAttributes$();
      this.$RefreshSelectionEffect$();
      this.$AddDrawEffects$();
      this.$_layoutBounds$ = this.$CalcLayoutBounds$();
      this.$SetAlpha$(Math.min(this.$getAlpha$(), this.$GetMaxAlpha$()));
      $DvtScrollbar$$ && this.$TransitionDisclosure$($DvtScrollbar$$, this.$_bDisclosureChanged$, this.$_savedContentState$);
      this.$TransitionHiddenAncestor$(this.$_bHiddenAncestorChanged$ ? $DvtScrollbar$$ : null, !0);
      this.$GetDiagram$().$UpdateOverviewNode$(this, $DvtScrollbar$$);
      this.$_bHiddenAncestorChanged$ = this.$_bDisclosureChanged$ = !1;
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$TransitionContainerPadding$ = function $$dvt$$1$$$$AdfDiagramNode$$$$TransitionContainerPadding$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = 0, $deltaRight$$ = 0, $DvtScrollbarArrow$$ = 0, $DvtAdfDiagramEditorManager$$ = 0;
    $DvtScrollbarBackground$$ && $DvtScrollbar$$ ? ($DvtAdfDiagramDragSource$$ = "auto" === $DvtScrollbar$$.top ? Number.MAX_VALUE : $DvtScrollbar$$.top - $DvtScrollbarBackground$$.top, $deltaRight$$ = "auto" === $DvtScrollbar$$.right ? Number.MAX_VALUE : $DvtScrollbar$$.right - $DvtScrollbarBackground$$.right, $DvtScrollbarArrow$$ = "auto" === $DvtScrollbar$$.bottom ? Number.MAX_VALUE : $DvtScrollbar$$.bottom - $DvtScrollbarBackground$$.bottom, $DvtAdfDiagramEditorManager$$ = "auto" === $DvtScrollbar$$.left ? 
    Number.MAX_VALUE : $DvtScrollbar$$.left - $DvtScrollbarBackground$$.left) : $DvtScrollbar$$ ? ($DvtAdfDiagramDragSource$$ = "auto" === $DvtScrollbar$$.top ? Number.MAX_VALUE : $DvtScrollbar$$.top, $deltaRight$$ = "auto" === $DvtScrollbar$$.right ? Number.MAX_VALUE : $DvtScrollbar$$.right, $DvtScrollbarArrow$$ = "auto" === $DvtScrollbar$$.bottom ? Number.MAX_VALUE : $DvtScrollbar$$.bottom, $DvtAdfDiagramEditorManager$$ = "auto" === $DvtScrollbar$$.left ? Number.MAX_VALUE : $DvtScrollbar$$.left) : 
    $DvtScrollbarBackground$$ && ($DvtAdfDiagramDragSource$$ = -$DvtScrollbarBackground$$.top, $deltaRight$$ = -$DvtScrollbarBackground$$.right, $DvtScrollbarArrow$$ = -$DvtScrollbarBackground$$.bottom, $DvtAdfDiagramEditorManager$$ = -$DvtScrollbarBackground$$.left);
    this.$_clearContainerFacetTabStops$();
    var $defaultPadding$$1$$ = $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$, $facetsMaxHeight_sideFacetWidth$$1$$ = (this.$_containerLeftBounds$ ? this.$_containerLeftBounds$.$w$ : 0) + (this.$_containerRightBounds$ ? this.$_containerRightBounds$.$w$ : 0), $minHeight_padding$$3$$ = $DvtScrollbar$$ ? $DvtScrollbar$$ : {top:0, right:0, bottom:0, left:0}, $DvtAdfDiagramKeyboardHandler$$ = this.$_childNodePaneDims$.$w$ + ("auto" === $minHeight_padding$$3$$.left ? $defaultPadding$$1$$ : $minHeight_padding$$3$$.left) + 
    ("auto" === $minHeight_padding$$3$$.right ? $defaultPadding$$1$$ : $minHeight_padding$$3$$.right) + $facetsMaxHeight_sideFacetWidth$$1$$, $minHeight_padding$$3$$ = this.$_childNodePaneDims$.$h$ + ("auto" === $minHeight_padding$$3$$.top ? $defaultPadding$$1$$ : $minHeight_padding$$3$$.top) + ("auto" === $minHeight_padding$$3$$.bottom ? $defaultPadding$$1$$ : $minHeight_padding$$3$$.bottom), $DvtAdfDiagramNodeEndpoint$$ = this.$_containerTopObj$, $DvtAdfDiagramDropTarget$$ = this.$_containerTopBounds$, 
    $DvtItemListEvent$$ = this.$_containerBottomObj$, $DvtPaletteEventManager$$ = this.$_containerBottomBounds$, $DvtScrollbarThumb$$ = 0;
    if ((this.$_containerTopObj$ || this.$_containerBottomObj$) && ($deltaRight$$ || $DvtAdfDiagramEditorManager$$)) {
      var $DvtPaletteItem$$ = null, $DvtPaletteDefaults$$ = null, $DvtPaletteSelectionHandler$$ = 0;
      this.$_containerTopObj$ && (this.$_containerTopBounds$ = this.$_containerTopObj$ = null, $DvtAdfDiagramNodeEndpoint$$.getParent().removeChild($DvtAdfDiagramNodeEndpoint$$), $DvtPaletteSelectionHandler$$ = $deltaRight$$ === Number.MAX_VALUE || $DvtAdfDiagramEditorManager$$ === Number.MAX_VALUE ? Number.MAX_VALUE : this.$_containerTopAvailBounds$.$w$ + $DvtAdfDiagramEditorManager$$ + $deltaRight$$, $DvtPaletteItem$$ = this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerTopTemplate$, "top", 
      $DvtPaletteSelectionHandler$$, this.$_containerTopAvailBounds$.$h$, $DvtAdfDiagramKeyboardHandler$$, null));
      this.$_containerBottomObj$ && (this.$_containerBottomBounds$ = this.$_containerBottomObj$ = null, $DvtItemListEvent$$.getParent().removeChild($DvtItemListEvent$$), $DvtPaletteSelectionHandler$$ = $deltaRight$$ === Number.MAX_VALUE || $DvtAdfDiagramEditorManager$$ === Number.MAX_VALUE ? Number.MAX_VALUE : this.$_containerBottomAvailBounds$.$w$ + $DvtAdfDiagramEditorManager$$ + $deltaRight$$, $DvtPaletteDefaults$$ = this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerBottomTemplate$, "bottom", 
      $DvtPaletteSelectionHandler$$, this.$_containerBottomAvailBounds$.$h$, $DvtPaletteItem$$ && $DvtPaletteItem$$.$facetBounds$.$w$ > $DvtAdfDiagramKeyboardHandler$$ ? $DvtPaletteItem$$.$facetBounds$.$w$ : $DvtAdfDiagramKeyboardHandler$$, null));
      $DvtPaletteItem$$ && $DvtPaletteDefaults$$ && $DvtPaletteSelectionHandler$$ == Number.MAX_VALUE && $DvtPaletteDefaults$$.$facetBounds$.$w$ > $DvtPaletteItem$$.$facetBounds$.$w$ && $DvtPaletteItem$$.$facetBounds$.$w$ > $DvtAdfDiagramKeyboardHandler$$ && ($DvtPaletteItem$$.$facetObj$.getParent().removeChild($DvtPaletteItem$$.$facetObj$), $DvtPaletteItem$$.$facetObj$.$destroy$ && $DvtPaletteItem$$.$facetObj$.$destroy$(), $DvtPaletteItem$$ = this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerTopTemplate$, 
      "top", $DvtPaletteDefaults$$.$facetBounds$.$w$, this.$_containerTopAvailBounds$.$h$, null, null));
      $DvtPaletteItem$$ && (this.$_containerTopObj$ = $DvtPaletteItem$$.$facetObj$, this.$_containerTopAvailBounds$ = $DvtPaletteItem$$.$facetAvailBounds$, this.$_containerTopBounds$ = $DvtPaletteItem$$.$facetBounds$, $DvtScrollbarThumb$$ = this.$_containerTopBounds$.$h$ - $DvtAdfDiagramDropTarget$$.$h$, this.$_containerTopObj$.$setScaleX$($DvtAdfDiagramDropTarget$$.$w$ / this.$_containerTopBounds$.$w$), $DvtScrollbarEvent$$ && ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtAdfDiagramNodeEndpoint$$, 
      $DvtAdfDiagramNodeEndpoint$$.$getScaleX$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerTopObj$, this.$_containerTopObj$.$getScaleX$, this.$_containerTopObj$.$setScaleX$, $DvtAdfDiagramDropTarget$$), $DvtAdfDiagramNodeEndpoint$$.$destroy$ && $DvtAdfDiagramNodeEndpoint$$.$destroy$());
      $DvtPaletteDefaults$$ && (this.$_containerBottomObj$ = $DvtPaletteDefaults$$.$facetObj$, this.$_containerBottomAvailBounds$ = $DvtPaletteDefaults$$.$facetAvailBounds$, this.$_containerBottomBounds$ = $DvtPaletteDefaults$$.$facetBounds$, this.$_containerBottomObj$.$setScaleX$($DvtPaletteEventManager$$.$w$ / this.$_containerBottomBounds$.$w$), this.$_containerBottomObj$.$setTranslate$($DvtItemListEvent$$.$getTranslateX$(), $DvtItemListEvent$$.$getTranslateY$()), $DvtScrollbarEvent$$ && (($DvtAdfDiagramDropTarget$$ = 
      $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getScaleX$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBottomObj$, this.$_containerBottomObj$.$getScaleX$, this.$_containerBottomObj$.$setScaleX$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getTranslateX$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBottomObj$, 
      this.$_containerBottomObj$.$getTranslateX$, this.$_containerBottomObj$.$setTranslateX$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getTranslateY$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBottomObj$, this.$_containerBottomObj$.$getTranslateY$, this.$_containerBottomObj$.$setTranslateY$, $DvtAdfDiagramDropTarget$$)), $DvtItemListEvent$$.$destroy$ && $DvtItemListEvent$$.$destroy$());
    }
    $DvtItemListEvent$$ = this.$_containerLeftObj$;
    $DvtAdfDiagramDropTarget$$ = this.$_containerLeftBounds$;
    $DvtAdfDiagramNodeEndpoint$$ = this.$_containerRightObj$;
    $DvtPaletteEventManager$$ = this.$_containerRightBounds$;
    (this.$_containerLeftObj$ || this.$_containerRightObj$) && ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && ($DvtPaletteDefaults$$ = $DvtPaletteItem$$ = null, $DvtPaletteSelectionHandler$$ = 0, this.$_containerLeftObj$ && (this.$_containerLeftBounds$ = this.$_containerLeftObj$ = null, $DvtItemListEvent$$.getParent().removeChild($DvtItemListEvent$$), $DvtPaletteSelectionHandler$$ = $DvtAdfDiagramDragSource$$ === Number.MAX_VALUE || $DvtScrollbarArrow$$ === Number.MAX_VALUE ? Number.MAX_VALUE : 
    this.$_containerLeftAvailBounds$.$h$ + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$, $DvtPaletteItem$$ = this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerLeftTemplate$, "left", this.$_containerLeftAvailBounds$.$w$, $DvtPaletteSelectionHandler$$, null, $minHeight_padding$$3$$)), this.$_containerRightObj$ && ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && (this.$_containerRightBounds$ = this.$_containerRightObj$ = null, $DvtAdfDiagramNodeEndpoint$$.getParent().removeChild($DvtAdfDiagramNodeEndpoint$$), 
    $DvtPaletteSelectionHandler$$ = $DvtAdfDiagramDragSource$$ === Number.MAX_VALUE || $DvtScrollbarArrow$$ === Number.MAX_VALUE ? Number.MAX_VALUE : this.$_containerRightAvailBounds$.$h$ + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$, $DvtPaletteDefaults$$ = this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerRightTemplate$, "right", this.$_containerRightAvailBounds$.$w$, $DvtPaletteSelectionHandler$$, null, $DvtPaletteItem$$ && $DvtPaletteItem$$.$facetBounds$.$h$ > $minHeight_padding$$3$$ ? 
    $DvtPaletteItem$$.$facetBounds$.$h$ : $minHeight_padding$$3$$)), $DvtPaletteItem$$ && $DvtPaletteDefaults$$ && $DvtPaletteSelectionHandler$$ == Number.MAX_VALUE && $DvtPaletteDefaults$$.$facetBounds$.$h$ > $DvtPaletteItem$$.$facetBounds$.$h$ && $DvtPaletteItem$$.$facetBounds$.$h$ > $minHeight_padding$$3$$ && ($DvtPaletteItem$$.$facetObj$.getParent().removeChild($DvtPaletteItem$$.$facetObj$), $DvtPaletteItem$$.$facetObj$.$destroy$ && $DvtPaletteItem$$.$facetObj$.$destroy$(), $DvtPaletteItem$$ = 
    this.$FullRenderContainerFacet$(this.$_nodeDef$.$_containerLeftTemplate$, "left", this.$_containerLeftAvailBounds$.$w$, $DvtPaletteDefaults$$.$facetBounds$.$h$, null, null)), $DvtPaletteItem$$ && (this.$_containerLeftObj$ = $DvtPaletteItem$$.$facetObj$, this.$_containerLeftAvailBounds$ = $DvtPaletteItem$$.$facetAvailBounds$, this.$_containerLeftBounds$ = $DvtPaletteItem$$.$facetBounds$, this.$_containerLeftObj$.$setScaleY$($DvtAdfDiagramDropTarget$$.$h$ / this.$_containerLeftBounds$.$h$), this.$_containerLeftObj$.$setTranslate$($DvtItemListEvent$$.$getTranslateX$(), 
    $DvtItemListEvent$$.$getTranslateY$()), $DvtScrollbarEvent$$ && (($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getScaleY$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerLeftObj$, this.$_containerLeftObj$.$getScaleY$, this.$_containerLeftObj$.$setScaleY$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getTranslateX$)) && 
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerLeftObj$, this.$_containerLeftObj$.$getTranslateX$, this.$_containerLeftObj$.$setTranslateX$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtItemListEvent$$, $DvtItemListEvent$$.$getTranslateY$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerLeftObj$, this.$_containerLeftObj$.$getTranslateY$, this.$_containerLeftObj$.$setTranslateY$, 
    $DvtAdfDiagramDropTarget$$)), $DvtItemListEvent$$.$destroy$ && $DvtItemListEvent$$.$destroy$()), $DvtPaletteDefaults$$ && (this.$_containerRightObj$ = $DvtPaletteDefaults$$.$facetObj$, this.$_containerRightAvailBounds$ = $DvtPaletteDefaults$$.$facetAvailBounds$, this.$_containerRightBounds$ = $DvtPaletteDefaults$$.$facetBounds$, this.$_containerRightObj$.$setScaleY$($DvtPaletteEventManager$$.$h$ / this.$_containerRightBounds$.$h$), this.$_containerRightObj$.$setTranslate$($DvtAdfDiagramNodeEndpoint$$.$getTranslateX$(), 
    $DvtAdfDiagramNodeEndpoint$$.$getTranslateY$()), $DvtScrollbarEvent$$ && (($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramNodeEndpoint$$.$getScaleY$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerRightObj$, this.$_containerRightObj$.$getScaleY$, this.$_containerRightObj$.$setScaleY$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtAdfDiagramNodeEndpoint$$, 
    $DvtAdfDiagramNodeEndpoint$$.$getTranslateX$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerRightObj$, this.$_containerRightObj$.$getTranslateX$, this.$_containerRightObj$.$setTranslateX$, $DvtAdfDiagramDropTarget$$), ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarEvent$$.$removeProp$($DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramNodeEndpoint$$.$getTranslateY$)) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerRightObj$, 
    this.$_containerRightObj$.$getTranslateY$, this.$_containerRightObj$.$setTranslateY$, $DvtAdfDiagramDropTarget$$)), $DvtAdfDiagramNodeEndpoint$$.$destroy$ && $DvtAdfDiagramNodeEndpoint$$.$destroy$()));
    this.$_updateNodeTabStops$();
    1 < this.$_tabStopsNodeArray$.length && this.$_tabStopsNodeArray$.push(this);
    $DvtItemListEvent$$ = Math.max(this.$_containerTopBounds$ ? this.$_containerTopBounds$.$w$ : 0, this.$_containerBottomBounds$ ? this.$_containerBottomBounds$.$w$ : 0);
    $deltaRight$$ === Number.MAX_VALUE && $DvtAdfDiagramEditorManager$$ === Number.MAX_VALUE ? ($DvtScrollbar$$.left = $DvtScrollbar$$.right = $DvtItemListEvent$$ > $DvtAdfDiagramKeyboardHandler$$ ? ($DvtItemListEvent$$ - this.$_childNodePaneDims$.$w$ - $facetsMaxHeight_sideFacetWidth$$1$$) / 2 : $defaultPadding$$1$$, $deltaRight$$ = $DvtScrollbar$$.right - $DvtScrollbarBackground$$.right, $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.left - $DvtScrollbarBackground$$.left) : $deltaRight$$ === Number.MAX_VALUE ? 
    ($DvtScrollbar$$.right = $DvtItemListEvent$$ > $DvtAdfDiagramKeyboardHandler$$ ? $DvtItemListEvent$$ - this.$_childNodePaneDims$.$w$ - $DvtScrollbar$$.left - $facetsMaxHeight_sideFacetWidth$$1$$ : $defaultPadding$$1$$, $deltaRight$$ = $DvtScrollbar$$.right - $DvtScrollbarBackground$$.right) : $DvtAdfDiagramEditorManager$$ === Number.MAX_VALUE && ($DvtScrollbar$$.left = $DvtItemListEvent$$ > $DvtAdfDiagramKeyboardHandler$$ ? $DvtItemListEvent$$ - this.$_childNodePaneDims$.$w$ - $DvtScrollbar$$.right - 
    $facetsMaxHeight_sideFacetWidth$$1$$ : $defaultPadding$$1$$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.left - $DvtScrollbarBackground$$.left);
    $facetsMaxHeight_sideFacetWidth$$1$$ = Math.max(this.$_containerLeftBounds$ ? this.$_containerLeftBounds$.$h$ : 0, this.$_containerRightBounds$ ? this.$_containerRightBounds$.$h$ : 0);
    $DvtAdfDiagramDragSource$$ === Number.MAX_VALUE && $DvtScrollbarArrow$$ === Number.MAX_VALUE ? ($DvtScrollbar$$.top = $DvtScrollbar$$.bottom = $facetsMaxHeight_sideFacetWidth$$1$$ > $minHeight_padding$$3$$ ? ($facetsMaxHeight_sideFacetWidth$$1$$ - this.$_childNodePaneDims$.$h$) / 2 : $defaultPadding$$1$$, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.top - $DvtScrollbarBackground$$.top, $DvtScrollbarArrow$$ = $DvtScrollbar$$.bottom - $DvtScrollbarBackground$$.bottom) : $DvtAdfDiagramDragSource$$ === 
    Number.MAX_VALUE ? ($DvtScrollbar$$.top = $facetsMaxHeight_sideFacetWidth$$1$$ > $minHeight_padding$$3$$ ? $facetsMaxHeight_sideFacetWidth$$1$$ - this.$_childNodePaneDims$.$h$ - $DvtScrollbar$$.bottom : $defaultPadding$$1$$, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.top - $DvtScrollbarBackground$$.top) : $DvtScrollbarArrow$$ === Number.MAX_VALUE && ($DvtScrollbar$$.bottom = $facetsMaxHeight_sideFacetWidth$$1$$ > $minHeight_padding$$3$$ ? $facetsMaxHeight_sideFacetWidth$$1$$ - this.$_childNodePaneDims$.$h$ - 
    $DvtScrollbar$$.top : $defaultPadding$$1$$, $DvtScrollbarArrow$$ = $DvtScrollbar$$.bottom - $DvtScrollbarBackground$$.$bottoms$);
    var $DvtAdfDiagramJsonUtils$$, $DvtAdfDiagramNodeExpandHandler$$, $DvtAdfDiagramLinkEndpoint$$;
    if (this.$_containerChrome$) {
      if ($deltaRight$$ || $DvtAdfDiagramEditorManager$$) {
        $DvtAdfDiagramJsonUtils$$ = this.$_containerChrome$.getWidth() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$;
      }
      if ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$ || $DvtScrollbarThumb$$) {
        $DvtAdfDiagramNodeExpandHandler$$ = this.$_containerChrome$.getHeight() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$ + $DvtScrollbarThumb$$;
      }
      if ($DvtAdfDiagramJsonUtils$$ || $DvtAdfDiagramNodeExpandHandler$$) {
        $DvtAdfDiagramLinkEndpoint$$ = this.$_getContainerChromeClipPathDef$(), $DvtAdfDiagramLinkEndpoint$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = $DvtAdfDiagramJsonUtils$$ ? $DvtAdfDiagramJsonUtils$$ : $DvtAdfDiagramLinkEndpoint$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$], $DvtAdfDiagramLinkEndpoint$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = $DvtAdfDiagramNodeExpandHandler$$ ? $DvtAdfDiagramNodeExpandHandler$$ : $DvtAdfDiagramLinkEndpoint$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$]
        ;
      }
    }
    $DvtScrollbarEvent$$ ? (this.$_containerChrome$ && ($DvtAdfDiagramJsonUtils$$ && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getWidth, this.$_containerChrome$.$setWidth$, $DvtAdfDiagramJsonUtils$$), $DvtAdfDiagramNodeExpandHandler$$ && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getHeight, this.$_containerChrome$.$setHeight$, $DvtAdfDiagramNodeExpandHandler$$), 
    $DvtAdfDiagramLinkEndpoint$$ && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER_ARRAY$, this, this.$_getContainerChromeClipPathDef$, this.$_setContainerChromeClipPath$, $DvtAdfDiagramLinkEndpoint$$)), this.$_containerLeftObj$ && (this.$_setContainerFacetScale$($DvtScrollbarEvent$$, this.$_containerLeftObj$, 1, 1), $DvtScrollbarThumb$$ && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerLeftObj$, this.$_containerLeftObj$.$getTranslateY$, this.$_containerLeftObj$.$setTranslateY$, 
    this.$_containerLeftObj$.$getTranslateY$() + $DvtScrollbarThumb$$)), this.$_containerRightObj$ && (this.$_setContainerFacetScale$($DvtScrollbarEvent$$, this.$_containerRightObj$, 1, 1), ($deltaRight$$ || $DvtAdfDiagramEditorManager$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerRightObj$, this.$_containerRightObj$.$getTranslateX$, this.$_containerRightObj$.$setTranslateX$, this.$_containerRightObj$.$getTranslateX$() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$), 
    $DvtScrollbarThumb$$ && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerRightObj$, this.$_containerRightObj$.$getTranslateY$, this.$_containerRightObj$.$setTranslateY$, this.$_containerRightObj$.$getTranslateY$() + $DvtScrollbarThumb$$)), this.$_containerTopObj$ && this.$_setContainerFacetScale$($DvtScrollbarEvent$$, this.$_containerTopObj$, 1, 1), this.$_containerBottomObj$ && (this.$_setContainerFacetScale$($DvtScrollbarEvent$$, this.$_containerBottomObj$, 
    1, 1), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$ || $DvtScrollbarThumb$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBottomObj$, this.$_containerBottomObj$.$getTranslateY$, this.$_containerBottomObj$.$setTranslateY$, this.$_containerBottomObj$.$getTranslateY$() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$ + $DvtScrollbarThumb$$)), this.$_childNodePane$ && ($DvtScrollbar$$ ? ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
    this.$_childNodePane$, this.$_childNodePane$.$getTranslateX$, this.$_childNodePane$.$setTranslateX$, $DvtScrollbar$$.left + this.$getContainerLeftWidth$() - this.$_childNodePaneDims$.x), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getTranslateY$, this.$_childNodePane$.$setTranslateY$, $DvtScrollbar$$.top + this.$getContainerTopHeight$() - this.$_childNodePaneDims$.y)) : ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
    this.$_childNodePane$, this.$_childNodePane$.$getTranslateX$, this.$_childNodePane$.$setTranslateX$, this.$getContainerLeftWidth$() - this.$_childNodePaneDims$.x), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getTranslateY$, this.$_childNodePane$.$setTranslateY$, this.$getContainerTopHeight$() - this.$_childNodePaneDims$.y))), this.$_partialExpandIndicator$ && (($DvtAdfDiagramEditorManager$$ || $deltaRight$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
    this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateX$, this.$_partialExpandIndicator$.$setTranslateX$, this.$_partialExpandIndicator$.$getTranslateX$() + .5 * ($DvtAdfDiagramEditorManager$$ + $deltaRight$$)), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateY$, this.$_partialExpandIndicator$.$setTranslateY$, this.$_partialExpandIndicator$.$getTranslateY$() + 
    ($DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$))), this.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect && (($deltaRight$$ || $DvtAdfDiagramEditorManager$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.getWidth, this.$_focusUnderlay$.$setWidth$, this.$_focusUnderlay$.getWidth() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
    this.$_focusUnderlay$, this.$_focusUnderlay$.getHeight, this.$_focusUnderlay$.$setHeight$, this.$_focusUnderlay$.getHeight() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$)), this.$_nodeUnderlay$ && (($deltaRight$$ || $DvtAdfDiagramEditorManager$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.getWidth, this.$_nodeUnderlay$.$setWidth$, this.$_nodeUnderlay$.getWidth() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$), ($DvtAdfDiagramDragSource$$ || 
    $DvtScrollbarArrow$$) && $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.getHeight, this.$_nodeUnderlay$.$setHeight$, this.$_nodeUnderlay$.getHeight() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$))) : (this.$_containerChrome$ && ($DvtAdfDiagramJsonUtils$$ && this.$_containerChrome$.$setWidth$($DvtAdfDiagramJsonUtils$$), $DvtAdfDiagramNodeExpandHandler$$ && this.$_containerChrome$.$setHeight$($DvtAdfDiagramNodeExpandHandler$$), 
    $DvtAdfDiagramLinkEndpoint$$ && this.$_setContainerChromeClipPath$($DvtAdfDiagramLinkEndpoint$$)), this.$_containerLeftObj$ && (this.$_setContainerFacetScale$(null, this.$_containerLeftObj$, 1, 1), $DvtScrollbarThumb$$ && this.$_containerLeftObj$.$setTranslateY$(this.$_containerLeftObj$.$getTranslateY$() + $DvtScrollbarThumb$$)), this.$_containerRightObj$ && (this.$_setContainerFacetScale$(null, this.$_containerRightObj$, 1, 1), ($deltaRight$$ || $DvtAdfDiagramEditorManager$$) && this.$_containerRightObj$.$setTranslateX$(this.$_containerRightObj$.$getTranslateX$() + 
    $deltaRight$$ + $DvtAdfDiagramEditorManager$$), $DvtScrollbarThumb$$ && this.$_containerRightObj$.$setTranslateY$(this.$_containerRightObj$.$getTranslateY$() + $DvtScrollbarThumb$$)), this.$_containerTopObj$ && this.$_setContainerFacetScale$(null, this.$_containerTopObj$, 1, 1), this.$_containerBottomObj$ && (this.$_setContainerFacetScale$(null, this.$_containerBottomObj$, 1, 1), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$ || $DvtScrollbarThumb$$) && this.$_containerBottomObj$.$setTranslateY$(this.$_containerBottomObj$.$getTranslateY$() + 
    $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$ + $DvtScrollbarThumb$$)), this.$_childNodePane$ && ($DvtScrollbar$$ ? this.$_childNodePane$.$setTranslate$($DvtScrollbar$$.left + this.$getContainerLeftWidth$() - this.$_childNodePaneDims$.x, $DvtScrollbar$$.top + this.$getContainerTopHeight$() - this.$_childNodePaneDims$.y) : this.$_childNodePane$.$setTranslate$(this.$getContainerLeftWidth$() - this.$_childNodePaneDims$.x, this.$getContainerTopHeight$() - this.$_childNodePaneDims$.y)), this.$_partialExpandIndicator$ && 
    (($DvtAdfDiagramEditorManager$$ || $deltaRight$$) && this.$_partialExpandIndicator$.$setTranslateX$(this.$_partialExpandIndicator$.$getTranslateX$() + .5 * ($DvtAdfDiagramEditorManager$$ + $deltaRight$$)), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && this.$_partialExpandIndicator$.$setTranslateY$(this.$_partialExpandIndicator$.$getTranslateY$() + ($DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$))), this.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect && (($deltaRight$$ || 
    $DvtAdfDiagramEditorManager$$) && this.$_focusUnderlay$.$setWidth$(this.$_focusUnderlay$.getWidth() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$), ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && this.$_focusUnderlay$.$setHeight$(this.$_focusUnderlay$.getHeight() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$)), this.$_nodeUnderlay$ && (($deltaRight$$ || $DvtAdfDiagramEditorManager$$) && this.$_nodeUnderlay$.$setWidth$(this.$_nodeUnderlay$.getWidth() + $deltaRight$$ + $DvtAdfDiagramEditorManager$$), 
    ($DvtAdfDiagramDragSource$$ || $DvtScrollbarArrow$$) && this.$_nodeUnderlay$.$setHeight$(this.$_nodeUnderlay$.getHeight() + $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$)));
    this.$_nodeWidth$ += $DvtAdfDiagramEditorManager$$ + $deltaRight$$;
    this.$_nodeHeight$ += $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$;
    this.$_layoutBounds$ && (this.$_layoutBounds$.$w$ += $DvtAdfDiagramEditorManager$$ + $deltaRight$$, this.$_layoutBounds$.$h$ += $DvtAdfDiagramDragSource$$ + $DvtScrollbarArrow$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$TransitionDisclosure$ = function $$dvt$$1$$$$AdfDiagramNode$$$$TransitionDisclosure$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtAdfDiagramDragSource$$ = this;
      $dvt$$1$$.$Playable$.$appendOnInit$($DvtScrollbarBackground$$, function() {
        $DvtAdfDiagramDragSource$$.$RestoreContentState$($DvtAdfDiagramDragSource$$.$_savedContentState$);
      });
      $DvtScrollbar$$ && this.$_nodeUnderlay$ && (this.$_bPreventHoverEffect$ = !0, $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, function() {
        $DvtAdfDiagramDragSource$$.$_bPreventHoverEffect$ = !1;
      }));
      if ($DvtScrollbar$$) {
        if (this.$isDisclosed$()) {
          $DvtScrollbar$$ = this.$_getContentContainer$().$getChildIndex$(this.$_afRootPlaceholder$);
          this.$_getContentContainer$().$removeChildAt$($DvtScrollbar$$);
          this.$_getContentContainer$().$addChildAt$($DvtScrollbarEvent$$.$_afRoot$, $DvtScrollbar$$);
          $DvtScrollbarEvent$$.$_containerUnderlay$ && this.$_getContentContainer$().$addChildAt$($DvtScrollbarEvent$$.$_containerUnderlay$, 0);
          var $sx$$1$$ = $DvtScrollbarEvent$$.$_oldNodeWidth$ / this.$_nodeWidth$, $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$_oldNodeHeight$ / this.$_nodeHeight$;
          $dvt$$1$$.$Playable$.$appendOnInit$($DvtScrollbarBackground$$, function() {
            $DvtAdfDiagramDragSource$$.$_containerChrome$.$setAlpha$(0);
            $DvtAdfDiagramDragSource$$.$_childNodePane$.$setScale$($sx$$1$$, $DvtScrollbarArrow$$);
            if ($DvtAdfDiagramDragSource$$.$_containerLeftObj$) {
              $DvtAdfDiagramDragSource$$.$_setContainerFacetScale$(null, $DvtAdfDiagramDragSource$$.$_containerLeftObj$, $DvtAdfDiagramDragSource$$.$_containerLeftObj$.$getScaleX$() * $sx$$1$$, $DvtAdfDiagramDragSource$$.$_containerLeftObj$.$getScaleY$() * $DvtScrollbarArrow$$);
              var $dvt$$1$$ = $DvtAdfDiagramDragSource$$.$_containerLeftObj$.$getTranslateX$() * $sx$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$ = $DvtAdfDiagramDragSource$$.$_containerLeftObj$.$getTranslateY$() * $DvtScrollbarArrow$$;
              $DvtAdfDiagramDragSource$$.$_setContainerFacetTranslate$(null, $DvtAdfDiagramDragSource$$.$_containerLeftObj$, $dvt$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$);
            }
            $DvtAdfDiagramDragSource$$.$_containerRightObj$ && ($DvtAdfDiagramDragSource$$.$_setContainerFacetScale$(null, $DvtAdfDiagramDragSource$$.$_containerRightObj$, $DvtAdfDiagramDragSource$$.$_containerRightObj$.$getScaleX$() * $sx$$1$$, $DvtAdfDiagramDragSource$$.$_containerRightObj$.$getScaleY$() * $DvtScrollbarArrow$$), $dvt$$1$$ = $DvtAdfDiagramDragSource$$.$_containerRightObj$.$getTranslateX$() * $sx$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$ = $DvtAdfDiagramDragSource$$.$_containerRightObj$.$getTranslateY$() * 
            $DvtScrollbarArrow$$, $DvtAdfDiagramDragSource$$.$_setContainerFacetTranslate$(null, $DvtAdfDiagramDragSource$$.$_containerRightObj$, $dvt$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$));
            $DvtAdfDiagramDragSource$$.$_containerTopObj$ && ($DvtAdfDiagramDragSource$$.$_setContainerFacetScale$(null, $DvtAdfDiagramDragSource$$.$_containerTopObj$, $DvtAdfDiagramDragSource$$.$_containerTopObj$.$getScaleX$() * $sx$$1$$, $DvtAdfDiagramDragSource$$.$_containerTopObj$.$getScaleY$() * $DvtScrollbarArrow$$), $dvt$$1$$ = $DvtAdfDiagramDragSource$$.$_containerTopObj$.$getTranslateX$() * $sx$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$ = $DvtAdfDiagramDragSource$$.$_containerTopObj$.$getTranslateY$() * 
            $DvtScrollbarArrow$$, $DvtAdfDiagramDragSource$$.$_setContainerFacetTranslate$(null, $DvtAdfDiagramDragSource$$.$_containerTopObj$, $dvt$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$));
            $DvtAdfDiagramDragSource$$.$_containerBottomObj$ && ($DvtAdfDiagramDragSource$$.$_setContainerFacetScale$(null, $DvtAdfDiagramDragSource$$.$_containerBottomObj$, $DvtAdfDiagramDragSource$$.$_containerBottomObj$.$getScaleX$() * $sx$$1$$, $DvtAdfDiagramDragSource$$.$_containerBottomObj$.$getScaleY$() * $DvtScrollbarArrow$$), $dvt$$1$$ = $DvtAdfDiagramDragSource$$.$_containerBottomObj$.$getTranslateX$() * $sx$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$ = $DvtAdfDiagramDragSource$$.$_containerBottomObj$.$getTranslateY$() * 
            $DvtScrollbarArrow$$, $DvtAdfDiagramDragSource$$.$_setContainerFacetTranslate$(null, $DvtAdfDiagramDragSource$$.$_containerBottomObj$, $dvt$$1$$, $focusUnderlayWidth_nodeUnderlayWidth$$));
          });
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getWidth, this.$_containerChrome$.$setWidth$, this.$_nodeWidth$);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getHeight, this.$_containerChrome$.$setHeight$, this.$_nodeHeight$);
          $DvtScrollbar$$ = this.$_getContainerChromeClipPathDef$();
          $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = this.$_nodeWidth$;
          $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = this.$_nodeHeight$;
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER_ARRAY$, this, this.$_getContainerChromeClipPathDef$, this.$_setContainerChromeClipPath$, $DvtScrollbar$$);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.$getAlpha$, this.$_containerChrome$.$setAlpha$, 1);
          this.$_containerLeftObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerLeftObj$, 1, 1), this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, this.$_containerLeftObj$, this.$_containerLeftObj$.$getTranslateX$(), this.$_containerLeftObj$.$getTranslateY$()));
          this.$_containerRightObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerRightObj$, 1, 1), this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, this.$_containerRightObj$, this.$_containerRightObj$.$getTranslateX$(), this.$_containerRightObj$.$getTranslateY$()));
          this.$_containerTopObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerTopObj$, 1, 1), this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, this.$_containerTopObj$, this.$_containerTopObj$.$getTranslateX$(), this.$_containerTopObj$.$getTranslateY$()));
          this.$_containerBottomObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerBottomObj$, 1, 1), this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, this.$_containerBottomObj$, this.$_containerBottomObj$.$getTranslateX$(), this.$_containerBottomObj$.$getTranslateY$()));
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getScaleX$, this.$_childNodePane$.$setScaleX$, 1);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getScaleY$, this.$_childNodePane$.$setScaleY$, 1);
          $DvtScrollbarEvent$$.$_afRoot$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$.$_afRoot$, $DvtScrollbarEvent$$.$_afRoot$.$getAlpha$, $DvtScrollbarEvent$$.$_afRoot$.$setAlpha$, 0);
          $DvtScrollbarEvent$$.$_containerUnderlay$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$.$_containerUnderlay$, $DvtScrollbarEvent$$.$_containerUnderlay$.$getAlpha$, $DvtScrollbarEvent$$.$_containerUnderlay$.$setAlpha$, 0);
          $DvtScrollbar$$ = function $$DvtScrollbar$$$() {
            $DvtAdfDiagramDragSource$$.$DestroyUndisclosedContent$($DvtScrollbarEvent$$);
          };
        } else {
          this.$_stackUnderlay$ ? this.$_getContentContainer$().$addChildAt$($DvtScrollbarEvent$$.$_containerChrome$, 1) : this.$_getContentContainer$().$addChildAt$($DvtScrollbarEvent$$.$_containerChrome$, 0);
          this.$addChild$(this.$_childNodePane$);
          $sx$$1$$ = this.$_nodeWidth$ / $DvtScrollbarEvent$$.$_oldNodeWidth$;
          $DvtScrollbarArrow$$ = this.$_nodeHeight$ / $DvtScrollbarEvent$$.$_oldNodeHeight$;
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$.$_containerChrome$, $DvtScrollbarEvent$$.$_containerChrome$.getWidth, $DvtScrollbarEvent$$.$_containerChrome$.$setWidth$, this.$_nodeWidth$);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$.$_containerChrome$, $DvtScrollbarEvent$$.$_containerChrome$.getHeight, $DvtScrollbarEvent$$.$_containerChrome$.$setHeight$, this.$_nodeHeight$);
          $DvtScrollbarEvent$$.$_containerChrome$ && ($DvtScrollbar$$ = this.$_getContainerChromeClipPathDef$.call($DvtScrollbarEvent$$), $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = this.$_nodeWidth$, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = this.$_nodeHeight$, $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER_ARRAY$, $DvtScrollbarEvent$$, this.$_getContainerChromeClipPathDef$, this.$_setContainerChromeClipPath$, 
          $DvtScrollbar$$));
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$.$_containerChrome$, $DvtScrollbarEvent$$.$_containerChrome$.$getAlpha$, $DvtScrollbarEvent$$.$_containerChrome$.$setAlpha$, 0);
          if ($DvtScrollbarEvent$$.$_containerLeftObj$) {
            this.$_setContainerFacetScale$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerLeftObj$, $sx$$1$$, $DvtScrollbarArrow$$);
            $DvtScrollbar$$ = $DvtScrollbarEvent$$.$_containerLeftObj$.$getTranslateX$() * $sx$$1$$;
            var $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.$_containerLeftObj$.$getTranslateY$() * $DvtScrollbarArrow$$;
            this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerLeftObj$, $DvtScrollbar$$, $DvtAdfDiagramEditorManager$$);
          }
          $DvtScrollbarEvent$$.$_containerRightObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerRightObj$, $sx$$1$$, $DvtScrollbarArrow$$), $DvtScrollbar$$ = $DvtScrollbarEvent$$.$_containerRightObj$.$getTranslateX$() * $sx$$1$$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.$_containerRightObj$.$getTranslateY$() * $DvtScrollbarArrow$$, this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerRightObj$, 
          $DvtScrollbar$$, $DvtAdfDiagramEditorManager$$));
          $DvtScrollbarEvent$$.$_containerTopObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerTopObj$, $sx$$1$$, $DvtScrollbarArrow$$), $DvtScrollbar$$ = $DvtScrollbarEvent$$.$_containerTopObj$.$getTranslateX$() * $sx$$1$$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.$_containerTopObj$.$getTranslateY$() * $DvtScrollbarArrow$$, this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerTopObj$, $DvtScrollbar$$, 
          $DvtAdfDiagramEditorManager$$));
          $DvtScrollbarEvent$$.$_containerBottomObj$ && (this.$_setContainerFacetScale$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerBottomObj$, $sx$$1$$, $DvtScrollbarArrow$$), $DvtScrollbar$$ = $DvtScrollbarEvent$$.$_containerBottomObj$.$getTranslateX$() * $sx$$1$$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.$_containerBottomObj$.$getTranslateY$() * $DvtScrollbarArrow$$, this.$_setContainerFacetTranslate$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$.$_containerBottomObj$, 
          $DvtScrollbar$$, $DvtAdfDiagramEditorManager$$));
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getScaleX$, this.$_childNodePane$.$setScaleX$, $sx$$1$$);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getScaleY$, this.$_childNodePane$.$setScaleY$, $DvtScrollbarArrow$$);
          $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getAlpha$, this.$_childNodePane$.$setAlpha$, 0);
          this.$_afRoot$ && (this.$_afRoot$.$setAlpha$(0), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_afRoot$, this.$_afRoot$.$getAlpha$, this.$_afRoot$.$setAlpha$, 1));
          this.$_containerUnderlay$ && (this.$_afRoot$.$setAlpha$(0), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerUnderlay$, this.$_containerUnderlay$.$getAlpha$, this.$_containerUnderlay$.$setAlpha$, 1));
          $DvtScrollbar$$ = function $$DvtScrollbar$$$() {
            $DvtAdfDiagramDragSource$$.$DestroyDisclosedContent$($DvtScrollbarEvent$$);
            $DvtAdfDiagramDragSource$$.$_childNodePane$.$setAlpha$(1);
            $DvtAdfDiagramDragSource$$.$_childNodePane$.$setScale$(1, 1);
          };
        }
        $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, $DvtScrollbar$$);
      } else {
        this.$_containerChrome$ && (this.$_nodeWidth$ != $DvtScrollbarEvent$$.$_oldNodeWidth$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getWidth, this.$_containerChrome$.$setWidth$, this.$_nodeWidth$), this.$_nodeHeight$ != $DvtScrollbarEvent$$.$_oldNodeHeight$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getHeight, this.$_containerChrome$.$setHeight$, 
        this.$_nodeHeight$), this.$_nodeWidth$ != $DvtScrollbarEvent$$.$_oldNodeWidth$ || this.$_nodeHeight$ != $DvtScrollbarEvent$$.$_oldNodeHeight$) && ($DvtScrollbar$$ = this.$_getContainerChromeClipPathDef$(), $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = this.$_nodeWidth$, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = this.$_nodeHeight$, $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER_ARRAY$, this, this.$_getContainerChromeClipPathDef$, 
        this.$_setContainerChromeClipPath$, $DvtScrollbar$$)), this.$_containerLeftObj$ && this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerLeftObj$, 1, 1), this.$_containerRightObj$ && this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerRightObj$, 1, 1), this.$_containerTopObj$ && this.$_setContainerFacetScale$($DvtScrollbarBackground$$, this.$_containerTopObj$, 1, 1), this.$_containerBottomObj$ && this.$_setContainerFacetScale$($DvtScrollbarBackground$$, 
        this.$_containerBottomObj$, 1, 1);
      }
      this.$_containerBadge$ && ($DvtScrollbar$$ = this.$_containerBadge$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = this.$_containerBadge$.$getTranslateY$(), $DvtScrollbar$$ != $DvtScrollbarEvent$$.$_oldContainerBadgeX$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getTranslateX$, this.$_containerBadge$.$setTranslateX$, $DvtScrollbar$$), $DvtAdfDiagramEditorManager$$ != $DvtScrollbarEvent$$.$_oldContainerBadgeY$ && 
      $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getTranslateY$, this.$_containerBadge$.$setTranslateY$, $DvtAdfDiagramEditorManager$$));
      this.$_partialExpandIndicator$ && ($DvtScrollbar$$ = this.$_partialExpandIndicator$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = this.$_partialExpandIndicator$.$getTranslateY$(), $DvtScrollbar$$ != $DvtScrollbarEvent$$.$_oldPartialExpandIndicatorX$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateX$, this.$_partialExpandIndicator$.$setTranslateX$, $DvtScrollbar$$), $DvtAdfDiagramEditorManager$$ != 
      $DvtScrollbarEvent$$.$_oldPartialExpandIndicatorY$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateY$, this.$_partialExpandIndicator$.$setTranslateY$, $DvtAdfDiagramEditorManager$$));
      if (this.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect) {
        $DvtScrollbar$$ = this.$_focusUnderlay$.$getX$();
        var $DvtAdfDiagramEditorManager$$ = this.$_focusUnderlay$.$getY$(), $focusUnderlayWidth_nodeUnderlayWidth$$ = this.$_focusUnderlay$.getWidth(), $focusUnderlayHeight_nodeUnderlayHeight$$ = this.$_focusUnderlay$.getHeight();
        $DvtScrollbar$$ != $DvtScrollbarEvent$$.$_oldFocusUnderlayX$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.$getX$, this.$_focusUnderlay$.$setX$, $DvtScrollbar$$);
        $DvtAdfDiagramEditorManager$$ != $DvtScrollbarEvent$$.$_oldFocusUnderlayY$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.$getY$, this.$_focusUnderlay$.$setY$, $DvtAdfDiagramEditorManager$$);
        $focusUnderlayWidth_nodeUnderlayWidth$$ != $DvtScrollbarEvent$$.$_oldFocusUnderlayWidth$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.getWidth, this.$_focusUnderlay$.$setWidth$, $focusUnderlayWidth_nodeUnderlayWidth$$);
        $focusUnderlayHeight_nodeUnderlayHeight$$ != $DvtScrollbarEvent$$.$_oldFocusUnderlayHeight$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.getHeight, this.$_focusUnderlay$.$setHeight$, $focusUnderlayHeight_nodeUnderlayHeight$$);
      }
      this.$_nodeUnderlay$ && ($DvtScrollbar$$ = this.$_nodeUnderlay$.$getX$(), $DvtAdfDiagramEditorManager$$ = this.$_nodeUnderlay$.$getY$(), $focusUnderlayWidth_nodeUnderlayWidth$$ = this.$_nodeUnderlay$.getWidth(), $focusUnderlayHeight_nodeUnderlayHeight$$ = this.$_nodeUnderlay$.getHeight(), $DvtScrollbar$$ != $DvtScrollbarEvent$$.$_oldNodeUnderlayX$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getX$, this.$_nodeUnderlay$.$setX$, 
      $DvtScrollbar$$), $DvtAdfDiagramEditorManager$$ != $DvtScrollbarEvent$$.$_oldNodeUnderlayY$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getY$, this.$_nodeUnderlay$.$setY$, $DvtAdfDiagramEditorManager$$), $focusUnderlayWidth_nodeUnderlayWidth$$ != $DvtScrollbarEvent$$.$_oldNodeUnderlayWidth$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.getWidth, 
      this.$_nodeUnderlay$.$setWidth$, $focusUnderlayWidth_nodeUnderlayWidth$$), $focusUnderlayHeight_nodeUnderlayHeight$$ != $DvtScrollbarEvent$$.$_oldNodeUnderlayHeight$ && $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.getHeight, this.$_nodeUnderlay$.$setHeight$, $focusUnderlayHeight_nodeUnderlayHeight$$));
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$TransitionHiddenAncestor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$TransitionHiddenAncestor$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (!$DvtScrollbar$$ || this.$_bHiddenAncestor$) {
      var $DvtScrollbarEvent$$ = this.$_bHiddenAncestor$ ? 0 : 1, $DvtAdfDiagramDragSource$$ = !this.$_bHiddenAncestor$;
      this.$_stackUnderlay$ && ($DvtScrollbarBackground$$ ? (this.$_stackUnderlay$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_stackUnderlay$, this.$_stackUnderlay$.$getAlpha$, this.$_stackUnderlay$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_stackUnderlay$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_stackBadge$ && ($DvtScrollbarBackground$$ ? (this.$_stackBadge$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_stackBadge$, this.$_stackBadge$.$getAlpha$, this.$_stackBadge$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_stackBadge$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_afRoot$ && (this.$_afRoot$.$setMouseEnabled$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$ ? (this.$_afRoot$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_afRoot$, this.$_afRoot$.$getAlpha$, this.$_afRoot$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_afRoot$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_containerBadge$ && (this.$_containerBadge$.$setMouseEnabled$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$ ? (this.$_containerBadge$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getAlpha$, this.$_containerBadge$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_containerBadge$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_partialExpandIndicator$ && (this.$_partialExpandIndicator$.$setMouseEnabled$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$ ? (this.$_partialExpandIndicator$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getAlpha$, this.$_partialExpandIndicator$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_partialExpandIndicator$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_containerChrome$ && (this.$_containerChrome$.$setMouseEnabled$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$ ? (this.$_containerChrome$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.$getAlpha$, this.$_containerChrome$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_containerChrome$.$setAlpha$($DvtScrollbarEvent$$));
      this.$_labelObj$ && (this.$_labelObj$.$setMouseEnabled$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$ ? (this.$_labelObj$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_labelObj$, this.$_labelObj$.$getAlpha$, this.$_labelObj$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_labelObj$.$setAlpha$($DvtScrollbarEvent$$));
      if (this.$_overlays$) {
        for (var $iOverlay$$1$$ = 0;$iOverlay$$1$$ < this.$_overlays$.length;$iOverlay$$1$$++) {
          var $DvtScrollbarArrow$$ = this.$_overlays$[$iOverlay$$1$$].overlay;
          $DvtScrollbarArrow$$.$setMouseEnabled$($DvtAdfDiagramDragSource$$);
          $DvtScrollbarBackground$$ ? ($DvtScrollbarArrow$$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarArrow$$, $DvtScrollbarArrow$$.$getAlpha$, $DvtScrollbarArrow$$.$setAlpha$, $DvtScrollbarEvent$$)) : $DvtScrollbarArrow$$.$setAlpha$($DvtScrollbarEvent$$);
        }
      }
      this.$_nodeUnderlay$ && ($DvtScrollbarBackground$$ ? (this.$_nodeUnderlay$.$setAlpha$(1 - $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getAlpha$, this.$_nodeUnderlay$.$setAlpha$, $DvtScrollbarEvent$$)) : this.$_nodeUnderlay$.$setAlpha$($DvtScrollbarEvent$$));
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$SaveContentState$ = function $$dvt$$1$$$$AdfDiagramNode$$$$SaveContentState$$() {
    var $DvtScrollbarBackground$$ = {};
    $DvtScrollbarBackground$$.$_containerChrome$ = this.$_containerChrome$;
    $DvtScrollbarBackground$$.$_containerTopObj$ = this.$_containerTopObj$;
    $DvtScrollbarBackground$$.$_containerTopBounds$ = this.$_containerTopBounds$;
    $DvtScrollbarBackground$$.$_containerBottomObj$ = this.$_containerBottomObj$;
    $DvtScrollbarBackground$$.$_containerBottomBounds$ = this.$_containerBottomBounds$;
    $DvtScrollbarBackground$$.$_containerLeftObj$ = this.$_containerLeftObj$;
    $DvtScrollbarBackground$$.$_containerLeftBounds$ = this.$_containerLeftBounds$;
    $DvtScrollbarBackground$$.$_containerRightObj$ = this.$_containerRightObj$;
    $DvtScrollbarBackground$$.$_containerRightBounds$ = this.$_containerRightBounds$;
    $DvtScrollbarBackground$$.$_containerUnderlay$ = this.$_containerUnderlay$;
    $DvtScrollbarBackground$$.$_afRoot$ = this.$_afRoot$;
    this.$_nodeWidth$ && this.$_nodeHeight$ ? ($DvtScrollbarBackground$$.$_oldNodeWidth$ = this.$_nodeWidth$, $DvtScrollbarBackground$$.$_oldNodeHeight$ = this.$_nodeHeight$) : this.$_oldNodeWidth$ && this.$_oldNodeHeight$ && ($DvtScrollbarBackground$$.$_oldNodeWidth$ = this.$_oldNodeWidth$, $DvtScrollbarBackground$$.$_oldNodeHeight$ = this.$_oldNodeHeight$);
    this.$_containerBadge$ && ($DvtScrollbarBackground$$.$_oldContainerBadgeX$ = this.$_containerBadge$.$getTranslateX$(), $DvtScrollbarBackground$$.$_oldContainerBadgeY$ = this.$_containerBadge$.$getTranslateY$());
    this.$_partialExpandIndicator$ && ($DvtScrollbarBackground$$.$_oldPartialExpandIndicatorX$ = this.$_partialExpandIndicator$.$getTranslateX$(), $DvtScrollbarBackground$$.$_oldPartialExpandIndicatorY$ = this.$_partialExpandIndicator$.$getTranslateY$());
    this.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect && ($DvtScrollbarBackground$$.$_oldFocusUnderlayX$ = this.$_focusUnderlay$.$getX$(), $DvtScrollbarBackground$$.$_oldFocusUnderlayY$ = this.$_focusUnderlay$.$getY$(), $DvtScrollbarBackground$$.$_oldFocusUnderlayWidth$ = this.$_focusUnderlay$.getWidth(), $DvtScrollbarBackground$$.$_oldFocusUnderlayHeight$ = this.$_focusUnderlay$.getHeight());
    this.$_nodeUnderlay$ && ($DvtScrollbarBackground$$.$_oldNodeUnderlayX$ = this.$_nodeUnderlay$.$getX$(), $DvtScrollbarBackground$$.$_oldNodeUnderlayY$ = this.$_nodeUnderlay$.$getY$(), $DvtScrollbarBackground$$.$_oldNodeUnderlayWidth$ = this.$_nodeUnderlay$.getWidth(), $DvtScrollbarBackground$$.$_oldNodeUnderlayHeight$ = this.$_nodeUnderlay$.getHeight());
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RestoreContentState$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RestoreContentState$$($DvtScrollbarBackground$$) {
    if (this.$_containerChrome$) {
      this.$_containerChrome$.$setWidth$($DvtScrollbarBackground$$.$_oldNodeWidth$);
      this.$_containerChrome$.$setHeight$($DvtScrollbarBackground$$.$_oldNodeHeight$);
      var $DvtScrollbar$$ = this.$_getContainerChromeClipPathDef$();
      $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = $DvtScrollbarBackground$$.$_oldNodeWidth$;
      $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = $DvtScrollbarBackground$$.$_oldNodeHeight$;
      this.$_setContainerChromeClipPath$($DvtScrollbar$$);
    }
    this.$_containerTopObj$ && $DvtScrollbarBackground$$.$_containerTopBounds$ && this.$_containerTopBounds$ && this.$_setContainerFacetScale$(null, this.$_containerTopObj$, $DvtScrollbarBackground$$.$_containerTopBounds$.$w$ / this.$_containerTopBounds$.$w$, $DvtScrollbarBackground$$.$_containerTopBounds$.$h$ / this.$_containerTopBounds$.$h$);
    this.$_containerBottomObj$ && $DvtScrollbarBackground$$.$_containerBottomBounds$ && this.$_containerBottomBounds$ && this.$_setContainerFacetScale$(null, this.$_containerBottomObj$, $DvtScrollbarBackground$$.$_containerBottomBounds$.$w$ / this.$_containerBottomBounds$.$w$, $DvtScrollbarBackground$$.$_containerBottomBounds$.$h$ / this.$_containerBottomBounds$.$h$);
    this.$_containerLeftObj$ && $DvtScrollbarBackground$$.$_containerLeftBounds$ && this.$_containerLeftBounds$ && this.$_setContainerFacetScale$(null, this.$_containerLeftObj$, $DvtScrollbarBackground$$.$_containerLeftBounds$.$w$ / this.$_containerLeftBounds$.$w$, $DvtScrollbarBackground$$.$_containerLeftBounds$.$h$ / this.$_containerLeftBounds$.$h$);
    this.$_containerRightObj$ && $DvtScrollbarBackground$$.$_containerRightBounds$ && this.$_containerRightBounds$ && this.$_setContainerFacetScale$(null, this.$_containerRightObj$, $DvtScrollbarBackground$$.$_containerRightBounds$.$w$ / this.$_containerRightBounds$.$w$, $DvtScrollbarBackground$$.$_containerRightBounds$.$h$ / this.$_containerRightBounds$.$h$);
    this.$_containerBadge$ && this.$_containerBadge$.$setTranslate$($DvtScrollbarBackground$$.$_oldContainerBadgeX$, $DvtScrollbarBackground$$.$_oldContainerBadgeY$);
    this.$_partialExpandIndicator$ && this.$_partialExpandIndicator$.$setTranslate$($DvtScrollbarBackground$$.$_oldPartialExpandIndicatorX$, $DvtScrollbarBackground$$.$_oldPartialExpandIndicatorY$);
    this.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect && (isNaN($DvtScrollbarBackground$$.$_oldFocusUnderlayX$) || this.$_focusUnderlay$.$setX$($DvtScrollbarBackground$$.$_oldFocusUnderlayX$), isNaN($DvtScrollbarBackground$$.$_oldFocusUnderlayY$) || this.$_focusUnderlay$.$setY$($DvtScrollbarBackground$$.$_oldFocusUnderlayY$), isNaN($DvtScrollbarBackground$$.$_oldFocusUnderlayWidth$) || this.$_focusUnderlay$.$setWidth$($DvtScrollbarBackground$$.$_oldFocusUnderlayWidth$), isNaN($DvtScrollbarBackground$$.$_oldFocusUnderlayHeight$) || 
    this.$_focusUnderlay$.$setHeight$($DvtScrollbarBackground$$.$_oldFocusUnderlayHeight$));
    this.$_nodeUnderlay$ && (isNaN($DvtScrollbarBackground$$.$_oldNodeUnderlayX$) || this.$_nodeUnderlay$.$setX$($DvtScrollbarBackground$$.$_oldNodeUnderlayX$), isNaN($DvtScrollbarBackground$$.$_oldNodeUnderlayY$) || this.$_nodeUnderlay$.$setY$($DvtScrollbarBackground$$.$_oldNodeUnderlayY$), isNaN($DvtScrollbarBackground$$.$_oldNodeUnderlayWidth$) || this.$_nodeUnderlay$.$setWidth$($DvtScrollbarBackground$$.$_oldNodeUnderlayWidth$), isNaN($DvtScrollbarBackground$$.$_oldNodeUnderlayHeight$) || this.$_nodeUnderlay$.$setHeight$($DvtScrollbarBackground$$.$_oldNodeUnderlayHeight$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$addChildNode$ = function $$dvt$$1$$$$AdfDiagramNode$$$$addChildNode$$($DvtScrollbarBackground$$) {
    this.$_childNodeIds$ || (this.$_childNodeIds$ = []);
    this.$_childNodeIds$.push($DvtScrollbarBackground$$.getData().getId());
    if (!this.$_childNodePane$) {
      this.$_childNodePane$ = new $dvt$$1$$.$Container$(this.$getCtx$(), this.getData().getId() + "_cnp");
      this.$_contentPane$ = new $dvt$$1$$.$Container$(this.$getCtx$(), this.getData().getId() + "_cp");
      for (var $DvtScrollbar$$ = this.$getNumChildren$() - 1;-1 < $DvtScrollbar$$;$DvtScrollbar$$--) {
        this.$_contentPane$.$addChildAt$(this.$getChildAt$($DvtScrollbar$$), 0);
      }
      this.$addChild$(this.$_contentPane$);
      this.$addChild$(this.$_childNodePane$);
    }
    this.$_childNodePane$.$addChild$($DvtScrollbarBackground$$);
    this.$_visibleChildNodeCount$++;
    $DvtScrollbarBackground$$.$_nodeParent$ = this.$_childNodePane$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$addChildLink$ = function $$dvt$$1$$$$AdfDiagramNode$$$$addChildLink$$($dvt$$1$$) {
    this.$_childLinkIds$ || (this.$_childLinkIds$ = []);
    this.$_childLinkIds$.push($dvt$$1$$.getData().getId());
    this.$_childNodePane$.$addChildAt$($dvt$$1$$, 0);
    $dvt$$1$$.$_linkParent$ = this.$_childNodePane$;
    $dvt$$1$$.$_bCrossContainerLink$ = !1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$addCrossChildLink$ = function $$dvt$$1$$$$AdfDiagramNode$$$$addCrossChildLink$$($dvt$$1$$) {
    this.$_crossChildLinkIds$ || (this.$_crossChildLinkIds$ = []);
    this.$_crossChildLinkIds$.push($dvt$$1$$.getData().getId());
    this.$_childNodePane$.$addChild$($dvt$$1$$);
    $dvt$$1$$.$_linkParent$ = this.$_childNodePane$;
    $dvt$$1$$.$_bCrossContainerLink$ = !0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getChildNodeCount$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getChildNodeCount$$() {
    return this.$_childNodeIds$ ? this.$_childNodeIds$.length : 0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setVisibleChildNodeCount$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setVisibleChildNodeCount$$($dvt$$1$$) {
    this.$_visibleChildNodeCount$ = $dvt$$1$$;
    this.$RefreshContainerBadge$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isContainer$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isContainer$$() {
    return this.getData().$isContainer$() && (!this.getData().$_childrenFetched$ || 0 < this.$getChildNodeCount$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setDisclosed$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setDisclosed$$($dvt$$1$$) {
    this.$isContainer$() && ($dvt$$1$$ != this.$_bDisclosed$ && (this.$_oldNodeWidth$ = this.$_nodeWidth$, this.$_oldNodeHeight$ = this.$_nodeHeight$, this.$_nodeHeight$ = this.$_nodeWidth$ = null, this.$_bDisclosureChanged$ = !0, this.$GetDiagram$().$setAutomationState$(this.getData().getId(), "disclosed", this.$_bDisclosed$)), this.$_bDisclosed$ = $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isDisclosed$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isDisclosed$$() {
    return this.$_bDisclosed$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setHiddenAncestor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setHiddenAncestor$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_bHiddenAncestor$;
    this.$_bHiddenAncestor$ = $dvt$$1$$;
    $dvt$$1$$ != $DvtScrollbar$$ && (this.$_refreshCursor$(), this.$TransitionHiddenAncestor$($DvtScrollbarBackground$$), this.$GetDiagram$().$UpdateOverviewNode$(this, $DvtScrollbarBackground$$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setForceZoom100Facet$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setForceZoom100Facet$$($dvt$$1$$) {
    this.$_bForceZoom100Facet$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetNodeTemplate$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetNodeTemplate$$() {
    var $dvt$$1$$ = this.$GetDiagram$();
    if (!$dvt$$1$$) {
      return null;
    }
    var $DvtScrollbarBackground$$ = null, $DvtScrollbar$$ = this.$_zoom$;
    if (this.$_bForceZoom100Facet$) {
      this.$_zoom$ = 1, ($DvtScrollbarBackground$$ = this.$_nodeDef$.$getNodeTemplate$("zoom100")) || ($DvtScrollbarBackground$$ = this.$_nodeDef$.$getDefaultNodeTemplate$(this.getWidth(), this.getHeight()));
    } else {
      var $DvtScrollbarEvent$$ = $dvt$$1$$.$_panZoomCanvas$;
      if (!$DvtScrollbarEvent$$) {
        return null;
      }
      $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getZoom$();
      .25 >= $DvtScrollbarEvent$$ && !$DvtScrollbarBackground$$ && (this.$_zoom$ = .25, $DvtScrollbarBackground$$ = this.$_nodeDef$.$getNodeTemplate$("zoom25"));
      .5 >= $DvtScrollbarEvent$$ && !$DvtScrollbarBackground$$ && (this.$_zoom$ = .5, $DvtScrollbarBackground$$ = this.$_nodeDef$.$getNodeTemplate$("zoom50"));
      .75 >= $DvtScrollbarEvent$$ && !$DvtScrollbarBackground$$ && (this.$_zoom$ = .75, $DvtScrollbarBackground$$ = this.$_nodeDef$.$getNodeTemplate$("zoom75"));
      $DvtScrollbarBackground$$ || (this.$_zoom$ = 1, ($DvtScrollbarBackground$$ = this.$_nodeDef$.$getNodeTemplate$("zoom100")) || ($DvtScrollbarBackground$$ = this.$_nodeDef$.$getDefaultNodeTemplate$(this.getWidth(), this.getHeight())));
    }
    $DvtScrollbar$$ == this.$_zoom$ && !this.$_bForceZoom100Facet$ && ($dvt$$1$$.$_bCrossedZoomThreshold$ && !this.$_bHiddenAncestorChanged$ || !$dvt$$1$$.$_bCrossedZoomThreshold$ && this.$_afRoot$ && !$dvt$$1$$.$_bAfImageLoaded$) && ($DvtScrollbarBackground$$ = null);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RemoveOldNodeContents$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RemoveOldNodeContents$$($dvt$$1$$) {
    this.$_afRoot$ && (this.$_getContentContainer$().removeChild(this.$_afRoot$), $dvt$$1$$ && this.$_bDisclosureChanged$ && this.$isDisclosed$() || this.$_afRoot$.$destroy$ && this.$_afRoot$.$destroy$(), this.$_afRoot$ = null);
    this.$_oldLabelRotPoint$ = this.$_oldLabelRotAngle$ = this.$_oldLabelPos$ = this.$_oldLabelBounds$ = null;
    this.$_labelObj$ && (this.$_oldLabelBounds$ = this.$getLabelBounds$(), this.$_oldLabelPos$ = this.$getLabelPosition$(), this.$_oldLabelRotAngle$ = this.$_labelRotAngle$, this.$_oldLabelRotPoint$ = this.$_labelRotPoint$, this.$_getContentContainer$().removeChild(this.$_labelObj$), this.$_labelObj$.$destroy$ && this.$_labelObj$.$destroy$(), this.$_labelObj$ = null);
    this.$_backgroundObj$ && (this.$_getContentContainer$().removeChild(this.$_backgroundObj$), this.$_backgroundObj$.$destroy$ && this.$_backgroundObj$.$destroy$(), this.$_backgroundObj$ = null);
    this.$_backgroundMouseEventCatcher$ && (this.$_getContentContainer$().removeChild(this.$_backgroundMouseEventCatcher$), this.$_backgroundMouseEventCatcher$.$destroy$ && this.$_backgroundMouseEventCatcher$.$destroy$(), this.$_backgroundMouseEventCatcher$ = null);
    if (this.$_overlays$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_overlays$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = this.$_overlays$[$DvtScrollbarBackground$$].overlay;
        this.$_getContentContainer$().removeChild($DvtScrollbar$$);
        $DvtScrollbar$$.$destroy$ && $DvtScrollbar$$.$destroy$();
      }
      this.$_overlays$ = null;
    }
    this.$_containerTopObj$ && ($dvt$$1$$ && this.$_bDisclosureChanged$ && !this.$isDisclosed$() || (($DvtScrollbarBackground$$ = this.$_containerTopObj$.getParent()) && $DvtScrollbarBackground$$.removeChild(this.$_containerTopObj$), this.$_containerTopObj$.$destroy$ && this.$_containerTopObj$.$destroy$()), this.$_containerTopObj$ = null);
    this.$_containerBottomObj$ && ($dvt$$1$$ && this.$_bDisclosureChanged$ && !this.$isDisclosed$() || (($DvtScrollbarBackground$$ = this.$_containerBottomObj$.getParent()) && $DvtScrollbarBackground$$.removeChild(this.$_containerBottomObj$), this.$_containerBottomObj$.$destroy$ && this.$_containerBottomObj$.$destroy$()), this.$_containerBottomObj$ = null);
    this.$_containerLeftObj$ && ($dvt$$1$$ && this.$_bDisclosureChanged$ && !this.$isDisclosed$() || (($DvtScrollbarBackground$$ = this.$_containerLeftObj$.getParent()) && $DvtScrollbarBackground$$.removeChild(this.$_containerLeftObj$), this.$_containerLeftObj$.$destroy$ && this.$_containerLeftObj$.$destroy$()), this.$_containerLeftObj$ = null);
    this.$_containerRightObj$ && ($dvt$$1$$ && this.$_bDisclosureChanged$ && !this.$isDisclosed$() || (($DvtScrollbarBackground$$ = this.$_containerRightObj$.getParent()) && $DvtScrollbarBackground$$.removeChild(this.$_containerRightObj$), this.$_containerRightObj$.$destroy$ && this.$_containerRightObj$.$destroy$()), this.$_containerRightObj$ = null);
    this.$_containerChrome$ && (this.$_getContentContainer$().removeChild(this.$_containerChrome$), $dvt$$1$$ && this.$_bDisclosureChanged$ && !this.$isDisclosed$() || this.$_containerChrome$.$destroy$ && this.$_containerChrome$.$destroy$(), this.$_containerChrome$ = null);
    this.$_containerUnderlay$ && (this.$_getContentContainer$().removeChild(this.$_containerUnderlay$), $dvt$$1$$ && this.$_bDisclosureChanged$ && this.$isDisclosed$() || this.$_containerUnderlay$.$destroy$ && this.$_containerUnderlay$.$destroy$(), this.$_containerUnderlay$ = null);
    this.$_focusUnderlay$ && (this.$_getContentContainer$().removeChild(this.$_focusUnderlay$), this.$_focusUnderlay$.$destroy$ && this.$_focusUnderlay$.$destroy$(), this.$_focusUnderlay$ = null);
    this.$_hover$ = !1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RemoveDispObj$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RemoveDispObj$$($dvt$$1$$) {
    if ($dvt$$1$$) {
      var $DvtScrollbarBackground$$ = $dvt$$1$$.getParent();
      $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.removeChild($dvt$$1$$);
      $dvt$$1$$.$destroy$ && $dvt$$1$$.$destroy$();
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$DestroyDisclosedContent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$DestroyDisclosedContent$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$;
    $dvt$$1$$.$_containerTopObj$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerTopObj$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerTopObj$), $dvt$$1$$.$_containerTopObj$.$destroy$ && $dvt$$1$$.$_containerTopObj$.$destroy$(), $dvt$$1$$.$_containerTopObj$ = null);
    $dvt$$1$$.$_containerBottomObj$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerBottomObj$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerBottomObj$), $dvt$$1$$.$_containerBottomObj$.$destroy$ && $dvt$$1$$.$_containerBottomObj$.$destroy$(), $dvt$$1$$.$_containerBottomObj$ = null);
    $dvt$$1$$.$_containerLeftObj$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerLeftObj$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerLeftObj$), $dvt$$1$$.$_containerLeftObj$.$destroy$ && $dvt$$1$$.$_containerLeftObj$.$destroy$(), $dvt$$1$$.$_containerLeftObj$ = null);
    $dvt$$1$$.$_containerRightObj$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerRightObj$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerRightObj$), $dvt$$1$$.$_containerRightObj$.$destroy$ && $dvt$$1$$.$_containerRightObj$.$destroy$(), $dvt$$1$$.$_containerRightObj$ = null);
    $dvt$$1$$.$_containerChrome$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerChrome$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerChrome$), $dvt$$1$$.$_containerChrome$.$destroy$ && $dvt$$1$$.$_containerChrome$.$destroy$(), $dvt$$1$$.$_containerChrome$ = null);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$DestroyUndisclosedContent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$DestroyUndisclosedContent$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$;
    $dvt$$1$$.$_afRoot$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_afRoot$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_afRoot$), $dvt$$1$$.$_afRoot$.$destroy$ && $dvt$$1$$.$_afRoot$.$destroy$(), $dvt$$1$$.$_afRoot$ = null);
    $dvt$$1$$.$_containerUnderlay$ && (($DvtScrollbarBackground$$ = $dvt$$1$$.$_containerUnderlay$.getParent()) && $DvtScrollbarBackground$$.removeChild($dvt$$1$$.$_containerUnderlay$), $dvt$$1$$.$_containerUnderlay$.$destroy$ && $dvt$$1$$.$_containerUnderlay$.$destroy$(), $dvt$$1$$.$_containerUnderlay$ = null);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$createNodeContents$ = function $$dvt$$1$$$$AdfDiagramNode$$$$createNodeContents$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$isDisclosed$(), $DvtAdfDiagramDragSource$$ = this.$GetNodeTemplate$();
    if (!$DvtAdfDiagramDragSource$$ && !$DvtScrollbarEvent$$ || $DvtScrollbarEvent$$ && this.$GetDiagram$().$_bCrossedZoomThreshold$ && this.$_containerChrome$) {
      this.$_bIgnoreNextRender$ = !0;
    } else {
      $DvtScrollbar$$ && (this.$_savedContentState$ = this.$SaveContentState$());
      this.$_copyForDelayedRemoval$ || this.$_canRemoveNodeContent$() ? this.$RemoveOldNodeContents$($DvtScrollbar$$) : this.$_copyForDelayedRemoval$ = this.$CreateCopyForDelayedRemoval$();
      $DvtScrollbarBackground$$.$setELContext$(this.getData().$_elAttributes$);
      this.$_tabStopsNodeArray$ = [];
      $DvtScrollbarBackground$$.$setTabStopsArray$(this.$_tabStopsNodeArray$);
      $DvtScrollbarBackground$$.$registerTabStop$(this);
      this.$_curTabStopIdx$ = 0;
      $DvtScrollbarBackground$$.$setContextCallback$(this, this.$eventContextCallback$);
      var $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$ = this.$GetDiagram$();
      $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$.$panelCardEventCallback$ && $DvtScrollbarBackground$$.$setPanelCardCallback$($diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$, $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$.$panelCardEventCallback$);
      $DvtScrollbarEvent$$ || (this.$_afRoot$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$, this));
      this.$HasLabel$() && ((this.$_labelObj$ = this.$CreateLabel$($DvtScrollbarBackground$$)) && this.$_getContentContainer$().$addChildAt$(this.$_labelObj$, 0), this.$_oldLabelBounds$ && (this.$setLabelBounds$(this.$_oldLabelBounds$), this.$_oldLabelBounds$ = null), this.$_oldLabelPos$ && (this.$setLabelPosition$(this.$_oldLabelPos$), this.$_oldLabelPos$ = null), null != this.$_oldLabelRotAngle$ && (this.$setLabelRotationAngle$(this.$_oldLabelRotAngle$), this.$_oldLabelRotAngle$ = null), this.$_oldLabelRotPoint$ && 
      (this.$setLabelRotationPoint$(this.$_oldLabelRotPoint$), this.$_oldLabelRotPoint$ = null));
      if (!$DvtScrollbarEvent$$ && ($diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$ = this.$_nodeDef$.$_overlayTemplate$)) {
        $DvtAdfDiagramDragSource$$ = [];
        if ($diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$ instanceof $dvt$$1$$.$AfGroup$) {
          if ($diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$.$stamp$($DvtScrollbarBackground$$.$_elContext$).$isRendered$()) {
            for (var $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$.$getNumChildren$();$DvtScrollbarArrow$$++) {
              var $DvtAdfDiagramEditorManager$$ = $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$.$getChildAt$($DvtScrollbarArrow$$);
              $DvtAdfDiagramEditorManager$$ instanceof $dvt$$1$$.$AfPointLocation$ && $DvtAdfDiagramDragSource$$.push($DvtAdfDiagramEditorManager$$);
            }
          }
        } else {
          $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$ instanceof $dvt$$1$$.$AfPointLocation$ && $DvtAdfDiagramDragSource$$.push($diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$);
        }
        $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$ = $DvtAdfDiagramDragSource$$.length;
        this.$_overlays$ = [];
        for (--$diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$;0 <= $diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$;$diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$--) {
          var $overlay$$3_pointLocation$$ = $DvtAdfDiagramDragSource$$[$diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$].$stamp$($DvtScrollbarBackground$$.$_elContext$), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$ = 0;
          try {
            $DvtScrollbarArrow$$ = parseFloat($overlay$$3_pointLocation$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_POINT_X$)) / 100, $DvtAdfDiagramEditorManager$$ = parseFloat($overlay$$3_pointLocation$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_POINT_Y$)) / 100;
          } catch ($pointE$$) {
          }
          $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = 0);
          $DvtAdfDiagramEditorManager$$ || ($DvtAdfDiagramEditorManager$$ = 0);
          if ($overlay$$3_pointLocation$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$[$diagram$$15_iOverlay$$2_numOverlays_overlayTemplate$$].$getChildAt$(0), this)) {
            this.$_overlays$.push({overlay:$overlay$$3_pointLocation$$, position:new $dvt$$1$$.$Point$($DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$)}), this.$_getContentContainer$().$addChildAt$($overlay$$3_pointLocation$$, 0);
          }
        }
      }
      this.$isDisclosed$() && this.$_childNodePane$ && this.$addChild$(this.$_childNodePane$);
      this.$_afRoot$ ? this.$_getContentContainer$().$addChildAt$(this.$_afRoot$, 0) : $DvtScrollbar$$ && this.$_bDisclosureChanged$ && this.$isDisclosed$() && (this.$_afRootPlaceholder$ = new $dvt$$1$$.$Container$(this.$getCtx$(), this.getData().getId() + "_afrp"), this.$_getContentContainer$().$addChildAt$(this.$_afRootPlaceholder$, 0));
      $DvtScrollbarEvent$$ && (this.$_containerChrome$ = this.$CreateContainerChrome$(), this.$_getContentContainer$().$addChildAt$(this.$_containerChrome$, 0), this.$_nodeDef$.$_containerTopTemplate$ && (this.$_addContainerFacetTabStops$($DvtScrollbarBackground$$, "top"), (this.$_containerTopObj$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, this.$_nodeDef$.$_containerTopTemplate$, this)) && this.$_containerChrome$.$addChild$(this.$_containerTopObj$)), this.$_nodeDef$.$_containerBottomTemplate$ && 
      (this.$_addContainerFacetTabStops$($DvtScrollbarBackground$$, "bottom"), (this.$_containerBottomObj$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, this.$_nodeDef$.$_containerBottomTemplate$, this)) && this.$_containerChrome$.$addChild$(this.$_containerBottomObj$)), this.$_nodeDef$.$_containerLeftTemplate$ && (this.$_addContainerFacetTabStops$($DvtScrollbarBackground$$, "left"), (this.$_containerLeftObj$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, 
      this.$_nodeDef$.$_containerLeftTemplate$, this)) && this.$_containerChrome$.$addChild$(this.$_containerLeftObj$)), this.$_nodeDef$.$_containerRightTemplate$ && (this.$_addContainerFacetTabStops$($DvtScrollbarBackground$$, "right"), (this.$_containerRightObj$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, this.$_nodeDef$.$_containerRightTemplate$, this)) && this.$_containerChrome$.$addChild$(this.$_containerRightObj$)), this.$_updateNodeTabStops$());
      1 < this.$_tabStopsNodeArray$.length && this.$_tabStopsNodeArray$.push(this);
      this.$_nodeDef$.$_backgroundTemplate$ && ($DvtScrollbarBackground$$.$setTabStopsArray$(null), this.$_backgroundObj$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, this.$_nodeDef$.$_backgroundTemplate$, this)) && (this.$_backgroundObj$.$setMouseEnabled$(!1), ($DvtScrollbarEvent$$ ? this.$_containerChrome$ : this.$_getContentContainer$()).$addChildAt$(this.$_backgroundObj$, 0), this.$_backgroundMouseEventCatcher$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, 0, 0), 
      this.$_backgroundMouseEventCatcher$.$setInvisibleFill$(), this.$_getContentContainer$().$addChildAt$(this.$_backgroundMouseEventCatcher$, 1));
      this.$_stackUnderlay$ && this.$_getContentContainer$().$addChildAt$(this.$_stackUnderlay$, 0);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateContainerChrome$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateContainerChrome$$() {
    return new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, 1, 1);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RenderContainerChrome$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RenderContainerChrome$$() {
    this.$_containerChrome$.$setWidth$(this.$_nodeWidth$);
    this.$_containerChrome$.$setHeight$(this.$_nodeHeight$);
    this.$_containerChrome$.$setRx$(this.$_getContainerBorderRx$());
    this.$_containerChrome$.$setRy$(this.$_getContainerBorderRx$());
    this.$_containerChrome$.$setSolidFill$(this.$_getContainerBgColor$());
    this.$_containerChrome$.$setSolidStroke$(this.$_getContainerBorderColor$(), 1, this.$_getContainerBorderWidth$());
    this.$_setContainerChromeClipPath$(this.$_getContainerChromeClipPathDef$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_setContainerChromeClipPath$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_setContainerChromeClipPath$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = "ctClip_" + $dvt$$1$$.$AfComponent$.$genUniqueId$(), $DvtScrollbar$$ = new $dvt$$1$$.$ClipPath$($DvtScrollbar$$);
    $DvtScrollbar$$.$addRect$($DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_X$], $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_Y$], $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$], $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$], $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RX$], $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RY$]);
    this.$_containerChrome$.$setClipPath$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContainerChromeClipPathDef$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContainerChromeClipPathDef$$() {
    var $DvtScrollbarBackground$$ = this.$_containerChrome$.$getDimensions$(), $DvtScrollbar$$ = [];
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_X$] = $DvtScrollbarBackground$$.x;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_Y$] = $DvtScrollbarBackground$$.y;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_W$] = $DvtScrollbarBackground$$.$w$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_H$] = $DvtScrollbarBackground$$.$h$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RX$] = this.$_containerChrome$.$getRx$();
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_CHROME_CLIP_PATH_RY$] = this.$_containerChrome$.$getRy$();
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$createDetailContents$ = function $$dvt$$1$$$$AdfDiagramNode$$$$createDetailContents$$($DvtScrollbarBackground$$) {
    if (this.$_nodeDef$) {
      if (!this.$_nodeDef$.$_detailTemplate$) {
        return;
      }
      $DvtScrollbarBackground$$.$setELContext$(this.getData().$_elAttributes$);
      $DvtScrollbarBackground$$.$setContextCallback$(this, this.$contextCallback$);
      return this.$_detailContents$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, this.$_nodeDef$.$_detailTemplate$, this.$GetDiagram$().$_panZoomCanvas$.$_contentPane$);
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$renderDetailContents$ = function $$dvt$$1$$$$AdfDiagramNode$$$$renderDetailContents$$($DvtScrollbarBackground$$) {
    if (this.$_nodeDef$ && this.$_detailContents$) {
      var $DvtScrollbar$$ = this.getWidth(), $DvtScrollbarEvent$$ = this.getHeight();
      $DvtScrollbarBackground$$.$setAvailableWidth$($DvtScrollbar$$);
      $DvtScrollbarBackground$$.$setAvailableHeight$($DvtScrollbarEvent$$);
      $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtScrollbarBackground$$, this.$_detailContents$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isSelectable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isSelectable$$() {
    return this.$_bHiddenAncestor$ ? !1 : $dvt$$1$$.$AdfDiagramNode$.$superclass$.$isSelectable$.call(this);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setSelected$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setSelected$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramNode$.$superclass$.$setSelected$.call(this, $DvtScrollbarBackground$$);
    this.$_bHiddenAncestor$ || (this.$RefreshSelectionEffect$(), this.$UpdateAccessibilityAttributes$(), $dvt$$1$$.$Agent$.$isTouchDevice$() && $DvtScrollbarBackground$$ ? this.$showLinkHandle$() : $dvt$$1$$.$Agent$.$isTouchDevice$() && this.$hideLinkHandle$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isFocused$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isFocused$$() {
    return this.$_bFocused$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setFocused$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setFocused$$($dvt$$1$$) {
    this.$_bFocused$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setLabel$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setLabel$$($dvt$$1$$) {
    this.$_label$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLabel$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLabel$$() {
    return this.$_label$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setDeleteEnabled$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setDeleteEnabled$$($dvt$$1$$) {
    this.$_deleteEnabled$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RefreshSelectionEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RefreshSelectionEffect$$() {
    this.$_bHighlight$ && this.$_hideFeedback$();
    this.$_diagram$.$_bSupportsVectorEffects$ || this.$UpdateHighlightStrokes$();
    var $dvt$$1$$ = this.$isSelectable$() && this.$_hover$;
    this.$_bVisible$ && ($dvt$$1$$ || this.$_bFocusEffect$ || this.$_selected$) && this.$_showFeedback$($dvt$$1$$ || this.$_bFocusEffect$, this.$_selected$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AddDrawEffects$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AddDrawEffects$$() {
    if (!($dvt$$1$$.$Agent$.$isPlatformGecko$() || $dvt$$1$$.$Agent$.$isTouchDevice$() && $dvt$$1$$.$Agent$.$isBrowserSafari$()) && null == this.$_shadow$) {
      var $DvtScrollbarBackground$$ = this.$_diagram$.$_nodeStyles$[$dvt$$1$$.$AdfDiagramNode$.$CSS_STYLE$];
      $DvtScrollbarBackground$$ && (this.$_shadow$ = this.$_diagram$.$CreateDropShadowFilter$($DvtScrollbarBackground$$.$getStyle$($dvt$$1$$.$PanZoomComponent$.$BOX_SHADOW$)));
      this.$_shadow$ && this.$addDrawEffect$(this.$_shadow$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setStack$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setStack$$($dvt$$1$$) {
    this.$_bStack$ != $dvt$$1$$ && this.$GetDiagram$().$setAutomationState$(this.getData().getId(), "stack", this.$_bStack$);
    (this.$_bStack$ = $dvt$$1$$) ? (this.$_stackBadge$ && (this.$_getContentContainer$().removeChild(this.$_stackBadge$), this.$_stackBadgeHandler$ = this.$_stackBadge$ = null), this.$CreateStackBadge$(), this.$_stackUnderlay$ && this.$_getContentContainer$().removeChild(this.$_stackUnderlay$), this.$CreateStackUnderlay$()) : (this.$_stackBadge$ && (this.$_getContentContainer$().removeChild(this.$_stackBadge$), this.$_stackBadge$ = null), this.$_stackUnderlay$ && (this.$_getContentContainer$().removeChild(this.$_stackUnderlay$), 
    this.$_stackUnderlay$ = null));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetStackId$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetStackId$$() {
    var $dvt$$1$$, $DvtScrollbarBackground$$ = this.$_diagram$.$_nodeStackMap$;
    $DvtScrollbarBackground$$ && ($dvt$$1$$ = $DvtScrollbarBackground$$[this.getData().getId()]);
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setStackCount$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setStackCount$$($dvt$$1$$) {
    this.$_stackCount$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateStackBadge$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateStackBadge$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$OutputText$(this.$getCtx$(), 1E3 >= this.$_stackCount$ ? "" + this.$_stackCount$ : "1000+", 0, 0);
    this.$applyBadgeTextStyles$($DvtScrollbarBackground$$);
    this.$_getContentContainer$().$addChild$($DvtScrollbarBackground$$);
    var $DvtScrollbar$$;
    $DvtScrollbar$$ = this.$_nodeWidth$ && this.$_nodeHeight$ ? new $dvt$$1$$.$Rectangle$(0, 0, this.$_nodeWidth$, this.$_nodeHeight$) : this.$getDimensionsWithStroke$();
    var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$measureDimensions$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$w$ + 6, $DvtScrollbarEvent$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$.$h$ + 2);
    $DvtScrollbarBackground$$.$setTranslate$(3, 1);
    $DvtScrollbarEvent$$.$setTranslate$($DvtScrollbar$$.$w$ + $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$ - $DvtAdfDiagramDragSource$$ - $dvt$$1$$.$AdfDiagramNode$.$_STACK_BADGE_OFFSET$, -$dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$ + $dvt$$1$$.$AdfDiagramNode$.$_STACK_BADGE_OFFSET$);
    this.$applyBadgeStyles$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$.$addChild$($DvtScrollbarBackground$$);
    this.$_getContentContainer$().$addChild$($DvtScrollbarEvent$$);
    this.$_stackBadge$ = $DvtScrollbarEvent$$;
    this.$_stackBadgeHandler$ = new $DvtAdfDiagramStackBadgeHandler$$(this.$GetDiagram$(), this);
    this.$GetDiagram$().$getEventManager$().$associate$(this.$_stackBadge$, this.$_stackBadgeHandler$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateStackUnderlay$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateStackUnderlay$$() {
    if (this.$_afRoot$) {
      var $DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_PADDING$, $DvtScrollbar$$ = -$DvtScrollbarBackground$$, $DvtScrollbarEvent$$ = -$DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$ = this.$_nodeWidth$ + 2 * $DvtScrollbarBackground$$, $fill$$4_hh$$6_stackUnderlayFill$$ = this.$_nodeHeight$ + 2 * $DvtScrollbarBackground$$, $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $fill$$4_hh$$6_stackUnderlayFill$$), 
      $DvtScrollbarArrow$$ = new $dvt$$1$$.Rect(this.$getCtx$(), $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $fill$$4_hh$$6_stackUnderlayFill$$), $DvtScrollbar$$ = new $dvt$$1$$.Rect(this.$getCtx$(), $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $fill$$4_hh$$6_stackUnderlayFill$$);
      if ($DvtAdfDiagramDragSource$$ = this.$_diagram$.$_stackStackUnderlayStyles$) {
        $fill$$4_hh$$6_stackUnderlayFill$$ = $DvtAdfDiagramDragSource$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$), $DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$), $fill$$4_hh$$6_stackUnderlayFill$$ = new $dvt$$1$$.$SolidFill$($fill$$4_hh$$6_stackUnderlayFill$$, 1), $DvtScrollbarEvent$$ = this.$_getUnderlayStroke$($DvtScrollbarEvent$$, 
        1, 1), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$ ? $dvt$$1$$.$CSSStyle$.$toNumber$($DvtAdfDiagramDragSource$$) : 0, $DvtScrollbarBackground$$.$setFill$($fill$$4_hh$$6_stackUnderlayFill$$), $DvtScrollbarArrow$$.$setFill$($fill$$4_hh$$6_stackUnderlayFill$$), $DvtScrollbar$$.$setFill$($fill$$4_hh$$6_stackUnderlayFill$$), $DvtScrollbarBackground$$.$setStroke$($DvtScrollbarEvent$$), $DvtScrollbarArrow$$.$setStroke$($DvtScrollbarEvent$$), $DvtScrollbar$$.$setStroke$($DvtScrollbarEvent$$), 
        $DvtAdfDiagramDragSource$$ && ($DvtScrollbarBackground$$.$setRx$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$.$setRy$($DvtAdfDiagramDragSource$$), $DvtScrollbarArrow$$.$setRx$($DvtAdfDiagramDragSource$$), $DvtScrollbarArrow$$.$setRy$($DvtAdfDiagramDragSource$$), $DvtScrollbar$$.$setRx$($DvtAdfDiagramDragSource$$), $DvtScrollbar$$.$setRy$($DvtAdfDiagramDragSource$$)), $DvtScrollbarBackground$$.$setPixelHinting$(), $DvtScrollbarArrow$$.$setPixelHinting$(), $DvtScrollbar$$.$setPixelHinting$()
        ;
      }
      $DvtScrollbarArrow$$.$setTranslate$($dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_OFFSET$, -$dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_OFFSET$);
      $DvtScrollbar$$.$setTranslate$(2 * $dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_OFFSET$, 2 * -$dvt$$1$$.$AdfDiagramNode$.$_STACK_UNDERLAY_OFFSET$);
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
      $DvtScrollbarEvent$$.$addChild$($DvtScrollbar$$);
      $DvtScrollbarEvent$$.$addChild$($DvtScrollbarArrow$$);
      $DvtScrollbarEvent$$.$addChild$($DvtScrollbarBackground$$);
      this.$_getContentContainer$().$addChildAt$($DvtScrollbarEvent$$, 0);
      this.$_stackUnderlay$ = $DvtScrollbarEvent$$;
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getCategories$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getCategories$$() {
    return this.getData().$getAttributeGroups$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getDisplayables$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getDisplayables$$() {
    var $dvt$$1$$ = [];
    $dvt$$1$$.push(this.$_getContentContainer$());
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$InsertNodeIntoParent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$InsertNodeIntoParent$$($dvt$$1$$) {
    if ($dvt$$1$$) {
      this.getParent() == $dvt$$1$$ && $dvt$$1$$.removeChild(this);
      var $DvtScrollbarBackground$$ = this.$GetPreferredInsertLocation$($dvt$$1$$);
      -1 != $DvtScrollbarBackground$$ ? $dvt$$1$$.$addChildAt$(this, $DvtScrollbarBackground$$) : $dvt$$1$$.$addChild$(this);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetPreferredInsertLocation$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetPreferredInsertLocation$$($DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getNumChildren$() - 1;0 <= $DvtScrollbar$$;$DvtScrollbar$$--) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getChildAt$($DvtScrollbar$$);
      if ($DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AdfDiagramNode$) {
        if (!$dvt$$1$$.$AdfDiagramNode$.$_CHANGE_Z_ORDER_ON_HIGHLIGHT$ || this != $DvtScrollbarEvent$$ && (this.$_bHoverEffect$ || this.$isSelected$() && !$DvtScrollbarEvent$$.$_bHoverEffect$ || !this.$_bHoverEffect$ & !this.$isSelected$() && !$DvtScrollbarEvent$$.$_bHoverEffect$ && !$DvtScrollbarEvent$$.$isSelected$())) {
          return $DvtScrollbar$$ + 1;
        }
      } else {
        if ($DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AdfDiagramLink$ && !$DvtScrollbarEvent$$.$_bCrossContainerLink$) {
          return $DvtScrollbar$$ + 1;
        }
      }
    }
    return -1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetParentContainer$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetParentContainer$$() {
    var $dvt$$1$$ = null, $DvtScrollbarBackground$$ = this.$GetDiagram$();
    $DvtScrollbarBackground$$ && ($dvt$$1$$ = this.$_nodeParent$, $dvt$$1$$ || ($dvt$$1$$ = $DvtScrollbarBackground$$.$_nodesPane$));
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setVisible$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setVisible$$($DvtScrollbarBackground$$) {
    this.$_bVisible$ != $DvtScrollbarBackground$$ && this.$GetDiagram$().$setAutomationState$(this.getData().getId(), "visible", this.$_bVisible$);
    $dvt$$1$$.$AdfDiagramNode$.$superclass$.$setVisible$.call(this, $DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$GetDiagram$();
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = this.$GetParentContainer$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.contains(this);
      $DvtScrollbarBackground$$ && !$DvtAdfDiagramDragSource$$ ? (this.$InsertNodeIntoParent$($DvtScrollbarEvent$$), this.$FullRenderNode$(), this.$_cachedDiagram$ = null) : !$DvtScrollbarBackground$$ && $DvtAdfDiagramDragSource$$ && ($DvtScrollbarEvent$$.removeChild(this), this.$_cachedDiagram$ = $DvtScrollbar$$);
    }
    $DvtAdfDiagramOverviewUtils$$.$SetNodeVisible$($DvtScrollbar$$, this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$FullRenderNode$ = function $$dvt$$1$$$$AdfDiagramNode$$$$FullRenderNode$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetDiagram$().$createAfContext$(this.getData().getId());
    $dvt$$1$$ && (this.$_zoom$ = -1);
    this.$createNodeContents$($DvtScrollbarBackground$$);
    this.$renderNode$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$FullRenderContainerFacet$ = function $$dvt$$1$$$$AdfDiagramNode$$$$FullRenderContainerFacet$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $minWidth$$1$$, $DvtScrollbarArrow$$) {
    if (!$DvtScrollbarBackground$$) {
      return null;
    }
    var $DvtAdfDiagramEditorManager$$ = this.$GetDiagram$().$createAfContext$(this.getData().getId());
    $DvtAdfDiagramEditorManager$$.$setContextCallback$(this, this.$eventContextCallback$);
    this.$_addContainerFacetTabStops$($DvtAdfDiagramEditorManager$$, $DvtScrollbar$$);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$, this);
    var $facetBounds$$ = $DvtScrollbar$$ = null;
    $DvtScrollbarBackground$$ && this.$_containerChrome$ && (this.$_containerChrome$.$addChild$($DvtScrollbarBackground$$), $DvtAdfDiagramEditorManager$$.$setAvailableWidth$($DvtScrollbarEvent$$), $DvtAdfDiagramEditorManager$$.$setAvailableHeight$($DvtAdfDiagramDragSource$$), $DvtScrollbar$$ = {$w$:$DvtScrollbarEvent$$, $h$:$DvtAdfDiagramDragSource$$}, $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$), $facetBounds$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$($DvtScrollbarBackground$$), 
    $minWidth$$1$$ && $facetBounds$$.$w$ < $minWidth$$1$$ && ($DvtAdfDiagramEditorManager$$.$setAvailableWidth$($minWidth$$1$$), $DvtScrollbar$$ = {$w$:$minWidth$$1$$, $h$:$DvtAdfDiagramDragSource$$}, $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$), $facetBounds$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$($DvtScrollbarBackground$$)), $DvtScrollbarArrow$$ && $facetBounds$$.$h$ < $DvtScrollbarArrow$$ && ($DvtAdfDiagramEditorManager$$.$setAvailableHeight$($DvtScrollbarArrow$$), 
    $DvtScrollbar$$ = {$w$:$DvtScrollbarEvent$$, $h$:$DvtScrollbarArrow$$}, $dvt$$1$$.$AfComponentFactory$.$layoutAndRender$($DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$), $facetBounds$$ = $dvt$$1$$.$AfComponentFactory$.$getBounds$($DvtScrollbarBackground$$)));
    return {$facetObj$:$DvtScrollbarBackground$$, $facetAvailBounds$:$DvtScrollbar$$, $facetBounds$:$facetBounds$$};
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$eventContextCallback$ = function $$dvt$$1$$$$AdfDiagramNode$$$$eventContextCallback$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$[$dvt$$1$$.$BaseComponentEvent$.$CLIENT_ROW_KEY$] = this.getData().getId());
    this.$GetDiagram$().$HideNodeTransientToolbar$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContextCallback$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContextCallback$$() {
    return this.$eventContextCallback$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContextCallbackObj$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContextCallbackObj$$() {
    return this;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isDoubleClickable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isDoubleClickable$$() {
    return this.getData().$_hasAnchorListener$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setPartiallyExpanded$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setPartiallyExpanded$$($dvt$$1$$) {
    this.$_bPartialExpand$ != $dvt$$1$$ && this.$GetDiagram$().$setAutomationState$(this.getData().getId(), "partialExpand", this.$_bPartialExpand$);
    this.$_bPartialExpand$ = $dvt$$1$$;
    this.$_partialExpandIndicator$ && (this.$_partialExpandIndicatorContainer$.removeChild(this.$_partialExpandIndicator$), this.$_partialExpandHandler$ = this.$_partialExpandIndicator$ = null);
    $dvt$$1$$ && this.$CreatePartialExpandIndicator$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreatePartialExpandIndicator$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreatePartialExpandIndicator$$() {
    if (this.getData().$_showNodeActions$ && this.getData().$_showIsolate$) {
      var $DvtScrollbarBackground$$ = 0, $DvtScrollbar$$ = 0;
      this.$_partialExpandIndicator$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$_diagram$.$getResourcesMap$().additionalLinksIndicatorEna, 0, 0, 18, 18);
      var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
      this.$_stackUnderlay$ && this.$_stackUnderlay$ instanceof $dvt$$1$$.$Container$ && 0 < this.$_stackUnderlay$.$getNumChildren$() && ($DvtAdfDiagramDragSource$$ = this.$_stackUnderlay$.$getChildAt$(this.$_stackUnderlay$.$getNumChildren$() - 1), $DvtAdfDiagramDragSource$$.getWidth && $DvtAdfDiagramDragSource$$.getHeight && (this.$_partialExpandIndicatorContainer$ = this.$_stackUnderlay$, $DvtAdfDiagramDragSource$$.$getX$ && $DvtAdfDiagramDragSource$$.$getY$ && ($DvtScrollbarBackground$$ = $DvtAdfDiagramDragSource$$.$getX$(), 
      $DvtScrollbar$$ = $DvtAdfDiagramDragSource$$.$getY$()), $DvtScrollbarEvent$$ = new $dvt$$1$$.$Rectangle$(0, 0, $DvtAdfDiagramDragSource$$.getWidth(), $DvtAdfDiagramDragSource$$.getHeight())));
      $DvtScrollbarEvent$$ || (this.$_partialExpandIndicatorContainer$ = this.$_getContentContainer$(), $DvtScrollbarEvent$$ = this.$_nodeWidth$ && this.$_nodeHeight$ ? new $dvt$$1$$.$Rectangle$(0, 0, this.$_nodeWidth$, this.$_nodeHeight$) : this.$getDimensionsWithStroke$());
      $DvtScrollbarBackground$$ += .5 * (($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$w$ : 0) - 18);
      $DvtScrollbar$$ += ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$h$ : 0) - 9;
      this.$_partialExpandIndicator$.$setTranslate$($DvtScrollbarBackground$$, $DvtScrollbar$$);
      this.$_partialExpandHandler$ = new $DvtAdfDiagramNodeExpandHandler$$(this.$GetDiagram$(), this.getData().getId());
      this.$GetDiagram$().$getEventManager$().$associate$(this.$_partialExpandIndicator$, this.$_partialExpandHandler$);
      this.$_partialExpandIndicatorContainer$.$addChild$(this.$_partialExpandIndicator$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLabelBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLabelBounds$$() {
    var $dvt$$1$$ = null;
    this.$_labelObj$ && ($dvt$$1$$ = this.$_labelDims$ ? this.$_labelDims$ : this.$_labelObj$.$getDimensions$());
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setLabelBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setLabelBounds$$() {
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLayoutBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLayoutBounds$$() {
    return this.$_layoutBounds$ ? this.$_layoutBounds$ : this.$getContentBounds$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContentBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContentBounds$$() {
    return new $dvt$$1$$.$Rectangle$(0, 0, this.$_nodeWidth$, this.$_nodeHeight$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CalcLayoutBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CalcLayoutBounds$$() {
    var $dvt$$1$$ = this.$getContentBounds$();
    this.$_containerBadge$ && ($dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_containerBadge$.$getDimensions$(this)));
    this.$_containerUnderlay$ && ($dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_containerUnderlay$.$getDimensions$(this)));
    this.$_stackBadge$ && ($dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_stackBadge$.$getDimensions$(this)));
    this.$_stackUnderlay$ && ($dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_stackUnderlay$.$getDimensions$(this)));
    this.$_partialExpandIndicator$ && ($dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_partialExpandIndicator$.$getDimensions$(this)));
    if (this.$_overlays$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_overlays$.length;$DvtScrollbarBackground$$++) {
        $dvt$$1$$ = $dvt$$1$$.$getUnion$(this.$_overlays$[$DvtScrollbarBackground$$].overlay.$getDimensions$(this));
      }
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetFlyOutsArray$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetFlyOutsArray$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = [];
    this.getData().$_showIsolate$ && $DvtScrollbarBackground$$.$IsNodeIsolateValid$(this.getData().getId()) && $DvtScrollbarEvent$$.push("isolate");
    this.$isContainer$() && !this.$_bHiddenAncestor$ && this.getData().$_showDrill$ && $DvtScrollbarEvent$$.push("drill");
    this.$_bPartialExpand$ && this.getData().$_showIsolate$ && $DvtScrollbarEvent$$.push("partial_expand");
    this.getData().$_showStack$ && (this.$_bStack$ ? ($DvtScrollbarEvent$$.push("stack_preview"), $DvtScrollbarEvent$$.push("stack_explode")) : this.$isRestackable$() && $DvtScrollbarEvent$$.push("stack_restack"));
    !$DvtScrollbarBackground$$.$isReadOnly$() && this.$_deleteEnabled$ && $DvtScrollbarEvent$$.push("delete");
    $DvtScrollbarBackground$$ = Math.min($DvtScrollbarEvent$$.length, $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$);
    var $DvtAdfDiagramDragSource$$ = Math.ceil($DvtScrollbarEvent$$.length / $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && $DvtScrollbarEvent$$.reverse();
    for (var $iFlag$$ = 0;$iFlag$$ < $DvtScrollbarEvent$$.length;$iFlag$$++) {
      var $DvtScrollbarArrow$$ = $iFlag$$ % $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$, $DvtAdfDiagramEditorManager$$ = Math.floor($iFlag$$ / $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$), $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = 0 == $iFlag$$, $bRoundTopRight$$4$$ = $iFlag$$ == $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$ - 1 || $iFlag$$ < $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$ && 
      $iFlag$$ == $DvtScrollbarEvent$$.length - 1, $bRoundBottomRight$$4$$ = $iFlag$$ == $DvtScrollbarEvent$$.length - 1 || $DvtScrollbarArrow$$ == $DvtScrollbarBackground$$ - 1 && $DvtAdfDiagramEditorManager$$ == $DvtAdfDiagramDragSource$$ - 2 && 0 < $DvtScrollbarEvent$$.length % $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$, $DvtScrollbarArrow$$ = 0 == $DvtScrollbarArrow$$ && $DvtAdfDiagramEditorManager$$ == $DvtAdfDiagramDragSource$$ - 1;
      switch($DvtScrollbarEvent$$[$iFlag$$]) {
        case "isolate":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateIsolateFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "container":
          $DvtAdfDiagramEditorManager$$ = null;
          ($DvtAdfDiagramEditorManager$$ = this.$isDisclosed$() ? this.$CreateContainerCloseFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$) : this.$CreateContainerOpenFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, 
          $bRoundBottomRight$$4$$)) && $DvtScrollbar$$.push($DvtAdfDiagramEditorManager$$);
          break;
        case "drill":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateDrillFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "partial_expand":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreatePartialExpandFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "stack_preview":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateStackPreviewFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "stack_explode":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateStackExplodeFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "stack_restack":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateStackRestackFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$);
          $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
          break;
        case "delete":
          $bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$ = this.$CreateDeleteFlyOut$($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$, $bRoundTopRight$$4$$, $DvtScrollbarArrow$$, $bRoundBottomRight$$4$$), $DvtScrollbar$$.push($bRoundTopLeft$$4_deleteButton_drillButton_isolateButton_partialExpandButton_stackExplodeButton_stackPreviewButton_stackRestackButton$$);
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateFlyOuts$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateFlyOuts$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$(), this.getData().getId() + "_flyOut");
    $DvtScrollbarBackground$$.$addChild$($DvtScrollbar$$);
    $DvtScrollbarBackground$$ = this.$GetFlyOutsArray$($DvtScrollbarBackground$$);
    for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
      $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$[$DvtScrollbarEvent$$]);
    }
    for (var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.length, $rows$$1$$ = Math.ceil($DvtAdfDiagramDragSource$$ / $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$), $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtAdfDiagramDragSource$$;$DvtScrollbarEvent$$++) {
      var $DvtScrollbarArrow$$ = Math.floor($DvtScrollbarEvent$$ / $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$];
      $DvtAdfDiagramEditorManager$$.$setTranslate$($DvtScrollbarEvent$$ % $dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_BUTTONS_PER_ROW$ * $DvtAdfDiagramEditorManager$$.getWidth(), -$rows$$1$$ * $DvtAdfDiagramEditorManager$$.getHeight() + $DvtScrollbarArrow$$ * $DvtAdfDiagramEditorManager$$.getHeight());
    }
    this.$_flyOuts$ = $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getFlyOutButtonById$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getFlyOutButtonById$$($dvt$$1$$) {
    if (this.$_flyOuts$) {
      for (var $DvtScrollbarBackground$$ = this.$_flyOuts$.$getNumChildren$(), $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$;$DvtScrollbar$$++) {
        var $DvtScrollbarEvent$$ = this.$_flyOuts$.$getChildAt$($DvtScrollbar$$);
        if ($DvtScrollbarEvent$$.getId() == $dvt$$1$$ || ("unstacking" == $DvtScrollbarEvent$$.getId() || "restacking" == $DvtScrollbarEvent$$.getId()) && "stacking" == $dvt$$1$$) {
          return $DvtScrollbarEvent$$.$_button$;
        }
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RefreshTransientToolbar$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RefreshTransientToolbar$$() {
    if (this.$isFlyOutEnabled$()) {
      var $dvt$$1$$ = this.$_flyOutsPos$;
      this.$HideFlyOuts$(!0);
      this.$_flyOutsPos$ = $dvt$$1$$;
      this.$ShowFlyOuts$(!0);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ShowTransientToolbar$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ShowTransientToolbar$$($dvt$$1$$) {
    this.$isFlyOutEnabled$() && (this.$CancelFlyInAnim$(), this.$_diagram$.$SetTransientToolbarDataId$(this.getData().getId()), this.$ShowFlyOuts$(!1, $dvt$$1$$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HideTransientToolbar$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HideTransientToolbar$$($dvt$$1$$) {
    this.$_diagram$.$SetTransientToolbarDataId$(null);
    this.$HideFlyOuts$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ShowFlyOuts$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ShowFlyOuts$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_flyOuts$ && $DvtScrollbar$$ && this.$PositionFlyOuts$($DvtScrollbar$$);
    if (!this.$_flyOuts$ && !this.$_flyOutAnim$) {
      var $DvtScrollbarEvent$$ = .5;
      this.$IsTransientToolbarOnClick$() && ($DvtScrollbarEvent$$ = 0);
      this.$_flyInAnim$ && (this.$_flyInAnim$.$isRunning$() && this.$_flyInAnim$.stop(!0), this.$_flyInAnim$ = null, $DvtScrollbarEvent$$ = 0);
      var $DvtAdfDiagramDragSource$$ = this.$GetDiagram$();
      this.$CreateFlyOuts$($DvtAdfDiagramDragSource$$);
      this.$PositionFlyOuts$($DvtScrollbar$$);
      $DvtScrollbarBackground$$ || (this.$_flyOutAnim$ = new $dvt$$1$$.$AnimPopIn$(this.$getCtx$(), this.$_flyOuts$, !0, .25, $DvtScrollbarEvent$$), $dvt$$1$$.$Playable$.$appendOnEnd$(this.$_flyOutAnim$, this.$OnFlyOutEnd$, this), this.$_flyOutAnim$.play());
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$PositionFlyOuts$ = function $$dvt$$1$$$$AdfDiagramNode$$$$PositionFlyOuts$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbar$$ = this.$_flyOuts$.$getDimensions$(), $DvtScrollbarEvent$$ = $dvt$$1$$.$Agent$.$isTouchDevice$() ? 17 : 7, $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.x - .5 * $DvtScrollbar$$.$w$, $DvtScrollbarBackground$$.y - $DvtScrollbarEvent$$);
      $DvtScrollbar$$.x = $DvtAdfDiagramDragSource$$.x;
      $DvtScrollbar$$.y = $DvtAdfDiagramDragSource$$.y - $DvtScrollbar$$.$h$;
      3 <= $DvtScrollbar$$.y ? 3 > $DvtScrollbar$$.x ? $DvtAdfDiagramDragSource$$.x = 3 : $DvtScrollbar$$.x + $DvtScrollbar$$.$w$ > this.$GetDiagram$().getWidth() - 3 && ($DvtAdfDiagramDragSource$$.x = this.$GetDiagram$().getWidth() - 3 - $DvtScrollbar$$.$w$) : ($DvtAdfDiagramDragSource$$.y += 3 - $DvtScrollbar$$.y, $DvtAdfDiagramDragSource$$.x = $DvtScrollbarBackground$$.x + $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$.x + $DvtScrollbar$$.$w$ > this.$GetDiagram$().getWidth() - 3 && ($DvtAdfDiagramDragSource$$.x = 
      $DvtScrollbarBackground$$.x - $DvtScrollbarEvent$$ - $DvtScrollbar$$.$w$));
      this.$_flyOutsPos$ = $DvtScrollbarBackground$$ = this.$GetDiagram$().$stageToLocal$($DvtAdfDiagramDragSource$$);
    } else {
      $DvtScrollbarBackground$$ = this.$_flyOutsPos$ ? this.$_flyOutsPos$ : this.$GetDiagram$().$stageToLocal$(this.$localToStage$(new $dvt$$1$$.$Point$(0, 0)));
    }
    $DvtScrollbarBackground$$ && this.$_flyOuts$.$setTranslate$($DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HideFlyOuts$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HideFlyOuts$$($DvtScrollbarBackground$$) {
    if (this.$_flyOuts$ && !this.$_flyInAnim$) {
      this.$_flyOutsPos$ = null;
      if (this.$_flyOutAnim$) {
        if (this.$_flyOutAnim$.$isRunning$()) {
          var $DvtScrollbar$$ = this.$_flyOuts$.$getAlpha$();
          this.$_flyOutAnim$.stop(!0);
          this.$_flyOuts$.$setAlpha$($DvtScrollbar$$);
        }
        this.$_flyOutAnim$ = null;
      }
      $DvtScrollbarBackground$$ ? this.$OnFlyInEnd$() : (this.$_flyOuts$.$removeAllDrawEffects$(), this.$getCtx$().$getDocumentUtils$().$fixGeckoContainerForFilter$ && this.$getCtx$().$getDocumentUtils$().$fixGeckoContainerForFilter$(this.$_flyOuts$.getParent()), this.$_flyInAnim$ = new $dvt$$1$$.$AnimPopOut$(this.$getCtx$(), this.$_flyOuts$, !0, .25), this.$_flyInAnim$.$setOnEnd$(this.$OnFlyInEnd$, this), this.$_flyInAnim$.play());
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$OnFlyOutEnd$ = function $$dvt$$1$$$$AdfDiagramNode$$$$OnFlyOutEnd$$() {
    this.$_flyOutAnim$ = null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$OnFlyInEnd$ = function $$dvt$$1$$$$AdfDiagramNode$$$$OnFlyInEnd$$() {
    if (!this.$_bFlyInAnimCanceled$) {
      this.$_flyInAnim$ = null;
      if (this.$_flyOuts$) {
        var $dvt$$1$$ = this.$_flyOuts$.getParent();
        $dvt$$1$$ && $dvt$$1$$.removeChild(this.$_flyOuts$);
        this.$_flyOuts$.$destroy$ && this.$_flyOuts$.$destroy$();
        this.$_flyOuts$ = null;
      }
      ($dvt$$1$$ = this.$getCtx$().$getTooltipManager$()) && $dvt$$1$$.$hideTooltip$();
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateIsolateFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateIsolateFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $isolateEna$$ = this.$_diagram$.$getResourcesMap$().isolateEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().isolateOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().isolateDwn, $isolateTip$$ = this.$_diagram$.$getResourcesMap$().isolateTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $isolateEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $isolateTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "isolate", this.$HandleIsolate$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateDrillFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateDrillFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $drillEna$$ = this.$_diagram$.$getResourcesMap$().drillEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().drillOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().drillDwn, $drillTip$$ = this.$_diagram$.$getResourcesMap$().drillTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $drillEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $drillTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "drill", this.$HandleDrill$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreatePartialExpandFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreatePartialExpandFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $additionalLinksEna$$ = this.$_diagram$.$getResourcesMap$().additionalLinksEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().additionalLinksOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().additionalLinksDwn, $additionalLinksTip$$ = this.$_diagram$.$getResourcesMap$().additionalLinksTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $additionalLinksEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $additionalLinksTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "additionalLinks", this.$HandlePartialExpand$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateContainerOpenFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateContainerOpenFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $collapsedEna$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedDwn, $collapsedTip$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $collapsedEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $collapsedTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "disclose", this.$HandleContainerOpen$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateContainerCloseFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateContainerCloseFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $expandedEna$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedDwn, $expandedTip$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $expandedEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $expandedTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "disclose", this.$HandleContainerClose$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateStackPreviewFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateStackPreviewFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $ena$$1$$ = this.$_diagram$.$getResourcesMap$().stackPreviewEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().stackPreviewOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().stackPreviewDwn, $tip$$2$$ = this.$_diagram$.$getResourcesMap$().stackPreviewTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $ena$$1$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $tip$$2$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "stackPreview", this.$HandleStackPreview$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateStackExplodeFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateStackExplodeFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $ena$$2$$ = this.$_diagram$.$getResourcesMap$().unstackEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().unstackOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().unstackDwn, $tip$$3$$ = this.$_diagram$.$getResourcesMap$().unstackTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $ena$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $tip$$3$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "unstacking", this.$HandleStackExplode$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateStackRestackFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateStackRestackFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $ena$$3$$ = this.$_diagram$.$getResourcesMap$().restackEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().restackOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().restackDwn, $tip$$4$$ = this.$_diagram$.$getResourcesMap$().restackTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $ena$$3$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $tip$$4$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "restacking", this.$HandleStackRestack$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateDeleteFlyOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateDeleteFlyOut$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $deleteEna$$ = this.$_diagram$.$getResourcesMap$().deleteEna, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().deleteOvr, $DvtScrollbarArrow$$ = this.$_diagram$.$getResourcesMap$().deleteDwn, $deleteTip$$ = this.$_diagram$.$getResourcesMap$().deleteTip;
    return this.$CreateFlyOutButton$(this.$getCtx$(), $deleteEna$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $deleteTip$$, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, "delete", this.$HandleDelete$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateFlyOutButton$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateFlyOutButton$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $tooltip$$2$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $bRoundBottomLeft$$14$$, $bRoundBottomRight$$14$$, $id$$37$$, $DvtAdfDiagramKeyboardHandler$$) {
    $DvtScrollbarBackground$$ = new $DvtAdfDiagramFlyOutButton$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $tooltip$$2$$, this.$GetDiagram$().$getEventManager$(), $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $bRoundBottomLeft$$14$$, $bRoundBottomRight$$14$$, this.$_diagram$.$_diagramButtonStyles$, $id$$37$$, $DvtAdfDiagramKeyboardHandler$$, this);
    $dvt$$1$$.$Agent$.$isTouchDevice$() || ($DvtScrollbarBackground$$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$HandleFlyOutMouseOver$, !1, this), $DvtScrollbarBackground$$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$HandleFlyOutMouseOut$, !1, this));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleFlyOutMouseOver$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleFlyOutMouseOver$$() {
    this.$IsTransientToolbarOnClick$() || this.$CancelFlyInAnim$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleFlyOutMouseOut$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleFlyOutMouseOut$$() {
    this.$IsTransientToolbarOnClick$() || this.$HideFlyOuts$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CancelFlyInAnim$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CancelFlyInAnim$$() {
    this.$_flyInAnim$ && (this.$_flyInAnim$.$isRunning$() && (this.$_bFlyInAnimCanceled$ = !0, this.$_flyInAnim$.stop(), this.$_bFlyInAnimCanceled$ = !1), this.$_flyInAnim$ = null);
    this.$_flyOuts$ && (this.$_flyOutAnim$ && this.$_flyOutAnim$.$isRunning$() || this.$_flyOuts$.$setAlpha$($dvt$$1$$.$AdfDiagramNode$.$_TRANSIENT_TOOLBAR_ALPHA$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleIsolate$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleIsolate$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$ : 0;
    this.$_bStack$ ? this.$GetDiagram$().$isolateStack$(this.getData().getId(), $DvtAdfDiagramDragSource$$, $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_INTERSECT$, $DvtScrollbarEvent$$) : this.$GetDiagram$().$isolateNode$(this.getData().getId(), $DvtAdfDiagramDragSource$$, $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_INTERSECT$, $DvtScrollbarEvent$$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleDrill$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleDrill$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    this.$GetDiagram$().$drillNode$(this.getData().getId(), $DvtScrollbarEvent$$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandlePartialExpand$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandlePartialExpand$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = this.$GetDiagram$();
    var $DvtScrollbar$$ = !1, $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttributeGroups$();
    if ($DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$CreateStackName$(this.getData().getId(), $DvtScrollbarEvent$$))) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_arExplodedStacks$;
      $DvtAdfDiagramDragSource$$ && -1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$) || ($DvtScrollbar$$ = !0);
    }
    $DvtScrollbar$$ ? $DvtScrollbarBackground$$.$isolateStack$(this.getData().getId(), 1, $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_UNION$) : $DvtScrollbarBackground$$.$isolateNode$(this.getData().getId(), 1, $dvt$$1$$.$AdfDiagram$.$ISOLATE_TYPE_UNION$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleRestore$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleRestore$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    this.$GetDiagram$().restore($DvtScrollbarEvent$$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleContainerOpen$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleContainerOpen$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = this.getData().getId();
    this.$GetDiagram$().$setNodeDisclosed$($DvtScrollbarBackground$$, !0, $DvtScrollbarEvent$$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleContainerClose$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleContainerClose$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = this.getData().getId();
    this.$GetDiagram$().$setNodeDisclosed$($DvtScrollbarBackground$$, !1, $DvtScrollbarEvent$$);
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleStackPreview$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleStackPreview$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    this.$_stackBadgeHandler$.$ShowDialog$();
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleDelete$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleDelete$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = [this.getData().getId()];
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$AdfDiagramDeleteNodeEvent$($DvtScrollbarBackground$$);
    this.$GetDiagram$().dispatchEvent($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ShowStackPreview$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ShowStackPreview$$() {
    this.$_stackBadgeHandler$.$ShowDialog$(!0);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HideStackPreview$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HideStackPreview$$() {
    this.$_stackBadgeHandler$.$CloseDialog$(!1, !0);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleStackExplode$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleStackExplode$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    this.$_stackBadgeHandler$.$ExplodeStack$();
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleStackRestack$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleStackRestack$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$_diagram$.$getAttributeGroups$();
    $DvtScrollbarBackground$$ = this.$_diagram$.$_arExplodedStacks$;
    if ($DvtScrollbar$$ && 0 < $DvtScrollbar$$.length && $DvtScrollbarBackground$$ && 0 < $DvtScrollbarBackground$$.length) {
      for (var $DvtScrollbar$$ = this.$_diagram$.$CreateStackName$(this.getData().getId(), this.$_diagram$.$getAttributeGroups$()), $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        if ($DvtScrollbar$$ == $DvtScrollbarBackground$$[$DvtScrollbarEvent$$]) {
          $DvtScrollbarBackground$$.splice($DvtScrollbarEvent$$, 1);
          this.$_diagram$.$setExplodedStacks$($DvtScrollbarBackground$$);
          break;
        }
      }
    }
    this.$ClickedFlyOutButton$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ClickedFlyOutButton$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ClickedFlyOutButton$$() {
    this.$HideTransientToolbar$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setFlyOutEnabled$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setFlyOutEnabled$$() {
    this.$_bFlyOutEnabled$ = !1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isFlyOutEnabled$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isFlyOutEnabled$$() {
    return this.$_bFlyOutEnabled$ && this.getData().$_showNodeActions$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$SetContainerBadgeVisible$ = function $$dvt$$1$$$$AdfDiagramNode$$$$SetContainerBadgeVisible$$($dvt$$1$$) {
    this.$isContainer$() && this.$_containerBadge$ && (this.$_containerBadge$.$setVisible$($dvt$$1$$), this.$_containerBadge$.$setMouseEnabled$($dvt$$1$$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RefreshContainerBadgeVisibility$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RefreshContainerBadgeVisibility$$() {
    this.$isContainer$() && this.$_containerBadge$ && this.$SetContainerBadgeVisible$(this.$_diagram$.$_panZoomCanvas$.$getZoom$() >= $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_BADGE_MIN_ZOOM$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$RefreshContainerBadge$ = function $$dvt$$1$$$$AdfDiagramNode$$$$RefreshContainerBadge$$() {
    this.$_containerBadge$ && (this.$_getContentContainer$().removeChild(this.$_containerBadge$), this.$_containerBadgeHandler$ = this.$_containerBadge$ = null);
    this.$isContainer$() && this.getData().$_showExpandChildren$ && (this.$CreateContainerBadge$(), this.$RefreshContainerBadgeVisibility$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateContainerBadge$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateContainerBadge$$() {
    var $DvtScrollbarBackground$$ = this.$getCtx$(), $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = null;
    this.$isDisclosed$() ? ($DvtScrollbar$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedEna, $DvtScrollbarEvent$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedOvr, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().discloseExpandedDwn) : ($DvtScrollbar$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedEna, $DvtScrollbarEvent$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedOvr, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().discloseCollapsedDwn);
    $DvtScrollbar$$ = new $dvt$$1$$.Image($DvtScrollbarBackground$$, $DvtScrollbar$$, 0, 0, 20, 20);
    $DvtScrollbarEvent$$ = new $dvt$$1$$.Image($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, 0, 0, 20, 20);
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Image($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$, 0, 0, 20, 20);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Button$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, null, "disclosure");
    this.$_getContentContainer$().$addChild$($DvtScrollbarBackground$$);
    this.$_containerBadge$ = $DvtScrollbarBackground$$;
    this.$PositionContainerBadge$();
    this.$_containerBadgeHandler$ = new $DvtAdfDiagramContainerBadgeHandler$$(this.$GetDiagram$(), this, $DvtScrollbarBackground$$);
    this.$GetDiagram$().$getEventManager$().$associate$(this.$_containerBadge$, this.$_containerBadgeHandler$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$PositionContainerBadge$ = function $$dvt$$1$$$$AdfDiagramNode$$$$PositionContainerBadge$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_containerBadge$;
    if ($DvtScrollbar$$) {
      if ($dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$())) {
        var $DvtScrollbarEvent$$ = this.$getContentBounds$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getDimensions$() ? $DvtScrollbar$$.$getDimensions$().$w$ : 0, $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$w$ - $DvtAdfDiagramDragSource$$;
        $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateX$, $DvtScrollbar$$.$setTranslateX$, $DvtScrollbarEvent$$) : $DvtScrollbar$$.$setTranslateX$($DvtScrollbarEvent$$);
      } else {
        $DvtScrollbar$$.$setTranslateX$(0);
      }
      $DvtScrollbar$$.$setTranslateY$(0);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CalcChildNodePaneBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CalcChildNodePaneBounds$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    if (this.$_childNodePane$) {
      $DvtScrollbar$$ = this.$GetDiagram$();
      var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $maxY$$2$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $currMinX_labelRotAngle$$, $currMinY$$, $currMaxX_labelRotPoint$$, $DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramNodeEndpoint$$, $DvtAdfDiagramDropTarget$$, $DvtItemListEvent$$, $DvtPaletteEventManager$$;
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < this.$_childNodeIds$.length;$DvtScrollbarEvent$$++) {
        if ($DvtAdfDiagramNodeEndpoint$$ = this.$_childNodeIds$[$DvtScrollbarEvent$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbar$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$), $DvtAdfDiagramDropTarget$$.$_bVisible$) {
          $DvtItemListEvent$$ = $DvtAdfDiagramDropTarget$$.$getLayoutBounds$().clone();
          $DvtAdfDiagramNodeEndpoint$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getTranslateX$, !0) : $DvtAdfDiagramDropTarget$$.$getTranslateX$();
          var $DvtPaletteItem$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getTranslateY$, !0) : $DvtAdfDiagramDropTarget$$.$getTranslateY$();
          $DvtItemListEvent$$.x += $DvtAdfDiagramNodeEndpoint$$;
          $DvtItemListEvent$$.y += $DvtPaletteItem$$;
          $currMaxX_labelRotPoint$$ = $DvtItemListEvent$$.x + $DvtItemListEvent$$.$w$;
          $currMinX_labelRotAngle$$ = $DvtItemListEvent$$.x;
          $DvtAdfDiagramKeyboardHandler$$ = $DvtItemListEvent$$.y + $DvtItemListEvent$$.$h$;
          $currMinY$$ = $DvtItemListEvent$$.y;
          $DvtAdfDiagramDropTarget$$.$isDisclosed$() && $DvtAdfDiagramDropTarget$$.$_containerChrome$ && ($DvtItemListEvent$$ = $DvtAdfDiagramDropTarget$$.$_containerChrome$.$getStroke$().getWidth() / 2, $currMinX_labelRotAngle$$ -= $DvtItemListEvent$$, $currMinY$$ -= $DvtItemListEvent$$, $currMaxX_labelRotPoint$$ += $DvtItemListEvent$$, $DvtAdfDiagramKeyboardHandler$$ += $DvtItemListEvent$$);
          $DvtItemListEvent$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getLabelBounds$, !0) : $DvtAdfDiagramDropTarget$$.$getLabelBounds$();
          $DvtPaletteEventManager$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getLabelPosition$, !0) : $DvtAdfDiagramDropTarget$$.$getLabelPosition$();
          $DvtItemListEvent$$ && $DvtPaletteEventManager$$ && ($currMinX_labelRotAngle$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getLabelRotationAngle$, !0) : $DvtAdfDiagramDropTarget$$.$_labelRotAngle$, $currMaxX_labelRotPoint$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$getDestVal$($DvtAdfDiagramDropTarget$$, $DvtAdfDiagramDropTarget$$.$getLabelRotationPoint$, !0) : $DvtAdfDiagramDropTarget$$.$_labelRotPoint$, 
          $DvtAdfDiagramDropTarget$$ = $DvtAdfDiagramDropTarget$$.$GetRelativeLabelBounds$($DvtPaletteEventManager$$, $DvtItemListEvent$$, $currMinX_labelRotAngle$$, $currMaxX_labelRotPoint$$), $currMaxX_labelRotPoint$$ = $DvtAdfDiagramDropTarget$$.x + $DvtAdfDiagramNodeEndpoint$$ + $DvtAdfDiagramDropTarget$$.$w$, $DvtAdfDiagramKeyboardHandler$$ = $DvtAdfDiagramDropTarget$$.y + $DvtPaletteItem$$ + $DvtAdfDiagramDropTarget$$.$h$, $currMinX_labelRotAngle$$ = $DvtAdfDiagramDropTarget$$.x + $DvtAdfDiagramNodeEndpoint$$, 
          $currMinY$$ = $DvtAdfDiagramDropTarget$$.y + $DvtPaletteItem$$);
          $DvtAdfDiagramDragSource$$ ? ($DvtScrollbarArrow$$ = Math.min($DvtScrollbarArrow$$, $currMinX_labelRotAngle$$), $DvtAdfDiagramDragSource$$ = Math.max($DvtAdfDiagramDragSource$$, $currMaxX_labelRotPoint$$), $DvtAdfDiagramEditorManager$$ = Math.min($DvtAdfDiagramEditorManager$$, $currMinY$$), $maxY$$2$$ = Math.max($maxY$$2$$, $DvtAdfDiagramKeyboardHandler$$)) : ($DvtScrollbarArrow$$ = $currMinX_labelRotAngle$$, $DvtAdfDiagramDragSource$$ = $currMaxX_labelRotPoint$$, $DvtAdfDiagramEditorManager$$ = 
          $currMinY$$, $maxY$$2$$ = $DvtAdfDiagramKeyboardHandler$$);
        }
      }
      $DvtScrollbar$$ = new $dvt$$1$$.$Rectangle$($DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDragSource$$ - $DvtScrollbarArrow$$, $maxY$$2$$ - $DvtAdfDiagramEditorManager$$);
      this.$_childLinkIds$ && this.$CalcLinkBounds$(this.$_childLinkIds$, $DvtScrollbar$$, $DvtScrollbarBackground$$);
      this.$_crossChildLinkIds$ && this.$CalcLinkBounds$(this.$_crossChildLinkIds$, $DvtScrollbar$$, $DvtScrollbarBackground$$);
    }
    $DvtScrollbar$$ || ($DvtScrollbar$$ = new $dvt$$1$$.$Rectangle$(0, 0, 0, 0));
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CalcLinkBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CalcLinkBounds$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    for (var $DvtScrollbarEvent$$, $labelPos$$2_maxY$$3$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $diagram$$23$$ = this.$GetDiagram$(), $i$$65$$ = 0;$i$$65$$ < $dvt$$1$$.length;$i$$65$$++) {
      var $child$$7_relLabelBounds$$1$$ = $diagram$$23$$.$getLinkById$($dvt$$1$$[$i$$65$$]);
      if ($child$$7_relLabelBounds$$1$$.$_bVisible$) {
        if ($DvtScrollbarArrow$$ = $child$$7_relLabelBounds$$1$$.$getDimensionsWithStroke$($DvtScrollbar$$)) {
          $DvtScrollbarEvent$$ = Math.max($DvtScrollbarBackground$$.x + $DvtScrollbarBackground$$.$w$, $DvtScrollbarArrow$$.x + $DvtScrollbarArrow$$.$w$), $labelPos$$2_maxY$$3$$ = Math.max($DvtScrollbarBackground$$.y + $DvtScrollbarBackground$$.$h$, $DvtScrollbarArrow$$.y + $DvtScrollbarArrow$$.$h$), $DvtAdfDiagramDragSource$$ = Math.min($DvtScrollbarBackground$$.x, $DvtScrollbarArrow$$.x), $DvtScrollbarArrow$$ = Math.min($DvtScrollbarBackground$$.y, $DvtScrollbarArrow$$.y), $DvtScrollbarBackground$$.x = 
          $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$.y = $DvtScrollbarArrow$$, $DvtScrollbarBackground$$.$w$ = $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$.$h$ = $labelPos$$2_maxY$$3$$ - $DvtScrollbarArrow$$;
        }
        $DvtScrollbarEvent$$ = $DvtScrollbar$$ ? $DvtScrollbar$$.$getDestVal$($child$$7_relLabelBounds$$1$$, $child$$7_relLabelBounds$$1$$.$getLabelBounds$, !0) : $child$$7_relLabelBounds$$1$$.$getLabelBounds$();
        $labelPos$$2_maxY$$3$$ = $DvtScrollbar$$ ? $DvtScrollbar$$.$getDestVal$($child$$7_relLabelBounds$$1$$, $child$$7_relLabelBounds$$1$$.$getLabelPosition$, !0) : $child$$7_relLabelBounds$$1$$.$getLabelPosition$();
        $DvtScrollbarEvent$$ && $labelPos$$2_maxY$$3$$ && ($DvtAdfDiagramDragSource$$ = $DvtScrollbar$$ ? $DvtScrollbar$$.$getDestVal$($child$$7_relLabelBounds$$1$$, $child$$7_relLabelBounds$$1$$.$getLabelRotationAngle$, !0) : $child$$7_relLabelBounds$$1$$.$_labelRotAngle$, $DvtScrollbarArrow$$ = $DvtScrollbar$$ ? $DvtScrollbar$$.$getDestVal$($child$$7_relLabelBounds$$1$$, $child$$7_relLabelBounds$$1$$.$getLabelRotationPoint$, !0) : $child$$7_relLabelBounds$$1$$.$_labelRotPoint$, $child$$7_relLabelBounds$$1$$ = 
        $child$$7_relLabelBounds$$1$$.$GetRelativeLabelBounds$($labelPos$$2_maxY$$3$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$), $DvtScrollbarEvent$$ = Math.max($child$$7_relLabelBounds$$1$$.x + $child$$7_relLabelBounds$$1$$.$w$, $DvtScrollbarBackground$$.x + $DvtScrollbarBackground$$.$w$), $labelPos$$2_maxY$$3$$ = Math.max($child$$7_relLabelBounds$$1$$.y + $child$$7_relLabelBounds$$1$$.$h$, $DvtScrollbarBackground$$.y + $DvtScrollbarBackground$$.$h$), $DvtAdfDiagramDragSource$$ = 
        Math.min($DvtScrollbarBackground$$.x, $child$$7_relLabelBounds$$1$$.x), $DvtScrollbarArrow$$ = Math.min($DvtScrollbarBackground$$.y, $child$$7_relLabelBounds$$1$$.y), $DvtScrollbarBackground$$.x = $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$.y = $DvtScrollbarArrow$$, $DvtScrollbarBackground$$.$w$ = $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$.$h$ = $labelPos$$2_maxY$$3$$ - $DvtScrollbarArrow$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isDragAvailable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isDragAvailable$$($dvt$$1$$) {
    return this.$_draggable$ ? this.$GetDiagram$().$__isDragAvailable$($dvt$$1$$) : null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getDragTransferable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getDragTransferable$$() {
    return this.$GetDiagram$().$__getDragTransferable$(this);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getDragFeedback$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getDragFeedback$$() {
    return this.$GetDiagram$().$__getDragFeedback$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$__getDisplayable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$__getDisplayable$$() {
    this.$HideTransientToolbar$(!0);
    var $dvt$$1$$ = this.$GetDiagram$().$_editor$;
    $dvt$$1$$ && $dvt$$1$$.$processDragEnd$(null, {x:0, y:0});
    return this;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateLabel$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateLabel$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = this.$_nodeDef$.$_labelTemplate$;
    $DvtScrollbarEvent$$ ? $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, this) : this.$_label$ && ($DvtScrollbar$$ = new $dvt$$1$$.$AfOutputText$, $DvtScrollbar$$.setValue(this.$_label$), this.$_nodeLabelStyles$ && $DvtScrollbar$$.$setInlineStyle$(this.$_nodeLabelStyles$.toString()), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbarBackground$$, $DvtScrollbar$$, this));
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HasLabel$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HasLabel$$() {
    return this.$_label$ || this.$_nodeDef$.$_labelTemplate$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetRelativeLabelBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetRelativeLabelBounds$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $mat$$1_minX$$4$$ = $dvt$$1$$.$BaseDiagramNode$.$CalcLabelMatrix$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$ = $mat$$1_minX$$4$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y));
    $DvtScrollbarEvent$$ = $mat$$1_minX$$4$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x + $DvtScrollbar$$.$w$, $DvtScrollbar$$.y));
    $DvtAdfDiagramDragSource$$ = $mat$$1_minX$$4$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y + $DvtScrollbar$$.$h$));
    $DvtScrollbar$$ = $mat$$1_minX$$4$$.$transformPoint$(new $dvt$$1$$.$Point$($DvtScrollbar$$.x + $DvtScrollbar$$.$w$, $DvtScrollbar$$.y + $DvtScrollbar$$.$h$));
    var $mat$$1_minX$$4$$ = Math.min(Math.min($DvtScrollbarBackground$$.x, $DvtScrollbarEvent$$.x), Math.min($DvtAdfDiagramDragSource$$.x, $DvtScrollbar$$.x)), $DvtScrollbarArrow$$ = Math.min(Math.min($DvtScrollbarBackground$$.y, $DvtScrollbarEvent$$.y), Math.min($DvtAdfDiagramDragSource$$.y, $DvtScrollbar$$.y));
    return new $dvt$$1$$.$Rectangle$($mat$$1_minX$$4$$, $DvtScrollbarArrow$$, Math.max(Math.max($DvtScrollbarBackground$$.x, $DvtScrollbarEvent$$.x), Math.max($DvtAdfDiagramDragSource$$.x, $DvtScrollbar$$.x)) - $mat$$1_minX$$4$$, Math.max(Math.max($DvtScrollbarBackground$$.y, $DvtScrollbarEvent$$.y), Math.max($DvtAdfDiagramDragSource$$.y, $DvtScrollbar$$.y)) - $DvtScrollbarArrow$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContainerTopHeight$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContainerTopHeight$$() {
    return this.$_containerTopBounds$ ? this.$_containerTopBounds$.$h$ : 0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContainerLeftWidth$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContainerLeftWidth$$() {
    return this.$_containerLeftBounds$ ? this.$_containerLeftBounds$.$w$ : 0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setContainerPadding$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setContainerPadding$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (!this.$_containerPadding$ || !$DvtScrollbarBackground$$ || this.$_containerPadding$.top != $DvtScrollbarBackground$$.top || this.$_containerPadding$.right != $DvtScrollbarBackground$$.right || this.$_containerPadding$.bottom != $DvtScrollbarBackground$$.bottom || this.$_containerPadding$.left != $DvtScrollbarBackground$$.left) {
      var $DvtScrollbarEvent$$ = this.$_containerPadding$;
      this.$_containerPadding$ = {};
      this.$_containerPadding$.top = $DvtScrollbarBackground$$ && null != $DvtScrollbarBackground$$.top ? $DvtScrollbarBackground$$.top : $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$;
      this.$_containerPadding$.right = $DvtScrollbarBackground$$ && null != $DvtScrollbarBackground$$.right ? $DvtScrollbarBackground$$.right : $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$;
      this.$_containerPadding$.bottom = $DvtScrollbarBackground$$ && null != $DvtScrollbarBackground$$.bottom ? $DvtScrollbarBackground$$.bottom : $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$;
      this.$_containerPadding$.left = $DvtScrollbarBackground$$ && null != $DvtScrollbarBackground$$.left ? $DvtScrollbarBackground$$.left : $dvt$$1$$.$AdfDiagramNode$.$_CONTAINER_PADDING$;
      this.$_childNodePaneDims$ && (this.$TransitionContainerPadding$($DvtScrollbarEvent$$, this.$_containerPadding$, $DvtScrollbar$$), this.$PositionContainerBadge$($DvtScrollbar$$), this.$GetDiagram$().$UpdateOverviewNode$(this, $DvtScrollbar$$));
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getContainerPadding$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getContainerPadding$$() {
    return this.$_containerPadding$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$SetMaxAlpha$ = function $$dvt$$1$$$$AdfDiagramNode$$$$SetMaxAlpha$$($dvt$$1$$) {
    this.$_maxAlpha$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetMaxAlpha$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetMaxAlpha$$() {
    return this.$_maxAlpha$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContentContainer$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContentContainer$$() {
    return this.$_contentPane$ ? this.$_contentPane$ : this;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getNextNavigable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getNextNavigable$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    if (this.$_bHiddenAncestor$) {
      return this.$GetDiagram$().$getEventManager$().$getFocus$();
    }
    if ($DvtScrollbarBackground$$.type == $dvt$$1$$.MouseEvent.$CLICK$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$SPACE$ && $DvtScrollbarBackground$$.ctrlKey) {
      return this;
    }
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$OPEN_BRACKET$) {
      if (this.$isContainer$() && ($DvtScrollbarBackground$$ = this.$_childNodeIds$) && 0 < $DvtScrollbarBackground$$.length) {
        for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
          if ($DvtScrollbar$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbarBackground$$[$DvtScrollbarEvent$$]), $DvtScrollbar$$.$_bVisible$) {
            return $DvtScrollbar$$;
          }
        }
      }
      return this;
    }
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$CLOSE_BRACKET$) {
      if ($DvtScrollbar$$ = this.getData().$getGroupId$()) {
        if ($DvtScrollbar$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbar$$), $DvtScrollbar$$.$_bVisible$ && !$DvtScrollbar$$.$_bHiddenAncestor$) {
          return $DvtScrollbar$$;
        }
      }
      return this;
    }
    if (($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$ || $dvt$$1$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$) && $DvtScrollbarBackground$$.altKey) {
      var $DvtScrollbarEvent$$ = this.$GetDiagram$().$getNavigableLinksForNodeId$(this.getData().getId()), $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getEventManager$().$KeyboardHandler$;
      $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.$getFirstNavigableLink$ && ($DvtScrollbar$$ = $DvtAdfDiagramDragSource$$.$getFirstNavigableLink$(this, $DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
      $DvtScrollbar$$ ? $DvtScrollbar$$.$setKeyboardFocusNode$(this) : $DvtScrollbar$$ = this;
      return $DvtScrollbar$$;
    }
    $DvtScrollbarEvent$$ = [];
    if ($DvtScrollbar$$ = this.getData().$getGroupId$()) {
      for (var $DvtScrollbar$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_childNodeIds$, $i$$66$$ = 0;$i$$66$$ < $DvtAdfDiagramDragSource$$.length;$i$$66$$++) {
        $DvtScrollbar$$ = this.$GetDiagram$().$getNodeById$($DvtAdfDiagramDragSource$$[$i$$66$$]), $DvtScrollbar$$.$_bVisible$ && $DvtScrollbarEvent$$.push($DvtScrollbar$$);
      }
    } else {
      $DvtScrollbarEvent$$ = this.$_diagram$.$getSortedVisibleNodesByGroupDepth$()[0];
    }
    ($DvtScrollbar$$ = $dvt$$1$$.$KeyboardHandler$.$getNextAdjacentNavigable$(this, $DvtScrollbarBackground$$, $DvtScrollbarEvent$$)) && ($DvtScrollbarBackground$$ = this.$GetDiagram$().$_editor$) && $DvtScrollbarBackground$$.$_linkCreateWithKeyboard$ && this.$_diagram$.$_linkToolEnabled$ && $DvtScrollbarBackground$$.$processLinkCreateWithKeyboard$($DvtScrollbar$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.$FindGroupDepth$ = function $$dvt$$1$$$$AdfDiagramNode$$$FindGroupDepth$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      for (var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$], $j$$9$$ = 0;$j$$9$$ < $DvtScrollbarEvent$$.length;$j$$9$$++) {
        if ($dvt$$1$$ == $DvtScrollbarEvent$$[$j$$9$$]) {
          return $DvtScrollbar$$;
        }
      }
    }
    return -1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$showKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$showKeyboardFocusEffect$$($dvt$$1$$) {
    $dvt$$1$$ || this.$GetDiagram$().$HideNodeTransientToolbar$(!0);
    this.$ShowKeyboardFocusEffect$($dvt$$1$$);
    $dvt$$1$$ || (this.$_bFocusEffect$ = !0, this.$setFocused$(!0), this.$_curTabStopIdx$ = 0);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ShowKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ShowKeyboardFocusEffect$$($dvt$$1$$) {
    this.$showHoverEffect$();
    this.$IsTransientToolbarOnClick$() || $dvt$$1$$ || !this.$isFlyOutEnabled$() || (this.$CancelFlyInAnim$(), this.$ShowFlyOuts$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$hideKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$hideKeyboardFocusEffect$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_bFocusEffect$;
    this.$_bFocusEffect$ = !1;
    this.$HideKeyboardFocusEffect$($dvt$$1$$);
    $dvt$$1$$ ? this.$_bFocusEffect$ = $DvtScrollbarBackground$$ : (this.$resetTabStops$(), this.$setFocused$(!1));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HideKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HideKeyboardFocusEffect$$($dvt$$1$$) {
    this.$_hover$ || this.$hideHoverEffect$();
    this.$IsTransientToolbarOnClick$() || $dvt$$1$$ || this.$HideFlyOuts$(!0);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isShowingKeyboardFocusEffect$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isShowingKeyboardFocusEffect$$() {
    return this.$_bFocusEffect$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetAfComponentRoot$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetAfComponentRoot$$() {
    return $dvt$$1$$.$AfComponentFactory$.$getCompTree$(this.$_afRoot$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getAfComponent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getAfComponent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$GetAfComponentRoot$();
    if ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$)) {
      return $DvtScrollbar$$;
    }
    if (this.$_overlays$) {
      for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < this.$_overlays$.length;$DvtScrollbarEvent$$++) {
        if ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_overlays$[$DvtScrollbarEvent$$].overlay), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$)) {
          return $DvtScrollbar$$;
        }
      }
    }
    return this.$isDisclosed$() && (this.$_containerTopObj$ && ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_containerTopObj$), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$)) || this.$_containerBottomObj$ && ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_containerBottomObj$), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$)) || 
    this.$_containerRightObj$ && ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_containerRightObj$), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$)) || this.$_containerLeftObj$ && ($DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_containerLeftObj$), $DvtScrollbar$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$))) ? $DvtScrollbar$$ : null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getShowPopupBehaviors$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getShowPopupBehaviors$$() {
    if (!this.$_showPopupBehaviors$ && this.$_nodeDef$.$getShowPopupBehaviors$()) {
      var $DvtScrollbarBackground$$ = this.$_nodeDef$.$getShowPopupBehaviors$(), $DvtScrollbar$$ = this.$GetDiagram$().$createAfContext$(this.getData().getId());
      this.$_showPopupBehaviors$ = [];
      for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        this.$_showPopupBehaviors$[$DvtScrollbarEvent$$] = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbar$$, $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], null);
      }
    }
    return this.$_showPopupBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getClientBehaviors$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getClientBehaviors$$() {
    if (this.$isDisclosed$()) {
      return null;
    }
    if (!this.$_clientBehaviors$ && this.$_nodeDef$.$getClientBehaviors$()) {
      var $DvtScrollbarBackground$$ = this.$_nodeDef$.$getClientBehaviors$(), $DvtScrollbar$$ = this.$GetDiagram$().$createAfContext$(this.getData().getId());
      this.$_clientBehaviors$ = [];
      for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        this.$_clientBehaviors$[$DvtScrollbarEvent$$] = $dvt$$1$$.$AfComponentFactory$.$parseAndStamp$($DvtScrollbar$$, $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], null);
      }
    }
    return this.$_clientBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getPopupBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getPopupBounds$$($dvt$$1$$) {
    return $dvt$$1$$ && ($dvt$$1$$ = $dvt$$1$$.$getAlignId$()) && this.$_nodeDef$.getId() == $dvt$$1$$ ? this.$GetNodePopupBounds$() : null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetNodePopupBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetNodePopupBounds$$() {
    var $DvtScrollbarBackground$$ = this.$getContentBounds$(), $DvtScrollbar$$ = this.$localToStage$(new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y)), $DvtScrollbarBackground$$ = this.$localToStage$(new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.x + $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.y + $DvtScrollbarBackground$$.$h$));
    return new $dvt$$1$$.$Rectangle$($DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbarBackground$$.x - $DvtScrollbar$$.x, $DvtScrollbarBackground$$.y - $DvtScrollbar$$.y);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$findComponentPopupBounds$ = function $$dvt$$1$$$$AdfDiagramNode$$$$findComponentPopupBounds$$($DvtScrollbarBackground$$) {
    if (this.$_nodeDef$.getId() == $DvtScrollbarBackground$$) {
      return this.$GetNodePopupBounds$();
    }
    var $DvtScrollbar$$ = null;
    if (this.$isDisclosed$()) {
      if (this.$_containerTopObj$) {
        var $DvtScrollbarEvent$$ = this.$_containerTopObj$.$_compTree$;
        $DvtScrollbarEvent$$ && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
      }
      !$DvtScrollbar$$ && this.$_containerBottomObj$ && ($DvtScrollbarEvent$$ = this.$_containerBottomObj$.$_compTree$) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
      !$DvtScrollbar$$ && this.$_containerLeftObj$ && ($DvtScrollbarEvent$$ = this.$_containerLeftObj$.$_compTree$) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
      !$DvtScrollbar$$ && this.$_containerRightObj$ && ($DvtScrollbarEvent$$ = this.$_containerRightObj$.$_compTree$) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
    } else {
      this.$_afRoot$ && ($DvtScrollbarEvent$$ = this.$_afRoot$.$_compTree$) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$));
    }
    return $DvtScrollbar$$ && ($DvtScrollbarBackground$$ = $DvtScrollbar$$.$_bgShape$) ? $DvtScrollbarBackground$$.$getDimensions$($DvtScrollbarBackground$$.$getCtx$().$_stage$) : null;
  };
  $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$ = function $$dvt$$1$$$$AdfDiagramNode$$$FindAfComponent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$ == $DvtScrollbar$$.getId()) {
      return $DvtScrollbar$$;
    }
    for (var $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getNumChildren$(), $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$;$DvtAdfDiagramDragSource$$++) {
      var $childTemplate$$ = $dvt$$1$$.$AdfDiagramNode$.$FindAfComponent$($DvtScrollbarBackground$$, $DvtScrollbar$$.$getChildAt$($DvtAdfDiagramDragSource$$));
      if ($childTemplate$$) {
        return $childTemplate$$;
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setStateProp$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setStateProp$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_stateProps$[$dvt$$1$$] = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getStateProp$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getStateProp$$($dvt$$1$$) {
    return this.$_stateProps$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_setContainerFacetScale$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_setContainerFacetScale$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    $DvtScrollbarBackground$$ ? ($DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleX$, $DvtScrollbar$$.$setScaleX$, $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleY$, $DvtScrollbar$$.$setScaleY$, $DvtAdfDiagramDragSource$$)) : $DvtScrollbar$$.$setScale$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_setContainerFacetTranslate$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_setContainerFacetTranslate$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    $DvtScrollbarBackground$$ ? ($DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateX$, $DvtScrollbar$$.$setTranslateX$, $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateY$, $DvtScrollbar$$.$setTranslateY$, $DvtAdfDiagramDragSource$$)) : $DvtScrollbar$$.$setTranslate$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setContainerStyle$$($dvt$$1$$) {
    this.$_containerStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getOverviewStyle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getOverviewStyle$$() {
    return this.$_overviewStyle$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setOverviewStyle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setOverviewStyle$$($dvt$$1$$) {
    this.$_overviewStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getOverviewContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getOverviewContainerStyle$$() {
    return this.$_overviewContainerStyle$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setOverviewContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setOverviewContainerStyle$$($dvt$$1$$) {
    this.$_overviewContainerStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContainerBgColor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContainerBgColor$$() {
    if (this.$_containerStyle$) {
      var $DvtScrollbarBackground$$ = this.$_containerStyle$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$);
      if ($DvtScrollbarBackground$$) {
        return $DvtScrollbarBackground$$;
      }
    }
    return this.$_defaultContainerBgColor$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContainerBorderColor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContainerBorderColor$$() {
    if (this.$_containerStyle$) {
      var $DvtScrollbarBackground$$ = this.$_containerStyle$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$);
      if ($DvtScrollbarBackground$$) {
        return $DvtScrollbarBackground$$;
      }
    }
    return this.$_defaultContainerBorderColor$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContainerBorderRx$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContainerBorderRx$$() {
    if (this.$_containerStyle$) {
      var $DvtScrollbarBackground$$ = this.$_containerStyle$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$);
      if ($DvtScrollbarBackground$$) {
        return $dvt$$1$$.$CSSStyle$.$toNumber$($DvtScrollbarBackground$$);
      }
    }
    return this.$_defaultContainerBorderRx$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getContainerBorderWidth$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getContainerBorderWidth$$() {
    if (this.$_containerStyle$) {
      var $DvtScrollbarBackground$$ = this.$_containerStyle$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_WIDTH$);
      if ($DvtScrollbarBackground$$) {
        return $dvt$$1$$.$CSSStyle$.$toNumber$($DvtScrollbarBackground$$);
      }
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$applyBadgeTextStyles$ = function $$dvt$$1$$$$AdfDiagramNode$$$$applyBadgeTextStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtScrollbar$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FONT_FAMILY$, $dvt$$1$$.$AfStyleUtils$.$getDefaultFontFamily$());
    var $DvtScrollbarEvent$$ = this.$_diagram$.$_stackBadgeStyles$;
    $DvtScrollbarEvent$$ && $DvtScrollbar$$.$merge$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$setCSSStyle$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$applyBadgeStyles$ = function $$dvt$$1$$$$AdfDiagramNode$$$$applyBadgeStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $skinStyles$$1$$ = this.$_diagram$.$_stackBadgeStyles$;
    $skinStyles$$1$$ && ($DvtScrollbar$$ = $skinStyles$$1$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$), $DvtScrollbarEvent$$ = $skinStyles$$1$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$), ($DvtAdfDiagramDragSource$$ = $skinStyles$$1$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$CSSStyle$.$toNumber$($DvtAdfDiagramDragSource$$)));
    $DvtScrollbar$$ = new $dvt$$1$$.$SolidFill$($DvtScrollbar$$);
    $DvtScrollbarBackground$$.$setFill$($DvtScrollbar$$);
    $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = this.$_getUnderlayStroke$($DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$setStroke$($DvtScrollbarEvent$$));
    $DvtAdfDiagramDragSource$$ && ($DvtScrollbarBackground$$.$setRx$($DvtAdfDiagramDragSource$$), $DvtScrollbarBackground$$.$setRy$($DvtAdfDiagramDragSource$$));
    $DvtScrollbarBackground$$.$setPixelHinting$();
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getAccessibilityStates$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getAccessibilityStates$$() {
    var $DvtScrollbarBackground$$ = [];
    this.$isSelectable$() && $DvtScrollbarBackground$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, this.$isSelected$() ? "STATE_SELECTED" : "STATE_UNSELECTED"));
    this.$isContainer$() && $DvtScrollbarBackground$$.push(this.$isDisclosed$() ? $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_EXPANDED") : $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_COLLAPSED"));
    this.$_bStack$ && ($DvtScrollbarBackground$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "STATE_STACKED")), $DvtScrollbarBackground$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "COLON_SEP_LIST", [$dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "SIZE"), this.$_stackCount$])));
    this.$_bPartialExpand$ && this.getData().$_showIsolate$ && $DvtScrollbarBackground$$.push($dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$ADF_DIAGRAM_PREFIX$, "STATE_HAS_ADDITIONAL_LINKS"));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getAriaLabel$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getAriaLabel$$() {
    return $dvt$$1$$.$Displayable$.$generateAriaLabel$(this.$getShortDesc$(), this.$getAccessibilityStates$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$UpdateAccessibilityAttributes$ = function $$dvt$$1$$$$AdfDiagramNode$$$$UpdateAccessibilityAttributes$$() {
    if (!$dvt$$1$$.$Agent$.$deferAriaCreation$()) {
      var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
      $DvtScrollbarBackground$$ && this.$setAriaProperty$("label", $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$addAccessibilityAttributes$ = function $$dvt$$1$$$$AdfDiagramNode$$$$addAccessibilityAttributes$$() {
    this.$setAriaRole$("group");
    if (!$dvt$$1$$.$Agent$.$deferAriaCreation$()) {
      var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
      $DvtScrollbarBackground$$ && this.$setAriaProperty$("label", $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$HandleKeyboardEvent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$HandleKeyboardEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode;
    if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ENTER$) {
      if (($DvtScrollbar$$ = this.$GetDiagram$().$_editor$) && $DvtScrollbar$$.$_linkCreateWithKeyboard$ && this.$_diagram$.$_linkToolEnabled$) {
        for ($DvtScrollbarBackground$$ = [], $DvtScrollbar$$.$processLinkCreateEnd$(this, $DvtScrollbarBackground$$), $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
          this.$GetDiagram$().dispatchEvent($DvtScrollbarBackground$$[$DvtScrollbar$$]);
        }
      } else {
        if ($DvtScrollbarBackground$$.altKey) {
          this.getData().$_showStack$ && this.$_bStack$ && this.$HandleStackPreview$(null);
        } else {
          if ($DvtScrollbarBackground$$.shiftKey) {
            this.getData().$_showIsolate$ && this.$GetDiagram$().$IsNodeIsolateValid$(this.getData().getId()) ? this.$HandleIsolate$(null) : this.getData().$_showIsolate$ && this.$HandleRestore$(null);
          } else {
            if (this.$isContainer$() && !this.$_bHiddenAncestor$ && this.getData().$_showDrill$) {
              this.$HandleDrill$(null);
            } else {
              if ($DvtScrollbar$$ = this.$getShowPopupBehaviors$()) {
                var $DvtScrollbarEvent$$ = this.$GetDiagram$().$getEventManager$(), $DvtAdfDiagramDragSource$$ = this.$localToStage$(new $dvt$$1$$.$Point$(0, 0));
                $DvtScrollbarBackground$$ = $dvt$$1$$.$DomEventFactory$.$generateMouseEventFromKeyboardEvent$($DvtScrollbarBackground$$, this.$getCtx$(), $dvt$$1$$.MouseEvent.$CLICK$, $DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y);
                $DvtScrollbarEvent$$.$PopupHandler$.$processPopupHelper$(this, $DvtScrollbar$$, [$dvt$$1$$.$ShowPopupBehavior$.$TRIGGER_TYPE_ACTION$, $dvt$$1$$.$ShowPopupBehavior$.$TRIGGER_TYPE_CLICK$], new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY), $DvtScrollbarBackground$$);
              }
            }
          }
        }
      }
    } else {
      $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SINGLE_QUOTE$ ? this.$_bPartialExpand$ && this.getData().$_showIsolate$ && this.$HandlePartialExpand$(null) : $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SPACE$ && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.shiftKey ? this.$isContainer$() && ($DvtScrollbarBackground$$ = this.getData().getId(), this.$_diagram$.$setNodeDisclosed$($DvtScrollbarBackground$$, !this.$isDisclosed$())) : $dvt$$1$$.KeyboardEvent.$isSemicolon$($DvtScrollbarBackground$$) && 
      $DvtScrollbarBackground$$.shiftKey ? this.getData().$_showStack$ && this.$_bStack$ && (this.$_stackBadgeHandler$ && this.$_stackBadgeHandler$.$_isDialogVisible$ ? this.$_stackBadgeHandler$.$CloseDialog$(!0) : this.$HandleStackExplode$(null)) : $dvt$$1$$.KeyboardEvent.$isSemicolon$($DvtScrollbarBackground$$) ? this.$isRestackable$() && this.$HandleStackRestack$(null) : $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ESCAPE$ && this.getData().$_showStack$ && this.$_bStack$ && this.$_stackBadgeHandler$ && 
      this.$_stackBadgeHandler$.$_isDialogVisible$ && this.$_stackBadgeHandler$.$CloseDialog$();
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CopyState$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CopyState$$($dvt$$1$$) {
    this.$_nodeWidth$ = $dvt$$1$$.$_nodeWidth$;
    this.$_nodeHeight$ = $dvt$$1$$.$_nodeHeight$;
    this.$_labelDims$ = $dvt$$1$$.$_labelDims$;
    this.$_hover$ = $dvt$$1$$.$_hover$;
    this.$_bStack$ = $dvt$$1$$.$_bStack$;
    this.$_bDisclosed$ = $dvt$$1$$.$_bDisclosed$;
    this.$_bPartialExpand$ = $dvt$$1$$.$_bPartialExpand$;
    this.$_nodeWidth100$ = $dvt$$1$$.$_nodeWidth100$;
    this.$_nodeHeight100$ = $dvt$$1$$.$_nodeHeight100$;
    this.$_bHiddenAncestor$ = $dvt$$1$$.$_bHiddenAncestor$;
    this.$_bVisible$ = $dvt$$1$$.$_bVisible$;
    this.$_stateProps$ = $dvt$$1$$.$_stateProps$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$destroy$ = function $$dvt$$1$$$$AdfDiagramNode$$$$destroy$$() {
    this.$DestroyDisclosedContent$(this);
    this.$DestroyUndisclosedContent$(this);
    $dvt$$1$$.$AdfDiagramNode$.$superclass$.$destroy$.call(this);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateCustomAnimPlayable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateCustomAnimPlayable$$() {
    return new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), null, this.$GetDiagram$().$getAnimationDuration$());
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AnimateUpdate$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AnimateUpdate$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_bVisible$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_bVisible$;
    if ($DvtAdfDiagramDragSource$$ != $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$) {
      $DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtScrollbarBackground$$.$SkipDescendants$(this.getData().getId(), this.$GetDiagram$()), $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$ = this.$GetParentContainer$(), $DvtScrollbar$$.$InsertNodeIntoParent$($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getAlpha$, $DvtScrollbar$$.$setAlpha$, 0), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, 
      function() {
        $DvtScrollbar$$.getParent().removeChild($DvtScrollbar$$);
        $DvtScrollbar$$.$destroy$();
      }), this.$_dataAnimStackPos$ && ($DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateX$, $DvtScrollbar$$.$setTranslateX$, this.$_dataAnimStackPos$.x), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateY$, $DvtScrollbar$$.$setTranslateY$, this.$_dataAnimStackPos$.y), this.$_dataAnimStackPos$ = null), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, 
      $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$)) : $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ && (this.$setAlpha$(0), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, this.$GetMaxAlpha$()), this.$_dataAnimStackPos$ && ($DvtAdfDiagramDragSource$$ = this.$getTranslateX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = 
      this.$getTranslateY$(), this.$setTranslate$(this.$_dataAnimStackPos$.x, this.$_dataAnimStackPos$.y), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateX$, this.$setTranslateX$, $DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateY$, this.$setTranslateY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$), 
      this.$_dataAnimStackPos$ = null), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$));
    } else {
      var $DvtScrollbarArrow$$ = $DvtScrollbar$$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.$getTranslateY$(), $DvtAdfDiagramDragSource$$ = this.$getTranslateX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$getTranslateY$();
      $DvtScrollbarArrow$$ != $DvtAdfDiagramDragSource$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$setTranslateX$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateX$, this.$setTranslateX$, $DvtAdfDiagramDragSource$$));
      $DvtAdfDiagramEditorManager$$ != $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$setTranslateY$($DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateY$, this.$setTranslateY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$));
      $DvtScrollbar$$.$_labelObj$ && this.$_labelObj$ && ($DvtScrollbarArrow$$ = $DvtScrollbar$$.$_labelObj$.$getMatrix$(), $DvtAdfDiagramEditorManager$$ = this.$_labelObj$.$getMatrix$(), $DvtScrollbarArrow$$.$equals$($DvtAdfDiagramEditorManager$$) || ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_labelObj$.$setMatrix$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_MATRIX$, this.$_labelObj$, this.$_labelObj$.$getMatrix$, 
      this.$_labelObj$.$setMatrix$, $DvtAdfDiagramEditorManager$$)));
      $DvtScrollbarArrow$$ = $DvtScrollbar$$.$isDisclosed$();
      $DvtAdfDiagramEditorManager$$ = this.$isDisclosed$();
      if ($DvtScrollbarArrow$$ != $DvtAdfDiagramEditorManager$$) {
        $DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtScrollbarBackground$$.$SkipDescendants$(this.getData().getId(), this.$GetDiagram$()), this.$AnimateUpdateDisclosure$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$.$_animator$, $DvtAdfDiagramDragSource$$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$)
        ;
      } else {
        $DvtScrollbar$$.$_bHiddenAncestor$ != this.$_bHiddenAncestor$ && ($DvtAdfDiagramDragSource$$ = this.$CreateCustomAnimPlayable$(), this.$AnimateUpdateHiddenAncestor$($DvtAdfDiagramDragSource$$.$_animator$), $DvtScrollbarBackground$$.add($DvtAdfDiagramDragSource$$, this.$_bHiddenAncestor$ ? $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$ : $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$));
        this.$_childNodePane$ && $DvtScrollbar$$.$_childNodePane$ && ($DvtScrollbarArrow$$ = $DvtScrollbar$$.$_childNodePane$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.$_childNodePane$.$getTranslateY$(), $DvtAdfDiagramDragSource$$ = this.$_childNodePane$.$getTranslateX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_childNodePane$.$getTranslateY$(), $DvtScrollbarArrow$$ != $DvtAdfDiagramDragSource$$ && 
        ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_childNodePane$.$setTranslateX$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getTranslateX$, this.$_childNodePane$.$setTranslateX$, $DvtAdfDiagramDragSource$$)), $DvtAdfDiagramEditorManager$$ != $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ && 
        ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_childNodePane$.$setTranslateY$($DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getTranslateY$, this.$_childNodePane$.$setTranslateY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$)));
        this.$_containerChrome$ && ($DvtAdfDiagramDragSource$$ = this.$_nodeWidth$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_nodeHeight$, $DvtScrollbarArrow$$ = this.$_getContainerChromeClipPathDef$(), $DvtAdfDiagramDragSource$$ != $DvtScrollbar$$.$_nodeWidth$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_containerChrome$.$setWidth$($DvtScrollbar$$.$_nodeWidth$), 
        $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getWidth, this.$_containerChrome$.$setWidth$, $DvtAdfDiagramDragSource$$)), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != $DvtScrollbar$$.$_nodeHeight$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_containerChrome$.$setHeight$($DvtScrollbar$$.$_nodeHeight$), 
        $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.getHeight, this.$_containerChrome$.$setHeight$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$)), $DvtAdfDiagramDragSource$$ != $DvtScrollbar$$.$_nodeWidth$ || $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != $DvtScrollbar$$.$_nodeHeight$) && 
        ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_setContainerChromeClipPath$($DvtScrollbar$$.$_getContainerChromeClipPathDef$()), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER_ARRAY$, this, this.$_getContainerChromeClipPathDef$, this.$_setContainerChromeClipPath$, $DvtScrollbarArrow$$));
        this.$_containerLeftObj$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_nodeHeight$ / this.$_nodeHeight$, this.$_setContainerFacetScale$(null, this.$_containerLeftObj$, 1, $DvtAdfDiagramDragSource$$), this.$_setContainerFacetScale$($DvtScrollbarEvent$$.$_animator$, this.$_containerLeftObj$, 1, 1));
        this.$_containerRightObj$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_nodeHeight$ / this.$_nodeHeight$, this.$_setContainerFacetScale$(null, this.$_containerRightObj$, 1, $DvtAdfDiagramDragSource$$), this.$_setContainerFacetScale$($DvtScrollbarEvent$$.$_animator$, this.$_containerRightObj$, 1, 1));
        this.$_containerTopObj$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_nodeWidth$ / this.$_nodeWidth$, this.$_setContainerFacetScale$(null, this.$_containerTopObj$, $DvtAdfDiagramDragSource$$, 1), this.$_setContainerFacetScale$($DvtScrollbarEvent$$.$_animator$, this.$_containerTopObj$, 1, 1));
        this.$_containerBottomObj$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_nodeWidth$ / this.$_nodeWidth$, this.$_setContainerFacetScale$(null, this.$_containerBottomObj$, $DvtAdfDiagramDragSource$$, 1), this.$_setContainerFacetScale$($DvtScrollbarEvent$$.$_animator$, this.$_containerBottomObj$, 1, 1));
        this.$_containerBadge$ && $DvtScrollbar$$.$_containerBadge$ && ($DvtAdfDiagramDragSource$$ = this.$_containerBadge$.$getTranslateX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_containerBadge$.$getTranslateY$(), $DvtScrollbarArrow$$ = $DvtScrollbar$$.$_containerBadge$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.$_containerBadge$.$getTranslateY$(), $DvtAdfDiagramDragSource$$ != $DvtScrollbarArrow$$ && 
        ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_containerBadge$.$setTranslateX$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getTranslateX$, this.$_containerBadge$.$setTranslateX$, $DvtAdfDiagramDragSource$$)), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != $DvtAdfDiagramEditorManager$$ && 
        ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_containerBadge$.$setTranslateY$($DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getTranslateY$, this.$_containerBadge$.$setTranslateY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$)));
        this.$_partialExpandIndicator$ && $DvtScrollbar$$.$_partialExpandIndicator$ && ($DvtAdfDiagramDragSource$$ = this.$_partialExpandIndicator$.$getTranslateX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_partialExpandIndicator$.$getTranslateY$(), $DvtScrollbarArrow$$ = $DvtScrollbar$$.$_partialExpandIndicator$.$getTranslateX$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.$_partialExpandIndicator$.$getTranslateY$(), 
        $DvtAdfDiagramDragSource$$ != $DvtScrollbarArrow$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_partialExpandIndicator$.$setTranslateX$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateX$, this.$_partialExpandIndicator$.$setTranslateX$, $DvtAdfDiagramDragSource$$)), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != 
        $DvtAdfDiagramEditorManager$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_partialExpandIndicator$.$setTranslateY$($DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getTranslateY$, this.$_partialExpandIndicator$.$setTranslateY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$)));
        if (this.$_focusUnderlay$ && $DvtScrollbar$$.$_focusUnderlay$ && this.$_focusUnderlay$ instanceof $dvt$$1$$.Rect) {
          var $DvtAdfDiagramDragSource$$ = this.$_focusUnderlay$.$getX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_focusUnderlay$.$getY$(), $DvtScrollbarArrow$$ = this.$_focusUnderlay$.getWidth(), $DvtAdfDiagramEditorManager$$ = this.$_focusUnderlay$.getHeight(), $oldFocusUnderlayX_oldNodeUnderlayX$$ = $DvtScrollbar$$.$_focusUnderlay$.$getX$(), $oldFocusUnderlayY_oldNodeUnderlayY$$ = $DvtScrollbar$$.$_focusUnderlay$.$getY$(), 
          $oldFocusUnderlayWidth_oldNodeUnderlayWidth$$ = $DvtScrollbar$$.$_focusUnderlay$.getWidth(), $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbar$$.$_focusUnderlay$.getHeight();
          $DvtAdfDiagramDragSource$$ != $oldFocusUnderlayX_oldNodeUnderlayX$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_focusUnderlay$.$setX$($oldFocusUnderlayX_oldNodeUnderlayX$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.$getX$, this.$_focusUnderlay$.$setX$, $DvtAdfDiagramDragSource$$));
          $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != $oldFocusUnderlayY_oldNodeUnderlayY$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_focusUnderlay$.$setY$($oldFocusUnderlayY_oldNodeUnderlayY$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.$getY$, this.$_focusUnderlay$.$setY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$));
          $DvtScrollbarArrow$$ != $oldFocusUnderlayWidth_oldNodeUnderlayWidth$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_focusUnderlay$.$setWidth$($oldFocusUnderlayWidth_oldNodeUnderlayWidth$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.getWidth, this.$_focusUnderlay$.$setWidth$, $DvtScrollbarArrow$$));
          $DvtAdfDiagramEditorManager$$ != $DvtAdfDiagramKeyboardHandler$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_focusUnderlay$.$setHeight$($DvtAdfDiagramKeyboardHandler$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_focusUnderlay$, this.$_focusUnderlay$.getHeight, this.$_focusUnderlay$.$setHeight$, $DvtAdfDiagramEditorManager$$));
        }
        this.$_nodeUnderlay$ && $DvtScrollbar$$.$_nodeUnderlay$ && ($DvtAdfDiagramDragSource$$ = this.$_nodeUnderlay$.$getX$(), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ = this.$_nodeUnderlay$.$getY$(), $DvtScrollbarArrow$$ = this.$_nodeUnderlay$.getWidth(), $DvtAdfDiagramEditorManager$$ = this.$_nodeUnderlay$.getHeight(), $oldFocusUnderlayX_oldNodeUnderlayX$$ = $DvtScrollbar$$.$_nodeUnderlay$.$getX$(), $oldFocusUnderlayY_oldNodeUnderlayY$$ = 
        $DvtScrollbar$$.$_nodeUnderlay$.$getY$(), $oldFocusUnderlayWidth_oldNodeUnderlayWidth$$ = $DvtScrollbar$$.$_nodeUnderlay$.getWidth(), $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbar$$.$_nodeUnderlay$.getHeight(), $DvtAdfDiagramDragSource$$ != $oldFocusUnderlayX_oldNodeUnderlayX$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_nodeUnderlay$.$setX$($oldFocusUnderlayX_oldNodeUnderlayX$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
        this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getX$, this.$_nodeUnderlay$.$setX$, $DvtAdfDiagramDragSource$$)), $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$ != $oldFocusUnderlayY_oldNodeUnderlayY$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_nodeUnderlay$.$setY$($oldFocusUnderlayY_oldNodeUnderlayY$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
        this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getY$, this.$_nodeUnderlay$.$setY$, $containerBadgeY$$1_focusUnderlayY$$1_newNodeHeight_newTy_newVisible$$1_nodeUnderlayY$$1_partialExpandIndicatorY$$1$$)), $DvtScrollbarArrow$$ != $oldFocusUnderlayWidth_oldNodeUnderlayWidth$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_nodeUnderlay$.$setWidth$($oldFocusUnderlayWidth_oldNodeUnderlayWidth$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
        this.$_nodeUnderlay$, this.$_nodeUnderlay$.getWidth, this.$_nodeUnderlay$.$setWidth$, $DvtScrollbarArrow$$)), $DvtAdfDiagramEditorManager$$ != $DvtAdfDiagramKeyboardHandler$$ && ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$()), this.$_nodeUnderlay$.$setHeight$($DvtAdfDiagramKeyboardHandler$$), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.getHeight, this.$_nodeUnderlay$.$setHeight$, 
        $DvtAdfDiagramEditorManager$$)));
        $DvtScrollbarEvent$$ && $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AnimateUpdateDisclosure$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AnimateUpdateDisclosure$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $newContentBounds_newTy$$1$$) {
    var $DvtScrollbarArrow$$ = this;
    this.$_nodeUnderlay$ && (this.$_bPreventHoverEffect$ = !0, $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbarArrow$$.$_bPreventHoverEffect$ = !1;
    }));
    var $DvtAdfDiagramEditorManager$$ = this.getParent(), $childIndex$$3$$ = $DvtAdfDiagramEditorManager$$.$getChildIndex$(this);
    $DvtAdfDiagramEditorManager$$.$addChildAt$($DvtScrollbar$$, $childIndex$$3$$ + 1);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateX$, $DvtScrollbar$$.$setTranslateX$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateY$, $DvtScrollbar$$.$setTranslateY$, $newContentBounds_newTy$$1$$);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getAlpha$, $DvtScrollbar$$.$setAlpha$, 0);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbar$$.getParent().removeChild($DvtScrollbar$$);
      $DvtScrollbar$$.$destroy$();
    });
    $DvtAdfDiagramDragSource$$ = this.$_getContentContainer$() ? this.$_getContentContainer$() : this;
    $DvtAdfDiagramDragSource$$.$setAlpha$(0);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getAlpha$, $DvtAdfDiagramDragSource$$.$setAlpha$, this.$GetMaxAlpha$());
    $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getContentBounds$();
    $newContentBounds_newTy$$1$$ = this.$getContentBounds$();
    $DvtScrollbar$$.$isDisclosed$() ? ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleX$, $DvtScrollbar$$.$setScaleX$, $newContentBounds_newTy$$1$$.$w$ / $DvtAdfDiagramDragSource$$.$w$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleY$, $DvtScrollbar$$.$setScaleY$, $newContentBounds_newTy$$1$$.$h$ / $DvtAdfDiagramDragSource$$.$h$), $DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$(), 
    $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$.$_childNodePane$, $DvtScrollbar$$.$_childNodePane$.$getAlpha$, $DvtScrollbar$$.$_childNodePane$.$setAlpha$, 0), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$)) : this.$isDisclosed$() && (this.$setScale$($DvtAdfDiagramDragSource$$.$w$ / $newContentBounds_newTy$$1$$.$w$, $DvtAdfDiagramDragSource$$.$h$ / $newContentBounds_newTy$$1$$.$h$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, 
    this, this.$getScaleX$, this.$setScaleX$, 1), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getScaleY$, this.$setScaleY$, 1), $DvtScrollbarEvent$$ = this.$CreateCustomAnimPlayable$(), this.$_childNodePane$.$setAlpha$(0), $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_childNodePane$, this.$_childNodePane$.$getAlpha$, this.$_childNodePane$.$setAlpha$, 1), $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AnimateUpdateHiddenAncestor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AnimateUpdateHiddenAncestor$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_bHiddenAncestor$ ? 0 : 1, $DvtScrollbarEvent$$ = !this.$_bHiddenAncestor$;
    this.$_stackUnderlay$ && (this.$_stackUnderlay$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_stackUnderlay$, this.$_stackUnderlay$.$getAlpha$, this.$_stackUnderlay$.$setAlpha$, $DvtScrollbar$$));
    this.$_stackBadge$ && (this.$_stackBadge$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_stackBadge$, this.$_stackBadge$.$getAlpha$, this.$_stackBadge$.$setAlpha$, $DvtScrollbar$$));
    this.$_afRoot$ && (this.$_afRoot$.$setMouseEnabled$($DvtScrollbarEvent$$), this.$_afRoot$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_afRoot$, this.$_afRoot$.$getAlpha$, this.$_afRoot$.$setAlpha$, $DvtScrollbar$$));
    this.$_containerBadge$ && (this.$_containerBadge$.$setMouseEnabled$($DvtScrollbarEvent$$), this.$_containerBadge$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerBadge$, this.$_containerBadge$.$getAlpha$, this.$_containerBadge$.$setAlpha$, $DvtScrollbar$$));
    this.$_partialExpandIndicator$ && (this.$_partialExpandIndicator$.$setMouseEnabled$($DvtScrollbarEvent$$), this.$_partialExpandIndicator$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_partialExpandIndicator$, this.$_partialExpandIndicator$.$getAlpha$, this.$_partialExpandIndicator$.$setAlpha$, $DvtScrollbar$$));
    this.$_containerChrome$ && (this.$_containerChrome$.$setMouseEnabled$($DvtScrollbarEvent$$), this.$_containerChrome$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_containerChrome$, this.$_containerChrome$.$getAlpha$, this.$_containerChrome$.$setAlpha$, $DvtScrollbar$$));
    this.$_labelObj$ && (this.$_labelObj$.$setMouseEnabled$($DvtScrollbarEvent$$), this.$_labelObj$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_labelObj$, this.$_labelObj$.$getAlpha$, this.$_labelObj$.$setAlpha$, $DvtScrollbar$$));
    if (this.$_overlays$) {
      for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < this.$_overlays$.length;$DvtAdfDiagramDragSource$$++) {
        var $overlay$$6$$ = this.$_overlays$[$DvtAdfDiagramDragSource$$].overlay;
        $overlay$$6$$.$setMouseEnabled$($DvtScrollbarEvent$$);
        $overlay$$6$$.$setAlpha$(1 - $DvtScrollbar$$);
        $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $overlay$$6$$, $overlay$$6$$.$getAlpha$, $overlay$$6$$.$setAlpha$, $DvtScrollbar$$);
      }
    }
    this.$_nodeUnderlay$ && (this.$_nodeUnderlay$.$setAlpha$(1 - $DvtScrollbar$$), $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this.$_nodeUnderlay$, this.$_nodeUnderlay$.$getAlpha$, this.$_nodeUnderlay$.$setAlpha$, $DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AnimateInsert$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AnimateInsert$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !0, $DvtScrollbarEvent$$ = this.getData().$getGroupId$();
    $DvtScrollbarEvent$$ && (this.$GetDiagram$().$_oldNodes$[$DvtScrollbarEvent$$] || ($DvtScrollbar$$ = !1));
    $DvtScrollbar$$ && ($DvtScrollbar$$ = new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), this.$GetDiagram$().$getAnimationDuration$()), $DvtScrollbarEvent$$ = $DvtScrollbar$$.$_animator$, this.$setAlpha$(0), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, this.$_maxAlpha$), $DvtScrollbarBackground$$.add($DvtScrollbar$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$), $DvtScrollbarBackground$$.$SkipDescendants$(this.getData().getId(), 
    this.$GetDiagram$()));
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$AnimateDelete$ = function $$dvt$$1$$$$AdfDiagramNode$$$$AnimateDelete$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = !0, $DvtAdfDiagramDragSource$$ = this.getData().$getGroupId$();
    $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getNodeById$($DvtAdfDiagramDragSource$$)) && $DvtAdfDiagramDragSource$$.$GetChildNodePane$() ? this.$InsertNodeIntoParent$($DvtAdfDiagramDragSource$$.$GetChildNodePane$()) : $DvtScrollbarEvent$$ = !1 : this.$InsertNodeIntoParent$($DvtScrollbar$$.$_nodesPane$);
    if ($DvtScrollbarEvent$$) {
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$CustomAnimation$(this.$getCtx$(), $DvtScrollbar$$.$getAnimationDuration$());
      $DvtScrollbarEvent$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, 0);
      var $thisRef$$8$$ = this;
      $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
        $thisRef$$8$$.getParent().removeChild($thisRef$$8$$);
        $thisRef$$8$$.$destroy$();
      });
      $DvtScrollbarBackground$$.add($DvtScrollbarEvent$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$);
      $DvtScrollbarBackground$$.$SkipDescendants$(this.getData().getId(), this.$GetDiagram$());
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$isRestackable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$isRestackable$$() {
    var $dvt$$1$$ = !1;
    if (this.getData().$_showStack$ && !this.$_bStack$) {
      var $DvtScrollbarBackground$$ = this.$_diagram$.$getAttributeGroups$(), $DvtScrollbar$$ = this.$_diagram$.$_arExplodedStacks$;
      if ($DvtScrollbarBackground$$ && 0 < $DvtScrollbarBackground$$.length && $DvtScrollbar$$ && 0 < $DvtScrollbar$$.length) {
        for (var $DvtScrollbarBackground$$ = this.$_diagram$.$CreateStackName$(this.getData().getId(), this.$_diagram$.$getAttributeGroups$()), $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
          if ($DvtScrollbarBackground$$ == $DvtScrollbar$$[$DvtScrollbarEvent$$]) {
            $dvt$$1$$ = !0;
            break;
          }
        }
      }
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getTabStopsArray$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getTabStopsArray$$() {
    return this.$_tabStopsNodeArray$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getNextTabStop$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getNextTabStop$$() {
    this.$_curTabStopIdx$++;
    if (this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$) {
      return this.$_tabStopsNodeArray$[this.$_curTabStopIdx$];
    }
    this.$_curTabStopIdx$ = -1;
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getPrevTabStop$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getPrevTabStop$$() {
    this.$_curTabStopIdx$--;
    if (0 <= this.$_curTabStopIdx$ && this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$) {
      return this.$_tabStopsNodeArray$[this.$_curTabStopIdx$];
    }
    this.$_curTabStopIdx$ = -1;
    return null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getCurrentTabStop$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getCurrentTabStop$$() {
    return -1 < this.$_curTabStopIdx$ && this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$ ? this.$_tabStopsNodeArray$[this.$_curTabStopIdx$] : null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$resetTabStops$ = function $$dvt$$1$$$$AdfDiagramNode$$$$resetTabStops$$() {
    var $dvt$$1$$ = this.$getCurrentTabStop$();
    $dvt$$1$$ && $dvt$$1$$ != this && $dvt$$1$$.$hideKeyboardFocusEffect$ && $dvt$$1$$.$hideKeyboardFocusEffect$();
    this.$_curTabStopIdx$ = -1;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateLinkHandle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateLinkHandle$$() {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$_palette$;
    if ($DvtScrollbarBackground$$ && !$DvtScrollbarBackground$$.$hasLinkSection$()) {
      return null;
    }
    var $DvtScrollbarBackground$$ = new $DvtAdfDiagramNodeEndpoint$$(this.$getCtx$(), this, this.getId(), this.$_diagram$.$getEditorStyles$()), $DvtScrollbar$$ = this.$getContentBounds$();
    $DvtScrollbarBackground$$.setPosition(new $dvt$$1$$.$Point$($DvtScrollbar$$.$w$ / 2, 0));
    $DvtScrollbarBackground$$.setCursor("pointer");
    $DvtScrollbarBackground$$.$setVisible$(!1);
    this.$addChild$($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$showLinkHandle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$showLinkHandle$$() {
    (this.$_linkHandle$ = this.$getLinkHandle$()) && !this.$_diagram$.$_bDragged$ && this.$_linkHandle$.$setVisible$(!0);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$hideLinkHandle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$hideLinkHandle$$() {
    this.$_linkHandle$ && this.$_linkHandle$.$setVisible$(!1);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getLinkHandle$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getLinkHandle$$() {
    this.$_diagram$.$isReadOnly$() || null != this.$_linkHandle$ || (this.$_linkHandle$ = this.$CreateLinkHandle$());
    return this.$_linkHandle$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getZoom$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getZoom$$() {
    return this.$_zoom$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setZoom$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setZoom$$($dvt$$1$$) {
    this.$_zoom$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$ClearNodeSize$ = function $$dvt$$1$$$$AdfDiagramNode$$$$ClearNodeSize$$() {
    this.$_nodeHeight$ = this.$_nodeWidth$ = this.$_nodeHeight100$ = this.$_nodeWidth100$ = 0;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setWidth$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setWidth$$($dvt$$1$$) {
    this.$_width$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.getWidth = function $$dvt$$1$$$$AdfDiagramNode$$$getWidth$() {
    return this.$_width$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setHeight$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setHeight$$($dvt$$1$$) {
    this.$_height$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.getHeight = function $$dvt$$1$$$$AdfDiagramNode$$$getHeight$() {
    return this.$_height$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$cleanUp$ = function $$dvt$$1$$$$AdfDiagramNode$$$$cleanUp$$() {
    if (this.$_copyForDelayedRemoval$) {
      this.removeChild(this.$_copyForDelayedRemoval$);
      for (var $dvt$$1$$ = this.$_copyForDelayedRemoval$.$getNumChildren$(), $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = this.$_copyForDelayedRemoval$.$getChildAt$($DvtScrollbarBackground$$);
        this.$_copyForDelayedRemoval$.removeChild($DvtScrollbar$$);
        $DvtScrollbar$$ && $DvtScrollbar$$.$destroy$ && $DvtScrollbar$$.$destroy$();
      }
    }
    this.$_copyForDelayedRemoval$ = null;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$CreateCopyForDelayedRemoval$ = function $$dvt$$1$$$$AdfDiagramNode$$$$CreateCopyForDelayedRemoval$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$Container$(this.$getCtx$(), this.getData().getId() + "_tempCopy");
    this.$_afRoot$ && $DvtScrollbarBackground$$.$addChild$(this.$_afRoot$);
    this.$_afRoot$ = null;
    this.$_labelObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_labelObj$);
    this.$_labelObj$ = null;
    this.$_backgroundObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_backgroundObj$);
    this.$_backgroundObj$ = null;
    if (this.$_overlays$) {
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < this.$_overlays$.length;$DvtScrollbar$$++) {
        $DvtScrollbarBackground$$.$addChild$(this.$_overlays$[$DvtScrollbar$$].overlay);
      }
      this.$_overlays$ = null;
    }
    this.$_containerTopObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerTopObj$);
    this.$_containerTopObj$ = null;
    this.$_containerBottomObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerBottomObj$);
    this.$_containerBottomObj$ = null;
    this.$_containerLeftObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerLeftObj$);
    this.$_containerLeftObj$ = null;
    this.$_containerRightObj$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerRightObj$);
    this.$_containerRightObj$ = null;
    this.$_containerChrome$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerChrome$);
    this.$_containerChrome$ = null;
    this.$_containerUnderlay$ && $DvtScrollbarBackground$$.$addChild$(this.$_containerUnderlay$);
    this.$_containerUnderlay$ = null;
    this.$_focusUnderlay$ && $DvtScrollbarBackground$$.$addChild$(this.$_focusUnderlay$);
    this.$_focusUnderlay$ = null;
    $DvtScrollbarBackground$$.$setVisible$(!1);
    this.$addChild$($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_canRemoveNodeContent$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_canRemoveNodeContent$$() {
    var $DvtScrollbarBackground$$ = !0;
    if ($dvt$$1$$.$Agent$.$isTouchDevice$()) {
      var $DvtScrollbar$$ = this.$GetDiagram$().$_panZoomCanvas$.$_currTargets$;
      if ($DvtScrollbar$$) {
        for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
          $dvt$$1$$.$DisplayableUtils$.$isAncestor$(this, $DvtScrollbar$$[$DvtScrollbarEvent$$]) && ($DvtScrollbarBackground$$ = !1);
        }
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setDraggable$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setDraggable$$($dvt$$1$$) {
    this.$_draggable$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setDragFlavor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setDragFlavor$$($dvt$$1$$) {
    $dvt$$1$$ && this.$_diagram$.$ConvertDataFlavorFunc$ && this.$_diagram$.$ConvertDataFlavorFunc$("javax.faces.component.UIComponent/" + $dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$setDropFlavors$ = function $$dvt$$1$$$$AdfDiagramNode$$$$setDropFlavors$$($DvtScrollbarBackground$$) {
    this.$DropFlavors$ = $dvt$$1$$.$AdfDiagramJsonParser$.$ParseDropFlavors$($DvtScrollbarBackground$$, this.$_diagram$.$ConvertDataFlavorFunc$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_refreshCursor$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_refreshCursor$$() {
    if (!this.$_bHiddenAncestor$) {
      if (this.$isSelectable$()) {
        this.setCursor("pointer");
        return;
      }
      var $DvtScrollbarBackground$$ = this.$getShowPopupBehaviors$();
      if ($dvt$$1$$.$ArrayUtils$.isArray($DvtScrollbarBackground$$)) {
        for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
          if ($DvtScrollbarBackground$$[$DvtScrollbar$$] && "click" == $DvtScrollbarBackground$$[$DvtScrollbar$$].$getTriggerType$()) {
            this.setCursor("pointer");
            return;
          }
        }
      }
      $DvtScrollbarBackground$$ = this.$getClientBehaviors$();
      if ($dvt$$1$$.$ArrayUtils$.isArray($DvtScrollbarBackground$$)) {
        for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
          if ($DvtScrollbarBackground$$[$DvtScrollbar$$] && "click" == $DvtScrollbarBackground$$[$DvtScrollbar$$].$getTriggerType$()) {
            this.setCursor("pointer");
            return;
          }
        }
      }
    }
    this.setCursor(null);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_getUnderlayStroke$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_getUnderlayStroke$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = this.$_diagram$.$_bSupportsVectorEffects$ ? 1 : 1 / this.$_diagram$.$_panZoomCanvas$.$getZoom$();
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarBackground$$, $DvtScrollbar$$ ? $DvtScrollbar$$ : 1, ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ : 1) * $DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$.$setFixedWidth$(!0);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$GetChildNodePane$ = function $$dvt$$1$$$$AdfDiagramNode$$$$GetChildNodePane$$() {
    return this.$_childNodePane$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$SetPosition$ = function $$dvt$$1$$$$AdfDiagramNode$$$$SetPosition$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ ? ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateX$, this.$setTranslateX$, $DvtScrollbarBackground$$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateY$, this.$setTranslateY$, $DvtScrollbar$$)) : this.$setTranslate$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.getParent() instanceof $DvtAdfDiagramLayoutContainer$$ || $DvtAdfDiagramOverviewUtils$$.$SetNodePosition$(this.$GetDiagram$(), this, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$SetAlpha$ = function $$dvt$$1$$$$AdfDiagramNode$$$$SetAlpha$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$getDisplayables$();
    if ($DvtScrollbar$$) {
      for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbar$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$], $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$].$getAlpha$, $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$].$setAlpha$, $DvtScrollbarBackground$$);
      }
    } else {
      for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$].$setAlpha$($DvtScrollbarBackground$$);
      }
    }
    $DvtAdfDiagramOverviewUtils$$.$SetNodeAlpha$(this.$GetDiagram$(), this, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getAutomationState$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getAutomationState$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetDiagram$().$getAutomationState$(this.getData().getId(), $dvt$$1$$);
    if (null == $DvtScrollbarBackground$$) {
      if ("stack" == $dvt$$1$$) {
        return this.$_bStack$;
      }
      if ("disclosed" == $dvt$$1$$) {
        return this.$isDisclosed$();
      }
      if ("partialExpand" == $dvt$$1$$) {
        return this.$_bPartialExpand$;
      }
      if ("visible" == $dvt$$1$$) {
        return this.$_bVisible$;
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_addContainerFacetTabStops$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_addContainerFacetTabStops$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_containerFacetsTabStops$ || (this.$_containerFacetsTabStops$ = {});
    this.$_containerFacetsTabStops$[$DvtScrollbarBackground$$] = [];
    $dvt$$1$$.$setTabStopsArray$(this.$_containerFacetsTabStops$[$DvtScrollbarBackground$$]);
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_clearContainerFacetTabStops$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_clearContainerFacetTabStops$$() {
    if (this.$_containerFacetsTabStops$ && this.$_tabStopsNodeArray$) {
      var $DvtScrollbarBackground$$ = function $$DvtScrollbarBackground$$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
        if ($DvtScrollbarBackground$$) {
          var $DvtScrollbarEvent$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbar$$, $DvtScrollbarBackground$$[0]);
          0 < $DvtScrollbarEvent$$ && $DvtScrollbar$$.splice($DvtScrollbarEvent$$, $DvtScrollbarBackground$$.length);
        }
      };
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.top, this.$_tabStopsNodeArray$);
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.left, this.$_tabStopsNodeArray$);
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.right, this.$_tabStopsNodeArray$);
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.bottom, this.$_tabStopsNodeArray$);
      this.$_containerFacetsTabStops$ = {};
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$_updateNodeTabStops$ = function $$dvt$$1$$$$AdfDiagramNode$$$$_updateNodeTabStops$$() {
    if (this.$_containerFacetsTabStops$ && this.$_tabStopsNodeArray$) {
      var $DvtScrollbarBackground$$ = function $$DvtScrollbarBackground$$$($dvt$$1$$, $DvtScrollbarBackground$$) {
        if ($dvt$$1$$) {
          for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
            $DvtScrollbarBackground$$.push($dvt$$1$$[$DvtScrollbar$$]);
          }
        }
      };
      1 < this.$_tabStopsNodeArray$.length && this.$_tabStopsNodeArray$[this.$_tabStopsNodeArray$.length - 1] == this && this.$_tabStopsNodeArray$.pop();
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.top, this.$_tabStopsNodeArray$);
      $dvt$$1$$.$Agent$.$isRightToLeft$() ? ($DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.right, this.$_tabStopsNodeArray$), $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.left, this.$_tabStopsNodeArray$)) : ($DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.left, this.$_tabStopsNodeArray$), $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.right, this.$_tabStopsNodeArray$));
      $DvtScrollbarBackground$$(this.$_containerFacetsTabStops$.bottom, this.$_tabStopsNodeArray$);
    }
  };
  $dvt$$1$$.$AdfDiagramNode$.prototype.$getGroupId$ = function $$dvt$$1$$$$AdfDiagramNode$$$$getGroupId$$() {
    return this.getData().$getGroupId$();
  };
  $dvt$$1$$.$AdfDiagramNodeDef$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$() {
    this.Init();
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramNodeDef$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramNodeDef");
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.Init = function $$dvt$$1$$$$AdfDiagramNodeDef$$$Init$() {
    this.$_styleClass$ = this.$_skinStyle$ = this.$_inlineStyle$ = this.$_id$ = null;
    this.$_nodeTemplates$ = {};
    this.$_clientBehaviors$ = this.$_showPopupBehaviors$ = this.$_overlayTemplate$ = this.$_containerRightTemplate$ = this.$_containerLeftTemplate$ = this.$_containerBottomTemplate$ = this.$_containerTopTemplate$ = this.$_backgroundTemplate$ = this.$_labelTemplate$ = this.$_detailTemplate$ = this.$_propMap$ = null;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.setId = function $$dvt$$1$$$$AdfDiagramNodeDef$$$setId$($dvt$$1$$) {
    this.$_id$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.getId = function $$dvt$$1$$$$AdfDiagramNodeDef$$$getId$() {
    return this.$_id$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setWidth$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setWidth$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.getWidth = function $$dvt$$1$$$$AdfDiagramNodeDef$$$getWidth$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setHeight$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setHeight$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.getHeight = function $$dvt$$1$$$$AdfDiagramNodeDef$$$getHeight$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setInlineStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setInlineStyle$$($dvt$$1$$) {
    this.$_inlineStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getInlineStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getInlineStyle$$() {
    return this.$_inlineStyle$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setSkinStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setSkinStyle$$($dvt$$1$$) {
    this.$_skinStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getSkinStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getSkinStyle$$() {
    return this.$_skinStyle$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setStyleClass$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setStyleClass$$($dvt$$1$$) {
    this.$_styleClass$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getStyleClass$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getStyleClass$$() {
    return this.$_styleClass$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setNodeTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setNodeTemplate$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_nodeTemplates$[$DvtScrollbarBackground$$] = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getNodeTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getNodeTemplate$$($dvt$$1$$) {
    $dvt$$1$$ || ($dvt$$1$$ = "zoom100");
    return this.$_nodeTemplates$[$dvt$$1$$];
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setLabelTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setLabelTemplate$$($dvt$$1$$) {
    this.$_labelTemplate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setBackgroundTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setBackgroundTemplate$$($dvt$$1$$) {
    this.$_backgroundTemplate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setContainerTopTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setContainerTopTemplate$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AfPanelGroupLayout$ && $DvtScrollbarBackground$$.$setInlineStyle$(this.$_prependInlineStyle$("width:100%", $DvtScrollbarBackground$$.$getInlineStyle$()));
    this.$_containerTopTemplate$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setContainerBottomTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setContainerBottomTemplate$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AfPanelGroupLayout$ && $DvtScrollbarBackground$$.$setInlineStyle$(this.$_prependInlineStyle$("width:100%", $DvtScrollbarBackground$$.$getInlineStyle$()));
    this.$_containerBottomTemplate$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setContainerLeftTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setContainerLeftTemplate$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AfPanelGroupLayout$ && $DvtScrollbarBackground$$.$setInlineStyle$(this.$_prependInlineStyle$("height:100%", $DvtScrollbarBackground$$.$getInlineStyle$()));
    this.$_containerLeftTemplate$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setContainerRightTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setContainerRightTemplate$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AfPanelGroupLayout$ && $DvtScrollbarBackground$$.$setInlineStyle$(this.$_prependInlineStyle$("height:100%", $DvtScrollbarBackground$$.$getInlineStyle$()));
    this.$_containerRightTemplate$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setOverlayTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setOverlayTemplate$$($dvt$$1$$) {
    this.$_overlayTemplate$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setShortDesc$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setShortDesc$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getShortDesc$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getShortDesc$$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setLayout$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setLayout$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getLayout$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getLayout$$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setReadOnly$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setReadOnly$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setSelectable$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setSelectable$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setLabel$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setLabel$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getLabel$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getLabel$$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setDraggable$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setDraggable$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAGGABLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setDragFlavor$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setDragFlavor$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAG_FLAVOR$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setDropFlavors$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setDropFlavors$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DROP_FLAVORS$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$stamp$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$stamp$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if (this.$_propMap$) {
      var $DvtScrollbar$$ = this.$_propMap$.$stamp$($dvt$$1$$);
      this.$ProcessResolvedProperties$($DvtScrollbar$$, $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$ProcessResolvedProperties$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$ProcessResolvedProperties$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbar$$.$setWidth$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$) ? parseInt($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$)) : null);
    $DvtScrollbar$$.$setHeight$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$) ? parseInt($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$)) : null);
    $DvtScrollbar$$.$setShortDesc$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$));
    $DvtScrollbar$$.$setLayout$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$));
    $DvtScrollbar$$.$setLabel$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$));
    $DvtScrollbar$$.$setDeleteEnabled$(!$DvtScrollbarBackground$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$, !1));
    $DvtScrollbar$$.$setSelectable$($DvtScrollbarBackground$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$, !0));
    $DvtScrollbar$$.$setDraggable$($DvtScrollbar$$.$isSelectable$() ? $DvtScrollbarBackground$$.$getBooleanProp$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAGGABLE$, !0) : !1);
    $DvtScrollbar$$.$setDragFlavor$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAG_FLAVOR$));
    $DvtScrollbar$$.$setDropFlavors$($DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DROP_FLAVORS$));
    var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER_STYLE$);
    $DvtScrollbarEvent$$ && $DvtScrollbar$$.$setContainerStyle$(new $dvt$$1$$.$CSSStyle$($DvtScrollbarEvent$$));
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_STYLE$)) && $DvtScrollbar$$.$setOverviewStyle$(new $dvt$$1$$.$CSSStyle$($DvtScrollbarEvent$$));
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_CONTAINER_STYLE$)) && $DvtScrollbar$$.$setOverviewContainerStyle$(new $dvt$$1$$.$CSSStyle$($DvtScrollbarEvent$$));
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getDefaultNodeTemplate$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getDefaultNodeTemplate$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbarBackground$$ && !$DvtScrollbar$$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$);
    $DvtScrollbar$$ && !$DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$ = $DvtScrollbar$$);
    $DvtScrollbarBackground$$ || $DvtScrollbar$$ || ($DvtScrollbarBackground$$ = 233, $DvtScrollbar$$ = 330);
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$AfSpacer$;
    $DvtScrollbarEvent$$.$setWidth$($DvtScrollbarBackground$$ + "");
    $DvtScrollbarEvent$$.$setHeight$($DvtScrollbar$$ + "");
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$addShowPopupBehavior$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$addShowPopupBehavior$$($dvt$$1$$) {
    this.$_showPopupBehaviors$ || (this.$_showPopupBehaviors$ = []);
    this.$_showPopupBehaviors$.push($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getShowPopupBehaviors$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getShowPopupBehaviors$$() {
    return this.$_showPopupBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$addClientBehavior$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$addClientBehavior$$($dvt$$1$$) {
    this.$_clientBehaviors$ || (this.$_clientBehaviors$ = []);
    this.$_clientBehaviors$.push($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getClientBehaviors$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getClientBehaviors$$() {
    return this.$_clientBehaviors$;
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setContainerStyle$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER_STYLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getOverviewStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getOverviewStyle$$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_STYLE$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setOverviewStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setOverviewStyle$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_STYLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$getOverviewContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$getOverviewContainerStyle$$() {
    return this.$_getPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_CONTAINER_STYLE$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$setOverviewContainerStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$setOverviewContainerStyle$$($DvtScrollbarBackground$$) {
    this.$_setPropMapProperty$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_CONTAINER_STYLE$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$_prependInlineStyle$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$_prependInlineStyle$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return $dvt$$1$$ + ($DvtScrollbarBackground$$ ? ";" + $DvtScrollbarBackground$$ : "");
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$_setPropMapProperty$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$_setPropMapProperty$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_propMap$ || (this.$_propMap$ = new $dvt$$1$$.$PropMap$);
    this.$_propMap$.setProperty($DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramNodeDef$.prototype.$_getPropMapProperty$ = function $$dvt$$1$$$$AdfDiagramNodeDef$$$$_getPropMapProperty$$($dvt$$1$$) {
    return this.$_propMap$ ? this.$_propMap$.$getProperty$($dvt$$1$$) : null;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramNodeExpandHandler$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramNodeExpandHandler");
  $DvtAdfDiagramNodeExpandHandler$$.prototype.Init = function $$DvtAdfDiagramNodeExpandHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_diagram$ = $dvt$$1$$;
    this.$_nodeId$ = $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramNodeExpandHandler$$.prototype.$getTooltip$ = function $$DvtAdfDiagramNodeExpandHandler$$$$$getTooltip$$() {
    return this.$_diagram$.$getResourcesMap$().additionalLinksTip;
  };
  var $DvtAdfDiagramOverviewUtils$$ = {};
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramOverviewUtils$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramOverviewUtils");
  $DvtAdfDiagramOverviewUtils$$.$CreateOverviewContent$ = function $$DvtAdfDiagramOverviewUtils$$$$CreateOverviewContent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$.$getCtx$(), "dg_ovContent");
    $DvtScrollbarBackground$$.$_overviewContent$ = $DvtAdfDiagramDragSource$$;
    $DvtAdfDiagramDragSource$$.$setMouseEnabled$(!1);
    $DvtScrollbarBackground$$.$_overviewNodes$ || ($DvtScrollbarBackground$$.$_overviewNodes$ = {});
    for (var $nodeIndex$$1$$ = 0;$nodeIndex$$1$$ < $DvtScrollbarBackground$$.$_arNodeIds$.length;$nodeIndex$$1$$++) {
      var $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_arNodeIds$[$nodeIndex$$1$$], $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtScrollbarArrow$$), $ovNode$$ = $DvtAdfDiagramOverviewUtils$$.$CreateOverviewNode$($DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$, $DvtScrollbarEvent$$);
      $DvtScrollbarBackground$$.$_overviewNodes$[$DvtScrollbarArrow$$] = $ovNode$$;
      $DvtAdfDiagramOverviewUtils$$.$PositionOverviewNode$($DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$);
      if ($DvtScrollbarArrow$$ = $DvtAdfDiagramEditorManager$$.getData().$getGroupId$()) {
        var $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_nodes$[$DvtScrollbarArrow$$], $ovGroupNode$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($DvtScrollbarBackground$$, $DvtScrollbarArrow$$);
        $ovGroupNode$$ && ($ovGroupNode$$.$_ovChildNodePane$ || ($ovGroupNode$$.$_ovChildNodePane$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$.$getCtx$(), $ovGroupNode$$.getId() + "_cnp"), $ovGroupNode$$.$addChild$($ovGroupNode$$.$_ovChildNodePane$), $DvtAdfDiagramOverviewUtils$$.$_translateChildNodePane$($DvtScrollbarBackground$$, $DvtScrollbarArrow$$)), $ovGroupNode$$.$_ovChildNodePane$.$addChild$($ovNode$$));
      } else {
        $DvtAdfDiagramDragSource$$.$addChild$($ovNode$$);
      }
      $DvtAdfDiagramOverviewUtils$$.$SetNodeVisible$($DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramEditorManager$$.$_bVisible$);
    }
    $DvtAdfDiagramOverviewUtils$$.$ZoomToFitOverviewContent$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    $DvtScrollbar$$ = this.$CalcAdjustedViewport$($DvtScrollbarBackground$$, null);
    $DvtScrollbarBackground$$.$_overviewWindow$.$setViewportDimensions$($DvtScrollbar$$);
    return $DvtAdfDiagramDragSource$$;
  };
  $DvtAdfDiagramOverviewUtils$$.$ZoomToFitOverviewContent$ = function $$DvtAdfDiagramOverviewUtils$$$$ZoomToFitOverviewContent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_overviewContent$, $cw$$ = $DvtScrollbarBackground$$.$_overviewWindow$.$getContentAreaWidth$(), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_overviewWindow$.$getContentAreaHeight$();
    $DvtScrollbar$$ = $DvtScrollbar$$ ? $DvtScrollbar$$ : $DvtScrollbarBackground$$.$GetViewBounds$($DvtScrollbarEvent$$);
    var $DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramOverviewUtils$$.$CalcOverviewScale$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if (!$DvtScrollbarBackground$$.$_bSupportsVectorEffects$) {
      for (var $nodeIndex$$2$$ = 0;$nodeIndex$$2$$ < $DvtScrollbarBackground$$.$_arNodeIds$.length;$nodeIndex$$2$$++) {
        var $node$$86$$ = $DvtScrollbarBackground$$.$_overviewNodes$[$DvtScrollbarBackground$$.$_arNodeIds$[$nodeIndex$$2$$]], $stroke$$10$$ = $node$$86$$.$getStroke$();
        $stroke$$10$$ && ($stroke$$10$$ = $stroke$$10$$.clone(), $stroke$$10$$.$setWidth$($stroke$$10$$.getWidth() * $DvtAdfDiagramDragSource$$.$getScaleX$() / $DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_STROKE$, $node$$86$$, $node$$86$$.$getStroke$, $node$$86$$.$setStroke$, $stroke$$10$$) : $node$$86$$.$setStroke$($stroke$$10$$));
      }
    }
    $DvtScrollbarEvent$$ ? ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getScaleX$, $DvtAdfDiagramDragSource$$.$setScaleX$, $DvtAdfDiagramEditorManager$$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getScaleY$, $DvtAdfDiagramDragSource$$.$setScaleY$, $DvtAdfDiagramEditorManager$$)) : $DvtAdfDiagramDragSource$$.$setScale$($DvtAdfDiagramEditorManager$$, 
    $DvtAdfDiagramEditorManager$$);
    $DvtScrollbarBackground$$ = ($cw$$ - $DvtScrollbar$$.$w$ * $DvtAdfDiagramEditorManager$$) / 2 - $DvtScrollbar$$.x * $DvtAdfDiagramEditorManager$$;
    $DvtScrollbarArrow$$ = ($DvtScrollbarArrow$$ - $DvtScrollbar$$.$h$ * $DvtAdfDiagramEditorManager$$) / 2 - $DvtScrollbar$$.y * $DvtAdfDiagramEditorManager$$;
    $DvtScrollbarEvent$$ ? ($DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getTranslateX$, $DvtAdfDiagramDragSource$$.$setTranslateX$, $DvtScrollbarBackground$$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getTranslateY$, $DvtAdfDiagramDragSource$$.$setTranslateY$, $DvtScrollbarArrow$$)) : $DvtAdfDiagramDragSource$$.$setTranslate$($DvtScrollbarBackground$$, 
    $DvtScrollbarArrow$$);
  };
  $DvtAdfDiagramOverviewUtils$$.$CalcOverviewScale$ = function $$DvtAdfDiagramOverviewUtils$$$$CalcOverviewScale$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$_overviewWindow$.$getContentAreaWidth$() - 20, $DvtScrollbarEvent$$ = $dvt$$1$$.$_overviewWindow$.$getContentAreaHeight$() - 20;
    return Math.min($DvtScrollbar$$ / $DvtScrollbarBackground$$.$w$, $DvtScrollbarEvent$$ / $DvtScrollbarBackground$$.$h$);
  };
  $DvtAdfDiagramOverviewUtils$$.$CreateOverviewNodeId$ = function $$DvtAdfDiagramOverviewUtils$$$$CreateOverviewNodeId$$($dvt$$1$$) {
    return "ov_" + $dvt$$1$$;
  };
  $DvtAdfDiagramOverviewUtils$$.$_getNodeIdFromOverviewNode$ = function $$DvtAdfDiagramOverviewUtils$$$$_getNodeIdFromOverviewNode$$($dvt$$1$$) {
    return $DvtAdfDiagramOverviewUtils$$.$_getNodeIdFromOverviewNodeId$($dvt$$1$$.getId());
  };
  $DvtAdfDiagramOverviewUtils$$.$_getNodeIdFromOverviewNodeId$ = function $$DvtAdfDiagramOverviewUtils$$$$_getNodeIdFromOverviewNodeId$$($dvt$$1$$) {
    return $dvt$$1$$.substring(3);
  };
  $DvtAdfDiagramOverviewUtils$$.$CreateOverviewNode$ = function $$DvtAdfDiagramOverviewUtils$$$$CreateOverviewNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getLayoutBounds$();
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect($DvtScrollbarBackground$$.$getCtx$(), 0, 0, $DvtAdfDiagramDragSource$$.$w$, $DvtAdfDiagramDragSource$$.$h$, $DvtAdfDiagramOverviewUtils$$.$CreateOverviewNodeId$($DvtScrollbar$$.getData().getId()));
    $DvtScrollbarBackground$$.$_disclosed$ = $DvtScrollbar$$.$isDisclosed$();
    $DvtScrollbarBackground$$.$_hiddenAncestor$ = $DvtScrollbar$$.$_bHiddenAncestor$;
    $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramOverviewUtils$$.$CreateFill$($DvtScrollbar$$, $DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$setFill$($DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtAdfDiagramOverviewUtils$$.$CreateStroke$($DvtScrollbar$$, $DvtScrollbarEvent$$)) && $DvtScrollbarBackground$$.$setStroke$($DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramOverviewUtils$$.$setBorderRadius$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramOverviewUtils$$.$UpdateOverviewNode$ = function $$DvtAdfDiagramOverviewUtils$$$$UpdateOverviewNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $ovNode$$3$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if ($ovNode$$3$$) {
      if ($ovNode$$3$$.$_disclosed$ != $DvtScrollbar$$.$isDisclosed$() || $ovNode$$3$$.$_hiddenAncestor$ != $DvtScrollbar$$.$_bHiddenAncestor$) {
        var $DvtScrollbarArrow$$ = $DvtAdfDiagramOverviewUtils$$.$CreateFill$($DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
        $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramOverviewUtils$$.$CreateStroke$($DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
        if ($DvtScrollbarEvent$$) {
          if ($DvtScrollbarArrow$$.$equals$($ovNode$$3$$.$getFill$()) || $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_FILL$, $ovNode$$3$$, $ovNode$$3$$.$getFill$, $ovNode$$3$$.$setFill$, $DvtScrollbarArrow$$), ($DvtScrollbarArrow$$ = $ovNode$$3$$.$getStroke$()) || $DvtAdfDiagramDragSource$$) {
            if ($DvtScrollbarArrow$$ ? $DvtAdfDiagramDragSource$$ || ($DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SolidStroke$("rgba(0,0,0,0)")) : $DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidStroke$("rgba(0,0,0,0)"), $DvtScrollbarArrow$$.$getColor$() != $DvtAdfDiagramDragSource$$.$getColor$() || $DvtScrollbarArrow$$.$getAlpha$() != $DvtAdfDiagramDragSource$$.$getAlpha$()) {
              $ovNode$$3$$.$setStroke$($DvtScrollbarArrow$$), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_STROKE$, $ovNode$$3$$, $ovNode$$3$$.$getStroke$, $ovNode$$3$$.$setStroke$, $DvtAdfDiagramDragSource$$);
            }
          }
        } else {
          $ovNode$$3$$.$setFill$($DvtScrollbarArrow$$), $ovNode$$3$$.$setStroke$($DvtAdfDiagramDragSource$$);
        }
        $ovNode$$3$$.$_disclosed$ = $DvtScrollbar$$.$isDisclosed$();
        $ovNode$$3$$.$_hiddenAncestor$ = $DvtScrollbar$$.$_bHiddenAncestor$;
      }
      $DvtScrollbarArrow$$ = $DvtScrollbar$$.$getLayoutBounds$();
      $DvtAdfDiagramDragSource$$ = $ovNode$$3$$.getWidth();
      var $DvtAdfDiagramEditorManager$$ = $ovNode$$3$$.getHeight();
      $DvtAdfDiagramDragSource$$ != $DvtScrollbarArrow$$.$w$ && ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $ovNode$$3$$, $ovNode$$3$$.getWidth, $ovNode$$3$$.$setWidth$, $DvtScrollbarArrow$$.$w$) : $ovNode$$3$$.$setWidth$($DvtScrollbarArrow$$.$w$));
      $DvtAdfDiagramEditorManager$$ != $DvtScrollbarArrow$$.$h$ && ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $ovNode$$3$$, $ovNode$$3$$.getHeight, $ovNode$$3$$.$setHeight$, $DvtScrollbarArrow$$.$h$) : $ovNode$$3$$.$setHeight$($DvtScrollbarArrow$$.$h$));
      $DvtAdfDiagramOverviewUtils$$.$_translateChildNodePane$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$_translateChildNodePane$ = function $$DvtAdfDiagramOverviewUtils$$$$_translateChildNodePane$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if (($DvtScrollbarBackground$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($DvtScrollbarBackground$$, $DvtScrollbar$$)) && $DvtScrollbar$$.$isDisclosed$()) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getContainerTopHeight$(), $childrenOffsetX_clw$$ = $DvtScrollbar$$.$getContainerLeftWidth$();
      if ($DvtScrollbar$$ = $DvtScrollbar$$.$getContainerPadding$()) {
        $childrenOffsetX_clw$$ += $DvtScrollbar$$.left, $DvtAdfDiagramDragSource$$ += $DvtScrollbar$$.top;
      }
      $DvtScrollbarBackground$$.$_ovChildNodePane$ && ($childrenOffsetX_clw$$ != $DvtScrollbarBackground$$.$_ovChildNodePane$.$getTranslateX$() && ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$.$_ovChildNodePane$, $DvtScrollbarBackground$$.$_ovChildNodePane$.$getTranslateX$, $DvtScrollbarBackground$$.$_ovChildNodePane$.$setTranslateX$, $childrenOffsetX_clw$$) : $DvtScrollbarBackground$$.$_ovChildNodePane$.$setTranslateX$($childrenOffsetX_clw$$)), 
      $DvtAdfDiagramDragSource$$ != $DvtScrollbarBackground$$.$_ovChildNodePane$.$getTranslateY$() && ($DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$.$_ovChildNodePane$, $DvtScrollbarBackground$$.$_ovChildNodePane$.$getTranslateY$, $DvtScrollbarBackground$$.$_ovChildNodePane$.$setTranslateY$, $DvtAdfDiagramDragSource$$) : $DvtScrollbarBackground$$.$_ovChildNodePane$.$setTranslateY$($DvtAdfDiagramDragSource$$)));
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$CreateFill$ = function $$DvtAdfDiagramOverviewUtils$$$$CreateFill$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$;
    $DvtScrollbarBackground$$.$isDisclosed$() ? ($DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$], $DvtScrollbarBackground$$.$getOverviewContainerStyle$() && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getOverviewContainerStyle$().clone().$mergeUnder$($DvtScrollbarEvent$$))) : ($DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$], $DvtScrollbarBackground$$.$getOverviewStyle$() && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getOverviewStyle$().clone().$mergeUnder$($DvtScrollbarEvent$$)));
    $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$);
    return new $dvt$$1$$.$SolidFill$($dvt$$1$$.$ColorUtils$.$makeRGB$($dvt$$1$$.$ColorUtils$.$getRed$($DvtScrollbarEvent$$), $dvt$$1$$.$ColorUtils$.$getGreen$($DvtScrollbarEvent$$), $dvt$$1$$.$ColorUtils$.$getBlue$($DvtScrollbarEvent$$)), $DvtScrollbarBackground$$.$_bHiddenAncestor$ ? 0 : Math.min($dvt$$1$$.$ColorUtils$.$getAlpha$($DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$GetMaxAlpha$()));
  };
  $DvtAdfDiagramOverviewUtils$$.$CreateStroke$ = function $$DvtAdfDiagramOverviewUtils$$$$CreateStroke$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    $DvtScrollbarBackground$$.$isDisclosed$() ? ($DvtScrollbarEvent$$ = $DvtAdfDiagramOverviewUtils$$.$getBorderStyles$($DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$]), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramOverviewUtils$$.$getBorderStyles$($DvtScrollbarBackground$$.$getOverviewContainerStyle$())) : ($DvtScrollbarEvent$$ = $DvtAdfDiagramOverviewUtils$$.$getBorderStyles$($DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$]), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramOverviewUtils$$.$getBorderStyles$($DvtScrollbarBackground$$.$getOverviewStyle$()));
    $DvtAdfDiagramDragSource$$ && ($DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$.clone().$mergeUnder$($DvtScrollbarEvent$$));
    return $DvtScrollbarEvent$$ ? ($DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$), $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SolidStroke$($dvt$$1$$.$ColorUtils$.$makeRGB$($dvt$$1$$.$ColorUtils$.$getRed$($DvtAdfDiagramDragSource$$), $dvt$$1$$.$ColorUtils$.$getGreen$($DvtAdfDiagramDragSource$$), $dvt$$1$$.$ColorUtils$.$getBlue$($DvtAdfDiagramDragSource$$)), $DvtScrollbarBackground$$.$_bHiddenAncestor$ ? 0 : $dvt$$1$$.$ColorUtils$.$getAlpha$($DvtAdfDiagramDragSource$$), 
    $DvtScrollbarEvent$$.$getBorderWidth$()), $DvtScrollbarEvent$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_STYLE$) && $DvtAdfDiagramDragSource$$.$setType$($dvt$$1$$.$Stroke$.$convertTypeString$($DvtScrollbarEvent$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_STYLE$))), $DvtAdfDiagramDragSource$$.$setFixedWidth$(!0), $DvtAdfDiagramDragSource$$) : null;
  };
  $DvtAdfDiagramOverviewUtils$$.$getBorderStyles$ = function $$DvtAdfDiagramOverviewUtils$$$$getBorderStyles$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbar$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = !1;
      if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$)) {
        $DvtScrollbar$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarEvent$$), $DvtAdfDiagramDragSource$$ = !0;
      }
      if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_WIDTH$)) {
        $DvtScrollbar$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_WIDTH$, $DvtScrollbarEvent$$), $DvtAdfDiagramDragSource$$ = !0;
      }
      if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_STYLE$)) {
        $DvtScrollbar$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_STYLE$, $DvtScrollbarEvent$$), $DvtAdfDiagramDragSource$$ = !0;
      }
      return $DvtAdfDiagramDragSource$$ ? $DvtScrollbar$$ : null;
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$setBorderRadius$ = function $$DvtAdfDiagramOverviewUtils$$$$setBorderRadius$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ = $DvtScrollbar$$.$isDisclosed$() ? ($DvtScrollbar$$ = $DvtScrollbar$$.$getOverviewContainerStyle$()) ? $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) ? $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) : $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$].$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) : $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$].$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) : 
    ($DvtScrollbar$$ = $DvtScrollbar$$.$getOverviewStyle$()) ? $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) ? $DvtScrollbar$$.$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) : $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$].$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$) : $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$].$getStyle$($dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$);
    $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$StringUtils$.trim($DvtScrollbarEvent$$).split(" "), 0 < $DvtScrollbarEvent$$.length && $DvtScrollbarEvent$$[0] && ($DvtScrollbar$$ = parseFloat($DvtScrollbarEvent$$[0]), $DvtScrollbarBackground$$.$setRx$(0 > $DvtScrollbar$$ ? 0 : $DvtScrollbar$$)), 1 < $DvtScrollbarEvent$$.length && $DvtScrollbarEvent$$[1] && ($DvtScrollbar$$ = parseFloat($DvtScrollbarEvent$$[1]), $DvtScrollbarBackground$$.$setRy$(0 > $DvtScrollbar$$ ? 0 : $DvtScrollbar$$)));
  };
  $DvtAdfDiagramOverviewUtils$$.$PositionOverviewNode$ = function $$DvtAdfDiagramOverviewUtils$$$$PositionOverviewNode$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getTranslateX$();
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getTranslateY$();
    $DvtAdfDiagramOverviewUtils$$.$SetNodePosition$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, void 0);
  };
  $DvtAdfDiagramOverviewUtils$$.$SyncOverviewContent$ = function $$DvtAdfDiagramOverviewUtils$$$$SyncOverviewContent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if ($dvt$$1$$.$_overviewWindow$) {
      $DvtAdfDiagramOverviewUtils$$.$ZoomToFitOverviewContent$($dvt$$1$$, null, $DvtScrollbarBackground$$);
      var $DvtScrollbar$$ = $DvtAdfDiagramOverviewUtils$$.$CalcAdjustedViewport$($dvt$$1$$, $DvtScrollbarBackground$$);
      $dvt$$1$$.$_overviewWindow$.$setViewportDimensions$($DvtScrollbar$$, $DvtScrollbarBackground$$);
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$CalcAdjustedViewport$ = function $$DvtAdfDiagramOverviewUtils$$$$CalcAdjustedViewport$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return $DvtAdfDiagramOverviewUtils$$.$_calcViewportFromMatrix$($dvt$$1$$, $dvt$$1$$.$_panZoomCanvas$.$getContentPaneMatrix$($DvtScrollbarBackground$$));
  };
  $DvtAdfDiagramOverviewUtils$$.$_calcViewportFromMatrix$ = function $$DvtAdfDiagramOverviewUtils$$$$_calcViewportFromMatrix$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$Rectangle$(0, 0, $DvtScrollbarBackground$$.getWidth(), $DvtScrollbarBackground$$.getHeight()), $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$_a$;
    return new $dvt$$1$$.$Rectangle$($DvtScrollbarEvent$$.x - $DvtScrollbar$$.$_tx$ / $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$.y - $DvtScrollbar$$.$_ty$ / $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$.$w$ / $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$.$h$ / $DvtAdfDiagramDragSource$$);
  };
  $DvtAdfDiagramOverviewUtils$$.$SetNodePosition$ = function $$DvtAdfDiagramOverviewUtils$$$$SetNodePosition$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $animator$$47$$) {
    if ($DvtScrollbarBackground$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($DvtScrollbarBackground$$, $DvtScrollbar$$)) {
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$Point$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$), $animator$$47$$ ? ($animator$$47$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getTranslateX$, $DvtScrollbarBackground$$.$setTranslateX$, $DvtScrollbarEvent$$.x), $animator$$47$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getTranslateY$, $DvtScrollbarBackground$$.$setTranslateY$, $DvtScrollbarEvent$$.y)) : 
      $DvtScrollbarBackground$$.$setTranslate$($DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y);
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$GetMaxAlpha$ = function $$DvtAdfDiagramOverviewUtils$$$$GetMaxAlpha$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = $DvtScrollbar$$.$GetMaxAlpha$();
    if ($DvtScrollbar$$.$isDisclosed$()) {
      var $DvtAdfDiagramDragSource$$ = parseFloat($DvtAdfDiagramOverviewUtils$$.$getSkinStyleAttr$($DvtScrollbarBackground$$.$_ovContentStyle$, $dvt$$1$$.$AdfDiagram$.$OVERVIEW_DISCLOSED_ALPHA$));
      isNaN($DvtAdfDiagramDragSource$$) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagram$.$OVERVIEW_DISCLOSED_DFLT_ALPHA$);
      $DvtScrollbarEvent$$ = Math.min($DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$);
    }
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramOverviewUtils$$.$SetNodeAlpha$ = function $$DvtAdfDiagramOverviewUtils$$$$SetNodeAlpha$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $ovNode$$7$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if ($ovNode$$7$$) {
      var $DvtScrollbarArrow$$ = $ovNode$$7$$.$getFill$();
      $DvtScrollbarArrow$$ && ($DvtScrollbarBackground$$ = Math.min($DvtScrollbarEvent$$, $DvtAdfDiagramOverviewUtils$$.$GetMaxAlpha$($DvtScrollbarBackground$$, $DvtScrollbar$$)), $DvtScrollbarBackground$$ != $DvtScrollbarArrow$$.$getAlpha$() && ($DvtScrollbarArrow$$ = $DvtScrollbarArrow$$.clone(), $DvtScrollbarArrow$$.$setAlpha$($DvtScrollbarBackground$$), $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_FILL$, $ovNode$$7$$, $ovNode$$7$$.$getFill$, $ovNode$$7$$.$setFill$, 
      $DvtScrollbarArrow$$) : $ovNode$$7$$.$setFill$($DvtScrollbarArrow$$)));
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$SetNodeVisible$ = function $$DvtAdfDiagramOverviewUtils$$$$SetNodeVisible$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    ($dvt$$1$$ = $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$($dvt$$1$$, $DvtScrollbarBackground$$)) && $dvt$$1$$.$setVisible$($DvtScrollbar$$);
  };
  $DvtAdfDiagramOverviewUtils$$.$GetOverviewNode$ = function $$DvtAdfDiagramOverviewUtils$$$$GetOverviewNode$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return $dvt$$1$$.$_overviewWindow$ && $dvt$$1$$.$_overviewNodes$ ? $dvt$$1$$.$_overviewNodes$[$DvtScrollbarBackground$$.getData().getId()] : null;
  };
  $DvtAdfDiagramOverviewUtils$$.$HandlePanEvent$ = function $$DvtAdfDiagramOverviewUtils$$$$HandlePanEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$_panZoomCanvas$.$getContentPaneMatrix$($DvtScrollbarBackground$$.$_animator$).clone();
    $DvtScrollbar$$.translate($DvtScrollbarBackground$$.$_newX$ - $DvtScrollbarBackground$$.$_oldX$, $DvtScrollbarBackground$$.$_newY$ - $DvtScrollbarBackground$$.$_oldY$);
    $dvt$$1$$.$_overviewWindow$.$setViewportDimensions$($DvtAdfDiagramOverviewUtils$$.$_calcViewportFromMatrix$($dvt$$1$$, $DvtScrollbar$$), $DvtScrollbarBackground$$.$_animator$);
  };
  $DvtAdfDiagramOverviewUtils$$.$HandleZoomEvent$ = function $$DvtAdfDiagramOverviewUtils$$$$HandleZoomEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$_panZoomCanvas$.$getContentPaneMatrix$($DvtScrollbarBackground$$.$_animator$).clone();
    $DvtScrollbar$$.scale($DvtScrollbarBackground$$.$_newZoom$ / $DvtScrollbarBackground$$.$_oldZoom$, $DvtScrollbarBackground$$.$_newZoom$ / $DvtScrollbarBackground$$.$_oldZoom$, $DvtScrollbarBackground$$.$getCenterPoint$().x, $DvtScrollbarBackground$$.$getCenterPoint$().y);
    $DvtScrollbar$$.translate($DvtScrollbarBackground$$.$_tx$, $DvtScrollbarBackground$$.$_ty$);
    $dvt$$1$$.$_overviewWindow$.$setViewportDimensions$($DvtAdfDiagramOverviewUtils$$.$_calcViewportFromMatrix$($dvt$$1$$, $DvtScrollbar$$), $DvtScrollbarBackground$$.$_animator$);
  };
  $DvtAdfDiagramOverviewUtils$$.$getSkinStyleAttr$ = function $$DvtAdfDiagramOverviewUtils$$$$getSkinStyleAttr$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return $dvt$$1$$ && "undefined" != $dvt$$1$$[$DvtScrollbarBackground$$] ? $dvt$$1$$[$DvtScrollbarBackground$$] : null;
  };
  $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$ = function $$DvtAdfDiagramOverviewUtils$$$$_createCustomAnimPlayable$$($DvtScrollbarBackground$$) {
    return new $dvt$$1$$.$CustomAnimation$($DvtScrollbarBackground$$.$getCtx$(), null, $DvtScrollbarBackground$$.$getAnimationDuration$());
  };
  $DvtAdfDiagramOverviewUtils$$.$AnimateUpdate$ = function $$DvtAdfDiagramOverviewUtils$$$$AnimateUpdate$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $oldContent_oldNode$$3$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $newNodes$$1$$, $oldArNodeIds$$1$$, $newArNodeIds$$1$$) {
    $DvtAdfDiagramOverviewUtils$$.$_animateUpdateContent$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $oldContent_oldNode$$3$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = {};
    for (var $DvtAdfDiagramEditorManager$$ in $newNodes$$1$$) {
      $DvtScrollbar$$[$DvtAdfDiagramEditorManager$$] = $newNodes$$1$$[$DvtAdfDiagramEditorManager$$];
    }
    $newNodes$$1$$ = $DvtScrollbar$$;
    $DvtScrollbar$$ = {};
    for ($DvtAdfDiagramEditorManager$$ in $DvtScrollbarArrow$$) {
      $DvtScrollbar$$[$DvtAdfDiagramEditorManager$$] = $DvtScrollbarArrow$$[$DvtAdfDiagramEditorManager$$];
    }
    $DvtScrollbarArrow$$ = $DvtScrollbar$$;
    $DvtScrollbar$$ = {};
    if ($DvtScrollbarArrow$$) {
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $oldArNodeIds$$1$$.length;$DvtScrollbarEvent$$++) {
        if ($DvtAdfDiagramEditorManager$$ = $oldArNodeIds$$1$$[$DvtScrollbarEvent$$], $DvtScrollbar$$[$DvtAdfDiagramEditorManager$$]) {
          delete $DvtScrollbarArrow$$[$DvtAdfDiagramEditorManager$$], delete $newNodes$$1$$[$DvtAdfDiagramEditorManager$$];
        } else {
          if ($oldContent_oldNode$$3$$ = $DvtScrollbarArrow$$[$DvtAdfDiagramEditorManager$$]) {
            if ($DvtAdfDiagramDragSource$$ = $newNodes$$1$$[$DvtAdfDiagramEditorManager$$]) {
              $DvtAdfDiagramOverviewUtils$$.$_animateUpdate$($dvt$$1$$, $DvtScrollbarBackground$$, $oldContent_oldNode$$3$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $newNodes$$1$$, $DvtScrollbar$$), delete $newNodes$$1$$[$DvtAdfDiagramEditorManager$$];
            }
          }
        }
      }
    }
    $dvt$$1$$ = [];
    for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $newArNodeIds$$1$$.length;$DvtScrollbarEvent$$++) {
      $DvtAdfDiagramEditorManager$$ = $newArNodeIds$$1$$[$DvtScrollbarEvent$$], $newNodes$$1$$[$DvtAdfDiagramEditorManager$$] && $dvt$$1$$.push($DvtAdfDiagramEditorManager$$);
    }
    for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $dvt$$1$$.length;$DvtScrollbarEvent$$++) {
      $DvtAdfDiagramEditorManager$$ = $dvt$$1$$[$DvtScrollbarEvent$$], $DvtScrollbar$$[$DvtAdfDiagramEditorManager$$] && (delete $DvtScrollbarArrow$$[$DvtAdfDiagramEditorManager$$], delete $newNodes$$1$$[$DvtAdfDiagramEditorManager$$]);
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$_animateUpdateContent$ = function $$DvtAdfDiagramOverviewUtils$$$$_animateUpdateContent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $oldContent$$1_oldMat$$3$$, $DvtScrollbarArrow$$) {
    var $DvtAdfDiagramEditorManager$$ = null;
    $oldContent$$1_oldMat$$3$$ = $oldContent$$1_oldMat$$3$$.$getMatrix$();
    var $newMat$$3$$ = $DvtScrollbarArrow$$.$getMatrix$();
    $oldContent$$1_oldMat$$3$$.$equals$($newMat$$3$$) || ($DvtAdfDiagramEditorManager$$ || ($DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtScrollbarArrow$$.$setMatrix$($oldContent$$1_oldMat$$3$$), $DvtAdfDiagramEditorManager$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_MATRIX$, $DvtScrollbarArrow$$, $DvtScrollbarArrow$$.$getMatrix$, $DvtScrollbarArrow$$.$setMatrix$, $newMat$$3$$));
    $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$GetViewportRectangle$();
    if ($DvtScrollbarEvent$$.x != $DvtScrollbarArrow$$.x || $DvtScrollbarEvent$$.y != $DvtScrollbarArrow$$.y || $DvtScrollbarEvent$$.$w$ != $DvtScrollbarArrow$$.$w$ || $DvtScrollbarEvent$$.$h$ != $DvtScrollbarArrow$$.$h$) {
      $DvtAdfDiagramEditorManager$$ || ($DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$SetViewportRectangle$($DvtScrollbarEvent$$), $DvtAdfDiagramEditorManager$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_RECTANGLE$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$GetViewportRectangle$, $DvtAdfDiagramDragSource$$.$SetViewportRectangle$, $DvtScrollbarArrow$$);
    }
    $DvtAdfDiagramEditorManager$$ && $DvtScrollbar$$.add($DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$);
  };
  $DvtAdfDiagramOverviewUtils$$.$_animateUpdate$ = function $$DvtAdfDiagramOverviewUtils$$$$_animateUpdate$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$) {
    var $playable$$8$$ = null, $oldVisible$$2$$ = $DvtScrollbarEvent$$.$_bVisible$, $newVisible$$2$$ = $DvtAdfDiagramDragSource$$.$_bVisible$;
    if ($oldVisible$$2$$ != $newVisible$$2$$) {
      $playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramOverviewUtils$$.$_skipDescendants$($DvtAdfDiagramOverviewUtils$$.$_getNodeIdFromOverviewNode$($DvtAdfDiagramDragSource$$), $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$, $DvtScrollbarArrow$$, 0, $DvtAdfDiagramEditorManager$$), $oldVisible$$2$$ ? ($DvtAdfDiagramDragSource$$.getParent().$addChild$($DvtScrollbarEvent$$), 
      $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarEvent$$, $DvtScrollbarEvent$$.$getAlpha$, $DvtScrollbarEvent$$.$setAlpha$, 0), $dvt$$1$$.$Playable$.$appendOnEnd$($playable$$8$$, function() {
        $DvtScrollbarEvent$$.getParent().removeChild($DvtScrollbarEvent$$);
        $DvtScrollbarEvent$$.$destroy$();
      }), $DvtScrollbar$$.add($playable$$8$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_DELETE$)) : $newVisible$$2$$ && ($DvtScrollbarBackground$$ = $DvtAdfDiagramDragSource$$.$getAlpha$(), $DvtAdfDiagramDragSource$$.$setAlpha$(0), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getAlpha$, $DvtAdfDiagramDragSource$$.$setAlpha$, $DvtScrollbarBackground$$), $DvtScrollbar$$.add($playable$$8$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_INSERT$))
      ;
    } else {
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$getTranslateX$();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getTranslateX$();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setTranslateX$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getTranslateX$, 
      $DvtAdfDiagramDragSource$$.$setTranslateX$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$getTranslateY$();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getTranslateY$();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setTranslateY$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getTranslateY$, 
      $DvtAdfDiagramDragSource$$.$setTranslateY$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.getWidth();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.getWidth();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setWidth$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.getWidth, 
      $DvtAdfDiagramDragSource$$.$setWidth$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.getHeight();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.getHeight();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setHeight$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.getHeight, 
      $DvtAdfDiagramDragSource$$.$setHeight$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$getAlpha$();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getAlpha$();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setAlpha$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getAlpha$, 
      $DvtAdfDiagramDragSource$$.$setAlpha$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$getFill$();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getFill$();
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ && $DvtScrollbarArrow$$ && $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$.$getColor$() != $DvtScrollbarArrow$$.$getColor$() && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setFill$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), 
      $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_FILL$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getFill$, $DvtAdfDiagramDragSource$$.$setFill$, $DvtScrollbarArrow$$));
      $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$getStroke$();
      $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getStroke$();
      if ($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ || $DvtScrollbarArrow$$) {
        if ($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ ? $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidStroke$("rgba(0,0,0,0)")) : $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = new $dvt$$1$$.$SolidStroke$("rgba(0,0,0,0)"), $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$.$getColor$() != $DvtScrollbarArrow$$.$getColor$() || $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$.$getAlpha$() != 
        $DvtScrollbarArrow$$.$getAlpha$()) {
          $playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$setStroke$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_STROKE$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$.$getStroke$, $DvtAdfDiagramDragSource$$.$setStroke$, $DvtScrollbarArrow$$);
        }
      }
      $DvtScrollbarEvent$$.$_ovChildNodePane$ && $DvtAdfDiagramDragSource$$.$_ovChildNodePane$ && ($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = $DvtScrollbarEvent$$.$_ovChildNodePane$.$getTranslateX$(), $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$getTranslateX$(), $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), 
      $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$setTranslateX$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$getTranslateX$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$setTranslateX$, $DvtScrollbarArrow$$)), $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ = 
      $DvtScrollbarEvent$$.$_ovChildNodePane$.$getTranslateY$(), $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$getTranslateY$(), $oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$ != $DvtScrollbarArrow$$ && ($playable$$8$$ || ($playable$$8$$ = $DvtAdfDiagramOverviewUtils$$.$_createCustomAnimPlayable$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$setTranslateY$($oldAlpha_oldCnpTx_oldCnpTy_oldFill_oldH_oldNodes$$2_oldStroke$$2_oldTx$$1_oldTy$$1_oldW$$), 
      $playable$$8$$.$_animator$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$getTranslateY$, $DvtAdfDiagramDragSource$$.$_ovChildNodePane$.$setTranslateY$, $DvtScrollbarArrow$$)));
      $playable$$8$$ && $DvtScrollbar$$.add($playable$$8$$, $DvtAdfDiagramDataAnimationHandler$$.$PHASE_UPDATE$);
    }
  };
  $DvtAdfDiagramOverviewUtils$$.$_animateInsert$ = function $$DvtAdfDiagramOverviewUtils$$$$_animateInsert$$() {
  };
  $DvtAdfDiagramOverviewUtils$$.$_animateDelete$ = function $$DvtAdfDiagramOverviewUtils$$$$_animateDelete$$() {
  };
  $DvtAdfDiagramOverviewUtils$$.$_skipDescendants$ = function $$DvtAdfDiagramOverviewUtils$$$$_skipDescendants$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $skipNodes$$2$$) {
    if (!$DvtScrollbarEvent$$ || 0 > $DvtScrollbarEvent$$) {
      $DvtScrollbarEvent$$ = 0;
    }
    $dvt$$1$$ = $DvtScrollbar$$[$dvt$$1$$];
    if ($dvt$$1$$.$_ovChildNodePane$) {
      for (var $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$_ovChildNodePane$.$getNumChildren$(), $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtAdfDiagramDragSource$$;$DvtScrollbarArrow$$++) {
        var $childId$$8_nodeId$$60$$ = $dvt$$1$$.$_ovChildNodePane$.$getChildAt$($DvtScrollbarArrow$$).getId(), $childId$$8_nodeId$$60$$ = $DvtAdfDiagramOverviewUtils$$.$_getNodeIdFromOverviewNodeId$($childId$$8_nodeId$$60$$);
        1 > $DvtScrollbarEvent$$ && ($skipNodes$$2$$[$childId$$8_nodeId$$60$$] = !0);
        $DvtAdfDiagramOverviewUtils$$.$_skipDescendants$($childId$$8_nodeId$$60$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$ - 1, $skipNodes$$2$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramParser$ = function $$dvt$$1$$$$AdfDiagramParser$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramParser$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramParser");
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_DIAGRAM_EVENT$ = "dg_e";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$ = "d";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$ = "el";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_F$ = "f";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LEGEND$ = "legend";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_PALETTE$ = "palette";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK$ = "l";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK_DATA$ = "ld";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE$ = "n";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$ = "nd";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_OVERVIEWWINDOW$ = "overviewWindow";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_POINT_LOCATION$ = "pLoc";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_TEMPLATES$ = "t";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_MDEF$ = "mdef";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_MARKERDEF$ = "markerDef";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_FILLDEF$ = "fillDef";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_GRADIENT$ = "g";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CONTEXT_MENU$ = "menus";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_RESOURCES$ = "resources";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SELECTORS$ = "st";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_AF_STYLES$ = "afStyles";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CT_STYLES$ = "ctStyles";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ = "spb";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CLIENT_BEHAVIOR$ = "bhvr";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_INLINE_STYLE$ = "inlineStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_STYLE_CLASS$ = "styleClass";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_NAME$ = "name";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_RENDERED$ = "rendered";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$ = "readOnly";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_HAS_DRAG_SOURCE$ = "hasDragSource";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAGGABLE$ = "draggable";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAG_FLAVOR$ = "dragFlavor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DROP_FLAVORS$ = "dropFlavors";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$ = "shortDesc";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ATTR_GRPS$ = "attrGrps";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNGROUPED$ = "ungrouped";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIDDEN$ = "hidden";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$ = "height";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HIGHLIGHT_BEHAVIOR$ = "nodeHL";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HIGHLIGHT_BEHAVIOR$ = "linkHL";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_NODES$ = "hlNodes";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_LINKS$ = "hlLinks";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$ = "id";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_INIT_ANIM$ = "initAnim";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_DATA_CHANGE_ANIM$ = "dataChangeAnim";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ANIMATION_DURATION$ = "animDuration";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILD_ID$ = "ci";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CLIENT_LAYOUTS$ = "clientLayouts";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BACKGROUND_COLOR$ = "dropTargetBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BORDER_COLOR$ = "dropTargetBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_OPACITY$ = "dropTargetOpacity";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$ = "endConnectorType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_GROUP_ID$ = "gi";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$ = "label";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$ = "layout";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_ATTRS$ = "layoutAttrs";
  $dvt$$1$$.$AdfDiagramParser$.$ATTR_DATA_PPR$ = "dataPPR";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LEGEND_JSON_DATA$ = "legendJsonData";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SUMMARY$ = "summary";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$ = "linkColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$ = "linkStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$ = "linkType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$ = "linkWidth";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$ = "linkLength";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PARENT_ID$ = "pi";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_POINT_X$ = "pointX";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_POINT_Y$ = "pointY";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROLLOVER_BEHAVIOR$ = "rolloverBehavior";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTION_MODE$ = "selectionMode";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$ = "selectable";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_NODES$ = "selectedNodes";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_LINKS$ = "selectedLinks";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_DRILL$ = "showDrill";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_ISOLATE$ = "showIsolate";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_RESTORE$ = "showRestore";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_EXPAND_CHILDREN$ = "showExpandChildren";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_NODE_ACTIONS$ = "showNodeActions";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_STACK$ = "showStack";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_DISCLOSED_NODES$ = "disclosedNodes";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$ = "startConnectorType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_TEMPLATE_ID$ = "ti";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$ = "width";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ISOLATED_NODES$ = "isolatedNodes";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_EMPTY_TEXT$ = "emptyText";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_MAX_ZOOM$ = "maxZoom";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_MIN_ZOOM$ = "minZoom";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTROL_PANEL_BEHAVIOR$ = "controlPanelBehavior";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PANNING$ = "pan";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PANDIRECTION$ = "panDirection";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOMING$ = "zoom";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CENTER_NODE$ = "center";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROOT_NODE$ = "root";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROW_INDEX$ = "idx";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTEXT_MENU_ID$ = "cm";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_STRUCTURE_ONLY$ = "so";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER$ = "container";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILDREN_FETCHED$ = "cf";
  $dvt$$1$$.$AdfDiagramParser$.$_COLON$ = ":";
  $dvt$$1$$.$AdfDiagramParser$.$_SEMICOLON$ = ";";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_NODE$ = "ovNode";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_DISCLOSED_NODE$ = "ovDisclosedNode";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BG_COLOR$ = "ovViewportBgColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BORDER_COLOR$ = "ovViewportBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ = "buttonContainer";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_FILL_TYPE$ = "FillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND_COLOR$ = "BackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND$ = "Background";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BOX_SHADOW$ = "BoxShadow";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BORDER_COLOR$ = "BorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_LABEL$ = "buttonLabel";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ENABLED_STATE$ = "";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HOVER_STATE$ = "Hover";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ACTIVE_STATE$ = "Active";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_BEHAVIOR$ = "layoutBehavior";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SELECT_COLOR$ = $dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_INNER_COLOR$ = $dvt$$1$$.$AdfDiagramNode$.$HOVER_INNER_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_OUTER_COLOR$ = $dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_CONTAINER_STYLE$ = $dvt$$1$$.$AdfDiagramNode$.$CONTAINER_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_OVERVIEW_STYLE$ = $dvt$$1$$.$AdfDiagramNode$.$OVERVIEW_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_OVERVIEW_CONTAINER_STYLE$ = $dvt$$1$$.$AdfDiagramNode$.$OVERVIEW_CONTAINER_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_LABEL_STYLE$ = $dvt$$1$$.$AdfDiagramNode$.$LABEL_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_SELECT_COLOR$ = $dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_INNER_COLOR$ = $dvt$$1$$.$AdfDiagramLink$.$HOVER_INNER_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_OUTER_COLOR$ = $dvt$$1$$.$AdfDiagramLink$.$HOVER_OUTER_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_COLOR$ = $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_COLOR$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_STYLE$ = $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_WIDTH$ = $dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$;
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LABEL_STYLE$ = $dvt$$1$$.$AdfDiagramLink$.$LABEL_STYLE$;
  $dvt$$1$$.$AdfDiagramParser$.$_LINK_STYLE_CONVERTER$ = {solid:$dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_SOLID$, dashed:$dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DASH$, dotted:$dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DOT$, "dashed-dotted":$dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DASH_DOT$};
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_STYLE$ = "breadcrumbsStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_HOVER_STYLE$ = "breadcrumbsHoverStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_ACTIVE_STYLE$ = "breadcrumbsActiveStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_SELECTED_STYLE$ = "breadcrumbsSelectedStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER_STYLE$ = "containerStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_STYLE$ = "overviewStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_CONTAINER_STYLE$ = "overviewContainerStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_X$ = "panX";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_Y$ = "panY";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOM$ = "zoomPct";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_EVENT_TYPE$ = "type";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_PREVIEW_COLOR$ = "stackPreviewColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_BADGE_STYLE$ = "stackCounterStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNDERLAY_STYLE$ = "stackStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_NODE$ = "previewRow";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_X$ = "previewPanX";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_Y$ = "previewPanY";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_ZOOM$ = "previewZoom";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_ENA$ = "buttonStyleEna";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_OVR$ = "buttonStyleOvr";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_DWN$ = "buttonStyleDwn";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_STYLE$ = "paletteSectionStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_HOVER_STYLE$ = "paletteSectionHoverStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_ACTIVE_STYLE$ = "paletteSectionActiveStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_ITEM_STYLE$ = "paletteItemStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARD$ = "c";
  $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARDS$ = "cd";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NEW_NODE_SDI_MAP$ = "newNodeSdis";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SDI_MAP$ = "nodeShowDetailItems";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_SKIN$ = "navButtonSkin";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TEXT$ = "t";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ICON$ = "i";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ID$ = "id";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_INDEXES$ = "cardIndexes";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_FILL_TYPE$ = "cardFillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_TYPE$ = "cardBorderType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_COLOR$ = "cardBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BACKGROUND_COLOR$ = "cardBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_RADIUS$ = "cardBorderRadius";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT$ = "cardHeaderStyle";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT75$ = "cardHeaderStyle75";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT50$ = "cardHeaderStyle50";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT25$ = "cardHeaderStyle25";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_FILL_TYPE$ = "cardNavButtonFillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ICON_COLOR$ = "cardNavButtonIconColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BORDER_COLOR$ = "cardNavButtonBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BACKGROUND_COLOR$ = "cardNavButtonBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_FILL_TYPE$ = "cardNavButtonHoverFillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_ICON_COLOR$ = "cardNavButtonHoverIconColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BORDER_COLOR$ = "cardNavButtonHoverBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BACKGROUND_COLOR$ = "cardNavButtonHoverBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_FILL_TYPE$ = "cardNavButtonActiveFillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_ICON_COLOR$ = "cardNavButtonActiveIconColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BORDER_COLOR$ = "cardNavButtonActiveBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BACKGROUND_COLOR$ = "cardNavButtonActiveBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_FILL_TYPE$ = "cardNavButtonDisabledFillType";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_ICON_COLOR$ = "cardNavButtonDisabledIconColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BORDER_COLOR$ = "cardNavButtonDisabledBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BACKGROUND_COLOR$ = "cardNavButtonDisabledBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_VISIBILITY$ = "cardTrainButtonVisibility";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BORDER_COLOR$ = "cardTrainButtonBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BACKGROUND_COLOR$ = "cardTrainButtonBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BORDER_COLOR$ = "cardTrainButtonActiveBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BACKGROUND_COLOR$ = "cardTrainButtonActiveBackgroundColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ICON$ = "cardTrainIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_HOVER_ICON$ = "cardTrainHoverIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_ICON$ = "cardTrainActiveIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ICON$ = "cardPrevIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_HOVER_ICON$ = "cardPrevHoverIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ACTIVE_ICON$ = "cardPrevActiveIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_DISABLED_ICON$ = "cardPrevDisabledIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ICON$ = "cardNextIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_HOVER_ICON$ = "cardNextHoverIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ACTIVE_ICON$ = "cardNextActiveIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_DISABLED_ICON$ = "cardNextDisabledIcon";
  $dvt$$1$$.$AdfDiagramParser$.$_SEARCH_EVENT$ = "hv_sea";
  $dvt$$1$$.$AdfDiagramParser$.$_SEARCH_EVENT_TYPE_NEXT$ = "next";
  $dvt$$1$$.$AdfDiagramParser$.$_FETCH_EVENT$ = "dvtDiagramFetchEvent";
  $dvt$$1$$.$AdfDiagramParser$.$_PANELCARD_FETCH_EVENT$ = "hv_pcfet";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BACKGROUND$ = "scrollbarBg";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BORDER_COLOR$ = "scrollbarBorderColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_COLOR$ = "scrollbarHandleColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_ACTIVE_COLOR$ = "scrollbarHandleActiveColor";
  $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_HOVER_COLOR$ = "scrollbarHandleHoverColor";
  $dvt$$1$$.$AdfDiagramParser$.prototype.Init = function $$dvt$$1$$$$AdfDiagramParser$$$Init$($dvt$$1$$) {
    this.$_diagram$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$loadXmlInitial$ = function $$dvt$$1$$$$AdfDiagramParser$$$$loadXmlInitial$$($DvtScrollbarBackground$$) {
    if ($dvt$$1$$.$AdfDiagramParser$.$_ELEM_DIAGRAM_EVENT$ == $DvtScrollbarBackground$$.getName()) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getChildNodes$()[0], $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_EVENT_TYPE$);
      this.$_diagram$.$_eventType$ = $DvtScrollbarEvent$$;
      try {
        if ($dvt$$1$$.$AdfDiagramParser$.$_SEARCH_EVENT$ == $DvtScrollbarEvent$$) {
          var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$("clientRowKey");
          $DvtScrollbarBackground$$.$getAttr$("searchText");
          this.$_diagram$.$LoadSearchResultsData$($DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
        } else {
          if ($dvt$$1$$.$AdfDiagramParser$.$_FETCH_EVENT$ == $DvtScrollbarEvent$$) {
            this.$LoadDiagramElement$($DvtScrollbar$$);
            var $nodeId$$61$$ = $DvtScrollbarBackground$$.$getAttr$("clientRowKey"), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$getAttr$("subtype");
            this.$_diagram$.$getNodeById$($nodeId$$61$$).getData().$setChildrenFetched$(!0);
            this.$_diagram$.$_resetTransitionState$();
            $dvt$$1$$.$AdfDiagramFetchEvent$.$DRILL$ === $DvtScrollbarArrow$$ ? this.$_diagram$.$drillNode$($nodeId$$61$$) : this.$_diagram$.$setNodeDisclosed$($nodeId$$61$$, !0, !1, !0);
          } else {
            if ($dvt$$1$$.$AdfDiagramParser$.$_PANELCARD_FETCH_EVENT$ == $DvtScrollbarEvent$$) {
              var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$("clientRowKey"), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$getAttr$("nextc"), $hoverWindow$$1$$ = $DvtScrollbarBackground$$.$getAttr$("pchw");
              this.$ParseAdditionalPanelCardData$($DvtScrollbar$$);
              this.$_diagram$.$applyPanelCardData$($DvtAdfDiagramDragSource$$, $DvtAdfDiagramEditorManager$$, $hoverWindow$$1$$);
            }
          }
        }
      } finally {
        this.$_diagram$.$_eventType$ = null;
      }
      this.$_diagram$.$_handledEventXml$ = !0;
    } else {
      this.$LoadDiagramElement$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$LoadDiagramElement$ = function $$dvt$$1$$$$AdfDiagramParser$$$$LoadDiagramElement$$($DvtScrollbarBackground$$) {
    if (this.$ParseDiagramNodeAttrs$($DvtScrollbarBackground$$)) {
      var $DvtScrollbar$$ = null, $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.getElementsByTagName($dvt$$1$$.$AdfDiagramParser$.$_ELEM_SELECTORS$);
      $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$[0] && ($DvtScrollbar$$ = $DvtAdfDiagramDragSource$$[0].getAttributes());
      ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.getElementsByTagName($dvt$$1$$.$AdfDiagramParser$.$_ELEM_AF_STYLES$)) && $DvtAdfDiagramDragSource$$[0] && ($DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$[0].getAttributes());
      $DvtScrollbar$$ && $DvtScrollbarEvent$$ && $dvt$$1$$.$AfStyleUtils$.$setTagSkinKeyMap$($DvtScrollbar$$, $DvtScrollbarEvent$$);
      ($DvtScrollbar$$ = $DvtScrollbarBackground$$.getElementsByTagName($dvt$$1$$.$AdfDiagramParser$.$_ELEM_CT_STYLES$)) && $DvtScrollbar$$[0] && $DvtScrollbar$$[0].getAttributes();
      this.$setPanelCardStyles$();
      $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getChildNodes$();
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
        this.$ParseDiagramNodeChild$($DvtScrollbar$$[$DvtScrollbarEvent$$]);
      }
      this.$ParseDiagramIsolation$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseDiagramNodeAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseDiagramNodeAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    this.$_diagram$.$parseComponentAttrs$($DvtScrollbarBackground$$);
    this.$parseScrollbarStylesAttrs$($DvtScrollbarBackground$$);
    this.$parseOverviewContentAttrs$($DvtScrollbarBackground$$);
    this.$parseStackingStyles$($DvtScrollbarBackground$$);
    this.$parseStackPreview$($DvtScrollbarBackground$$);
    this.$parseDiagramButtonStyles$($DvtScrollbarBackground$$);
    this.$parseSelection$($DvtScrollbarBackground$$);
    this.$parseBreadcrumbsAttrs$($DvtScrollbarBackground$$);
    this.$parsePaletteAttrs$($DvtScrollbarBackground$$);
    this.$ParseNodeStyles$($DvtScrollbarBackground$$);
    this.$ParseLinkStyles$($DvtScrollbarBackground$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CLIENT_LAYOUTS$)) {
      $DvtScrollbar$$ = eval("(" + $DvtScrollbar$$ + ")");
      for (var $DvtScrollbarEvent$$ in $DvtScrollbar$$) {
        try {
          var $DvtAdfDiagramDragSource$$ = eval($DvtScrollbar$$[$DvtScrollbarEvent$$].strMethod);
          this.$_diagram$.$getLayoutCallback$().$addLayout$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
        } catch ($DvtScrollbarArrow$$) {
          "ReferenceError" == $DvtScrollbarArrow$$.name && this.$_diagram$.$Log$($DvtScrollbarArrow$$.name + ":" + $DvtScrollbarArrow$$.message, "2");
        }
        $DvtScrollbar$$[$DvtScrollbarEvent$$].layoutAttrs && this.$_diagram$.$setLayoutAttributes$($DvtScrollbarEvent$$, $DvtScrollbar$$[$DvtScrollbarEvent$$].layoutAttrs);
      }
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$)) && this.$_diagram$.$setLayout$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_INIT_ANIM$)) {
      "auto" == $DvtScrollbar$$ && ($DvtScrollbar$$ = $dvt$$1$$.$BlackBoxAnimationHandler$.$ALPHA_FADE$), this.$_diagram$.$setInitAnim$($DvtScrollbar$$);
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_DATA_CHANGE_ANIM$)) && this.$_diagram$.$setDataChangeAnim$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ANIMATION_DURATION$)) && this.$_diagram$.$setAnimationDuration$(parseInt($DvtScrollbar$$) / 1E3);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HIGHLIGHT_BEHAVIOR$)) && this.$_diagram$.$setNodeHighlightBehavior$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HIGHLIGHT_BEHAVIOR$)) && this.$_diagram$.$setLinkHighlightBehavior$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_NODES$)) {
      this.$_diagram$.$_highlightedNodes$ = $DvtScrollbar$$.split(",");
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_LINKS$)) {
      this.$_diagram$.$_highlightedLinks$ = $DvtScrollbar$$.split(",");
    }
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_DISCLOSED_NODES$);
    this.$_diagram$.$_disclosedNodes$ = $DvtScrollbar$$ ? $DvtScrollbar$$.split(",") : null;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ATTR_GRPS$)) && this.$_diagram$.$setAttributeGroups$($DvtScrollbar$$.split(/[\s;]+/));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNGROUPED$)) && this.$_diagram$.$setExplodedStacks$($DvtScrollbar$$.split(","));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIDDEN$)) && this.$_diagram$.$setHiddenAttributeGroups$($DvtScrollbar$$.split(","));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROLLOVER_BEHAVIOR$)) && this.$_diagram$.$setRolloverBehavior$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$)) && this.$_diagram$.$setReadOnly$("true" == $DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_HAS_DRAG_SOURCE$)) && this.$_diagram$.$setHasDragSource$("true" == $DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_MAX_ZOOM$)) {
      var $displayedControls_maxZoom_panZoom$$ = 2;
      $DvtScrollbar$$ = parseFloat($DvtScrollbar$$);
      0 < $DvtScrollbar$$ && ($displayedControls_maxZoom_panZoom$$ = $DvtScrollbar$$);
      this.$_diagram$.$setMaxZoom$($displayedControls_maxZoom_panZoom$$);
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_MIN_ZOOM$)) {
      $DvtScrollbarEvent$$ = 0, $DvtScrollbar$$ = parseFloat($DvtScrollbar$$), 0 < $DvtScrollbar$$ && ($DvtScrollbarEvent$$ = Math.min($DvtScrollbar$$, $displayedControls_maxZoom_panZoom$$)), this.$_diagram$.$setMinZoom$($DvtScrollbarEvent$$);
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTROL_PANEL_BEHAVIOR$)) && this.$_diagram$.$setControlPanelBehavior$($DvtScrollbar$$);
    $displayedControls_maxZoom_panZoom$$ = this.$_diagram$.$_displayedControls$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PANNING$);
    $DvtScrollbar$$ = "none" != $DvtScrollbar$$;
    this.$_diagram$.$SetPanningEnabled$($DvtScrollbar$$);
    $DvtScrollbar$$ || ($displayedControls_maxZoom_panZoom$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_CENTER_BUTTON$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOMING$);
    $DvtScrollbar$$ = "none" != $DvtScrollbar$$;
    this.$_diagram$.$SetZoomingEnabled$($DvtScrollbar$$);
    $DvtScrollbar$$ || ($displayedControls_maxZoom_panZoom$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM$, $displayedControls_maxZoom_panZoom$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM_TO_FIT_BUTTON$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_RESTORE$)) && this.$_diagram$.$SetShowRestore$("off" == $DvtScrollbar$$ ? "off" : "on");
    this.$_diagram$.$setDisplayedControls$($displayedControls_maxZoom_panZoom$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CENTER_NODE$)) && this.$_diagram$.$setCenterNode$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROOT_NODE$)) {
      this.$_diagram$.$_drillRoot$ = $DvtScrollbar$$;
    }
    $displayedControls_maxZoom_panZoom$$ = {};
    $DvtScrollbarEvent$$ = !1;
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_X$)) {
      $DvtScrollbarEvent$$ = !0, $displayedControls_maxZoom_panZoom$$.$panX$ = parseFloat($DvtScrollbar$$);
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_Y$)) {
      $DvtScrollbarEvent$$ = !0, $displayedControls_maxZoom_panZoom$$.$panY$ = parseFloat($DvtScrollbar$$);
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOM$)) {
      $DvtScrollbarEvent$$ = !0, $displayedControls_maxZoom_panZoom$$.zoom = parseFloat($DvtScrollbar$$);
    }
    $DvtScrollbarEvent$$ && (this.$_diagram$.$_panZoom$ = $displayedControls_maxZoom_panZoom$$);
    $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BACKGROUND_COLOR$);
    $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BORDER_COLOR$);
    $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_OPACITY$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_INDEXES$)) && this.$_diagram$.$setCardIndexes$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_EMPTY_TEXT$)) && this.$_diagram$.$setEmptyText$($DvtScrollbar$$);
    this.$ParsePanelCardAttrs$($DvtScrollbarBackground$$);
    this.$ParsePanelCardHeaderAttrs$($DvtScrollbarBackground$$);
    this.$ParsePanelCardNavButtonAttrs$($DvtScrollbarBackground$$);
    this.$ParsePanelCardTrainButtonAttrs$($DvtScrollbarBackground$$);
    this.$ParsePanelCardNextPrevButtonAttrs$($DvtScrollbarBackground$$);
    return !0;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseDiagramIsolation$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseDiagramIsolation$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ISOLATED_NODES$)) {
      for (this.$_diagram$.$_isolatedNodes$ = $DvtScrollbarBackground$$.split(","), this.$_diagram$.$_isolatedNodeMap$ = {}, $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_diagram$.$_isolatedNodes$.length;$DvtScrollbarBackground$$++) {
        this.$_diagram$.$_isolatedNodeMap$[this.$_diagram$.$_isolatedNodes$[$DvtScrollbarBackground$$]] = !1;
      }
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseSelection$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseSelection$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTION_MODE$);
    this.$_diagram$.$setSelectionMode$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_NODES$)) {
      this.$_diagram$.$_selectedNodes$ = $DvtScrollbar$$.split(",");
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_LINKS$)) {
      this.$_diagram$.$_selectedLinks$ = $DvtScrollbar$$.split(",");
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.$SplitLayoutAttrsMap$ = function $$dvt$$1$$$$AdfDiagramParser$$$SplitLayoutAttrsMap$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.split($dvt$$1$$.$AdfDiagramParser$.$_SEMICOLON$);
    for (var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.length, $DvtAdfDiagramDragSource$$, $iLayoutAttr$$ = 0;$iLayoutAttr$$ < $DvtScrollbarEvent$$;$iLayoutAttr$$++) {
      $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$iLayoutAttr$$], $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$.split($dvt$$1$$.$AdfDiagramParser$.$_COLON$), 1 < $DvtAdfDiagramDragSource$$.length && ($DvtScrollbar$$[$DvtAdfDiagramDragSource$$[0]] = $DvtAdfDiagramDragSource$$[1]);
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseDiagramNodeChild$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseDiagramNodeChild$$($DvtScrollbarBackground$$) {
    switch($DvtScrollbarBackground$$.getName()) {
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_TEMPLATES$:
        this.$ParseTemplates$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$:
        this.$ParseData$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$:
        this.$ParseShowPopupBehavior$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CONTEXT_MENU$:
        this.$_diagram$.$_contextMenuHandler$ = new $dvt$$1$$.$ContextMenuHandler$(this.$_diagram$.$getCtx$(), $DvtScrollbarBackground$$);
        this.$_diagram$.$getEventManager$().$setContextMenuHandler$(this.$_diagram$.$_contextMenuHandler$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LEGEND$:
        this.$ParseLegend$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_OVERVIEWWINDOW$:
        this.$ParseOverviewWindow$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_RESOURCES$:
        this.$ParseResources$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARDS$:
        this.$ParseCards$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_TEMPLATE$:
      ;
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_ADVANCED_TEMPLATE$:
      ;
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$:
        this.$_diagram$.$getSearchPanel$(!0).$parseNode$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseTemplates$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseTemplates$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      switch($DvtScrollbarEvent$$.getName()) {
        case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE$:
          this.$ParseNode$($DvtScrollbarEvent$$);
          break;
        case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK$:
          this.$ParseLink$($DvtScrollbarEvent$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$CreateNodeDef$ = function $$dvt$$1$$$$AdfDiagramParser$$$$CreateNodeDef$$() {
    return new $dvt$$1$$.$AdfDiagramNodeDef$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseNode$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseNode$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$CreateNodeDef$();
    this.$ParseNodeAttrs$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if (($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$()) && 0 < $DvtScrollbarBackground$$.length) {
      for (var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramDragSource$$++) {
        if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtScrollbarEvent$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_F$) {
          var $bhvr$$1_nameAttr_spb$$2$$ = $DvtScrollbarEvent$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_NAME$);
          "zoom100" === $bhvr$$1_nameAttr_spb$$2$$ || "zoom75" === $bhvr$$1_nameAttr_spb$$2$$ || "zoom50" === $bhvr$$1_nameAttr_spb$$2$$ || "zoom25" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setNodeTemplate$($DvtScrollbarEvent$$, $bhvr$$1_nameAttr_spb$$2$$) : "label" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setLabelTemplate$($DvtScrollbarEvent$$) : 
          "overlay" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setOverlayTemplate$($DvtScrollbarEvent$$) : "background" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setBackgroundTemplate$($DvtScrollbarEvent$$) : "containerTop" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && 
          $DvtScrollbar$$.$setContainerTopTemplate$($DvtScrollbarEvent$$) : "containerBottom" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerBottomTemplate$($DvtScrollbarEvent$$) : "containerLeft" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$) : "containerRight" === 
          $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$) : "containerStart" === $bhvr$$1_nameAttr_spb$$2$$ ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && ($dvt$$1$$.$Agent$.$isRightToLeft$() ? $DvtScrollbar$$.$_containerRightTemplate$ || $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$) : $DvtScrollbar$$.$_containerLeftTemplate$ || 
          $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$)) : "containerEnd" === $bhvr$$1_nameAttr_spb$$2$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && ($dvt$$1$$.$Agent$.$isRightToLeft$() ? $DvtScrollbar$$.$_containerLeftTemplate$ || $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$) : $DvtScrollbar$$.$_containerRightTemplate$ || $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$));
          $DvtScrollbarBackground$$.splice($DvtAdfDiagramDragSource$$, 1);
          $DvtAdfDiagramDragSource$$--;
        } else {
          $DvtScrollbarEvent$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ ? ($bhvr$$1_nameAttr_spb$$2$$ = $dvt$$1$$.$AfComponentFactory$.$parseElement$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$addShowPopupBehavior$($bhvr$$1_nameAttr_spb$$2$$) : $DvtScrollbarEvent$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CLIENT_BEHAVIOR$ && ($bhvr$$1_nameAttr_spb$$2$$ = $dvt$$1$$.$AfComponentFactory$.$parseElement$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$addClientBehavior$($bhvr$$1_nameAttr_spb$$2$$)
          ;
        }
      }
    }
    this.$_diagram$.$addNodeDef$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseNodeAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseNodeAttrs$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$);
    $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$)) && $DvtScrollbar$$.$setWidth$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$)) && $DvtScrollbar$$.$setHeight$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_INLINE_STYLE$);
    $DvtScrollbar$$.$setInlineStyle$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_STYLE_CLASS$);
    $DvtScrollbar$$.$setStyleClass$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$)) && $DvtScrollbar$$.$setReadOnly$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAGGABLE$)) && "no" === $DvtScrollbarEvent$$.toLowerCase() ? $DvtScrollbar$$.$setDraggable$(!1) : $DvtScrollbarEvent$$ && "yes" === $DvtScrollbarEvent$$.toLowerCase() && $DvtScrollbar$$.$setDraggable$(!0);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$)) && $DvtScrollbar$$.$setSelectable$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$)) && $DvtScrollbar$$.$setShortDesc$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$)) && $DvtScrollbar$$.$setLayout$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$)) && $DvtScrollbar$$.$setLabel$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER_STYLE$)) && $DvtScrollbar$$.$setContainerStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseLinkTemplate$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseLinkTemplate$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$AdfDiagramLinkDef$, $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$);
    $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$)) && $DvtScrollbar$$.$setLinkWidth$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$)) && $DvtScrollbar$$.$setLinkLength$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$)) && $DvtScrollbar$$.$setReadOnly$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$)) && $DvtScrollbar$$.$setSelectable$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$)) && ($DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setLinkColor$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$)) && $DvtScrollbar$$.$setLinkType$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$)) && $DvtScrollbar$$.$setLabel$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$)) && $DvtScrollbar$$.$setLinkStyle$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_RENDERED$)) && $DvtScrollbar$$.$setRendered$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$)) && $DvtScrollbar$$.$setShortDesc$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$)) && $DvtScrollbar$$.$setEndConnectorType$($DvtScrollbarEvent$$);
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$)) && $DvtScrollbar$$.$setStartConnectorType$($DvtScrollbarEvent$$);
    if (($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$()) && 0 < $DvtScrollbarBackground$$.length) {
      var $DvtAdfDiagramDragSource$$;
      for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $DvtAdfDiagramDragSource$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_F$) {
          var $nameAttr$$1_spb$$3$$ = $DvtAdfDiagramDragSource$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_NAME$);
          "endConnector" === $nameAttr$$1_spb$$3$$ || "startConnector" === $nameAttr$$1_spb$$3$$ ? ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtAdfDiagramDragSource$$)) && $DvtScrollbar$$.$setConnectorTemplate$($DvtAdfDiagramDragSource$$, $nameAttr$$1_spb$$3$$) : "label" === $nameAttr$$1_spb$$3$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtAdfDiagramDragSource$$)) && $DvtScrollbar$$.$setLabelTemplate$($DvtAdfDiagramDragSource$$);
        } else {
          $DvtAdfDiagramDragSource$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ && ($nameAttr$$1_spb$$3$$ = $dvt$$1$$.$AfComponentFactory$.$parseElement$($DvtAdfDiagramDragSource$$)) && $DvtScrollbar$$.$addShowPopupBehavior$($nameAttr$$1_spb$$3$$);
        }
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseLink$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseLink$$($dvt$$1$$) {
    $dvt$$1$$ = this.$parseLinkTemplate$($dvt$$1$$);
    this.$_diagram$.$addLinkDef$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseData$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    this.$_diagram$.$startParsingData$();
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      switch($DvtScrollbarEvent$$.getName()) {
        case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$:
          $DvtScrollbarEvent$$ = this.$ParseNodeData$($DvtScrollbarEvent$$);
          this.$_diagram$.$addNodeData$($DvtScrollbarEvent$$);
          break;
        case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK_DATA$:
          $DvtScrollbarEvent$$ = this.$ParseLinkData$($DvtScrollbarEvent$$), this.$_diagram$.$addLinkData$($DvtScrollbarEvent$$);
      }
    }
    this.$_diagram$.$stopParsingData$();
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseShowPopupBehavior$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseShowPopupBehavior$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$) {
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
        var $DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseElement$($DvtScrollbarBackground$$[$DvtScrollbar$$]);
        $DvtScrollbarEvent$$ && this.$_diagram$.$addShowPopupBehavior$($DvtScrollbarEvent$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$CreateNodeData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$CreateNodeData$$() {
    return new $dvt$$1$$.$AdfDiagramNodeData$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseNodeData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseNodeData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$CreateNodeData$(), $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$);
    $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_GROUP_ID$);
    $DvtScrollbar$$.$setGroupId$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_STRUCTURE_ONLY$);
    if ("true" === $DvtScrollbarEvent$$) {
      $DvtScrollbar$$.$setStructureOnly$();
    } else {
      $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_TEMPLATE_ID$);
      $DvtScrollbar$$.$setTemplateId$($DvtScrollbarEvent$$);
      $DvtScrollbarEvent$$ = parseInt($DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROW_INDEX$));
      $DvtScrollbar$$.$setRowIndex$($DvtScrollbarEvent$$);
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ATTR_GRPS$)) && $DvtScrollbar$$.$setAttributeGroups$($DvtScrollbarEvent$$.split($dvt$$1$$.$AdfDiagramParser$.$_SEMICOLON$));
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_ISOLATE$)) && $DvtScrollbar$$.$setShowIsolate$("false" !== $DvtScrollbarEvent$$);
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_EXPAND_CHILDREN$)) && $DvtScrollbar$$.$setShowExpandChildren$("false" !== $DvtScrollbarEvent$$);
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_DRILL$)) && $DvtScrollbar$$.$setShowDrill$("false" !== $DvtScrollbarEvent$$);
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_STACK$)) && $DvtScrollbar$$.$setShowStack$("false" !== $DvtScrollbarEvent$$);
      ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_NODE_ACTIONS$)) && $DvtScrollbar$$.$setShowNodeActions$("false" !== $DvtScrollbarEvent$$);
      if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_ATTRS$)) {
        $DvtScrollbarEvent$$ = eval("(" + $DvtScrollbarEvent$$ + ")"), $DvtScrollbar$$.$setLayoutAttributes$($DvtScrollbarEvent$$);
      }
      if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER$)) {
        $DvtScrollbar$$.$setContainer$("true" === $DvtScrollbarEvent$$), $DvtScrollbar$$.$isContainer$() && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILDREN_FETCHED$)) && $DvtScrollbar$$.$setChildrenFetched$("true" === $DvtScrollbarEvent$$);
      }
      if (($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getFirstChild()) && $DvtScrollbarBackground$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$) {
        $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getAttributes();
        for (var $DvtAdfDiagramDragSource$$ = {}, $i$$84$$ = 0;$i$$84$$ < $DvtScrollbarBackground$$.length;$i$$84$$++) {
          $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$i$$84$$], $DvtAdfDiagramDragSource$$[$DvtScrollbarEvent$$.name] = $DvtScrollbarEvent$$.value;
        }
        $DvtScrollbar$$.$setElAttributes$($DvtAdfDiagramDragSource$$);
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseLinkData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseLinkData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $DvtAdfDiagramLinkData$$, $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$);
    $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_GROUP_ID$);
    $DvtScrollbar$$.$setGroupId$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_TEMPLATE_ID$);
    $DvtScrollbar$$.$setTemplateId$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PARENT_ID$);
    $DvtScrollbar$$.$setStartId$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILD_ID$);
    $DvtScrollbar$$.$setEndId$($DvtScrollbarEvent$$);
    if (($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.getFirstChild()) && $DvtScrollbarEvent$$.getName() === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$) {
      $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getAttributes();
      for (var $DvtAdfDiagramDragSource$$, $attrs$$3$$ = {}, $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtScrollbarEvent$$.length;$DvtScrollbarArrow$$++) {
        $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$DvtScrollbarArrow$$], $attrs$$3$$[$DvtAdfDiagramDragSource$$.name] = $DvtAdfDiagramDragSource$$.value;
      }
      $DvtScrollbar$$.$setElAttributes$($attrs$$3$$);
    }
    $DvtScrollbarEvent$$ = parseInt($DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROW_INDEX$));
    $DvtScrollbar$$.$setRowIndex$($DvtScrollbarEvent$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseLegend$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseLegend$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LEGEND_JSON_DATA$)) {
      $DvtScrollbarBackground$$ = eval("(" + $DvtScrollbarBackground$$ + ")"), this.$_diagram$.$SetLegendJson$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseOverviewWindow$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseOverviewWindow$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$OverviewWindow$(this.$_diagram$.$getCtx$(), "dgOverviewWindow", 0, 0, 108, 81);
    $DvtScrollbar$$.$loadXmlNode$($DvtScrollbarBackground$$);
    var $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getSkinStyle$();
    $DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = {});
    $DvtScrollbarEvent$$[$dvt$$1$$.$OverviewWindow$.$VIEWPORT_BORDER_COLOR$] = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BORDER_COLOR$);
    $DvtScrollbarEvent$$[$dvt$$1$$.$OverviewWindow$.$VIEWPORT_BG_COLOR$] = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BG_COLOR$);
    $DvtScrollbar$$.$setSkinStyle$($DvtScrollbarEvent$$);
    this.$_diagram$.$setOverviewWindow$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseResources$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseResources$$($dvt$$1$$) {
    this.$_diagram$.$setResources$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseOverviewContentAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseOverviewContentAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_ovContentStyle$;
    $DvtScrollbar$$ || ($DvtScrollbar$$ = {});
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_NODE$));
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_DISCLOSED_NODE$));
    this.$_diagram$.$setOverviewWindowContentStyle$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.$validateColor$ = function $$dvt$$1$$$$AdfDiagramParser$$$validateColor$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$ColorUtils$.$isColor$($DvtScrollbarBackground$$, !1) || ($DvtScrollbarBackground$$ = $dvt$$1$$.$ColorUtils$.$getColorFromName$($DvtScrollbarBackground$$));
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParsePanelCardAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParsePanelCardAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtAdfDiagramDragSource$$ = !1;
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_FILL_TYPE$)) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_TYPE$)) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_TYPE$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_COLOR$)) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BACKGROUND_COLOR$)) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_RADIUS$)) {
      $DvtScrollbarEvent$$.$setStyle$("border-radius", $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    $DvtAdfDiagramDragSource$$ && this.$_diagram$.$setCardStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParsePanelCardHeaderAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParsePanelCardHeaderAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = this.$_diagram$.$_cardHeaderStyle$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT$);
    this.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom100");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT75$);
    this.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom75");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT50$);
    this.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom50");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT25$);
    this.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom25");
    this.$_diagram$.$setCardHeaderStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParsePanelCardNavButtonAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParsePanelCardNavButtonAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtAdfDiagramDragSource$$ = !1;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_FILL_TYPE$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BORDER_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ICON_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BACKGROUND_COLOR$);
    if ($DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtAdfDiagramDragSource$$ = !1;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_FILL_TYPE$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BORDER_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_ICON_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BACKGROUND_COLOR$);
    if ($DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonHoverStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtAdfDiagramDragSource$$ = !1;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_FILL_TYPE$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_ICON_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BORDER_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BACKGROUND_COLOR$);
    if ($DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonActiveStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtAdfDiagramDragSource$$ = !1;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_FILL_TYPE$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BORDER_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_ICON_COLOR$);
    $DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BACKGROUND_COLOR$);
    ($DvtAdfDiagramDragSource$$ = this.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) && this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid");
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParsePanelCardTrainButtonAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParsePanelCardTrainButtonAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_VISIBILITY$);
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$, $enaUrl$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ICON$);
    $enaUrl$$ ? ($DvtScrollbar$$ = !0, $DvtAdfDiagramDragSource$$.$setIconUrl$($enaUrl$$)) : ($DvtScrollbarEvent$$ = !1, $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BORDER_COLOR$), this.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarEvent$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BACKGROUND_COLOR$), $DvtScrollbar$$ = 
    this.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarEvent$$));
    $DvtScrollbar$$ && this.$_diagram$.$setCardTrainButtonStyle$($DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_HOVER_ICON$)) || ($DvtScrollbar$$ = $enaUrl$$);
    $DvtScrollbar$$ && ($DvtAdfDiagramDragSource$$.$setIconUrl$($DvtScrollbar$$), this.$_diagram$.$setCardTrainButtonHoverStyle$($DvtAdfDiagramDragSource$$));
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_ICON$)) || ($DvtScrollbarEvent$$ = $enaUrl$$);
    $DvtScrollbarEvent$$ ? ($DvtScrollbar$$ = !0, $DvtAdfDiagramDragSource$$.$setIconUrl$($DvtScrollbarEvent$$)) : ($DvtScrollbarEvent$$ = !1, $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BORDER_COLOR$), this.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarEvent$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BACKGROUND_COLOR$), 
    $DvtScrollbar$$ = this.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarEvent$$));
    $DvtScrollbar$$ && this.$_diagram$.$setCardTrainButtonActiveStyle$($DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParsePanelCardNextPrevButtonAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParsePanelCardNextPrevButtonAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramParser$.$getButtonImages$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_HOVER_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ACTIVE_ICON$);
    $DvtScrollbar$$ && this.$_diagram$.$setCardPrevButtonIcon$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramParser$.$getButtonImages$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_HOVER_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ACTIVE_ICON$)) && this.$_diagram$.$setCardNextButtonIcon$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$AddButtonStyle$ = function $$dvt$$1$$$$AdfDiagramParser$$$$AddButtonStyle$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarBackground$$ && ($dvt$$1$$.$setStyle$($DvtScrollbar$$, $DvtScrollbarBackground$$), $DvtScrollbarEvent$$ = !0);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$AddCardHeaderStyle$ = function $$dvt$$1$$$$AdfDiagramParser$$$$AddCardHeaderStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if ($DvtScrollbar$$) {
      var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
      $DvtAdfDiagramDragSource$$.$parseInlineStyle$($DvtScrollbar$$);
      $DvtScrollbarBackground$$[$DvtScrollbarEvent$$] = $DvtAdfDiagramDragSource$$;
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseAdditionalPanelCardData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseAdditionalPanelCardData$$($DvtScrollbarBackground$$) {
    this.$_diagram$.$startParsingPanelCardData$();
    ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getElementsByTagName($dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$)) && $DvtScrollbarBackground$$[0] && this.$_parsePanelCardData$($DvtScrollbarBackground$$[0]);
    this.$_diagram$.$stopParsingPanelCardData$();
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$_parsePanelCardData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$_parsePanelCardData$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$.getName() == $dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$ && this.$_parsePanelCardItemData$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$_parsePanelCardItemData$ = function $$dvt$$1$$$$AdfDiagramParser$$$$_parsePanelCardItemData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$);
    $DvtScrollbar$$ && ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$()) && ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[0]) && $DvtScrollbarBackground$$.getName() == $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$ && this.$_diagram$.$addPanelCardData$($DvtScrollbar$$, $DvtScrollbarBackground$$.getAttributes());
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseCards$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseCards$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SDI_MAP$);
    $DvtScrollbar$$ && this.$_diagram$.$setNodeShowDetailItemIndexMap$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NEW_NODE_SDI_MAP$)) && this.$_diagram$.$setShowDetailItems$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_SKIN$)) && this.$_diagram$.$setCardNavButtonSkin$($DvtScrollbar$$);
    $DvtScrollbar$$ = [];
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$];
      $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.getName() == $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARD$ && $DvtScrollbar$$.push([$DvtAdfDiagramDragSource$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TEXT$), $DvtAdfDiagramDragSource$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ICON$), $DvtAdfDiagramDragSource$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ID$)]);
    }
    0 < $DvtScrollbar$$.length && this.$_diagram$.$setCardSelectorList$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$setPanelCardStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$$setPanelCardStyles$$() {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$AfStyleUtils$.$getDefaultPanelCardStyles$();
    $DvtScrollbarBackground$$[0].$merge$(this.$_diagram$.$_cardCSSStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardNavButtonStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardNavButtonHoverStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardNavButtonActiveStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardHeaderStyle$.zoom100);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardHeaderStyle$.zoom75);
    var $DvtScrollbar$$ = this.$_diagram$.$_cardPrevButtonIcon$, $DvtScrollbarEvent$$ = 0;
    if ($DvtScrollbar$$) {
      $DvtScrollbarBackground$$.push($DvtScrollbar$$[0]), $DvtScrollbarBackground$$.push($DvtScrollbar$$[1]), $DvtScrollbarBackground$$.push($DvtScrollbar$$[2]);
    } else {
      for ($DvtScrollbarEvent$$ = 0;3 > $DvtScrollbarEvent$$;$DvtScrollbarEvent$$++) {
        $DvtScrollbarBackground$$.push(null);
      }
    }
    if ($DvtScrollbar$$ = this.$_diagram$.$_cardNextButtonIcon$) {
      $DvtScrollbarBackground$$.push($DvtScrollbar$$[0]), $DvtScrollbarBackground$$.push($DvtScrollbar$$[1]), $DvtScrollbarBackground$$.push($DvtScrollbar$$[2]);
    } else {
      for ($DvtScrollbarEvent$$ = 0;3 > $DvtScrollbarEvent$$;$DvtScrollbarEvent$$++) {
        $DvtScrollbarBackground$$.push(null);
      }
    }
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardTrainButtonStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardTrainButtonHoverStyle$);
    $DvtScrollbarBackground$$.push(this.$_diagram$.$_cardTrainButtonActiveStyle$);
    $dvt$$1$$.$AfStyleUtils$.$setPanelCardDefault$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.$getButtonImages$ = function $$dvt$$1$$$$AdfDiagramParser$$$getButtonImages$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $imageUrls$$ = [];
    $DvtScrollbarBackground$$ = $dvt$$1$$.$getAttr$($DvtScrollbarBackground$$);
    $DvtScrollbar$$ = $dvt$$1$$.$getAttr$($DvtScrollbar$$) ? $dvt$$1$$.$getAttr$($DvtScrollbar$$) : $DvtScrollbarBackground$$;
    $dvt$$1$$ = $dvt$$1$$.$getAttr$($DvtScrollbarEvent$$) ? $dvt$$1$$.$getAttr$($DvtScrollbarEvent$$) : $DvtScrollbarBackground$$;
    if ($DvtScrollbarBackground$$ || $DvtScrollbar$$ || $dvt$$1$$) {
      $imageUrls$$.push($DvtScrollbarBackground$$), $imageUrls$$.push($DvtScrollbar$$), $imageUrls$$.push($dvt$$1$$);
    } else {
      return null;
    }
    return $imageUrls$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseStackingStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseStackingStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_PREVIEW_COLOR$)) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtScrollbar$$)) && this.$_diagram$.$setStackPreviewColor$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_BADGE_STYLE$)) && this.$_diagram$.$setStackBadgeStyles$(new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNDERLAY_STYLE$)) && this.$_diagram$.$setStackUnderlayStyles$(new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseStackPreview$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseStackPreview$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_NODE$);
    $DvtAdfDiagramDragSource$$ && (this.$_diagram$.$_stackPreviewNode$ = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_X$)) {
      $DvtScrollbar$$.$panX$ = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0;
    }
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_Y$)) {
      $DvtScrollbar$$.$panY$ = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0;
    }
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_ZOOM$)) {
      $DvtScrollbar$$.zoom = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0;
    }
    $DvtScrollbarEvent$$ && (this.$_diagram$.$_stackPreviewPanZoom$ = $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseDiagramButtonStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseDiagramButtonStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_ENA$)) && $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$);
    var $DvtAdfDiagramDragSource$$;
    $DvtAdfDiagramDragSource$$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_OVR$)) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    $DvtScrollbarBackground$$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_DWN$)) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    $DvtScrollbar$$ = [];
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] = $DvtScrollbarEvent$$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$] = $DvtAdfDiagramDragSource$$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$] = $DvtScrollbarBackground$$;
    this.$_diagram$.$setDiagramButtonStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseBreadcrumbsAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseBreadcrumbsAttrs$$($DvtScrollbarBackground$$) {
    ($DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramParser$.$getBreadcrumbsStyles$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_HOVER_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_ACTIVE_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_SELECTED_STYLE$)) && this.$_diagram$.$setBreadcrumbsStyles$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.$getBreadcrumbsStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$getBreadcrumbsStyles$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $sel_styles$$8$$) {
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($DvtScrollbar$$);
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($DvtScrollbarEvent$$) ? $DvtScrollbarBackground$$.$getAttr$($DvtScrollbarEvent$$) : $DvtScrollbar$$;
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($DvtAdfDiagramDragSource$$) ? $DvtScrollbarBackground$$.$getAttr$($DvtAdfDiagramDragSource$$) : $DvtScrollbar$$;
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getAttr$($sel_styles$$8$$) ? $DvtScrollbarBackground$$.$getAttr$($sel_styles$$8$$) : $DvtScrollbar$$;
    $DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtScrollbarEvent$$);
    $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtScrollbarBackground$$);
    $sel_styles$$8$$ = [];
    $sel_styles$$8$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] = $DvtScrollbar$$;
    $sel_styles$$8$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$] = $DvtScrollbarEvent$$;
    $sel_styles$$8$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$] = $DvtAdfDiagramDragSource$$;
    $sel_styles$$8$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DIS$] = $DvtScrollbarBackground$$;
    return $sel_styles$$8$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$mergeStyles$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (!$DvtScrollbarBackground$$) {
      return null;
    }
    if ($DvtScrollbarBackground$$ == $DvtScrollbar$$) {
      return $DvtScrollbarBackground$$;
    }
    var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$;
    $DvtScrollbar$$ && ($DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.toString());
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseNodeStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseNodeStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SELECT_COLOR$);
    $DvtAdfDiagramDragSource$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_INNER_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_INNER_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_OUTER_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_CONTAINER_STYLE$)) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$CONTAINER_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_LABEL_STYLE$)) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$LABEL_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    $DvtScrollbarEvent$$ && this.$_diagram$.$setNodeStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseLinkStyles$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseLinkStyles$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$);
    $DvtAdfDiagramDragSource$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_SELECT_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_INNER_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_INNER_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_OUTER_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_OUTER_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LABEL_STYLE$)) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$LABEL_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_COLOR$)) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_STYLE$)) {
      $DvtScrollbarEvent$$ = !0, $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$_LINK_STYLE_CONVERTER$[$DvtAdfDiagramDragSource$$], $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_STYLE$] = $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$ : $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DOT$;
    }
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_WIDTH$)) && !isNaN(parseInt($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$] = $DvtAdfDiagramDragSource$$);
    $DvtScrollbarEvent$$ && this.$_diagram$.$setLinkStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseButtonStyle$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseButtonStyle$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = [];
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ENABLED_STATE$);
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HOVER_STATE$);
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ACTIVE_STATE$);
    this.$_diagram$.$setButtonStyle$($DvtScrollbar$$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ENABLED_STATE$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HOVER_STATE$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ACTIVE_STATE$);
    this.$_diagram$.$setLabelStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseButtonContainerStyle$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseButtonContainerStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$, $buttonStyle$$2$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarArrow$$ = !1;
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_FILL_TYPE$)) && ($DvtScrollbarArrow$$ = this.$AddButtonStyle$($buttonStyle$$2$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND_COLOR$)) && ($DvtScrollbarArrow$$ = this.$AddButtonStyle$($buttonStyle$$2$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND$)) && ($DvtScrollbarArrow$$ = this.$AddButtonStyle$($buttonStyle$$2$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BORDER_COLOR$)) && ($DvtScrollbarArrow$$ = this.$AddButtonStyle$($buttonStyle$$2$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarArrow$$));
    $DvtScrollbarArrow$$ ? $DvtScrollbar$$.push($buttonStyle$$2$$) : $DvtScrollbar$$.push(null);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$ParseButtonLabelStyle$ = function $$dvt$$1$$$$AdfDiagramParser$$$$ParseButtonLabelStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_LABEL$ + $DvtScrollbarEvent$$)) ? ($DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbarBackground$$), $DvtScrollbar$$.push($DvtScrollbarEvent$$)) : $DvtScrollbar$$.push(null);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parsePaletteAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parsePaletteAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_STYLE$)) && $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_HOVER_STYLE$)) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_ACTIVE_STYLE$)) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    var $DvtAdfDiagramDragSource$$ = {};
    $DvtAdfDiagramDragSource$$.skin = this.$_diagram$.$_skinName$;
    $DvtAdfDiagramDragSource$$.sectionHeader = {};
    $DvtAdfDiagramDragSource$$.sectionHeader.styleEna = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$.sectionHeader.styleOvr = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$.sectionHeader.styleDwn = $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_ITEM_STYLE$)) {
      $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$), $DvtAdfDiagramDragSource$$.sectionItem = {}, $DvtAdfDiagramDragSource$$.sectionItem.style = $DvtScrollbarEvent$$;
    }
    this.$_diagram$.$setPaletteStyles$($DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramParser$.prototype.$parseScrollbarStylesAttrs$ = function $$dvt$$1$$$$AdfDiagramParser$$$$parseScrollbarStylesAttrs$$($DvtScrollbarBackground$$) {
    var $DvtScrollbarEvent$$ = {};
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$BACKGROUND$, $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BACKGROUND$));
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$BORDER_COLOR$, $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BORDER_COLOR$));
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_COLOR$, $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_COLOR$));
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_ACTIVE_COLOR$, $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_ACTIVE_COLOR$));
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_HOVER_COLOR$, $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_HOVER_COLOR$));
    $DvtScrollbarBackground$$ = $dvt$$1$$.$JsonUtils$.$merge$($DvtScrollbarEvent$$, this.$_diagram$.$getSubcomponentStyles$());
    this.$_diagram$.$setSubcomponentStyles$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramJsonParser$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramJsonParser");
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.Init = function $$dvt$$1$$$$AdfDiagramJsonParser$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_diagramParser$ = $dvt$$1$$;
    this.$_diagram$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$loadJsonInitial$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$loadJsonInitial$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_DIAGRAM_EVENT$];
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_EVENT_TYPE$];
      this.$_diagram$.$_eventType$ = $DvtScrollbarEvent$$;
      try {
        if ($dvt$$1$$.$AdfDiagramParser$.$_SEARCH_EVENT$ == $DvtScrollbarEvent$$) {
          var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.clientRowKey;
          this.$_diagram$.$LoadSearchResultsDataJson$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$);
        } else {
          if ($dvt$$1$$.$AdfDiagramParser$.$_FETCH_EVENT$ == $DvtScrollbarEvent$$) {
            this.$LoadDiagramElement$($DvtScrollbarBackground$$);
            var $nodeId$$62$$ = $DvtScrollbar$$.clientRowKey, $DvtScrollbarArrow$$ = $DvtScrollbar$$.subtype;
            this.$_diagram$.$getNodeById$($nodeId$$62$$).getData().$setChildrenFetched$(!0);
            this.$_diagram$.$_resetTransitionState$();
            $dvt$$1$$.$AdfDiagramFetchEvent$.$DRILL$ === $DvtScrollbarArrow$$ ? this.$_diagram$.$drillNode$($nodeId$$62$$) : this.$_diagram$.$setNodeDisclosed$($nodeId$$62$$, !0, !1, !0);
            this.$_diagram$.$setInteractionEnabled$(!0);
          } else {
            if ($dvt$$1$$.$AdfDiagramParser$.$_PANELCARD_FETCH_EVENT$ == $DvtScrollbarEvent$$) {
              var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.clientRowKey, $DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$.nextc, $hoverWindow$$2$$ = $DvtScrollbar$$.pchw;
              this.$ParseAdditionalPanelCardData$($DvtScrollbarBackground$$);
              this.$_diagram$.$applyPanelCardData$($DvtAdfDiagramDragSource$$, $DvtAdfDiagramEditorManager$$, $hoverWindow$$2$$);
            }
          }
        }
      } finally {
        this.$_diagram$.$_eventType$ = null;
      }
      this.$_diagram$.$_handledEventXml$ = !0;
    } else {
      if ($DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$ATTR_DATA_PPR$]) {
        if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$]) {
          if ($DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$]) {
            for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $DvtScrollbarEvent$$.length;$DvtScrollbarBackground$$++) {
              if ($DvtAdfDiagramDragSource$$ = this.$_diagram$.$getNodeById$($DvtScrollbarEvent$$[$DvtScrollbarBackground$$][$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$])) {
                this.$parseNode$($DvtScrollbarEvent$$[$DvtScrollbarBackground$$], $DvtAdfDiagramDragSource$$.getData(), this.$_diagramParser$), $DvtAdfDiagramDragSource$$.$setNodeDef$($DvtAdfDiagramDragSource$$.$_nodeDef$), $DvtAdfDiagramDragSource$$.$FullRenderNode$(!0);
              }
            }
          }
          if ($DvtScrollbar$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK_DATA$]) {
            for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $DvtScrollbar$$.length;$DvtScrollbarBackground$$++) {
              if ($DvtScrollbarEvent$$ = this.$_diagram$.$getLinkbyId$($DvtScrollbar$$[$DvtScrollbarBackground$$][$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$])) {
                this.$parseLink$($DvtScrollbar$$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$.getData(), this.$_diagramParser$), $DvtScrollbarEvent$$.$setLinkDef$($DvtScrollbarEvent$$.$_linkDef$), $DvtScrollbarEvent$$.$renderLink$();
              }
            }
          }
        }
        this.$_diagram$.$_handledEventXml$ = !0;
      } else {
        this.$_diagram$.$resetInteractionEnabled$(), this.$LoadDiagramElement$($DvtScrollbarBackground$$);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$LoadDiagramElement$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$LoadDiagramElement$$($dvt$$1$$) {
    this.$ParseDiagramNodeJson$($dvt$$1$$) && this.$ParseJsonAttributes$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseJsonAttributes$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseJsonAttributes$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_SELECTORS$], $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_AF_STYLES$];
      $DvtScrollbar$$ && $DvtScrollbarEvent$$ && $dvt$$1$$.$AfStyleUtils$.$setTagSkinKeyMapJSON$($DvtScrollbar$$, $DvtScrollbarEvent$$);
      ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_CT_STYLES$]) && $DvtScrollbar$$[0].getAttributes();
      this.$_diagramParser$.$setPanelCardStyles$();
      this.$ParseDiagramNodeChild$($DvtScrollbarBackground$$);
      this.$ParseDiagramIsolation$($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseDiagramNodeChild$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseDiagramNodeChild$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_TEMPLATES$];
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE$];
      $DvtScrollbarEvent$$ && this.$parseNodeTemplates$($DvtScrollbarEvent$$, this.$_diagramParser$);
      ($DvtScrollbarEvent$$ = $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK$]) && this.$parseLinkTemplates$($DvtScrollbarEvent$$, this.$_diagramParser$);
    }
    if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$]) {
      if ($DvtScrollbar$$ = $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$], $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_LINK_DATA$], $DvtScrollbar$$ || $DvtScrollbarEvent$$) {
        this.$_diagram$.$startParsingData$(), $DvtScrollbar$$ && this.$parseNodeData$($DvtScrollbar$$, this.$_diagramParser$), $DvtScrollbarEvent$$ && this.$parseLinkData$($DvtScrollbarEvent$$, this.$_diagramParser$), ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARDS$]) && this.$parseCards$($DvtScrollbar$$, this), this.$_diagram$.$stopParsingData$();
      }
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$]) {
      if ($DvtScrollbar$$ = $DvtScrollbar$$.children) {
        for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
          var $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$parseJsonElement$($DvtScrollbar$$[$DvtScrollbarEvent$$]);
          $DvtAdfDiagramDragSource$$ && $DvtScrollbar$$[$DvtScrollbarEvent$$].component == $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ && this.$_diagram$.$addShowPopupBehavior$($DvtAdfDiagramDragSource$$);
        }
      }
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_CONTEXT_MENU$]) {
      this.$_diagram$.$_contextMenuHandler$ = new $dvt$$1$$.$ContextMenuHandler$(this.$_diagram$.$getCtx$(), $DvtScrollbar$$), this.$_diagram$.$getEventManager$().$setContextMenuHandler$(this.$_diagram$.$_contextMenuHandler$);
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_LEGEND$]) && this.$_diagram$.$SetLegendJson$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_OVERVIEWWINDOW$]) && this.$ParseOverviewWindow$($DvtScrollbar$$, this);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_PALETTE$]) && this.$_diagram$.$SetPaletteJson$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_ADVANCED_TEMPLATE$];
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$];
    ($DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_TEMPLATE$] || $DvtScrollbar$$ || $DvtScrollbarEvent$$) && this.$_diagram$.$getSearchPanel$(!0).$parseNodeJson$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseDiagramNodeJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseDiagramNodeJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    this.$_diagram$.$parseComponentJson$($DvtScrollbarBackground$$);
    this.$parseScrollbarStylesJson$($DvtScrollbarBackground$$);
    this.$parseOverviewContentJson$($DvtScrollbarBackground$$);
    this.$parseStackingStylesJson$($DvtScrollbarBackground$$);
    this.$parseStackPreviewJson$($DvtScrollbarBackground$$);
    this.$parseDiagramButtonStylesJson$($DvtScrollbarBackground$$);
    this.$parseSelectionJson$($DvtScrollbarBackground$$);
    this.$parseBreadcrumbsJson$($DvtScrollbarBackground$$);
    this.$parsePaletteJson$($DvtScrollbarBackground$$);
    this.$ParseNodeStylesJson$($DvtScrollbarBackground$$);
    this.$ParseLinkStylesJson$($DvtScrollbarBackground$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CLIENT_LAYOUTS$];
    for (var $DvtScrollbarEvent$$ in $DvtScrollbar$$) {
      try {
        var $DvtAdfDiagramDragSource$$ = window, $funcSplit$$ = $DvtScrollbar$$[$DvtScrollbarEvent$$].strMethod.split(".");
        for (i = 0;i < $funcSplit$$.length;i++) {
          $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$[$funcSplit$$[i]];
        }
        var $DvtScrollbarArrow$$ = function anonymous($dvt$$1$$) {
          return function anonymous$$1($funcSplit$$) {
            $dvt$$1$$($funcSplit$$);
          };
        }($DvtAdfDiagramDragSource$$);
        this.$_diagram$.$getLayoutCallback$().$addLayout$($DvtScrollbarEvent$$, $DvtScrollbarArrow$$);
      } catch ($e$$7$$) {
        "ReferenceError" == $e$$7$$.name && this.$_diagram$.$Log$($e$$7$$.name + ":" + $e$$7$$.message, "2");
      }
      $DvtScrollbar$$[$DvtScrollbarEvent$$].layoutAttrs && this.$_diagram$.$setLayoutAttributes$($DvtScrollbarEvent$$, $DvtScrollbar$$[$DvtScrollbarEvent$$].layoutAttrs);
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SUMMARY$]) && this.$_diagram$.$setSummary$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$]) && this.$_diagram$.$setLayout$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_INIT_ANIM$]) {
      "auto" == $DvtScrollbar$$ && ($DvtScrollbar$$ = $dvt$$1$$.$BlackBoxAnimationHandler$.$ALPHA_FADE$), this.$_diagram$.$setInitAnim$($DvtScrollbar$$);
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_DATA_CHANGE_ANIM$]) && this.$_diagram$.$setDataChangeAnim$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ANIMATION_DURATION$];
    isNaN($DvtScrollbar$$) || this.$_diagram$.$setAnimationDuration$(parseInt($DvtScrollbar$$) / 1E3);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HIGHLIGHT_BEHAVIOR$]) && this.$_diagram$.$setNodeHighlightBehavior$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HIGHLIGHT_BEHAVIOR$]) && this.$_diagram$.$setLinkHighlightBehavior$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_NODES$];
    this.$_diagram$.$_highlightedNodes$ = $DvtScrollbar$$ ? $DvtScrollbar$$.split(",") : null;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIGHLIGHTED_LINKS$];
    this.$_diagram$.$_highlightedLinks$ = $DvtScrollbar$$ ? $DvtScrollbar$$.split(",") : null;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_DISCLOSED_NODES$];
    this.$_diagram$.$_disclosedNodes$ = $DvtScrollbar$$ ? $DvtScrollbar$$.split(",") : null;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_BEHAVIOR$];
    this.$_diagram$.$_layoutBehavior$ = $DvtScrollbar$$ ? $DvtScrollbar$$ : "container";
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ATTR_GRPS$]) && this.$_diagram$.$setAttributeGroups$($DvtScrollbar$$.split(/[\s;]+/));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNGROUPED$]) && this.$_diagram$.$setExplodedStacks$($DvtScrollbar$$.split(","));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_HIDDEN$]) && this.$_diagram$.$setHiddenAttributeGroups$($DvtScrollbar$$.split(","));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROLLOVER_BEHAVIOR$]) && this.$_diagram$.$setRolloverBehavior$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$];
    this.$_diagram$.$setReadOnly$(0 != $DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_HAS_DRAG_SOURCE$]) && this.$_diagram$.$setHasDragSource$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_MAX_ZOOM$];
    if (!isNaN($DvtScrollbar$$)) {
      var $DvtAdfDiagramEditorManager$$ = 2;
      $DvtScrollbar$$ = parseFloat($DvtScrollbar$$);
      0 < $DvtScrollbar$$ && ($DvtAdfDiagramEditorManager$$ = $DvtScrollbar$$);
      this.$_diagram$.$setMaxZoom$($DvtAdfDiagramEditorManager$$);
    }
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_MIN_ZOOM$];
    isNaN($DvtScrollbar$$) || ($DvtScrollbarEvent$$ = 0, $DvtScrollbar$$ = parseFloat($DvtScrollbar$$), 0 < $DvtScrollbar$$ && ($DvtScrollbarEvent$$ = Math.min($DvtScrollbar$$, $DvtAdfDiagramEditorManager$$)), this.$_diagram$.$setMinZoom$($DvtScrollbarEvent$$));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTROL_PANEL_BEHAVIOR$]) && this.$_diagram$.$setControlPanelBehavior$($DvtScrollbar$$);
    $DvtAdfDiagramEditorManager$$ = this.$_diagram$.$_displayedControls$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PANNING$];
    $DvtScrollbar$$ = "none" != $DvtScrollbar$$;
    this.$_diagram$.$SetPanningEnabled$($DvtScrollbar$$);
    $DvtScrollbar$$ ? ($DvtAdfDiagramEditorManager$$ |= $dvt$$1$$.$ControlPanel$.$CONTROLS_CENTER_BUTTON$, ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PANDIRECTION$]) && this.$_diagram$.$setPanDirection$($DvtScrollbar$$)) : $DvtAdfDiagramEditorManager$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_CENTER_BUTTON$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOMING$];
    $DvtScrollbar$$ = "none" != $DvtScrollbar$$;
    this.$_diagram$.$SetZoomingEnabled$($DvtScrollbar$$);
    $DvtScrollbar$$ ? ($DvtAdfDiagramEditorManager$$ |= $dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM$, $DvtAdfDiagramEditorManager$$ |= $dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM_TO_FIT_BUTTON$) : ($DvtAdfDiagramEditorManager$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM$, $DvtAdfDiagramEditorManager$$ &= ~$dvt$$1$$.$ControlPanel$.$CONTROLS_ZOOM_TO_FIT_BUTTON$);
    this.$_diagram$.$setDisplayedControls$($DvtAdfDiagramEditorManager$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_RESTORE$]) && this.$_diagram$.$SetShowRestore$("off" == $DvtScrollbar$$ ? "off" : "on");
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CENTER_NODE$]) && this.$_diagram$.$setCenterNode$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROOT_NODE$]) {
      this.$_diagram$.$_drillRoot$ = $DvtScrollbar$$;
    }
    $DvtAdfDiagramEditorManager$$ = {};
    $DvtScrollbarEvent$$ = !1;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_X$];
    isNaN($DvtScrollbar$$) || ($DvtScrollbarEvent$$ = !0, $DvtAdfDiagramEditorManager$$.$panX$ = parseFloat($DvtScrollbar$$));
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PAN_Y$];
    isNaN($DvtScrollbar$$) || ($DvtScrollbarEvent$$ = !0, $DvtAdfDiagramEditorManager$$.$panY$ = parseFloat($DvtScrollbar$$));
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ZOOM$];
    isNaN($DvtScrollbar$$) || ($DvtScrollbarEvent$$ = !0, $DvtAdfDiagramEditorManager$$.zoom = parseFloat($DvtScrollbar$$));
    $DvtScrollbarEvent$$ && (this.$_diagram$.$_panZoom$ = $DvtAdfDiagramEditorManager$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BACKGROUND_COLOR$];
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_BORDER_COLOR$];
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_DROP_TARGET_OPACITY$];
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_INDEXES$]) && this.$_diagram$.$setCardIndexes$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_EMPTY_TEXT$]) && this.$_diagram$.$setEmptyText$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$.convertDataFlavorFunc) {
      this.$_diagram$.$ConvertDataFlavorFunc$ = function $this$$_diagram$$$ConvertDataFlavorFunc$$($dvt$$1$$) {
        $dvt$$1$$ = $dvt$$1$$.split("/");
        return 0 <= $dvt$$1$$[0].indexOf("UIComponent") ? AdfDataFlavor.$getDataFlavorForClass$(AdfUIComponent, 1 < $dvt$$1$$.length ? $dvt$$1$$[1] : void 0) : 0 <= $dvt$$1$$[0].indexOf("RowKeySet") ? AdfDataFlavor.$getRowKeyDataFlavor$(1 < $dvt$$1$$.length ? $dvt$$1$$[1] : void 0) : 0 <= $dvt$$1$$[0].indexOf("String") ? AdfDataFlavor.$STRING_FLAVOR$ : AdfDataFlavor.$ANY_FLAVOR$;
      };
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DROP_FLAVORS$]) {
      this.$_diagram$.$DropFlavors$ = $dvt$$1$$.$AdfDiagramJsonParser$.$ParseDropFlavors$($DvtScrollbar$$, this.$_diagram$.$ConvertDataFlavorFunc$);
    }
    this.$ParsePanelCardJson$($DvtScrollbarBackground$$);
    this.$ParsePanelCardHeaderJson$($DvtScrollbarBackground$$);
    this.$ParsePanelCardNavButtonJson$($DvtScrollbarBackground$$);
    this.$ParsePanelCardTrainButtonJson$($DvtScrollbarBackground$$);
    this.$ParsePanelCardNextPrevButtonJson$($DvtScrollbarBackground$$);
    return !0;
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseAdditionalPanelCardData$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseAdditionalPanelCardData$$($DvtScrollbarBackground$$) {
    this.$_diagram$.$startParsingPanelCardData$();
    ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_DATA$]) && this.$_parsePanelCardData$($DvtScrollbarBackground$$);
    this.$_diagram$.$stopParsingPanelCardData$();
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$_parsePanelCardData$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$_parsePanelCardData$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_NODE_DATA$]) {
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
        this.$_parsePanelCardItemData$($DvtScrollbarBackground$$[$DvtScrollbar$$]);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$_parsePanelCardItemData$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$_parsePanelCardItemData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$];
    $DvtScrollbar$$ && ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$]) && this.$_diagram$.$addPanelCardDataJson$($DvtScrollbar$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseNodeTemplates$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseNodeTemplates$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$CreateNodeDef$();
      this.$parseNodeAttributes$($dvt$$1$$[$DvtScrollbar$$], $DvtScrollbarEvent$$);
      this.$parseNodeFacets$($dvt$$1$$[$DvtScrollbar$$], $DvtScrollbarEvent$$);
      $DvtScrollbarBackground$$.$_diagram$.$addNodeDef$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseNodeAttributes$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseNodeAttributes$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        switch($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtAdfDiagramDragSource$$) {
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$:
            $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_WIDTH$:
            $DvtScrollbar$$.$setWidth$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HEIGHT$:
            $DvtScrollbar$$.$setHeight$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_INLINE_STYLE$:
            $DvtScrollbar$$.$setInlineStyle$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_STYLE_CLASS$:
            $DvtScrollbar$$.$setStyleClass$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$:
            $DvtScrollbar$$.$setReadOnly$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAGGABLE$:
            $DvtScrollbar$$.$setDraggable$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DRAG_FLAVOR$:
            $DvtScrollbar$$.$setDragFlavor$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_DROP_FLAVORS$:
            $DvtScrollbar$$.$setDropFlavors$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$:
            $DvtScrollbar$$.$setSelectable$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$:
            $DvtScrollbar$$.$setShortDesc$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT$:
            $DvtScrollbar$$.$setLayout$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$:
            $DvtScrollbar$$.$setLabel$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER_STYLE$:
            $DvtScrollbar$$.$setContainerStyle$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_STYLE$:
            $DvtScrollbar$$.$setOverviewStyle$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_OVERVIEW_CONTAINER_STYLE$:
            $DvtScrollbar$$.$setOverviewContainerStyle$($DvtScrollbarEvent$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseNodeFacets$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseNodeFacets$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], "zoom100" === $DvtAdfDiagramDragSource$$ || "zoom75" === $DvtAdfDiagramDragSource$$ || "zoom50" === $DvtAdfDiagramDragSource$$ || "zoom25" === $DvtAdfDiagramDragSource$$) {
          ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setNodeTemplate$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
        } else {
          if ("label" === $DvtAdfDiagramDragSource$$) {
            ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setLabelTemplate$($DvtScrollbarEvent$$);
          } else {
            if ("overlay" === $DvtAdfDiagramDragSource$$) {
              ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setOverlayTemplate$($DvtScrollbarEvent$$);
            } else {
              if ("background" === $DvtAdfDiagramDragSource$$) {
                ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setBackgroundTemplate$($DvtScrollbarEvent$$);
              } else {
                if ("containerTop" === $DvtAdfDiagramDragSource$$) {
                  ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerTopTemplate$($DvtScrollbarEvent$$);
                } else {
                  if ("containerBottom" === $DvtAdfDiagramDragSource$$) {
                    ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerBottomTemplate$($DvtScrollbarEvent$$);
                  } else {
                    if ("containerLeft" === $DvtAdfDiagramDragSource$$) {
                      ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$);
                    } else {
                      if ("containerRight" === $DvtAdfDiagramDragSource$$) {
                        ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$);
                      } else {
                        if ("containerStart" === $DvtAdfDiagramDragSource$$) {
                          ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && ($dvt$$1$$.$Agent$.$isRightToLeft$(this.$_diagram$.$getCtx$()) ? $DvtScrollbar$$.$_containerRightTemplate$ || $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$) : $DvtScrollbar$$.$_containerLeftTemplate$ || $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$));
                        } else {
                          if ("containerEnd" === $DvtAdfDiagramDragSource$$) {
                            ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && ($dvt$$1$$.$Agent$.$isRightToLeft$(this.$_diagram$.$getCtx$()) ? $DvtScrollbar$$.$_containerLeftTemplate$ || $DvtScrollbar$$.$setContainerLeftTemplate$($DvtScrollbarEvent$$) : $DvtScrollbar$$.$_containerRightTemplate$ || $DvtScrollbar$$.$setContainerRightTemplate$($DvtScrollbarEvent$$));
                          } else {
                            if ("children" === $DvtAdfDiagramDragSource$$) {
                              for (var $j$$12$$ = 0;$j$$12$$ < $DvtScrollbarEvent$$.length;$j$$12$$++) {
                                var $DvtScrollbarArrow$$ = $dvt$$1$$.$AfComponentFactory$.$parseJsonElement$($DvtScrollbarEvent$$[$j$$12$$]), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$[$j$$12$$].component;
                                $DvtAdfDiagramEditorManager$$ && $DvtScrollbarArrow$$ && ($DvtAdfDiagramEditorManager$$ === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ ? $DvtScrollbar$$.$addShowPopupBehavior$($DvtScrollbarArrow$$) : $DvtAdfDiagramEditorManager$$ === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CLIENT_BEHAVIOR$ && $DvtScrollbar$$.$addClientBehavior$($DvtScrollbarArrow$$));
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLinkTemplates$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLinkTemplates$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = this.$parseLinkTemplate$($dvt$$1$$[$DvtScrollbar$$]);
      $DvtScrollbarBackground$$.$_diagram$.$addLinkDef$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLinkTemplate$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLinkTemplate$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$AdfDiagramLinkDef$;
    this.$parseLinkAttributes$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$parseLinkFacets$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLinkAttributes$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLinkAttributes$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        switch($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtAdfDiagramDragSource$$) {
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$:
            $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_WIDTH$:
            $DvtScrollbar$$.$setLinkWidth$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LENGTH$:
            $DvtScrollbar$$.$setLinkLength$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_READ_ONLY$:
            $DvtScrollbar$$.$setReadOnly$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTABLE$:
            $DvtScrollbar$$.$setSelectable$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$:
            $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtScrollbarEvent$$) && $DvtScrollbar$$.$setLinkColor$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_TYPE$:
            $DvtScrollbar$$.$setLinkType$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LABEL$:
            $DvtScrollbar$$.$setLabel$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_STYLE$:
            $DvtScrollbar$$.$setLinkStyle$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_RENDERED$:
            $DvtScrollbar$$.$setRendered$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_AF_SHORT_DESC$:
            $DvtScrollbar$$.$setShortDesc$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_END_CONNECTOR_TYPE$:
            $DvtScrollbar$$.$setEndConnectorType$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_START_CONNECTOR_TYPE$:
            $DvtScrollbar$$.$setStartConnectorType$($DvtScrollbarEvent$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLinkFacets$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLinkFacets$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        if ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], "endConnector" === $DvtAdfDiagramDragSource$$ || "startConnector" === $DvtAdfDiagramDragSource$$) {
          ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setConnectorTemplate$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
        } else {
          if ("label" === $DvtAdfDiagramDragSource$$) {
            ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$setLabelTemplate$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
          } else {
            if ("children" === $DvtAdfDiagramDragSource$$) {
              for (var $j$$13$$ = 0;$j$$13$$ < $DvtScrollbarEvent$$.length;$j$$13$$++) {
                var $DvtScrollbarArrow$$ = $dvt$$1$$.$AfComponentFactory$.$parseJsonElement$($DvtScrollbarEvent$$[$j$$13$$]);
                $DvtScrollbarEvent$$[$j$$13$$].component === $dvt$$1$$.$AdfDiagramParser$.$_ELEM_SHOW_POPUP_BEHAVIOR$ && $DvtScrollbarArrow$$ && $DvtScrollbar$$.$addShowPopupBehavior$($DvtScrollbarArrow$$);
              }
            }
          }
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseNodeData$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseNodeData$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$CreateNodeData$();
      this.$parseNode$($dvt$$1$$[$DvtScrollbar$$], $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
      $DvtScrollbarBackground$$.$_diagram$.$addNodeData$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseNode$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        switch($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtAdfDiagramDragSource$$) {
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$:
            $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_GROUP_ID$:
            $DvtScrollbar$$.$setGroupId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_STRUCTURE_ONLY$:
            !0 === $DvtScrollbarEvent$$ && $DvtScrollbar$$.$setStructureOnly$();
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_TEMPLATE_ID$:
            $DvtScrollbar$$.$setTemplateId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROW_INDEX$:
            $DvtScrollbar$$.$setRowIndex$(parseInt($DvtScrollbarEvent$$));
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ATTR_GRPS$:
            $DvtScrollbar$$.$setAttributeGroups$($DvtScrollbarEvent$$.split($dvt$$1$$.$AdfDiagramParser$.$_SEMICOLON$));
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_ISOLATE$:
            $DvtScrollbar$$.$setShowIsolate$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_EXPAND_CHILDREN$:
            $DvtScrollbar$$.$setShowExpandChildren$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_DRILL$:
            $DvtScrollbar$$.$setShowDrill$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_STACK$:
            $DvtScrollbar$$.$setShowStack$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_SHOW_NODE_ACTIONS$:
            $DvtScrollbar$$.$setShowNodeActions$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_ATTRS$:
            $DvtScrollbar$$.$setLayoutAttributes$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CONTAINER$:
            $DvtScrollbar$$.$setContainer$($DvtScrollbarEvent$$);
            $DvtScrollbar$$.$isContainer$() && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILDREN_FETCHED$]) && $DvtScrollbar$$.$setChildrenFetched$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$:
            $DvtScrollbar$$.$setElAttributes$($DvtScrollbarEvent$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLinkData$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLinkData$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = new $DvtAdfDiagramLinkData$$;
      this.$parseLink$($dvt$$1$$[$DvtScrollbar$$], $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
      $DvtScrollbarBackground$$.$_diagram$.$addLinkData$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseLink$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseLink$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$)) {
        switch($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtAdfDiagramDragSource$$) {
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ID$:
            $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_GROUP_ID$:
            $DvtScrollbar$$.$setGroupId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_TEMPLATE_ID$:
            $DvtScrollbar$$.$setTemplateId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_PARENT_ID$:
            $DvtScrollbar$$.$setStartId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CHILD_ID$:
            $DvtScrollbar$$.$setEndId$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_LAYOUT_ATTRS$:
            $DvtScrollbar$$.$setLayoutAttributes$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ROW_INDEX$:
            $DvtScrollbar$$.$setRowIndex$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_EL$:
            $DvtScrollbar$$.$setElAttributes$($DvtScrollbarEvent$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseCards$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseCards$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$;
    for ($DvtAdfDiagramDragSource$$ in $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.hasOwnProperty($DvtAdfDiagramDragSource$$) && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$])) {
        switch($DvtAdfDiagramDragSource$$) {
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SDI_MAP$:
            $DvtScrollbar$$.$_diagram$.$setNodeShowDetailItemIndexMap$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_NEW_NODE_SDI_MAP$:
            $DvtScrollbar$$.$_diagram$.$setShowDetailItems$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_SKIN$:
            $DvtScrollbar$$.$_diagram$.$setCardNavButtonSkin$($DvtScrollbarEvent$$);
            break;
          case $dvt$$1$$.$AdfDiagramParser$.$_ELEM_CARD$:
            for (var $cardList$$2$$ = [], $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtScrollbarEvent$$.length;$DvtScrollbarArrow$$++) {
              var $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$[$DvtScrollbarArrow$$];
              $cardList$$2$$.push([$DvtAdfDiagramEditorManager$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TEXT$], $DvtAdfDiagramEditorManager$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ICON$], $DvtAdfDiagramEditorManager$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_ID$]]);
            }
            0 < $cardList$$2$$.length && this.$_diagram$.$setCardSelectorList$($cardList$$2$$);
        }
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseOverviewWindow$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseOverviewWindow$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbarEvent$$ = new $dvt$$1$$.$OverviewWindow$($DvtScrollbar$$.$_diagram$.$getCtx$(), "dgOverviewWindow", 0, 0, 108, 81);
      $DvtScrollbarEvent$$.$setDisclosed$($DvtScrollbarBackground$$.disclosed);
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getSkinStyle$();
      $DvtAdfDiagramDragSource$$ || ($DvtAdfDiagramDragSource$$ = {});
      $DvtAdfDiagramDragSource$$[$dvt$$1$$.$OverviewWindow$.$VIEWPORT_BORDER_COLOR$] = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BORDER_COLOR$];
      $DvtAdfDiagramDragSource$$[$dvt$$1$$.$OverviewWindow$.$VIEWPORT_BG_COLOR$] = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_VIEWPORT_BG_COLOR$];
      $DvtScrollbarEvent$$.$setSkinStyle$($DvtAdfDiagramDragSource$$);
      $DvtScrollbar$$.$_diagram$.$setOverviewWindow$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseOverviewContentJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseOverviewContentJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_ovContentStyle$;
    $DvtScrollbar$$ || ($DvtScrollbar$$ = {});
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_NODE$]);
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$OVERVIEW_CONTAINER_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_OV_WIN_DISCLOSED_NODE$]);
    this.$_diagram$.$setOverviewWindowContentStyle$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseStackingStylesJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseStackingStylesJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_PREVIEW_COLOR$]) && ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtScrollbar$$)) && this.$_diagram$.$setStackPreviewColor$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_STACK_BADGE_STYLE$]) && this.$_diagram$.$setStackBadgeStyles$(new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$));
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_UNDERLAY_STYLE$]) && this.$_diagram$.$setStackUnderlayStyles$(new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$));
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseStackPreviewJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseStackPreviewJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_NODE$];
    $DvtAdfDiagramDragSource$$ && (this.$_diagram$.$_stackPreviewNode$ = $DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_X$];
    isNaN($DvtAdfDiagramDragSource$$) || ($DvtScrollbar$$.$panX$ = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0);
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_PAN_Y$];
    isNaN($DvtAdfDiagramDragSource$$) || ($DvtScrollbar$$.$panY$ = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0);
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PREVIEW_ZOOM$];
    isNaN($DvtAdfDiagramDragSource$$) || ($DvtScrollbar$$.zoom = parseFloat($DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = !0);
    $DvtScrollbarEvent$$ && (this.$_diagram$.$_stackPreviewPanZoom$ = $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseDiagramButtonStylesJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseDiagramButtonStylesJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_ENA$]) && $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$);
    var $DvtAdfDiagramDragSource$$;
    $DvtAdfDiagramDragSource$$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_OVR$]) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    $DvtScrollbarBackground$$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_STYLE_DWN$]) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    $DvtScrollbar$$ = [];
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] = $DvtScrollbarEvent$$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$] = $DvtAdfDiagramDragSource$$;
    $DvtScrollbar$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$] = $DvtScrollbarBackground$$;
    this.$_diagram$.$setDiagramButtonStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseDiagramIsolation$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseDiagramIsolation$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_ISOLATED_NODES$]) {
      for (this.$_diagram$.$_isolatedNodes$ = $DvtScrollbarBackground$$.split(","), this.$_diagram$.$_isolatedNodeMap$ = {}, $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_diagram$.$_isolatedNodes$.length;$DvtScrollbarBackground$$++) {
        this.$_diagram$.$_isolatedNodeMap$[this.$_diagram$.$_isolatedNodes$[$DvtScrollbarBackground$$]] = !1;
      }
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseSelectionJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseSelectionJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTION_MODE$];
    this.$_diagram$.$setSelectionMode$($DvtScrollbar$$);
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_NODES$]) {
      this.$_diagram$.$_selectedNodes$ = $DvtScrollbar$$.split(",");
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SELECTED_LINKS$]) {
      this.$_diagram$.$_selectedLinks$ = $DvtScrollbar$$.split(",");
    }
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseBreadcrumbsJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseBreadcrumbsJson$$($DvtScrollbarBackground$$) {
    ($DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramJsonParser$.$getBreadcrumbsStyles$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_HOVER_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_ACTIVE_STYLE$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BREADCRUMBS_DISABLED_STYLE$)) && this.$_diagram$.$setBreadcrumbsStyles$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.$getBreadcrumbsStyles$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$getBreadcrumbsStyles$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $dis_styles$$10$$) {
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$] ? $DvtScrollbarBackground$$[$DvtScrollbarEvent$$] : $DvtScrollbar$$;
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$] ? $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$] : $DvtScrollbar$$;
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dis_styles$$10$$] ? $DvtScrollbarBackground$$[$dis_styles$$10$$] : $DvtScrollbar$$;
    $DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtScrollbarEvent$$);
    $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramParser$.$mergeStyles$($DvtScrollbar$$, $DvtScrollbarBackground$$);
    $dis_styles$$10$$ = [];
    $dis_styles$$10$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_ENA$] = $DvtScrollbar$$;
    $dis_styles$$10$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_OVR$] = $DvtScrollbarEvent$$;
    $dis_styles$$10$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DWN$] = $DvtAdfDiagramDragSource$$;
    $dis_styles$$10$$[$dvt$$1$$.$AdfDiagram$.$BUTTON_STATE_DIS$] = $DvtScrollbarBackground$$;
    return $dis_styles$$10$$;
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parsePaletteJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parsePaletteJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_STYLE$]) && $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_HOVER_STYLE$]) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_SECTION_ACTIVE_STYLE$]) ? new $dvt$$1$$.$CSSStyle$($DvtScrollbar$$) : $DvtScrollbarEvent$$.clone();
    var $DvtAdfDiagramDragSource$$ = {};
    $DvtAdfDiagramDragSource$$.skin = this.$_diagram$.$_skinName$;
    $DvtAdfDiagramDragSource$$.sectionHeader = {};
    $DvtAdfDiagramDragSource$$.sectionHeader.styleEna = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$.sectionHeader.styleOvr = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$.sectionHeader.styleDwn = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$.sectionItem = {};
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_PALETTE_ITEM_STYLE$]) {
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbar$$), $DvtAdfDiagramDragSource$$.sectionItem.style = $DvtScrollbarEvent$$;
    }
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.paletteItemHoverStyle) && ($DvtAdfDiagramDragSource$$.sectionItem.fillColorHover = $DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.paletteItemSelectedStyle) && ($DvtAdfDiagramDragSource$$.sectionItem.fillColorSelected = $DvtScrollbar$$);
    this.$_diagram$.$setPaletteStyles$($DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseNodeStylesJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseNodeStylesJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_SELECT_COLOR$];
    $DvtAdfDiagramDragSource$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$SELECTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_INNER_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_INNER_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_HOVER_OUTER_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$HOVER_OUTER_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_CONTAINER_STYLE$]) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$CONTAINER_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_NODE_LABEL_STYLE$]) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramNode$.$LABEL_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    $DvtScrollbarEvent$$ && this.$_diagram$.$setNodeStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseLinkStylesJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseLinkStylesJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = {}, $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_COLOR$];
    $DvtAdfDiagramDragSource$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_SELECT_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$SELECTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_INNER_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_INNER_COLOR$] = $DvtAdfDiagramDragSource$$);
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_HOVER_OUTER_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$HOVER_OUTER_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_LABEL_STYLE$]) {
      $DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$LABEL_STYLE$] = new $dvt$$1$$.$CSSStyle$($DvtAdfDiagramDragSource$$);
    }
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_COLOR$]) && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$validateColor$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_COLOR$] = $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_STYLE$]) {
      $DvtScrollbarEvent$$ = !0, $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramParser$.$_LINK_STYLE_CONVERTER$[$DvtAdfDiagramDragSource$$], $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_STYLE$] = $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$ : $dvt$$1$$.$AdfDiagramLinkDef$.$LINK_STYLE_DOT$;
    }
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_LINK_PROMOTED_WIDTH$]) && !isNaN(parseInt($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarEvent$$ = !0, $DvtScrollbar$$[$dvt$$1$$.$AdfDiagramLink$.$PROMOTED_WIDTH$] = $DvtAdfDiagramDragSource$$);
    $DvtScrollbarEvent$$ && this.$_diagram$.$setLinkStyles$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseButtonStyleJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseButtonStyleJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = [];
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ENABLED_STATE$);
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HOVER_STATE$);
    this.$ParseButtonContainerStyle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ACTIVE_STATE$);
    this.$_diagram$.$setButtonStyle$($DvtScrollbar$$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ENABLED_STATE$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_HOVER_STATE$);
    this.$ParseButtonLabelStyle$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_ACTIVE_STATE$);
    this.$_diagram$.$setLabelStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseButtonContainerStyle$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseButtonContainerStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$, $buttonStyle$$3$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarArrow$$ = !1;
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_FILL_TYPE$]) && ($DvtScrollbarArrow$$ = this.$_diagramParser$.$AddButtonStyle$($buttonStyle$$3$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND_COLOR$]) && ($DvtScrollbarArrow$$ = this.$_diagramParser$.$AddButtonStyle$($buttonStyle$$3$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BACKGROUND$]) && ($DvtScrollbarArrow$$ = this.$_diagramParser$.$AddButtonStyle$($buttonStyle$$3$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND$, $DvtScrollbarArrow$$));
    ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_CONTAINER$ + $DvtScrollbarEvent$$ + $dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_BORDER_COLOR$]) && ($DvtScrollbarArrow$$ = this.$_diagramParser$.$AddButtonStyle$($buttonStyle$$3$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarArrow$$));
    $DvtScrollbarArrow$$ ? $DvtScrollbar$$.push($buttonStyle$$3$$) : $DvtScrollbar$$.push(null);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParseButtonLabelStyle$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParseButtonLabelStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_BUTTON_LABEL$ + $DvtScrollbarEvent$$]) ? ($DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtScrollbarEvent$$.$parseInlineStyle$($DvtScrollbarBackground$$), $DvtScrollbar$$.push($DvtScrollbarEvent$$)) : $DvtScrollbar$$.push(null);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParsePanelCardJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParsePanelCardJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtAdfDiagramDragSource$$ = !1;
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_FILL_TYPE$]) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_TYPE$]) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_TYPE$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_COLOR$]) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BACKGROUND_COLOR$]) {
      $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_BORDER_RADIUS$]) {
      $DvtScrollbarEvent$$.$setStyle$("border-radius", $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = !0;
    }
    $DvtAdfDiagramDragSource$$ && this.$_diagram$.$setCardStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParsePanelCardHeaderJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParsePanelCardHeaderJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = this.$_diagram$.$_cardHeaderStyle$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT$];
    this.$_diagramParser$.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom100");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT75$];
    this.$_diagramParser$.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom75");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT50$];
    this.$_diagramParser$.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom50");
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_HEADER_TEXT25$];
    this.$_diagramParser$.$AddCardHeaderStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, "zoom25");
    this.$_diagram$.$setCardHeaderStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParsePanelCardNavButtonJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParsePanelCardNavButtonJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$, $DvtAdfDiagramDragSource$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_FILL_TYPE$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, !1);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BORDER_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ICON_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_BACKGROUND_COLOR$];
    if ($DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_FILL_TYPE$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, !1);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BORDER_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_ICON_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_HOVER_BACKGROUND_COLOR$];
    if ($DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonHoverStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_FILL_TYPE$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, !1);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_ICON_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BORDER_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_ACTIVE_BACKGROUND_COLOR$];
    if ($DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) {
      this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid"), this.$_diagram$.$setCardNavButtonActiveStyle$($DvtScrollbarEvent$$);
    }
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_FILL_TYPE$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$FILL_TYPE$, !1);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BORDER_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_ICON_COLOR$];
    $DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$COLOR$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NAV_BUTTON_DISABLED_BACKGROUND_COLOR$];
    ($DvtAdfDiagramDragSource$$ = this.$_diagramParser$.$AddButtonStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtAdfDiagramDragSource$$)) && this.$_diagram$.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$ && $DvtScrollbarEvent$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FILL_TYPE$, "solid");
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParsePanelCardTrainButtonJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParsePanelCardTrainButtonJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$, $enaUrl$$1$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ICON$];
    $enaUrl$$1$$ ? ($DvtScrollbar$$ = !0, $DvtAdfDiagramDragSource$$.$setIconUrl$($enaUrl$$1$$)) : ($DvtScrollbarEvent$$ = !1, $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BORDER_COLOR$], this.$_diagramParser$.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarEvent$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_BACKGROUND_COLOR$], 
    $DvtScrollbar$$ = this.$_diagramParser$.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarEvent$$));
    $DvtScrollbar$$ && this.$_diagram$.$setCardTrainButtonStyle$($DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_HOVER_ICON$]) || ($DvtScrollbar$$ = $enaUrl$$1$$);
    $DvtScrollbar$$ && ($DvtAdfDiagramDragSource$$.$setIconUrl$($DvtScrollbar$$), this.$_diagram$.$setCardTrainButtonHoverStyle$($DvtAdfDiagramDragSource$$));
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
    ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_ICON$]) || ($DvtScrollbarEvent$$ = $enaUrl$$1$$);
    $DvtScrollbarEvent$$ ? ($DvtScrollbar$$ = !0, $DvtAdfDiagramDragSource$$.$setIconUrl$($DvtScrollbarEvent$$)) : ($DvtScrollbarEvent$$ = !1, $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BORDER_COLOR$], this.$_diagramParser$.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtScrollbarEvent$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_TRAIN_BUTTON_ACTIVE_BACKGROUND_COLOR$], 
    $DvtScrollbar$$ = this.$_diagramParser$.$AddButtonStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $DvtScrollbarEvent$$));
    $DvtScrollbar$$ && this.$_diagram$.$setCardTrainButtonActiveStyle$($DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$ParsePanelCardNextPrevButtonJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$ParsePanelCardNextPrevButtonJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramJsonParser$.$getButtonImages$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_HOVER_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_PREV_ACTIVE_ICON$);
    $DvtScrollbar$$ && this.$_diagram$.$setCardPrevButtonIcon$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramJsonParser$.$getButtonImages$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_HOVER_ICON$, $dvt$$1$$.$AdfDiagramParser$.$_ATTR_CARD_NEXT_ACTIVE_ICON$)) && this.$_diagram$.$setCardNextButtonIcon$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.$getButtonImages$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$getButtonImages$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $imageUrls$$1$$ = [];
    $DvtScrollbarBackground$$ = $dvt$$1$$[$DvtScrollbarBackground$$];
    $DvtScrollbar$$ = $dvt$$1$$[$DvtScrollbar$$] ? $dvt$$1$$[$DvtScrollbar$$] : $DvtScrollbarBackground$$;
    $dvt$$1$$ = $dvt$$1$$[$DvtScrollbarEvent$$] ? $dvt$$1$$[$DvtScrollbarEvent$$] : $DvtScrollbarBackground$$;
    if ($DvtScrollbarBackground$$ || $DvtScrollbar$$ || $dvt$$1$$) {
      $imageUrls$$1$$.push($DvtScrollbarBackground$$), $imageUrls$$1$$.push($DvtScrollbar$$), $imageUrls$$1$$.push($dvt$$1$$);
    } else {
      return null;
    }
    return $imageUrls$$1$$;
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.prototype.$parseScrollbarStylesJson$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$$parseScrollbarStylesJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbarEvent$$ = {};
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$BACKGROUND$, $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BACKGROUND$]);
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$BORDER_COLOR$, $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_BORDER_COLOR$]);
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_COLOR$, $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_COLOR$]);
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_ACTIVE_COLOR$, $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_ACTIVE_COLOR$]);
    $dvt$$1$$.$StyleUtils$.$setStyle$($DvtScrollbarEvent$$, $DvtScrollbar$$.$HANDLE_HOVER_COLOR$, $DvtScrollbarBackground$$[$dvt$$1$$.$AdfDiagramParser$.$_ATTR_SCROLLBAR_HANDLE_HOVER_COLOR$]);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$JsonUtils$.$merge$($DvtScrollbarEvent$$, this.$_diagram$.$getSubcomponentStyles$());
    this.$_diagram$.$setSubcomponentStyles$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramJsonParser$.$ParseDropFlavors$ = function $$dvt$$1$$$$AdfDiagramJsonParser$$$ParseDropFlavors$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if (!$dvt$$1$$ || !$DvtScrollbarBackground$$) {
      return null;
    }
    for (var $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = $dvt$$1$$.split(" "), $i$$96$$ = 0;$i$$96$$ < $DvtScrollbarEvent$$.length;$i$$96$$++) {
      $DvtScrollbar$$.push($DvtScrollbarBackground$$($DvtScrollbarEvent$$[$i$$96$$]));
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$ = function $$dvt$$1$$$$AdfDiagramEventManager$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramEventManager$, $dvt$$1$$.$EventManager$, "dvt.AdfDiagramEventManager");
  $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$ = "swipeKey";
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.Init = function $$dvt$$1$$$$AdfDiagramEventManager$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.$_diagram$ = $DvtScrollbarEvent$$;
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    this.$_swipeStartPos$ = null;
    this.$_showKeyboardFocusByDefault$ = !1;
    this.$_currPageY$ = this.$_currPageX$ = 0;
    this.$_touchId$ = this.$_currTarget$ = null;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$IsPropagationEnabled$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$IsPropagationEnabled$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$isPropagationStopped$ && $DvtScrollbarBackground$$.$_isPropagationStopped$) {
      return !1;
    }
    $dvt$$1$$ = this.$GetLogicalObject$($DvtScrollbar$$);
    return !this.$ConsumesClick$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$ProcessKeyboardEvent$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$ProcessKeyboardEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !0, $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.keyCode, $DvtAdfDiagramDragSource$$ = this.$getFocus$();
    if ($DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$STAR$ || $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$NUMPAD_STAR$) {
      ($DvtAdfDiagramDragSource$$ = this.$_diagram$.$_overviewWindowPanel$) && ($DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$CollapsiblePanel$ ? $DvtAdfDiagramDragSource$$.$setCollapsed$(!$DvtAdfDiagramDragSource$$.isCollapsed()) : $DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$PanelDrawer$ && $DvtAdfDiagramDragSource$$.$setDisclosed$(!$DvtAdfDiagramDragSource$$.$isDisclosed$())), $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
    } else {
      if ($DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$GRAVE_ACCENT$) {
        if ($DvtAdfDiagramDragSource$$ = this.$_diagram$.$_panelDrawer$) {
          $DvtAdfDiagramDragSource$$.$setDisclosed$(!$DvtAdfDiagramDragSource$$.$isDisclosed$()), this.$_diagram$.$setContextKeyboardHandlers$();
        }
        $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
      } else {
        if ($DvtScrollbarEvent$$ != $dvt$$1$$.KeyboardEvent.ZERO && $DvtScrollbarEvent$$ != $dvt$$1$$.KeyboardEvent.$NUMPAD_ZERO$ || !$DvtScrollbarBackground$$.ctrlKey || !$DvtScrollbarBackground$$.altKey || $DvtScrollbarBackground$$.shiftKey) {
          if ($DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$ENTER$ || $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$SPACE$ && !$DvtScrollbarBackground$$.ctrlKey || $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$SINGLE_QUOTE$ || $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$SPACE$ && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.shiftKey || $dvt$$1$$.KeyboardEvent.$isSemicolon$($DvtScrollbarBackground$$) || $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$ESCAPE$) {
            if ($DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.$HandleKeyboardEvent$) {
              if ($DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$.$getCurrentTabStop$ && ($DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$.$getCurrentTabStop$()), $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$.$handleKeyboardEvent$) {
                this.$hideTooltip$();
                $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$NavButton$ || ($DvtAdfDiagramDragSource$$.$resetTabStops$(), $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$ && $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$());
                var $displayable$$4$$ = $DvtScrollbarEvent$$.$getDisplayObj$ ? $DvtScrollbarEvent$$.$_bgShape$ : $DvtScrollbarEvent$$;
                $DvtScrollbarEvent$$.$handleKeyboardEvent$($DvtScrollbarBackground$$);
                this.$UpdateActiveElement$($DvtAdfDiagramDragSource$$);
                $DvtAdfDiagramDragSource$$ = $displayable$$4$$.$getDimensions$(this.$getCtx$().$_stage$).$getCenter$();
                $DvtAdfDiagramDragSource$$ = this.$getCtx$().$stageToPageCoords$($DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y);
                this.$ProcessObjectTooltip$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y, $DvtScrollbarEvent$$, null);
              } else {
                $DvtAdfDiagramDragSource$$.$HandleKeyboardEvent$($DvtScrollbarBackground$$);
              }
            }
            $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
          } else {
            $DvtScrollbarEvent$$ != $dvt$$1$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$ && $DvtScrollbarEvent$$ != $dvt$$1$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$ || $DvtScrollbarBackground$$.altKey ? $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$FORWARD_SLASH$ && $DvtScrollbarBackground$$.ctrlKey ? $DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && $DvtAdfDiagramDragSource$$.$getStateProp$ && (($DvtScrollbarBackground$$ = $DvtAdfDiagramDragSource$$.$getStateProp$($dvt$$1$$.$AfPanelCard$.$DISPLAYED_DETAIL_ITEM_INDEX_KEY$)) || 
            ($DvtScrollbarBackground$$ = 0), $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getPanelCard$($DvtAdfDiagramDragSource$$)) && ($DvtScrollbarBackground$$ = $DvtAdfDiagramDragSource$$.$getVisibleChild$($DvtScrollbarBackground$$).$getText$(), this.$_diagram$.$syncPanelCards$(null, $DvtScrollbarBackground$$, null)) : $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$TAB$ ? ($DvtScrollbar$$ = !1, $DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && $DvtAdfDiagramDragSource$$.$isShowingKeyboardFocusEffect$() && 
            (($DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$.$getCurrentTabStop$()) && $DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$(), $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.shiftKey ? $DvtAdfDiagramDragSource$$.$getPrevTabStop$() : $DvtAdfDiagramDragSource$$.$getNextTabStop$()) && ($DvtScrollbarEvent$$ != $DvtAdfDiagramDragSource$$ ? ($DvtAdfDiagramDragSource$$.$hideKeyboardFocusEffect$(!0), $displayable$$4$$ = $DvtScrollbarEvent$$.$getDisplayObj$ ? 
            $DvtScrollbarEvent$$.$_bgShape$ : $DvtScrollbarEvent$$, this.$UpdateActiveElement$($DvtScrollbarEvent$$, $displayable$$4$$), $DvtScrollbarEvent$$.$showKeyboardFocusEffect$(), $DvtAdfDiagramDragSource$$ = $displayable$$4$$.$getDimensions$(this.$getCtx$().$_stage$).$getCenter$()) : ($DvtScrollbarEvent$$.$showKeyboardFocusEffect$(!0), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getKeyboardBoundingBox$(this.$getCtx$().$_stage$).$getCenter$()), $DvtAdfDiagramDragSource$$ = this.$getCtx$().$stageToPageCoords$($DvtAdfDiagramDragSource$$.x, 
            $DvtAdfDiagramDragSource$$.y), this.$ProcessObjectTooltip$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y, $DvtScrollbarEvent$$), $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$), $DvtScrollbar$$ = !0), $DvtScrollbar$$ || ($DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$ProcessKeyboardEvent$.call(this, $DvtScrollbarBackground$$))) : $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$ProcessKeyboardEvent$.call(this, 
            $DvtScrollbarBackground$$) : $DvtAdfDiagramDragSource$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && (this.$hideTooltip$(), ($DvtAdfDiagramDragSource$$ = this.$_diagram$.$getPanelCard$($DvtAdfDiagramDragSource$$)) && $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$ ? $DvtAdfDiagramDragSource$$.$displayNextDetailItem$() : $DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$ == $dvt$$1$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$ && $DvtAdfDiagramDragSource$$.$displayPrevDetailItem$())
            ;
          }
        } else {
          this.$_diagram$.$zoomAndCenter$(), $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
        }
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnKeyUp$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnKeyUp$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode, $DvtScrollbarEvent$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbarEvent$$) {
      if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$DELETE$) {
        for (var $DvtAdfDiagramDragSource$$ = this.$getSelectionHandler$().getSelection(), $links$$3_navigable$$1_resultCreate$$ = [], $DvtScrollbarArrow$$ = [], $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramEditorManager$$++) {
          var $selected$$2$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramEditorManager$$], $selectedId$$ = $selected$$2$$.getId();
          "L" == $selectedId$$.charAt(0) ? $selected$$2$$.$_deleteEnabled$ && $links$$3_navigable$$1_resultCreate$$.push($selectedId$$) : $selected$$2$$.$_deleteEnabled$ && $DvtScrollbarArrow$$.push($selectedId$$);
        }
        0 < $DvtScrollbarArrow$$.length && ($DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$AdfDiagramDeleteNodeEvent$($DvtScrollbarArrow$$), this.$_callback$.call(this.$_callbackObj$, $DvtAdfDiagramDragSource$$));
        0 < $links$$3_navigable$$1_resultCreate$$.length && ($DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$AdfDiagramDeleteLinkEvent$($links$$3_navigable$$1_resultCreate$$), this.$_callback$.call(this.$_callbackObj$, $DvtAdfDiagramDragSource$$));
      } else {
        $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$L$ && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.altKey ? ($links$$3_navigable$$1_resultCreate$$ = this.$getFocus$(), $links$$3_navigable$$1_resultCreate$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && this.$_diagram$.$_linkToolEnabled$ && $links$$3_navigable$$1_resultCreate$$.$getLinkHandle$() && ($links$$3_navigable$$1_resultCreate$$ = $DvtScrollbarEvent$$.$processLinkCreateStart$($links$$3_navigable$$1_resultCreate$$.$getLinkHandle$()), 
        $DvtScrollbarEvent$$.$setLinkCreateWithKeyboard$($links$$3_navigable$$1_resultCreate$$), $DvtScrollbarEvent$$.$processLinkCreateWithKeyboard$(null))) : $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$N$ && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.altKey && ($links$$3_navigable$$1_resultCreate$$ = this.$getFocus$(), $links$$3_navigable$$1_resultCreate$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && this.$_diagram$.$_stickyNodeEnabled$ && $DvtScrollbarEvent$$.$processNodeCreateWithKeyboard$($links$$3_navigable$$1_resultCreate$$))
        ;
      }
    }
    $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ESCAPE$ && (this.$_diagram$.$HideNodeTransientToolbar$(), $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$.$processLinkCreateCancel$());
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnKeyUp$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnRollOver$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnRollOver$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnRollOver$.call(this, $DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtScrollbar$$ && $DvtScrollbar$$.$showRollOverEffect$ && $DvtScrollbar$$.$showRollOverEffect$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnRollOut$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnRollOut$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnRollOut$.call(this, $DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtScrollbar$$ && $DvtScrollbar$$.$hideRollOverEffect$ && $DvtScrollbar$$.$hideRollOverEffect$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnMouseDown$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnMouseDown$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
      $DvtScrollbar$$.$processDragStart$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$).$dragStarted$ && this.$_setPanningEnabled$(!1);
    }
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnMouseDown$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnMouseMove$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnMouseMove$$($DvtScrollbarBackground$$) {
    this.$_currPageX$ = $DvtScrollbarBackground$$.pageX;
    this.$_currPageY$ = $DvtScrollbarBackground$$.pageY;
    this.$_currTarget$ = $DvtScrollbarBackground$$.target;
    var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
      $DvtScrollbar$$.$processDragMove$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
    }
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnMouseMove$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnMouseUp$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnMouseUp$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbar$$) {
      for (var $DvtScrollbarEvent$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$)), $DvtAdfDiagramDragSource$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY), $DvtScrollbar$$ = $DvtScrollbar$$.$processDragEnd$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$).$events$, $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
        this.$_diagram$.dispatchEvent($DvtScrollbar$$[$DvtScrollbarEvent$$]);
      }
      this.$_setPanningEnabled$(!0);
    }
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnMouseUp$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnMouseOut$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnMouseOut$$($DvtScrollbarBackground$$) {
    if (null != $DvtScrollbarBackground$$.target && null == $DvtScrollbarBackground$$.relatedTarget) {
      var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
      if ($DvtScrollbar$$) {
        this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
        this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
        for (var $DvtScrollbar$$ = $DvtScrollbar$$.$processDragCancel$().$events$, $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;$DvtScrollbarEvent$$++) {
          this.$_diagram$.dispatchEvent($DvtScrollbar$$[$DvtScrollbarEvent$$]);
        }
      }
      this.$OnMouseUp$($DvtScrollbarBackground$$);
    }
    $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtScrollbarEvent$$ = this.$GetLogicalObject$($DvtScrollbarBackground$$.relatedTarget);
    $DvtScrollbarEvent$$ instanceof $DvtAdfDiagramNodeEndpoint$$ && $DvtScrollbarEvent$$.getParent() == $DvtScrollbar$$ && $DvtScrollbarEvent$$.$setHovered$(!0);
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnMouseOut$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.$GetTempLinkPositionOnNode$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$GetTempLinkPositionOnNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$getLayoutBounds$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getLayoutBounds$(), $DvtScrollbarEvent$$ = new $dvt$$1$$.$Point$($DvtScrollbarEvent$$.x + $DvtScrollbarEvent$$.$w$ / 2, $DvtScrollbarEvent$$.y + $DvtScrollbarEvent$$.$h$ / 2), $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$localToStage$($DvtScrollbarEvent$$);
      return $DvtScrollbar$$.$stageToLocal$($DvtScrollbarEvent$$);
    }
    return null;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.$GetParentNode$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$GetParentNode$$($DvtScrollbarBackground$$) {
    for (;$DvtScrollbarBackground$$;) {
      if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$) {
        return $DvtScrollbarBackground$$;
      }
      if (!$DvtScrollbarBackground$$.getParent) {
        break;
      }
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getParent();
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.$GetCreateNodeEvent$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$GetCreateNodeEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    return new $dvt$$1$$.$AdfDiagramCreateNodeEvent$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnClick$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnClick$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$)), $DvtScrollbarEvent$$ = !1, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$_editor$;
    if ($DvtAdfDiagramDragSource$$) {
      var $relPos$$6$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$.$processNodeCreate$($DvtScrollbar$$, $relPos$$6$$).$events$;
      if (0 < $DvtAdfDiagramDragSource$$.length) {
        for ($DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtAdfDiagramDragSource$$.length;$DvtScrollbarEvent$$++) {
          this.$_diagram$.dispatchEvent($DvtAdfDiagramDragSource$$[$DvtScrollbarEvent$$]);
        }
        $DvtScrollbarEvent$$ = !0;
      }
    }
    $DvtScrollbarEvent$$ || ($dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnClick$.call(this, $DvtScrollbarBackground$$), $DvtScrollbar$$ && $DvtScrollbar$$.$HandleClick$ && $DvtScrollbar$$.$HandleClick$($DvtScrollbarBackground$$));
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnDblClickInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnDblClickInternal$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$isDoubleClickable$ && $DvtScrollbarBackground$$.$isDoubleClickable$() && $DvtScrollbarBackground$$.$HandleDblClick$ && $DvtScrollbarBackground$$.$HandleDblClick$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$GetContextMenuType$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$GetContextMenuType$$() {
    var $DvtScrollbarBackground$$ = this.$getSelectionHandler$(), $DvtScrollbar$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.getSelection().length : 0;
    return 0 >= $DvtScrollbar$$ ? $dvt$$1$$.$ContextMenuHandler$.$TYPE_BODY_CONTEXT_MENU$ : 1 == $DvtScrollbar$$ ? "L" == $DvtScrollbarBackground$$.getSelection()[0].getId().charAt(0) ? $dvt$$1$$.$AdfDiagramEventManager$.$TYPE_LINK_CONTEXT_MENU$ : $dvt$$1$$.$ContextMenuHandler$.$TYPE_CONTEXT_MENU$ : $dvt$$1$$.$ContextMenuHandler$.$TYPE_MULTI_SELECT_CONTEXT_MENU$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$ShowKeyboardFocusByDefault$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$ShowKeyboardFocusByDefault$$() {
    return this.$_showKeyboardFocusByDefault$ && !$dvt$$1$$.$Agent$.$isTouchDevice$();
  };
  $dvt$$1$$.$AdfDiagramEventManager$.$TYPE_LINK_CONTEXT_MENU$ = "linkContextMenu";
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$CreateClientBehaviorHandler$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$CreateClientBehaviorHandler$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return this.$_diagram$.$CreateClientBehaviorHandler$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$isClearMenuAllowed$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$isClearMenuAllowed$$() {
    return !1;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$ProcessClientBehaviorForTouch$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$ProcessClientBehaviorForTouch$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_transientToolbarDataId$, $DvtScrollbarEvent$$ = this.$ClientBehaviorHandler$.$processClick$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$_diagram$.$SetTransientToolbarDataId$($DvtScrollbar$$);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$HandleTouchClickInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$HandleTouchClickInternal$$($DvtScrollbarBackground$$) {
    if (this.$GetEventInfo$($DvtScrollbarBackground$$, $dvt$$1$$.$PanZoomCanvasEventManager$.$EVENT_INFO_PANNED_KEY$)) {
      return !0;
    }
    var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtScrollbar$$ && $DvtScrollbar$$.$HandleClick$ && $DvtScrollbar$$.$HandleClick$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$HandleTouchDblClickInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$HandleTouchDblClickInternal$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$isDoubleClickable$ && $DvtScrollbarBackground$$.$isDoubleClickable$() && $DvtScrollbarBackground$$.$HandleDblClick$ && $DvtScrollbarBackground$$.$HandleDblClick$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$HandleImmediateTouchStartInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$HandleImmediateTouchStartInternal$$($dvt$$1$$) {
    this.$_findSwipeTarget$($dvt$$1$$.target) && this.$TouchManager$.$processAssociatedTouchAttempt$($dvt$$1$$, this.$SwipeStartTouch$, this);
    var $DvtScrollbarBackground$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbarBackground$$ && 1 == $dvt$$1$$.targetTouches.length) {
      var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
      $dvt$$1$$ = $dvt$$1$$.targetTouches[0];
      var $DvtScrollbarEvent$$ = this.$_context$.$pageToStageCoords$($dvt$$1$$.pageX, $dvt$$1$$.pageY), $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$processDragStart$($DvtScrollbar$$, $DvtScrollbarEvent$$);
      this.$_touchId$ = null;
      $DvtScrollbarBackground$$.$dragStarted$ && (this.$_touchId$ = $dvt$$1$$.identifier, this.$_setPanningEnabled$(!1));
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$HandleImmediateTouchMoveInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$HandleImmediateTouchMoveInternal$$($DvtScrollbarBackground$$) {
    this.$TouchManager$.$processAssociatedTouchMove$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$);
    var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbar$$ && null !== this.$_touchId$ && "undefined" !== typeof this.$_touchId$) {
      var $DvtScrollbarEvent$$ = $dvt$$1$$.$TouchManager$.$getTouchById$(this.$_touchId$, $DvtScrollbarBackground$$.touches);
      $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
      $DvtScrollbarEvent$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarEvent$$.pageX, $DvtScrollbarEvent$$.pageY);
      $DvtScrollbar$$.$processDragMove$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$HandleImmediateTouchEndInternal$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$HandleImmediateTouchEndInternal$$($DvtScrollbarBackground$$) {
    this.$TouchManager$.$processAssociatedTouchEnd$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$);
    var $DvtScrollbar$$ = this.$_diagram$.$_editor$;
    if ($DvtScrollbar$$ && null !== this.$_touchId$ && "undefined" !== typeof this.$_touchId$) {
      var $DvtScrollbarEvent$$ = $dvt$$1$$.$TouchManager$.$getTouchById$(this.$_touchId$, $DvtScrollbarBackground$$.changedTouches);
      $DvtScrollbarBackground$$ = null;
      var $DvtAdfDiagramDragSource$$ = this.$_context$.$getDocumentUtils$();
      $DvtAdfDiagramDragSource$$ && ($DvtScrollbarBackground$$ = this.$GetLogicalObject$($DvtAdfDiagramDragSource$$.$elementFromTouch$($DvtScrollbarEvent$$)));
      $DvtScrollbarEvent$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarEvent$$.pageX, $DvtScrollbarEvent$$.pageY);
      $DvtScrollbar$$ = $DvtScrollbar$$.$processDragEnd$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$).$events$;
      for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $DvtScrollbar$$.length;$DvtScrollbarBackground$$++) {
        this.$_diagram$.dispatchEvent($DvtScrollbar$$[$DvtScrollbarBackground$$]);
      }
      this.$_setPanningEnabled$(!0);
      this.$_touchId$ = null;
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$_findSwipeTarget$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$_findSwipeTarget$$($dvt$$1$$) {
    for (;$dvt$$1$$;) {
      var $DvtScrollbarBackground$$ = this.$GetLogicalObject$($dvt$$1$$);
      if ($DvtScrollbarBackground$$) {
        if ($DvtScrollbarBackground$$.$isSwipeTarget$ && $DvtScrollbarBackground$$.$isSwipeTarget$()) {
          return $DvtScrollbarBackground$$;
        }
        if (!this.$IsPropagationEnabled$(null, event, $dvt$$1$$)) {
          return null;
        }
      }
      $dvt$$1$$ = $dvt$$1$$.getParent();
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$SwipeStartTouch$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$SwipeStartTouch$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (1 >= this.$TouchManager$.$getTouchIdsForObj$($dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$).length) {
      this.$TouchManager$.$saveProcessedTouch$($DvtScrollbar$$.identifier, $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$, $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$, $dvt$$1$$.$AdfDiagramEventManager$.$SWIPE_KEY$, this.$SwipeMoveTouch$, this.$SwipeEndTouch$, this);
      this.$TouchManager$.$setTooltipEnabled$($DvtScrollbar$$.identifier, !1);
      this.$_swipeStartPos$ = this.$_context$.$pageToStageCoords$($DvtScrollbar$$.pageX, $DvtScrollbar$$.pageY);
      for (var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.target;$DvtScrollbarEvent$$;) {
        var $DvtAdfDiagramDragSource$$ = this.$GetLogicalObject$($DvtScrollbarEvent$$);
        if ($DvtAdfDiagramDragSource$$) {
          if ($DvtAdfDiagramDragSource$$.$handleSwipe$) {
            this.$_setPanningEnabled$(!1);
            break;
          }
          if (!this.$IsPropagationEnabled$(null, $DvtScrollbarBackground$$, $DvtScrollbarEvent$$)) {
            break;
          }
        }
        $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.getParent();
      }
    }
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.preventDefault();
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$SwipeMoveTouch$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$SwipeMoveTouch$$($dvt$$1$$) {
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$SwipeEndTouch$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$SwipeEndTouch$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_context$.$pageToStageCoords$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
    $dvt$$1$$ && (this.$_handleSwipe$($dvt$$1$$.target, $DvtScrollbar$$.x - this.$_swipeStartPos$.x, $DvtScrollbar$$.y - this.$_swipeStartPos$.y), $dvt$$1$$.preventDefault());
    this.$_swipeStartPos$ = null;
    this.$_setPanningEnabled$(!0);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$_handleSwipe$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$_handleSwipe$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    for (;$dvt$$1$$;) {
      var $DvtScrollbarEvent$$ = this.$GetLogicalObject$($dvt$$1$$);
      if ($DvtScrollbarEvent$$) {
        if ($DvtScrollbarEvent$$.$handleSwipe$ && $DvtScrollbarEvent$$.$handleSwipe$($DvtScrollbarBackground$$, $DvtScrollbar$$)) {
          break;
        }
        if (!this.$IsPropagationEnabled$(null, event, $dvt$$1$$)) {
          break;
        }
      }
      $dvt$$1$$ = $dvt$$1$$.getParent();
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$IsDragCandidate$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$IsDragCandidate$$($DvtScrollbarBackground$$) {
    return $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$getCurrentStageMousePosition$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$getCurrentStageMousePosition$$() {
    return this.$_context$.$pageToStageCoords$(this.$_currPageX$, this.$_currPageY$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$_setPanningEnabled$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$_setPanningEnabled$$($dvt$$1$$) {
    this.$_diagram$.$_panningEnabled$ && this.$_diagram$.$_panZoomCanvas$.$setPanningEnabled$($dvt$$1$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$OnTouchStartBubble$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$OnTouchStartBubble$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$OnTouchStartBubble$.call(this, $DvtScrollbarBackground$$);
    if (this.$DragSource$ && !$DvtScrollbarBackground$$.$dragSourceSet$) {
      for (var $DvtScrollbar$$ = $DvtScrollbarBackground$$.target;$DvtScrollbar$$;) {
        var $DvtScrollbarEvent$$ = this.$GetLogicalObject$($DvtScrollbar$$, !0);
        if ($DvtScrollbarEvent$$ && this.$IsDragCandidate$($DvtScrollbarEvent$$)) {
          this.$DragSource$.$setDragCandidate$($DvtScrollbarEvent$$);
          $DvtScrollbarBackground$$.$dragSourceSet$ = !0;
          break;
        }
        $DvtScrollbar$$ = $DvtScrollbar$$.getParent();
      }
    }
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$GetTouchResponse$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$GetTouchResponse$$() {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$getOptions$();
    return "none" !== $DvtScrollbarBackground$$.panning || "none" !== $DvtScrollbarBackground$$.zooming ? $dvt$$1$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_HOLD$ : $DvtScrollbarBackground$$.touchResponse === $dvt$$1$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_START$ ? $dvt$$1$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_START$ : $dvt$$1$$.$EventManager$.$TOUCH_RESPONSE_AUTO$;
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$StoreInfoByEventType$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$StoreInfoByEventType$$($DvtScrollbarBackground$$) {
    return $DvtScrollbarBackground$$ == $dvt$$1$$.$PanZoomCanvasEventManager$.$EVENT_INFO_PANNED_KEY$ ? !1 : $dvt$$1$$.$AdfDiagramEventManager$.$superclass$.$StoreInfoByEventType$.call(this, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramEventManager$.prototype.$ProcessRolloverEvent$ = function $$dvt$$1$$$$AdfDiagramEventManager$$$$ProcessRolloverEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.KeyboardEvent && ($DvtScrollbarEvent$$ && $DvtScrollbar$$.$showRollOverEffect$ ? $DvtScrollbar$$.$showRollOverEffect$($DvtScrollbarBackground$$) : !$DvtScrollbarEvent$$ && $DvtScrollbar$$.$hideRollOverEffect$ && $DvtScrollbar$$.$hideRollOverEffect$($DvtScrollbarBackground$$));
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramKeyboardHandler$$, $dvt$$1$$.$BaseDiagramKeyboardHandler$, "DvtAdfDiagramKeyboardHandler");
  $DvtAdfDiagramKeyboardHandler$$.prototype.$isSelectionEvent$ = function $$DvtAdfDiagramKeyboardHandler$$$$$isSelectionEvent$$($DvtScrollbarBackground$$) {
    return $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$TAB$ ? !1 : this.$isNavigationEvent$($DvtScrollbarBackground$$) && !$DvtScrollbarBackground$$.ctrlKey;
  };
  $DvtAdfDiagramKeyboardHandler$$.prototype.$processKeyDown$ = function $$DvtAdfDiagramKeyboardHandler$$$$$processKeyDown$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode, $DvtScrollbarEvent$$ = this.$_eventManager$.$getFocus$();
    if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$F$ && $DvtScrollbarBackground$$.ctrlKey) {
      return $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$ && $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$(), this.$GetDiagram$().$FocusSearchField$(), $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$), null;
    }
    if (!($DvtScrollbar$$ >= $dvt$$1$$.KeyboardEvent.ONE && $DvtScrollbar$$ <= $dvt$$1$$.KeyboardEvent.$FIVE$ || $DvtScrollbar$$ >= $dvt$$1$$.KeyboardEvent.$NUMPAD_ONE$ && $DvtScrollbar$$ <= $dvt$$1$$.KeyboardEvent.$NUMPAD_FIVE$) || $DvtScrollbarBackground$$.ctrlKey || $DvtScrollbarBackground$$.altKey) {
      if (($DvtScrollbar$$ >= $dvt$$1$$.KeyboardEvent.ONE && $DvtScrollbar$$ <= $dvt$$1$$.KeyboardEvent.$FIVE$ || $DvtScrollbar$$ >= $dvt$$1$$.KeyboardEvent.$NUMPAD_ONE$ && $DvtScrollbar$$ <= $dvt$$1$$.KeyboardEvent.$NUMPAD_FIVE$) && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.altKey) {
        if (this.$GetDiagram$().$HandleKeyboardEvent$) {
          return this.$GetDiagram$().$HandleKeyboardEvent$($DvtScrollbarBackground$$), $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$), null;
        }
      } else {
        if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$HOME$ && $DvtScrollbarBackground$$.ctrlKey) {
          if (this.$GetDiagram$().$HandleKeyboardEvent$ && ($DvtScrollbarEvent$$ = this.$GetDiagram$().$HandleKeyboardEvent$($DvtScrollbarBackground$$))) {
            return this.$_eventManager$.$ProcessSelectionEventHelper$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$.shiftKey), $DvtScrollbarEvent$$;
          }
        } else {
          if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$SIX$ && $DvtScrollbarBackground$$.shiftKey && $DvtScrollbarBackground$$.ctrlKey) {
            if ($DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && ($DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getNextNavigable$($DvtScrollbarBackground$$))) {
              return this.$_eventManager$.$getSelectionHandler$().$clearSelection$(), $DvtScrollbarEvent$$;
            }
          } else {
            if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SINGLE_QUOTE$) {
              $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && $DvtScrollbarEvent$$ && this.$GetDiagram$().$_bNodeDetail$ && this.$GetDiagram$().$_detailNode$ != $DvtScrollbarEvent$$ && (this.$GetDiagram$().$_bKeyboardHoverDetails$ = !0, $DvtScrollbarEvent$$.$showHoverDetails$(!0), this.$GetDiagram$().$_bKeyboardHoverDetails$ = !1);
            } else {
              if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ESCAPE$) {
                this.$GetDiagram$().$_detailNode$ && this.$GetDiagram$().$_detailNode$.$hideHoverDetails$();
              } else {
                if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$TAB$) {
                  var $DvtAdfDiagramDragSource$$ = null;
                  $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
                  return $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ : this.$GetDiagram$().$GetInitialFocusNode$();
                }
                if (this.$isNavigationEvent$($DvtScrollbarBackground$$) && $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && ($DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getCurrentTabStop$()) && $DvtAdfDiagramDragSource$$ != $DvtScrollbarEvent$$) {
                  return $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$), null;
                }
              }
            }
          }
        }
      }
    } else {
      switch($DvtScrollbar$$) {
        case $dvt$$1$$.KeyboardEvent.ONE:
        ;
        case $dvt$$1$$.KeyboardEvent.$NUMPAD_ONE$:
          $DvtAdfDiagramDragSource$$ = .1;
          break;
        case $dvt$$1$$.KeyboardEvent.$TWO$:
        ;
        case $dvt$$1$$.KeyboardEvent.$NUMPAD_TWO$:
          $DvtAdfDiagramDragSource$$ = .25;
          break;
        case $dvt$$1$$.KeyboardEvent.$THREE$:
        ;
        case $dvt$$1$$.KeyboardEvent.$NUMPAD_THREE$:
          $DvtAdfDiagramDragSource$$ = .5;
          break;
        case $dvt$$1$$.KeyboardEvent.$FOUR$:
        ;
        case $dvt$$1$$.KeyboardEvent.$NUMPAD_FOUR$:
          $DvtAdfDiagramDragSource$$ = .75;
          break;
        case $dvt$$1$$.KeyboardEvent.$FIVE$:
        ;
        case $dvt$$1$$.KeyboardEvent.$NUMPAD_FIVE$:
          $DvtAdfDiagramDragSource$$ = 1;
      }
      $DvtScrollbarEvent$$ = new $dvt$$1$$.$Animator$(this.$GetDiagram$().$getCtx$(), this.$GetDiagram$().$getAnimationDuration$());
      this.$GetDiagram$().$_panZoomCanvas$.$zoomTo$($DvtAdfDiagramDragSource$$, null, null, $DvtScrollbarEvent$$);
      $DvtScrollbarEvent$$.play();
      $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
      return null;
    }
    return $DvtAdfDiagramKeyboardHandler$$.$superclass$.$processKeyDown$.call(this, $DvtScrollbarBackground$$);
  };
  $DvtAdfDiagramKeyboardHandler$$.prototype.$isNavigationEvent$ = function $$DvtAdfDiagramKeyboardHandler$$$$$isNavigationEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !1;
    switch($DvtScrollbarBackground$$.keyCode) {
      case $dvt$$1$$.KeyboardEvent.$OPEN_BRACKET$:
      ;
      case $dvt$$1$$.KeyboardEvent.$CLOSE_BRACKET$:
      ;
      case $dvt$$1$$.KeyboardEvent.$TAB$:
      ;
      case $dvt$$1$$.KeyboardEvent.$HOME$:
      ;
      case $dvt$$1$$.KeyboardEvent.$END$:
        $DvtScrollbar$$ = !0;
        break;
      case $dvt$$1$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$:
      ;
      case $dvt$$1$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$:
        $DvtScrollbar$$ = $DvtScrollbarBackground$$.altKey ? !0 : !1;
        break;
      default:
        $DvtScrollbar$$ = $DvtAdfDiagramKeyboardHandler$$.$superclass$.$isNavigationEvent$.call(this, $DvtScrollbarBackground$$);
    }
    return $DvtScrollbar$$;
  };
  $DvtAdfDiagramKeyboardHandler$$.prototype.$GetVisibleNode$ = function $$DvtAdfDiagramKeyboardHandler$$$$$GetVisibleNode$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$;
    do {
      if (!$dvt$$1$$) {
        break;
      }
      $DvtScrollbarBackground$$ = this.$GetDiagram$().$getNodeById$($dvt$$1$$);
      $dvt$$1$$ = $DvtScrollbarBackground$$.getData().$getGroupId$();
    } while (!$DvtScrollbarBackground$$.$_bVisible$);
    if ($DvtScrollbarBackground$$ && !$DvtScrollbarBackground$$.$_bVisible$) {
      $dvt$$1$$ = this.$GetDiagram$().$_stackNodeMap$;
      var $DvtScrollbar$$;
      $dvt$$1$$ && ($DvtScrollbar$$ = $dvt$$1$$[$DvtScrollbarBackground$$.$GetStackId$()]);
      if ($DvtScrollbar$$ && 0 < $DvtScrollbar$$.length) {
        for ($dvt$$1$$ = 0;$dvt$$1$$ < $DvtScrollbar$$.length;$dvt$$1$$++) {
          var $DvtScrollbarEvent$$ = this.$GetDiagram$().$getNodeById$($DvtScrollbar$$[$dvt$$1$$]);
          if ($DvtScrollbarEvent$$.$_bVisible$) {
            $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$;
            break;
          }
        }
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramStackBadgeHandler$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramStackBadgeHandler");
  $DvtAdfDiagramStackBadgeHandler$$.prototype.Init = function $$DvtAdfDiagramStackBadgeHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_diagram$ = $dvt$$1$$;
    this.$_node$ = $DvtScrollbarBackground$$;
    this.$_dialog$;
    this.$_layoutContainer$;
    this.$_buttonContainer$;
    this.$_arNodes$;
    this.$_isDialogVisible$ = !1;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$getTooltip$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$getTooltip$$() {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$getResourcesMap$().stackIndicatorTip;
    return $dvt$$1$$.$Bundle$.format($DvtScrollbarBackground$$, [this.$_node$.$_stackCount$]);
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$isUnrelatedToSelection$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$isUnrelatedToSelection$$() {
    return !0;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$ShowDialog$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$ShowDialog$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_diagram$.$_stackNodeMap$, $DvtScrollbarEvent$$ = this.$_diagram$.$_nodeStackMap$;
    if ($DvtScrollbar$$ && $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $DvtScrollbarEvent$$[this.$_node$.getData().getId()], ($DvtScrollbarEvent$$ = $DvtScrollbar$$[$DvtScrollbarEvent$$]) && !(1 > $DvtScrollbarEvent$$.length))) {
      this.$_diagram$.$SetStackPreviewNodeId$(this.$_node$.getData().getId());
      this.$_diagram$.$UpdateAriaAttributes$();
      $DvtScrollbar$$ = new $DvtAdfDiagramLayoutContainer$$(this.$_diagram$.$getCtx$(), this.$_diagram$);
      $DvtScrollbar$$.$setMouseEnabled$(!1);
      this.$_diagram$.$_panZoomCanvas$.$_contentPane$.$addChild$($DvtScrollbar$$);
      this.$_arNodes$ = $DvtScrollbarEvent$$ = this.$CreateNodes$($DvtScrollbarEvent$$);
      var $DvtAdfDiagramDragSource$$;
      for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbar$$.$addNode$($DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$]);
      }
      this.$RenderNodes$($DvtScrollbarEvent$$);
      for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$].$setForceZoom100Facet$(!1);
      }
      $DvtScrollbar$$.$layout$();
      $DvtScrollbarEvent$$ = new $dvt$$1$$.Rect(this.$_diagram$.$getCtx$(), 0, -.5 * this.$_diagram$.getHeight(), this.$_diagram$.getWidth(), 1.5 * this.$_diagram$.getHeight(), "stackPreviewBackground");
      $DvtAdfDiagramDragSource$$ = this.$_diagram$.$_stackPreviewColor$;
      var $color$$10_pinButtonDims$$ = $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_COLOR$, $DvtScrollbarArrow$$ = $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_ALPHA$;
      $DvtAdfDiagramDragSource$$ && ($color$$10_pinButtonDims$$ = $dvt$$1$$.$ColorUtils$.$getRGB$($DvtAdfDiagramDragSource$$) ? $dvt$$1$$.$ColorUtils$.$getRGB$($DvtAdfDiagramDragSource$$) : $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_COLOR$, $DvtScrollbarArrow$$ = $dvt$$1$$.$ColorUtils$.$getAlpha$($DvtAdfDiagramDragSource$$) ? $dvt$$1$$.$ColorUtils$.$getAlpha$($DvtAdfDiagramDragSource$$) : $dvt$$1$$.$AdfDiagramNode$.$_STACK_PREVIEW_ALPHA$);
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SolidFill$($color$$10_pinButtonDims$$, $DvtScrollbarArrow$$);
      $DvtScrollbarEvent$$.$setFill$($DvtAdfDiagramDragSource$$);
      $DvtScrollbarEvent$$.$addChild$($DvtScrollbar$$);
      this.$_diagram$.$addChild$($DvtScrollbarEvent$$);
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$ClipPath$("stackPreviewClip");
      $DvtAdfDiagramDragSource$$.$addRect$($DvtScrollbarEvent$$.$getX$(), $DvtScrollbarEvent$$.$getY$(), $DvtScrollbarEvent$$.getWidth(), $DvtScrollbarEvent$$.getHeight());
      $DvtScrollbar$$.$setClipPath$($DvtAdfDiagramDragSource$$);
      if ($dvt$$1$$.$Agent$.$isEnvironmentBrowser$()) {
        this.$_buttonContainer$ = new $dvt$$1$$.$Container$(this.$_diagram$.$getCtx$());
        this.$_diagram$.$addChild$(this.$_buttonContainer$);
        $DvtAdfDiagramDragSource$$ = this.$CreatePinButton$();
        this.$_buttonContainer$.$addChild$($DvtAdfDiagramDragSource$$);
        $color$$10_pinButtonDims$$ = $DvtAdfDiagramDragSource$$.$getDimensions$();
        $DvtScrollbarArrow$$ = this.$CreateCloseButton$();
        this.$_buttonContainer$.$addChild$($DvtScrollbarArrow$$);
        var $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$.$getDimensions$(), $DvtAdfDiagramEditorManager$$ = .5 * (this.$_diagram$.getWidth() - ($color$$10_pinButtonDims$$.x + $color$$10_pinButtonDims$$.$w$ + 7 + $DvtAdfDiagramEditorManager$$.x + $DvtAdfDiagramEditorManager$$.$w$));
        $DvtAdfDiagramDragSource$$.$setTranslate$($DvtAdfDiagramEditorManager$$, -this.$_diagram$.$_buttonBorderRadius$);
        $DvtScrollbarArrow$$.$setTranslate$($DvtAdfDiagramDragSource$$.$getTranslateX$() + $color$$10_pinButtonDims$$.x + $color$$10_pinButtonDims$$.$w$ + 7, -this.$_diagram$.$_buttonBorderRadius$);
      }
      this.$_dialog$ = $DvtScrollbarEvent$$;
      this.$_layoutContainer$ = $DvtScrollbar$$;
      this.$_diagram$.$_panZoomCanvas$.$addEvtListener$($dvt$$1$$.$ZoomEvent$.$TYPE$, this.$HandleZoom$, !1, this);
      this.$SetupPanZoomCanvas$();
      this.$_buttonContainer$ && this.$_diagram$.$addChild$(this.$_buttonContainer$);
      this.$_diagram$.$_panZoomCanvas$.$setContentPane$(this.$_layoutContainer$);
      this.$_diagram$.$_panZoomCanvas$.$zoomToFit$();
      $DvtScrollbarBackground$$ ? this.$InAnimOnEnd$() : this.$CreateDialogInAnim$().play();
      this.$_isDialogVisible$ = !0;
      $DvtScrollbarBackground$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$AdfDiagram$.$PREVIEW_ROW_KEY$, this.$_node$.getData().getId());
      this.$_diagram$.dispatchEvent($DvtScrollbarBackground$$);
    }
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$ApplyLayoutPanZoom$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$ApplyLayoutPanZoom$$($dvt$$1$$) {
    if (this.$_layoutContainer$ && $dvt$$1$$) {
      var $DvtScrollbarBackground$$ = this.$_layoutContainer$.$_diagram$.$_panZoomCanvas$;
      $DvtScrollbarBackground$$.$zoomTo$($dvt$$1$$.zoom, 0, 0);
      $DvtScrollbarBackground$$.$panTo$($dvt$$1$$.$panX$, $dvt$$1$$.$panY$);
    }
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$SetupPanZoomCanvas$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$SetupPanZoomCanvas$$() {
    var $dvt$$1$$ = this.$_diagram$.$_panZoomCanvas$;
    this.$_panZoomCanvasTranslateY$ = $dvt$$1$$.$getTranslateY$();
    this.$_panZoomCanvasSize$ = $dvt$$1$$.$getSize$();
    this.$_contentPane$ = $dvt$$1$$.$_contentPane$;
    this.$_contentPaneParent$ = this.$_contentPane$.getParent();
    this.$_contentPaneIndex$ = this.$_contentPaneParent$.$getChildIndex$(this.$_contentPane$);
    this.$_panZoomCanvasParent$ = $dvt$$1$$.getParent();
    this.$_panZoomCanvasIndex$ = this.$_panZoomCanvasParent$.$getChildIndex$($dvt$$1$$);
    this.$_panZoomCanvasParent$.$addChildAt$(this.$_contentPane$, this.$_panZoomCanvasIndex$);
    this.$_diagram$.$addChild$($dvt$$1$$);
    this.$_contentPaneParent$.$addChildAt$(this.$_dialog$, this.$_contentPaneIndex$);
    $dvt$$1$$.$setTranslateY$(0);
    $dvt$$1$$.$setSize$(this.$_panZoomCanvasSize$.$w$, this.$_panZoomCanvasSize$.$h$ + this.$_panZoomCanvasTranslateY$);
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$RestorePanZoomCanvas$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$RestorePanZoomCanvas$$() {
    var $dvt$$1$$ = this.$_diagram$.$_panZoomCanvas$;
    this.$_contentPaneParent$.$addChildAt$(this.$_contentPane$, this.$_contentPaneIndex$);
    $dvt$$1$$.$setContentPane$(this.$_contentPane$);
    this.$_panZoomCanvasParent$.$addChildAt$($dvt$$1$$, this.$_panZoomCanvasIndex$);
    $dvt$$1$$.$setTranslateY$(this.$_panZoomCanvasTranslateY$);
    $dvt$$1$$.$setSize$(this.$_panZoomCanvasSize$.$w$, this.$_panZoomCanvasSize$.$h$);
    this.$_panZoomCanvasSize$ = this.$_panZoomCanvasTranslateY$ = this.$_panZoomCanvasIndex$ = this.$_panZoomCanvasParent$ = this.$_contentPaneIndex$ = this.$_contentPaneParent$ = this.$_contentPane$ = null;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreateDialogInAnim$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreateDialogInAnim$$() {
    this.$_dialog$.$setTranslateY$(-this.$_diagram$.getHeight() - 1);
    var $DvtScrollbarBackground$$;
    this.$_buttonContainer$ ? (this.$_buttonContainer$.$setTranslateY$(-this.$_diagram$.getHeight() - 1), $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimMoveTo$(this.$_diagram$.$getCtx$(), [this.$_dialog$, this.$_buttonContainer$], new $dvt$$1$$.$Point$(0, 0), this.$_diagram$.$getAnimationDuration$())) : $DvtScrollbarBackground$$ = new $dvt$$1$$.$AnimMoveTo$(this.$_diagram$.$getCtx$(), [this.$_dialog$], new $dvt$$1$$.$Point$(0, 0), this.$_diagram$.$getAnimationDuration$());
    $DvtScrollbarBackground$$.$setEasing$($dvt$$1$$.$BaseAnimation$.$EASING_BOUNCE_OUT$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$InAnimOnEnd$, this);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$InAnimOnEnd$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$InAnimOnEnd$$() {
    this.$_diagram$.$_panZoomCanvas$.$addChildAt$(this.$_layoutContainer$, this.$_contentPaneIndex$ + 1);
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreateDialogCloseAnim$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreateDialogCloseAnim$$() {
    var $DvtScrollbarBackground$$;
    $DvtScrollbarBackground$$ = this.$_buttonContainer$ ? new $dvt$$1$$.$AnimMoveTo$(this.$_diagram$.$getCtx$(), [this.$_dialog$, this.$_buttonContainer$], new $dvt$$1$$.$Point$(0, -this.$_diagram$.getHeight() - 1), this.$_diagram$.$getAnimationDuration$()) : new $dvt$$1$$.$AnimMoveTo$(this.$_diagram$.$getCtx$(), [this.$_dialog$], new $dvt$$1$$.$Point$(0, -this.$_diagram$.getHeight() - 1), this.$_diagram$.$getAnimationDuration$());
    $DvtScrollbarBackground$$.$setEasing$($dvt$$1$$.$BaseAnimation$.$EASING_BOUNCE_IN$);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$RestorePanZoomCanvas$, this);
    this.$_dialog$.$addChild$(this.$_layoutContainer$);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreateDialogOutAnimEndFunc$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreateDialogOutAnimEndFunc$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this;
    return function() {
      $DvtScrollbarBackground$$.$_diagram$.$SetStackPreviewNodeId$(null);
      $DvtScrollbarBackground$$.$_diagram$.$UpdateAriaAttributes$();
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$_diagram$.$getCtx$().$getTooltipManager$();
      $DvtScrollbar$$ && $DvtScrollbar$$.$hideTooltip$();
      $DvtScrollbarBackground$$.$_buttonContainer$ && $DvtScrollbarBackground$$.$_buttonContainer$.getParent() && $DvtScrollbarBackground$$.$_buttonContainer$.getParent().removeChild($DvtScrollbarBackground$$.$_buttonContainer$);
      $DvtScrollbarBackground$$.$_layoutContainer$ && $DvtScrollbarBackground$$.$_layoutContainer$.getParent() && $DvtScrollbarBackground$$.$_layoutContainer$.getParent().removeChild($DvtScrollbarBackground$$.$_layoutContainer$);
      $DvtScrollbarBackground$$.$_dialog$ && $DvtScrollbarBackground$$.$_dialog$.getParent() && $DvtScrollbarBackground$$.$_dialog$.getParent().removeChild($DvtScrollbarBackground$$.$_dialog$);
      $DvtScrollbarBackground$$.$_dialog$ = null;
      $DvtScrollbarBackground$$.$_layoutContainer$ = null;
      $DvtScrollbarBackground$$.$_arNodes$ = null;
      $dvt$$1$$ && $DvtScrollbarBackground$$.$ExplodeStack$();
    };
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CloseDialog$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CloseDialog$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_diagram$.$_panZoomCanvas$.$removeEvtListener$($dvt$$1$$.$ZoomEvent$.$TYPE$, this.$HandleZoom$, !1, this);
    if ($DvtScrollbar$$) {
      this.$_dialog$.$addChild$(this.$_layoutContainer$), this.$RestorePanZoomCanvas$(), this.$CreateDialogOutAnimEndFunc$($DvtScrollbarBackground$$).call();
    } else {
      var $DvtScrollbarEvent$$ = this.$CreateDialogCloseAnim$();
      $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, this.$CreateDialogOutAnimEndFunc$($DvtScrollbarBackground$$));
      $DvtScrollbarEvent$$.play();
    }
    this.$_isDialogVisible$ = !1;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$ExplodeStack$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$ExplodeStack$$() {
    var $dvt$$1$$ = this.$_node$.$GetStackId$();
    if ($dvt$$1$$) {
      var $DvtScrollbarBackground$$ = this.$_diagram$.$_arExplodedStacks$, $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.slice(0) : [];
      $DvtScrollbarBackground$$.push($dvt$$1$$);
      this.$_diagram$.$setExplodedStacks$($DvtScrollbarBackground$$);
    }
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreateCloseButton$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreateCloseButton$$() {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$getResourcesMap$().stackPreviewCloseEna, $DvtScrollbar$$ = this.$_diagram$.$getResourcesMap$().stackPreviewCloseOvr, $DvtScrollbarEvent$$ = this.$_diagram$.$getResourcesMap$().stackPreviewCloseDwn, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().stackPreviewCloseTip, $DvtScrollbarBackground$$ = this.$_diagram$.$CreateButton$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagram$.$_WIDE_BUTTON_SIZE$, 
    $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$ + this.$_diagram$.$_buttonBorderRadius$, this.$_diagram$.$_buttonBorderRadius$), $DvtScrollbar$$ = {$getTooltip$:function() {
      return $DvtAdfDiagramDragSource$$;
    }}, $thisRef$$10$$ = this;
    $DvtScrollbar$$.$HandleClick$ = function $$DvtScrollbar$$$$HandleClick$$($DvtScrollbarBackground$$) {
      $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
      $thisRef$$10$$.$CloseDialog$();
      $DvtScrollbarBackground$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$();
      $DvtScrollbarBackground$$.properties[$dvt$$1$$.$AdfDiagram$.$PREVIEW_ROW_KEY$] = "null";
      $DvtScrollbarBackground$$.properties[$dvt$$1$$.$AdfDiagram$.$PREVIEW_PAN_ZOOM_KEY$] = "null";
      $thisRef$$10$$.$_diagram$.dispatchEvent($DvtScrollbarBackground$$);
    };
    $DvtScrollbar$$.$isUnrelatedToSelection$ = function $$DvtScrollbar$$$$isUnrelatedToSelection$$() {
      return !0;
    };
    this.$_diagram$.$getEventManager$().$associate$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreatePinButton$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreatePinButton$$() {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$getResourcesMap$().stackPreviewUnstackEna, $DvtScrollbar$$ = this.$_diagram$.$getResourcesMap$().stackPreviewUnstackOvr, $DvtScrollbarEvent$$ = this.$_diagram$.$getResourcesMap$().stackPreviewUnstackDwn, $DvtAdfDiagramDragSource$$ = this.$_diagram$.$getResourcesMap$().unstackTip, $DvtScrollbarBackground$$ = this.$_diagram$.$CreateButton$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$, $dvt$$1$$.$AdfDiagram$.$_BUTTON_SIZE$ + 
    this.$_diagram$.$_buttonBorderRadius$, this.$_diagram$.$_buttonBorderRadius$), $DvtScrollbar$$ = {$getTooltip$:function() {
      return $DvtAdfDiagramDragSource$$;
    }}, $thisRef$$11$$ = this;
    $DvtScrollbar$$.$HandleClick$ = function $$DvtScrollbar$$$$HandleClick$$($DvtScrollbarBackground$$) {
      $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$);
      $thisRef$$11$$.$CloseDialog$(!0);
    };
    $DvtScrollbar$$.$isUnrelatedToSelection$ = function $$DvtScrollbar$$$$isUnrelatedToSelection$$() {
      return !0;
    };
    this.$_diagram$.$getEventManager$().$associate$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CreateNodes$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CreateNodes$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ = $dvt$$1$$.length, $DvtScrollbar$$ = [], $DvtScrollbarEvent$$, $i$$104$$ = 0;$i$$104$$ < $DvtScrollbarBackground$$;$i$$104$$++) {
      $DvtScrollbarEvent$$ = $dvt$$1$$[$i$$104$$], $DvtScrollbarEvent$$ = this.$CloneNode$(this.$_diagram$.$getNodeById$($DvtScrollbarEvent$$)), $DvtScrollbar$$.push($DvtScrollbarEvent$$);
    }
    return $DvtScrollbar$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$RenderNodes$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$RenderNodes$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_diagram$.$createAfContext$(), $DvtScrollbar$$, $DvtScrollbarEvent$$ = $dvt$$1$$.length, $node$$110$$;
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarEvent$$;$DvtScrollbar$$++) {
      $node$$110$$ = $dvt$$1$$[$DvtScrollbar$$], $node$$110$$.$createNodeContents$($DvtScrollbarBackground$$);
    }
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarEvent$$;$DvtScrollbar$$++) {
      $node$$110$$ = $dvt$$1$$[$DvtScrollbar$$], $node$$110$$.$renderNode$($DvtScrollbarBackground$$);
    }
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$CloneNode$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$CloneNode$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$AdfDiagramNode$(this.$_diagram$.$getCtx$(), $DvtScrollbarBackground$$.getData(), this.$_diagram$);
    $DvtScrollbar$$.$setForceZoom100Facet$(!0);
    $DvtScrollbar$$.$setFlyOutEnabled$();
    $DvtScrollbar$$.$setNodeDef$($DvtScrollbarBackground$$.$_nodeDef$);
    $DvtScrollbar$$.$SetMaxAlpha$($DvtScrollbarBackground$$.$GetMaxAlpha$());
    $DvtScrollbar$$.$setAlpha$($DvtScrollbarBackground$$.$GetMaxAlpha$());
    return $DvtScrollbar$$;
  };
  $DvtAdfDiagramStackBadgeHandler$$.prototype.$HandleZoom$ = function $$DvtAdfDiagramStackBadgeHandler$$$$$HandleZoom$$($DvtScrollbarBackground$$) {
    switch($DvtScrollbarBackground$$.$getSubType$()) {
      case $dvt$$1$$.$ZoomEvent$.$SUBTYPE_ZOOMED$:
        if ($DvtScrollbarBackground$$.$_oldZoom$ !== $DvtScrollbarBackground$$.$_newZoom$) {
          var $DvtScrollbar$$ = Math.min($DvtScrollbarBackground$$.$_oldZoom$, 1);
          $DvtScrollbarBackground$$ = Math.min($DvtScrollbarBackground$$.$_newZoom$, 1);
          $DvtScrollbar$$ = Math.ceil($DvtScrollbar$$ / .25);
          $DvtScrollbarBackground$$ = Math.ceil($DvtScrollbarBackground$$ / .25);
          $DvtScrollbar$$ !== $DvtScrollbarBackground$$ && this.$RenderNodes$(this.$_arNodes$);
        }
      ;
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$ = {};
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramTransitionUtils$, $dvt$$1$$.$Obj$, "dvt.AdfDiagramTransitionUtils");
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processFilter$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$($DvtScrollbarBackground$$);
    var $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildListFromKeys$($DvtScrollbarBackground$$.$_arNodeIds$), $incomingLinks$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildListFromKeys$($DvtScrollbarBackground$$.$_arLinkIds$), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_arHiddenAttrGrps$;
    $DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$.slice(0);
    var $DvtAdfDiagramEditorManager$$ = [];
    if ($DvtScrollbarArrow$$) {
      for (var $i$$106$$ = 0;$i$$106$$ < $DvtAdfDiagramDragSource$$.length;$i$$106$$++) {
        var $nodeId$$65$$ = $DvtAdfDiagramDragSource$$[$i$$106$$], $nodeAttrGroups$$1$$ = $DvtScrollbarBackground$$.$getNodeById$($nodeId$$65$$).getData().$getAttributeGroups$();
        if ($nodeAttrGroups$$1$$) {
          for (var $DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $nodeAttrGroups$$1$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
            if (-1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarArrow$$, $nodeAttrGroups$$1$$[$DvtAdfDiagramKeyboardHandler$$])) {
              $DvtAdfDiagramEditorManager$$.push($nodeId$$65$$);
              break;
            }
          }
        }
      }
    }
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$_removeDescendants$($DvtScrollbarEvent$$, $DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$);
    $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_filterLinks$($incomingLinks$$, $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$_nodesPostFilter$ = $DvtScrollbarEvent$$;
    $DvtScrollbarBackground$$.$_linksPostFilter$ = $DvtAdfDiagramDragSource$$;
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerCount$($DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerCount$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processContainerCount$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_nodesPostFilter$, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_linksPostFilter$;
    if ($DvtScrollbarEvent$$ && $DvtAdfDiagramDragSource$$) {
      for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramDragSource$$++) {
        var $node$$113$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtScrollbarEvent$$[$DvtAdfDiagramDragSource$$]);
        if (0 < $node$$113$$.$getChildNodeCount$()) {
          for (var $DvtScrollbarArrow$$ = $node$$113$$.$_childNodeIds$, $DvtAdfDiagramEditorManager$$ = 0, $j$$15$$ = 0;$j$$15$$ < $DvtScrollbarArrow$$.length;$j$$15$$++) {
            -1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarEvent$$, $DvtScrollbarArrow$$[$j$$15$$]) && $DvtAdfDiagramEditorManager$$++;
          }
          $DvtAdfDiagramEditorManager$$ != $node$$113$$.$_visibleChildNodeCount$ && $node$$113$$.$setVisibleChildNodeCount$($DvtAdfDiagramEditorManager$$);
        }
      }
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processDrill$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    } else {
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processDrill$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processDrill$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$($DvtScrollbarBackground$$);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_nodesPostFilter$, $incomingLinks$$2_outgoingLinks$$1$$ = $DvtScrollbarBackground$$.$_linksPostFilter$;
    if ($DvtAdfDiagramDragSource$$ && $incomingLinks$$2_outgoingLinks$$1$$) {
      if ($DvtScrollbarBackground$$.$_drilledNodePath$) {
        $DvtScrollbarEvent$$ = [];
        for (var $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_drilledNodePath$[$DvtScrollbarBackground$$.$_drilledNodePath$.length - 1], $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramEditorManager$$++) {
          for (var $nodeId$$67$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramEditorManager$$], $groupId$$19$$ = $DvtScrollbarBackground$$.$getNodeById$($nodeId$$67$$).getData().$getGroupId$();$groupId$$19$$;) {
            $groupId$$19$$ == $DvtScrollbarArrow$$ && $DvtScrollbarEvent$$.push($nodeId$$67$$), $groupId$$19$$ = $DvtScrollbarBackground$$.$getNodeById$($groupId$$19$$).getData().$getGroupId$();
          }
        }
        for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.$_drilledNodePath$.length;$DvtAdfDiagramDragSource$$++) {
          $nodeId$$67$$ = $DvtScrollbarBackground$$.$_drilledNodePath$[$DvtAdfDiagramDragSource$$], $DvtScrollbarBackground$$.$getNodeById$($nodeId$$67$$), $DvtScrollbarEvent$$.push($nodeId$$67$$);
        }
        $incomingLinks$$2_outgoingLinks$$1$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_filterLinks$($incomingLinks$$2_outgoingLinks$$1$$, $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
      } else {
        $DvtScrollbarEvent$$ = $DvtAdfDiagramDragSource$$;
      }
      $DvtScrollbarBackground$$.$_nodesPostDrill$ = $DvtScrollbarEvent$$;
      $DvtScrollbarBackground$$.$_linksPostDrill$ = $incomingLinks$$2_outgoingLinks$$1$$;
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processIsolate$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    } else {
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processIsolate$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processIsolate$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$($DvtScrollbarBackground$$);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_nodesPostDrill$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_linksPostDrill$;
    if ($DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$) {
      var $isolatedNodesWithAncestors$$ = {}, $DvtScrollbarArrow$$ = {};
      if ($DvtScrollbarBackground$$.$_isolatedNodes$) {
        for (var $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtScrollbarBackground$$.$_isolatedNodes$.length;$DvtAdfDiagramEditorManager$$++) {
          var $j$$17_nodeId$$68$$ = $DvtScrollbarBackground$$.$_isolatedNodes$[$DvtAdfDiagramEditorManager$$];
          $isolatedNodesWithAncestors$$[$j$$17_nodeId$$68$$] = $j$$17_nodeId$$68$$;
          var $ancestors$$3$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_getAncestors$($DvtScrollbarBackground$$, $j$$17_nodeId$$68$$);
          $DvtScrollbarArrow$$[$j$$17_nodeId$$68$$] = $ancestors$$3$$;
          for ($j$$17_nodeId$$68$$ = 0;$j$$17_nodeId$$68$$ < $ancestors$$3$$.length;$j$$17_nodeId$$68$$++) {
            var $ancestorId$$2_outgoingNodes$$2$$ = $ancestors$$3$$[$j$$17_nodeId$$68$$];
            $isolatedNodesWithAncestors$$[$ancestorId$$2_outgoingNodes$$2$$] = $ancestorId$$2_outgoingNodes$$2$$;
          }
        }
      }
      for (var $ancestorId$$2_outgoingNodes$$2$$ = [], $DvtAdfDiagramKeyboardHandler$$ = null, $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramEditorManager$$++) {
        if ($j$$17_nodeId$$68$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramEditorManager$$], !$DvtScrollbarBackground$$.$_isolatedNodes$ || $isolatedNodesWithAncestors$$[$j$$17_nodeId$$68$$]) {
          if ($ancestorId$$2_outgoingNodes$$2$$.push($j$$17_nodeId$$68$$), $DvtScrollbarArrow$$[$j$$17_nodeId$$68$$]) {
            if ($ancestors$$3$$ = $DvtScrollbarArrow$$[$j$$17_nodeId$$68$$], $DvtAdfDiagramKeyboardHandler$$) {
              for ($j$$17_nodeId$$68$$ = 0;$j$$17_nodeId$$68$$ < $DvtAdfDiagramKeyboardHandler$$.length;$j$$17_nodeId$$68$$++) {
                if ($j$$17_nodeId$$68$$ > $ancestors$$3$$.length || $DvtAdfDiagramKeyboardHandler$$[$j$$17_nodeId$$68$$] != $ancestors$$3$$[$j$$17_nodeId$$68$$]) {
                  $DvtAdfDiagramKeyboardHandler$$.splice($j$$17_nodeId$$68$$, $DvtAdfDiagramKeyboardHandler$$.length - $j$$17_nodeId$$68$$);
                  break;
                }
              }
            } else {
              $DvtAdfDiagramKeyboardHandler$$ = $ancestors$$3$$;
            }
          }
        }
      }
      $DvtAdfDiagramDragSource$$ = [];
      $DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_filterLinks$($DvtScrollbarEvent$$, $ancestorId$$2_outgoingNodes$$2$$, $DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$);
      $DvtScrollbarBackground$$.$_nodesPostIsolate$ = $ancestorId$$2_outgoingNodes$$2$$;
      $DvtScrollbarBackground$$.$_linksPostIsolate$ = $DvtScrollbarEvent$$;
      $DvtScrollbarBackground$$.$_linksRemovedByIsolate$ = $DvtAdfDiagramDragSource$$;
      $DvtScrollbarBackground$$.$_hiddenAncestors$ = $DvtAdfDiagramKeyboardHandler$$ ? $DvtAdfDiagramKeyboardHandler$$ : $DvtScrollbarBackground$$.$_drilledNodePath$;
      if ($DvtAdfDiagramKeyboardHandler$$ && $DvtScrollbarBackground$$.$_drilledNodePath$) {
        for ($DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtScrollbarBackground$$.$_drilledNodePath$.length;$DvtAdfDiagramEditorManager$$++) {
          0 > $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarBackground$$.$_hiddenAncestors$, $DvtScrollbarBackground$$.$_drilledNodePath$[$DvtAdfDiagramEditorManager$$]) && $DvtScrollbarBackground$$.$_hiddenAncestors$.push($DvtScrollbarBackground$$.$_drilledNodePath$[$DvtAdfDiagramEditorManager$$]);
        }
      }
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processStack$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    } else {
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processDrill$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_getAncestors$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_getAncestors$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$;$DvtScrollbarEvent$$;) {
      ($DvtScrollbarEvent$$ = ($DvtScrollbarEvent$$ = $dvt$$1$$.$getNodeById$($DvtScrollbarEvent$$)) ? $DvtScrollbarEvent$$.getData().$getGroupId$() : null) && $DvtScrollbar$$.unshift($DvtScrollbarEvent$$);
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processStack$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processStack$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$($DvtScrollbarBackground$$);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_nodesPostIsolate$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_linksPostIsolate$;
    if ($DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$) {
      var $oldStackNodeMap_stackMaps$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildStackMaps$($DvtAdfDiagramDragSource$$, $DvtScrollbarBackground$$.$_arAttrGrps$, $DvtScrollbarBackground$$.$_arExplodedStacks$, $DvtScrollbarBackground$$), $DvtScrollbarArrow$$ = $oldStackNodeMap_stackMaps$$[0], $DvtAdfDiagramEditorManager$$ = $oldStackNodeMap_stackMaps$$[1], $arUnstackedNodes_i$$110$$ = $oldStackNodeMap_stackMaps$$[2], $oldNodeStackMap_oldStackMaps$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildStackMaps$($DvtAdfDiagramDragSource$$, 
      $DvtScrollbarBackground$$.$_arOldAttrGrps$, $DvtScrollbarBackground$$.$_arOldExplodedStacks$, $DvtScrollbarBackground$$), $oldStackNodeMap_stackMaps$$ = $oldNodeStackMap_oldStackMaps$$[0], $oldNodeStackMap_oldStackMaps$$ = $oldNodeStackMap_oldStackMaps$$[1], $outgoingNodes$$3_stackName$$5$$;
      if ($DvtScrollbarArrow$$) {
        var $DvtAdfDiagramKeyboardHandler$$ = [];
        for ($outgoingNodes$$3_stackName$$5$$ in $DvtScrollbarArrow$$) {
          $DvtAdfDiagramKeyboardHandler$$.push($DvtScrollbarArrow$$[$outgoingNodes$$3_stackName$$5$$][0]);
        }
        if ($arUnstackedNodes_i$$110$$) {
          for (var $DvtAdfDiagramNodeEndpoint$$ = 0;$DvtAdfDiagramNodeEndpoint$$ < $arUnstackedNodes_i$$110$$.length;$DvtAdfDiagramNodeEndpoint$$++) {
            $DvtAdfDiagramKeyboardHandler$$.push($arUnstackedNodes_i$$110$$[$DvtAdfDiagramNodeEndpoint$$]);
          }
        }
        $outgoingNodes$$3_stackName$$5$$ = [];
        for ($arUnstackedNodes_i$$110$$ = 0;$arUnstackedNodes_i$$110$$ < $DvtAdfDiagramKeyboardHandler$$.length;$arUnstackedNodes_i$$110$$++) {
          for (var $DvtAdfDiagramNodeEndpoint$$ = $DvtAdfDiagramKeyboardHandler$$[$arUnstackedNodes_i$$110$$], $DvtAdfDiagramDropTarget$$ = !0;$DvtAdfDiagramNodeEndpoint$$;) {
            if ($DvtAdfDiagramNodeEndpoint$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$).getData().$getGroupId$()) {
              if ($DvtAdfDiagramDropTarget$$ = -1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramNodeEndpoint$$), !$DvtAdfDiagramDropTarget$$) {
                break;
              }
            }
          }
          $DvtAdfDiagramDropTarget$$ && $outgoingNodes$$3_stackName$$5$$.push($DvtAdfDiagramKeyboardHandler$$[$arUnstackedNodes_i$$110$$]);
        }
        $DvtAdfDiagramDragSource$$ = [];
        $DvtAdfDiagramKeyboardHandler$$ = {};
        $DvtAdfDiagramNodeEndpoint$$ = {};
        $DvtAdfDiagramDropTarget$$ = !1;
        for ($arUnstackedNodes_i$$110$$ = 0;$arUnstackedNodes_i$$110$$ < $DvtScrollbarEvent$$.length;$arUnstackedNodes_i$$110$$++) {
          var $DvtItemListEvent$$ = $DvtScrollbarEvent$$[$arUnstackedNodes_i$$110$$], $DvtPaletteEventManager$$ = $DvtScrollbarBackground$$.$getLinkById$($DvtItemListEvent$$), $DvtPaletteItem$$ = $DvtPaletteEventManager$$.getData().$getStartId$(), $DvtPaletteEventManager$$ = $DvtPaletteEventManager$$.getData().$getEndId$();
          if (-1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($outgoingNodes$$3_stackName$$5$$, $DvtPaletteItem$$) && -1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($outgoingNodes$$3_stackName$$5$$, $DvtPaletteEventManager$$)) {
            $DvtAdfDiagramDragSource$$.push($DvtItemListEvent$$);
          } else {
            var $DvtPaletteItem$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtPaletteItem$$, $outgoingNodes$$3_stackName$$5$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$), $DvtScrollbarThumb$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtPaletteEventManager$$, $outgoingNodes$$3_stackName$$5$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $DvtScrollbarBackground$$);
            $DvtPaletteItem$$ != $DvtScrollbarThumb$$ && ($DvtAdfDiagramDropTarget$$ = !0, $DvtPaletteEventManager$$ = [], $DvtPaletteEventManager$$.push($DvtPaletteItem$$), $DvtPaletteEventManager$$.push($DvtScrollbarThumb$$), $DvtPaletteItem$$ += $DvtScrollbarThumb$$, $DvtAdfDiagramKeyboardHandler$$[$DvtItemListEvent$$] = $DvtPaletteEventManager$$, $DvtPaletteEventManager$$ = $DvtAdfDiagramNodeEndpoint$$[$DvtPaletteItem$$], $DvtPaletteEventManager$$ || ($DvtPaletteEventManager$$ = [], $DvtAdfDiagramNodeEndpoint$$[$DvtPaletteItem$$] = 
            $DvtPaletteEventManager$$, $DvtAdfDiagramDragSource$$.push($DvtItemListEvent$$)), $DvtPaletteEventManager$$.push($DvtItemListEvent$$));
          }
        }
      } else {
        $outgoingNodes$$3_stackName$$5$$ = $DvtAdfDiagramDragSource$$.slice(0), $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.slice(0);
      }
      $DvtScrollbarBackground$$.$_nodesPostStack$ = $outgoingNodes$$3_stackName$$5$$;
      $DvtScrollbarBackground$$.$_linksPostStack$ = $DvtAdfDiagramDragSource$$;
      $DvtScrollbarBackground$$.$_stackNodeMap$ = $DvtScrollbarArrow$$;
      $DvtScrollbarBackground$$.$_nodeStackMap$ = $DvtAdfDiagramEditorManager$$;
      $DvtScrollbarBackground$$.$_oldStackNodeMap$ = $oldStackNodeMap_stackMaps$$;
      $DvtScrollbarBackground$$.$_oldNodeStackMap$ = $oldNodeStackMap_oldStackMaps$$;
      $DvtAdfDiagramDropTarget$$ || ($DvtAdfDiagramNodeEndpoint$$ = $DvtAdfDiagramKeyboardHandler$$ = null);
      $DvtScrollbarBackground$$.$_oldStackLinkPromotionMap$ = $DvtScrollbarBackground$$.$_stackLinkPromotionMap$;
      $DvtScrollbarBackground$$.$_oldStackPromotionLinkMap$ = $DvtScrollbarBackground$$.$_stackPromotionLinkMap$;
      $DvtScrollbarBackground$$.$_stackLinkPromotionMap$ = $DvtAdfDiagramKeyboardHandler$$;
      $DvtScrollbarBackground$$.$_stackPromotionLinkMap$ = $DvtAdfDiagramNodeEndpoint$$;
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerDisclosure$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    } else {
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processIsolate$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerDisclosure$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$processContainerDisclosure$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $DvtScrollbarEvent$$ || $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$($DvtScrollbarBackground$$);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_nodesPostStack$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_linksPostStack$;
    if ($DvtAdfDiagramDragSource$$ && $DvtScrollbarEvent$$) {
      for (var $outgoingNodes$$4$$ = [], $DvtScrollbarArrow$$ = [], $DvtAdfDiagramEditorManager$$ = [], $containerLinkPromotionMap$$ = {}, $containerPromotionLinkMap$$ = {}, $nodeStackMap$$3$$ = $DvtScrollbarBackground$$.$_nodeStackMap$, $DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
        var $DvtAdfDiagramNodeEndpoint$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramKeyboardHandler$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$);
        !$dvt$$1$$.$AdfDiagramTransitionUtils$.$IsNodeDisclosed$($DvtScrollbarBackground$$, $DvtAdfDiagramNodeEndpoint$$) || $nodeStackMap$$3$$ && $nodeStackMap$$3$$[$DvtAdfDiagramNodeEndpoint$$] ? $DvtAdfDiagramDropTarget$$.$setDisclosed$(!1) : ($DvtAdfDiagramEditorManager$$.push($DvtAdfDiagramNodeEndpoint$$), $DvtAdfDiagramDropTarget$$.$setDisclosed$(!0));
      }
      for ($DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
        for (var $DvtAdfDiagramNodeEndpoint$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramKeyboardHandler$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$), $DvtAdfDiagramDropTarget$$ = $DvtAdfDiagramDropTarget$$.getData().$getGroupId$(), $DvtItemListEvent$$, $DvtPaletteEventManager$$ = !0;$DvtAdfDiagramDropTarget$$;) {
          if ($DvtItemListEvent$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramDropTarget$$)) {
            if (!$DvtItemListEvent$$.$isDisclosed$()) {
              $DvtPaletteEventManager$$ = !1;
              break;
            }
            $DvtAdfDiagramDropTarget$$ = $DvtItemListEvent$$.getData().$getGroupId$();
          }
        }
        $DvtPaletteEventManager$$ && $outgoingNodes$$4$$.push($DvtAdfDiagramNodeEndpoint$$);
      }
      $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$($outgoingNodes$$4$$);
      for ($DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtScrollbarEvent$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
        for (var $DvtAdfDiagramNodeEndpoint$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramKeyboardHandler$$], $DvtPaletteItem$$ = $DvtScrollbarBackground$$.$getLinkById$($DvtAdfDiagramNodeEndpoint$$), $DvtAdfDiagramDropTarget$$ = $DvtPaletteItem$$.getData().$getGroupId$(), $DvtPaletteEventManager$$ = !0;$DvtAdfDiagramDropTarget$$;) {
          if ($DvtItemListEvent$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramDropTarget$$)) {
            if (!$DvtItemListEvent$$.$isDisclosed$()) {
              $DvtPaletteEventManager$$ = !1;
              break;
            }
            $DvtAdfDiagramDropTarget$$ = $DvtItemListEvent$$.getData().$getGroupId$();
          }
        }
        if ($DvtPaletteEventManager$$) {
          if ($DvtAdfDiagramDropTarget$$ = $DvtPaletteItem$$.getData().$getStartId$(), $DvtPaletteEventManager$$ = $DvtPaletteItem$$.getData().$getEndId$(), !$DvtAdfDiagramDragSource$$[$DvtAdfDiagramDropTarget$$] || !$DvtAdfDiagramDragSource$$[$DvtPaletteEventManager$$] || $nodeStackMap$$3$$ && ($nodeStackMap$$3$$[$DvtAdfDiagramDropTarget$$] || $nodeStackMap$$3$$[$DvtPaletteEventManager$$])) {
            if ($DvtItemListEvent$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtAdfDiagramDropTarget$$, $outgoingNodes$$4$$, $DvtScrollbarBackground$$.$_stackNodeMap$, $DvtScrollbarBackground$$.$_nodeStackMap$, $DvtScrollbarBackground$$), $DvtPaletteEventManager$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtPaletteEventManager$$, $outgoingNodes$$4$$, $DvtScrollbarBackground$$.$_stackNodeMap$, $DvtScrollbarBackground$$.$_nodeStackMap$, $DvtScrollbarBackground$$), 
            $DvtItemListEvent$$ !== $DvtPaletteEventManager$$) {
              $DvtAdfDiagramDropTarget$$ = [];
              $DvtAdfDiagramDropTarget$$.push($DvtItemListEvent$$);
              $DvtAdfDiagramDropTarget$$.push($DvtPaletteEventManager$$);
              $DvtPaletteItem$$ = $DvtItemListEvent$$ + $DvtPaletteEventManager$$;
              $containerLinkPromotionMap$$[$DvtAdfDiagramNodeEndpoint$$] = $DvtAdfDiagramDropTarget$$;
              $DvtItemListEvent$$ = $containerPromotionLinkMap$$[$DvtPaletteItem$$];
              $DvtItemListEvent$$ || ($DvtItemListEvent$$ = [], $containerPromotionLinkMap$$[$DvtPaletteItem$$] = $DvtItemListEvent$$, $DvtScrollbarArrow$$.push($DvtAdfDiagramNodeEndpoint$$));
              $DvtPaletteEventManager$$ = !1;
              if ($DvtScrollbarBackground$$.$_stackLinkPromotionMap$ && $DvtScrollbarBackground$$.$_stackPromotionLinkMap$ && ($DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$_stackLinkPromotionMap$[$DvtAdfDiagramNodeEndpoint$$])) {
                for ($DvtPaletteEventManager$$ = !0, $DvtPaletteItem$$ = $DvtAdfDiagramDropTarget$$[0] + $DvtAdfDiagramDropTarget$$[1], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$_stackPromotionLinkMap$[$DvtPaletteItem$$], $DvtPaletteItem$$ = 0;$DvtPaletteItem$$ < $DvtAdfDiagramDropTarget$$.length;$DvtPaletteItem$$++) {
                  $DvtItemListEvent$$.push($DvtAdfDiagramDropTarget$$[$DvtPaletteItem$$]);
                }
              }
              $DvtPaletteEventManager$$ || $DvtItemListEvent$$.push($DvtAdfDiagramNodeEndpoint$$);
            }
          } else {
            $DvtScrollbarArrow$$.push($DvtAdfDiagramNodeEndpoint$$);
          }
        }
      }
      $DvtScrollbarBackground$$.$_nodesPostContainerDisclosure$ = $outgoingNodes$$4$$;
      $DvtScrollbarBackground$$.$_linksPostContainerDisclosure$ = $DvtScrollbarArrow$$;
      $DvtScrollbarBackground$$.$_oldContainerLinkPromotionMap$ = $DvtScrollbarBackground$$.$_containerLinkPromotionMap$;
      $DvtScrollbarBackground$$.$_oldContainerPromotionLinkMap$ = $DvtScrollbarBackground$$.$_containerPromotionLinkMap$;
      $DvtScrollbarBackground$$.$_containerLinkPromotionMap$ = $containerLinkPromotionMap$$;
      $DvtScrollbarBackground$$.$_containerPromotionLinkMap$ = $containerPromotionLinkMap$$;
      $DvtScrollbarBackground$$.$_disclosedNodesPostContainerDisclosure$ = $DvtAdfDiagramEditorManager$$;
      $DvtScrollbar$$ ? $dvt$$1$$.$AdfDiagramTransitionUtils$.$_setVisibility$($DvtScrollbarBackground$$) : $dvt$$1$$.$AdfDiagramTransitionUtils$.$__animateTransition$($DvtScrollbarBackground$$, !1);
    } else {
      $dvt$$1$$.$AdfDiagramTransitionUtils$.$processStack$($DvtScrollbarBackground$$, $DvtScrollbar$$, !0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$setVisibility$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$setVisibility$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$processContainerDisclosure$($DvtScrollbarBackground$$, !0, !0);
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildStackMaps$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_buildStackMaps$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $nodeId$$72_stackNodeMap$$4$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$;
    if ($DvtScrollbar$$ && 0 < $DvtScrollbar$$.length) {
      var $initialStackNodeMap_stackMaps$$1$$ = {};
      $DvtAdfDiagramEditorManager$$ = [];
      for (var $i$$112$$ = 0;$i$$112$$ < $DvtScrollbarBackground$$.length;$i$$112$$++) {
        $nodeId$$72_stackNodeMap$$4$$ = $DvtScrollbarBackground$$[$i$$112$$];
        var $stackName$$6$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_getStackName$($nodeId$$72_stackNodeMap$$4$$, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
        $stackName$$6$$ ? $DvtScrollbarEvent$$ && 0 < $DvtScrollbarEvent$$.length && -1 < $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarEvent$$, $stackName$$6$$) ? $DvtAdfDiagramEditorManager$$.push($nodeId$$72_stackNodeMap$$4$$) : $initialStackNodeMap_stackMaps$$1$$[$stackName$$6$$] ? $initialStackNodeMap_stackMaps$$1$$[$stackName$$6$$].push($nodeId$$72_stackNodeMap$$4$$) : $initialStackNodeMap_stackMaps$$1$$[$stackName$$6$$] = [$nodeId$$72_stackNodeMap$$4$$] : $DvtAdfDiagramEditorManager$$.push($nodeId$$72_stackNodeMap$$4$$);
      }
      $nodeId$$72_stackNodeMap$$4$$ = {};
      $DvtScrollbarArrow$$ = {};
      for ($stackName$$6$$ in $initialStackNodeMap_stackMaps$$1$$) {
        if ($DvtScrollbarBackground$$ = $initialStackNodeMap_stackMaps$$1$$[$stackName$$6$$], 1 == $DvtScrollbarBackground$$.length) {
          $DvtAdfDiagramEditorManager$$.push($DvtScrollbarBackground$$[0]);
        } else {
          for ($nodeId$$72_stackNodeMap$$4$$[$stackName$$6$$] = $DvtScrollbarBackground$$, $i$$112$$ = 0;$i$$112$$ < $DvtScrollbarBackground$$.length;$i$$112$$++) {
            $DvtScrollbarArrow$$[$DvtScrollbarBackground$$[$i$$112$$]] = $stackName$$6$$;
          }
        }
      }
    }
    $initialStackNodeMap_stackMaps$$1$$ = [];
    $initialStackNodeMap_stackMaps$$1$$.push($nodeId$$72_stackNodeMap$$4$$);
    $initialStackNodeMap_stackMaps$$1$$.push($DvtScrollbarArrow$$);
    $initialStackNodeMap_stackMaps$$1$$.push($DvtAdfDiagramEditorManager$$);
    return $initialStackNodeMap_stackMaps$$1$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_getStackName$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_getStackName$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return $DvtScrollbar$$.$CreateStackName$($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$__animateTransition$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$__animateTransition$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$_animateTransitionDataHandler$($DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$__prepForDataAnim$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$__prepForDataAnim$$($dvt$$1$$) {
    $dvt$$1$$.$_oldDataAnimState$ = $dvt$$1$$.$CreateDataAnimationState$();
    $dvt$$1$$.$HideNodeTransientToolbar$();
    $dvt$$1$$.$ResetNodesAndLinks$(!0);
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_animateTransitionDataHandler$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_animateTransitionDataHandler$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbarBackground$$.$setInteractionEnabled$(!1);
    $DvtScrollbarBackground$$.$_processHighlighting$();
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$_setVisibility$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$_refreshOverviewContent$ = !0;
    $DvtScrollbar$$ || $DvtScrollbarBackground$$.$RenderComponentInternal$();
    $DvtScrollbarBackground$$.$UpdateKeyboardFocus$();
    if ($DvtScrollbarBackground$$.$_selectionHandler$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_selectionHandler$.$getSelectedIds$();
      $DvtScrollbarEvent$$ && 0 < $DvtScrollbarEvent$$.length && ($DvtScrollbarBackground$$.$_selectedNodes$ = $DvtScrollbarEvent$$, $DvtScrollbarBackground$$.$_processInitialSelections$());
    }
    $dvt$$1$$.$AdfDiagramTransitionUtils$.$_createZoomFunc$($DvtScrollbarBackground$$)();
    $DvtScrollbarEvent$$ = new $DvtAdfDiagramDataAnimationHandler$$($DvtScrollbarBackground$$.$getCtx$());
    $DvtScrollbarEvent$$.$ConstructAnimation$($DvtScrollbarBackground$$.$_oldDataAnimState$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$_oldNodes$, $DvtScrollbarBackground$$.$_nodes$, $DvtScrollbarBackground$$.$_oldLinks$, $DvtScrollbarBackground$$.$_links$, $DvtScrollbarBackground$$.$_oldArNodeIds$, $DvtScrollbarBackground$$.$_arNodeIds$);
    $DvtScrollbarBackground$$.$_oldDataAnimState$ = null;
    $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$getAnimation$();
    $DvtScrollbarBackground$$.$_oldLinksPane$.getParent().removeChild($DvtScrollbarBackground$$.$_oldLinksPane$);
    $DvtScrollbarBackground$$.$_oldNodesPane$.getParent().removeChild($DvtScrollbarBackground$$.$_oldNodesPane$);
    $DvtScrollbarBackground$$.$_oldTopPane$.getParent().removeChild($DvtScrollbarBackground$$.$_oldTopPane$);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getEventManager$().$getTooltipsEnabled$();
    $DvtScrollbarBackground$$.$getEventManager$().$setTooltipsEnabled$(!1);
    var $tooltipManager$$3$$ = $DvtScrollbarBackground$$.$getCtx$().$getTooltipManager$();
    $tooltipManager$$3$$ && $tooltipManager$$3$$.$hideTooltip$();
    $DvtScrollbarEvent$$ ? ($dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbarBackground$$.$getEventManager$().$setTooltipsEnabled$($DvtAdfDiagramDragSource$$);
    }), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbarBackground$$.$setInteractionEnabled$(!0);
    }), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbarBackground$$.$clearAutomationState$();
    }), $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$.$destroyOldContent$, $DvtScrollbarBackground$$), $DvtScrollbarBackground$$.$setAnimation$($DvtScrollbarEvent$$), $DvtScrollbarEvent$$.play()) : ($DvtScrollbarBackground$$.$setInteractionEnabled$(!0), $DvtScrollbarBackground$$.$clearAutomationState$());
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_createZoomFunc$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_createZoomFunc$$($DvtScrollbarBackground$$) {
    return function($DvtScrollbar$$) {
      var $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = !1;
      if ($DvtScrollbarBackground$$.$_disclosingNode$) {
        var $nodeBounds$$5_panOffset$$ = $DvtScrollbarBackground$$.$GetViewBounds$($DvtScrollbar$$, [$DvtScrollbarBackground$$.$_disclosingNode$], []), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_panZoomCanvas$.$getViewport$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$_panZoomCanvas$.$_zoomToFitPadding$ / $DvtScrollbarBackground$$.$_panZoomCanvas$.$getZoom$();
        $DvtScrollbarArrow$$.x += $DvtAdfDiagramEditorManager$$;
        $DvtScrollbarArrow$$.y += $DvtAdfDiagramEditorManager$$;
        $DvtScrollbarArrow$$.$w$ -= 2 * $DvtAdfDiagramEditorManager$$;
        $DvtScrollbarArrow$$.$h$ -= 2 * $DvtAdfDiagramEditorManager$$;
        $nodeBounds$$5_panOffset$$.$w$ <= $DvtScrollbarArrow$$.$w$ && $nodeBounds$$5_panOffset$$.$h$ <= $DvtScrollbarArrow$$.$h$ ? ($nodeBounds$$5_panOffset$$ = $DvtScrollbarBackground$$.$CalcOffsetToPanNodeIntoView$($DvtScrollbarBackground$$.$_disclosingNode$, $DvtScrollbar$$), !$nodeBounds$$5_panOffset$$ || 0 == $nodeBounds$$5_panOffset$$.x && 0 == $nodeBounds$$5_panOffset$$.y ? $DvtAdfDiagramDragSource$$ = !0 : ($DvtScrollbarEvent$$ = $DvtScrollbarArrow$$, $DvtScrollbarEvent$$.x -= $nodeBounds$$5_panOffset$$.x, 
        $DvtScrollbarEvent$$.y -= $nodeBounds$$5_panOffset$$.y)) : $DvtScrollbarEvent$$ = $nodeBounds$$5_panOffset$$;
        $DvtScrollbarBackground$$.$_disclosingNode$ = null;
      } else {
        $DvtScrollbarBackground$$.$_undisclosingNode$ && ($DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$GetViewBounds$($DvtScrollbar$$), $DvtScrollbarBackground$$.$_panZoomCanvas$.$calcZoomToFitScale$($DvtScrollbarArrow$$) < $DvtScrollbarBackground$$.$_panZoomCanvas$.$getZoom$() && (($DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$CalcOffsetToPanNodeIntoView$($DvtScrollbarBackground$$.$_undisclosingNode$, $DvtScrollbar$$)) || ($DvtScrollbarArrow$$ = new $dvt$$1$$.$Point$(0, 0)), $nodeBounds$$5_panOffset$$ = 
        $DvtScrollbarArrow$$, !$nodeBounds$$5_panOffset$$ || 0 == $nodeBounds$$5_panOffset$$.x && 0 == $nodeBounds$$5_panOffset$$.y ? $DvtAdfDiagramDragSource$$ = !0 : ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$_panZoomCanvas$.$getViewport$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$_panZoomCanvas$.$_zoomToFitPadding$ / $DvtScrollbarBackground$$.$_panZoomCanvas$.$getZoom$(), $DvtScrollbarEvent$$.x += $DvtAdfDiagramEditorManager$$, $DvtScrollbarEvent$$.y += $DvtAdfDiagramEditorManager$$, 
        $DvtScrollbarEvent$$.$w$ -= 2 * $DvtAdfDiagramEditorManager$$, $DvtScrollbarEvent$$.$h$ -= 2 * $DvtAdfDiagramEditorManager$$, $DvtScrollbarEvent$$.x -= $nodeBounds$$5_panOffset$$.x, $DvtScrollbarEvent$$.y -= $nodeBounds$$5_panOffset$$.y)), $DvtScrollbarBackground$$.$_undisclosingNode$ = null);
      }
      ($DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$AdjustMinZoom$($DvtScrollbar$$)) && !$DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ = $DvtScrollbarArrow$$);
      $DvtAdfDiagramDragSource$$ || ($DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$GetViewBounds$($DvtScrollbar$$)), $DvtScrollbarBackground$$.$SyncOverviewAndZoomToFit$($DvtScrollbar$$, $DvtScrollbarEvent$$, !0));
    };
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_filterLinks$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_filterLinks$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$($DvtScrollbar$$);
    for (var $filteredLinks$$ = [], $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarArrow$$++) {
      var $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$[$DvtScrollbarArrow$$], $childId$$10_link$$37$$ = $DvtScrollbarEvent$$.$getLinkById$($DvtAdfDiagramEditorManager$$), $parentId$$9$$ = $childId$$10_link$$37$$.getData().$getStartId$(), $childId$$10_link$$37$$ = $childId$$10_link$$37$$.getData().$getEndId$();
      $DvtScrollbar$$[$parentId$$9$$] && $DvtScrollbar$$[$childId$$10_link$$37$$] ? $filteredLinks$$.push($DvtAdfDiagramEditorManager$$) : $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.push($DvtAdfDiagramEditorManager$$);
    }
    return $filteredLinks$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_calculateMatrix$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_calculateMatrix$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $distOld_s_cosT$$ = Math.sqrt(($DvtScrollbarBackground$$.x - $DvtScrollbar$$.x) * ($DvtScrollbarBackground$$.x - $DvtScrollbar$$.x) + ($DvtScrollbarBackground$$.y - $DvtScrollbar$$.y) * ($DvtScrollbarBackground$$.y - $DvtScrollbar$$.y)), $DvtScrollbarArrow$$ = Math.sqrt(($DvtScrollbarEvent$$.x - $DvtAdfDiagramDragSource$$.x) * ($DvtScrollbarEvent$$.x - $DvtAdfDiagramDragSource$$.x) + ($DvtScrollbarEvent$$.y - $DvtAdfDiagramDragSource$$.y) * ($DvtScrollbarEvent$$.y - $DvtAdfDiagramDragSource$$.y)), 
    $DvtAdfDiagramEditorManager$$;
    if (0 == $DvtScrollbarArrow$$) {
      $DvtAdfDiagramEditorManager$$ = $distOld_s_cosT$$ = 0;
    } else {
      var $a$$35_cosOld$$ = ($DvtScrollbar$$.x - $DvtScrollbarBackground$$.x) / $distOld_s_cosT$$;
      $DvtScrollbar$$ = ($DvtScrollbar$$.y - $DvtScrollbarBackground$$.y) / $distOld_s_cosT$$;
      var $c_cosNew$$ = ($DvtAdfDiagramDragSource$$.x - $DvtScrollbarEvent$$.x) / $DvtScrollbarArrow$$;
      $DvtAdfDiagramDragSource$$ = ($DvtAdfDiagramDragSource$$.y - $DvtScrollbarEvent$$.y) / $DvtScrollbarArrow$$;
      $DvtScrollbarArrow$$ /= $distOld_s_cosT$$;
      $distOld_s_cosT$$ = $DvtScrollbarArrow$$ * ($c_cosNew$$ * $a$$35_cosOld$$ + $DvtAdfDiagramDragSource$$ * $DvtScrollbar$$);
      $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$ * ($DvtAdfDiagramDragSource$$ * $a$$35_cosOld$$ - $c_cosNew$$ * $DvtScrollbar$$);
    }
    $a$$35_cosOld$$ = $distOld_s_cosT$$;
    $DvtScrollbar$$ = -$DvtAdfDiagramEditorManager$$;
    $c_cosNew$$ = $DvtAdfDiagramEditorManager$$;
    $DvtScrollbarArrow$$ = $distOld_s_cosT$$;
    $DvtAdfDiagramDragSource$$ = -$distOld_s_cosT$$ * $DvtScrollbarBackground$$.x + $DvtAdfDiagramEditorManager$$ * $DvtScrollbarBackground$$.y + $DvtScrollbarEvent$$.x;
    $DvtScrollbarBackground$$ = -$DvtAdfDiagramEditorManager$$ * $DvtScrollbarBackground$$.x - $distOld_s_cosT$$ * $DvtScrollbarBackground$$.y + $DvtScrollbarEvent$$.y;
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$Matrix$;
    $DvtScrollbarEvent$$.$_a$ = $a$$35_cosOld$$;
    $DvtScrollbarEvent$$.$_b$ = $DvtScrollbar$$;
    $DvtScrollbarEvent$$.$_c$ = $c_cosNew$$;
    $DvtScrollbarEvent$$.$_d$ = $DvtScrollbarArrow$$;
    $DvtScrollbarEvent$$.$_tx$ = $DvtAdfDiagramDragSource$$;
    $DvtScrollbarEvent$$.$_ty$ = $DvtScrollbarBackground$$;
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_buildListFromKeys$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_buildListFromKeys$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = [], $DvtScrollbar$$;
    for ($DvtScrollbar$$ in $dvt$$1$$) {
      $DvtScrollbarBackground$$.push($dvt$$1$$[$DvtScrollbar$$]);
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_makeMap$$($dvt$$1$$) {
    if (!$dvt$$1$$) {
      return null;
    }
    for (var $DvtScrollbarBackground$$ = {}, $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      $DvtScrollbarBackground$$[$dvt$$1$$[$DvtScrollbar$$]] = !0;
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_setVisibility$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_setVisibility$$($DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$_nodesPostContainerDisclosure$, $DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$($DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$_linksPostContainerDisclosure$, $linkMap$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$($DvtAdfDiagramDragSource$$), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$_stackNodeMap$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$_nodeStackMap$, $promotionLinkMap$$ = 
    $DvtScrollbarBackground$$.$_containerPromotionLinkMap$, $linkPromotionMap$$ = $DvtScrollbarBackground$$.$_containerLinkPromotionMap$, $hiddenAncestorMap$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_makeMap$($DvtScrollbarBackground$$.$_hiddenAncestors$), $DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtScrollbar$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
      var $DvtAdfDiagramNodeEndpoint$$ = $DvtScrollbar$$[$DvtAdfDiagramKeyboardHandler$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$);
      if ($DvtScrollbarArrow$$ && $DvtAdfDiagramEditorManager$$) {
        var $DvtItemListEvent$$ = $DvtAdfDiagramEditorManager$$[$DvtAdfDiagramNodeEndpoint$$];
        if ($DvtItemListEvent$$ && ($DvtItemListEvent$$ = $DvtScrollbarArrow$$[$DvtItemListEvent$$], $DvtAdfDiagramNodeEndpoint$$ === $DvtItemListEvent$$[0] && 1 < $DvtItemListEvent$$.length)) {
          $DvtAdfDiagramDropTarget$$.$setStackCount$($DvtItemListEvent$$.length);
          $DvtAdfDiagramDropTarget$$.$setStack$(!0);
          $DvtAdfDiagramDropTarget$$.$addAccessibilityAttributes$();
          continue;
        }
      }
      $DvtAdfDiagramDropTarget$$.$setStack$(!1);
      $DvtAdfDiagramDropTarget$$.$setStackCount$(0);
    }
    $DvtScrollbarArrow$$ = {};
    for ($DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtScrollbarBackground$$.$_linksRemovedByIsolate$.length;$DvtAdfDiagramKeyboardHandler$$++) {
      var $DvtPaletteEventManager$$ = $DvtScrollbarBackground$$.$_linksRemovedByIsolate$[$DvtAdfDiagramKeyboardHandler$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getLinkById$($DvtPaletteEventManager$$), $DvtItemListEvent$$ = $DvtAdfDiagramDropTarget$$.getData().$getStartId$(), $DvtAdfDiagramDropTarget$$ = $DvtAdfDiagramDropTarget$$.getData().$getEndId$();
      $DvtScrollbarArrow$$[$DvtItemListEvent$$] = $DvtItemListEvent$$;
      $DvtScrollbarArrow$$[$DvtAdfDiagramDropTarget$$] = $DvtAdfDiagramDropTarget$$;
    }
    for ($DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtScrollbar$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
      if ($DvtAdfDiagramNodeEndpoint$$ = $DvtScrollbar$$[$DvtAdfDiagramKeyboardHandler$$], $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$), $DvtAdfDiagramDropTarget$$.$_bStack$ && $DvtScrollbarBackground$$.$_nodeStackMap$) {
        for (var $DvtItemListEvent$$ = $DvtScrollbarBackground$$.$_nodeStackMap$[$DvtAdfDiagramNodeEndpoint$$], $DvtItemListEvent$$ = $DvtScrollbarBackground$$.$_stackNodeMap$[$DvtItemListEvent$$], $DvtAdfDiagramEditorManager$$ = !1, $DvtPaletteItem$$ = 0;$DvtPaletteItem$$ < $DvtItemListEvent$$.length;$DvtPaletteItem$$++) {
          if ($DvtScrollbarArrow$$[$DvtItemListEvent$$[$DvtPaletteItem$$]]) {
            $DvtAdfDiagramEditorManager$$ = !0;
            break;
          }
        }
        $DvtAdfDiagramDropTarget$$.$setPartiallyExpanded$($DvtAdfDiagramEditorManager$$);
      } else {
        $DvtScrollbarArrow$$[$DvtAdfDiagramNodeEndpoint$$] ? $DvtAdfDiagramDropTarget$$.$setPartiallyExpanded$(!0) : $DvtAdfDiagramDropTarget$$.$setPartiallyExpanded$(!1);
      }
    }
    for ($DvtAdfDiagramNodeEndpoint$$ in $DvtScrollbarBackground$$.$_nodes$) {
      $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getNodeById$($DvtAdfDiagramNodeEndpoint$$), !$DvtScrollbarEvent$$[$DvtAdfDiagramNodeEndpoint$$] && $DvtAdfDiagramDropTarget$$.$_bVisible$ ? ($DvtAdfDiagramDropTarget$$.$setVisible$(!1), $DvtAdfDiagramDropTarget$$.$setStack$(!1), $DvtAdfDiagramDropTarget$$.$setStackCount$(0)) : $DvtScrollbarEvent$$[$DvtAdfDiagramNodeEndpoint$$] && !$DvtAdfDiagramDropTarget$$.$_bVisible$ && $DvtAdfDiagramDropTarget$$.$setVisible$(!0), $hiddenAncestorMap$$ && 
      $hiddenAncestorMap$$[$DvtAdfDiagramNodeEndpoint$$] ? $DvtAdfDiagramDropTarget$$.$_bHiddenAncestor$ || $DvtAdfDiagramDropTarget$$.$setHiddenAncestor$(!0) : $DvtAdfDiagramDropTarget$$.$_bHiddenAncestor$ && $DvtAdfDiagramDropTarget$$.$setHiddenAncestor$(!1);
    }
    for ($DvtAdfDiagramKeyboardHandler$$ = 0;$DvtAdfDiagramKeyboardHandler$$ < $DvtAdfDiagramDragSource$$.length;$DvtAdfDiagramKeyboardHandler$$++) {
      $DvtPaletteEventManager$$ = $DvtAdfDiagramDragSource$$[$DvtAdfDiagramKeyboardHandler$$];
      $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getLinkById$($DvtPaletteEventManager$$);
      if ($promotionLinkMap$$ && $linkPromotionMap$$ && ($DvtScrollbar$$ = $linkPromotionMap$$[$DvtPaletteEventManager$$]) && ($DvtScrollbar$$ = $promotionLinkMap$$[$DvtScrollbar$$[0] + $DvtScrollbar$$[1]], $DvtPaletteEventManager$$ === $DvtScrollbar$$[0])) {
        $DvtAdfDiagramDropTarget$$.$setPromotionCount$($DvtScrollbar$$.length);
        $DvtAdfDiagramDropTarget$$.$setPromoted$(!0);
        continue;
      }
      $DvtAdfDiagramDropTarget$$.$setPromoted$(!1);
      $DvtAdfDiagramDropTarget$$.$setPromotionCount$(0);
    }
    for ($DvtPaletteEventManager$$ in $DvtScrollbarBackground$$.$_links$) {
      $DvtAdfDiagramDropTarget$$ = $DvtScrollbarBackground$$.$getLinkById$($DvtPaletteEventManager$$), $DvtAdfDiagramDropTarget$$.$setAlpha$(Math.min($DvtAdfDiagramDropTarget$$.$getAlpha$(), $DvtAdfDiagramDropTarget$$.$GetMaxAlpha$())), $DvtAdfDiagramDropTarget$$.$_labelObj$ && $DvtAdfDiagramDropTarget$$.$_labelObj$.$setAlpha$(Math.min($DvtAdfDiagramDropTarget$$.$_labelObj$.$getAlpha$(), $DvtAdfDiagramDropTarget$$.$GetMaxAlpha$())), !$linkMap$$[$DvtPaletteEventManager$$] && $DvtAdfDiagramDropTarget$$.$_bVisible$ ? 
      ($DvtAdfDiagramDropTarget$$.$setVisible$(!1), $DvtAdfDiagramDropTarget$$.$setPromoted$(!1), $DvtAdfDiagramDropTarget$$.$setPromotionCount$(0)) : $linkMap$$[$DvtPaletteEventManager$$] && !$DvtAdfDiagramDropTarget$$.$_bVisible$ && $DvtAdfDiagramDropTarget$$.$setVisible$(!0);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$transformLinkPoints$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$transformLinkPoints$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $originalChildNodeDimensions_transformedPoints$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $transformedChildNodePos_transformedPoint$$, $cmd_transformedChildNodeDimensions$$) {
    var $pointsToTransform$$;
    $pointsToTransform$$ || ($pointsToTransform$$ = $DvtScrollbarBackground$$);
    var $DvtAdfDiagramKeyboardHandler$$ = !1;
    $DvtScrollbarBackground$$ && 0 < $DvtScrollbarBackground$$.length && isNaN($DvtScrollbarBackground$$[0]) && ($DvtAdfDiagramKeyboardHandler$$ = !0);
    var $DvtAdfDiagramDropTarget$$ = !1;
    $pointsToTransform$$ && 0 < $pointsToTransform$$.length && isNaN($pointsToTransform$$[0]) && ($DvtAdfDiagramDropTarget$$ = !0);
    $DvtAdfDiagramKeyboardHandler$$ = $DvtAdfDiagramKeyboardHandler$$ ? new $dvt$$1$$.$Point$($DvtScrollbarBackground$$[1], $DvtScrollbarBackground$$[2]) : new $dvt$$1$$.$Point$($DvtScrollbarBackground$$[0], $DvtScrollbarBackground$$[1]);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$[$DvtScrollbarBackground$$.length - 2], $DvtScrollbarBackground$$[$DvtScrollbarBackground$$.length - 1]);
    $DvtScrollbar$$ = new $dvt$$1$$.$Point$($DvtScrollbarArrow$$.x + $DvtAdfDiagramEditorManager$$.x + ($DvtAdfDiagramKeyboardHandler$$.x - $DvtScrollbar$$.x - $DvtScrollbarEvent$$.x) * $DvtAdfDiagramEditorManager$$.$w$ / $DvtScrollbarEvent$$.$w$, $DvtScrollbarArrow$$.y + $DvtAdfDiagramEditorManager$$.y + ($DvtAdfDiagramKeyboardHandler$$.y - $DvtScrollbar$$.y - $DvtScrollbarEvent$$.y) * $DvtAdfDiagramEditorManager$$.$h$ / $DvtScrollbarEvent$$.$h$);
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Point$($transformedChildNodePos_transformedPoint$$.x + $cmd_transformedChildNodeDimensions$$.x + ($DvtScrollbarBackground$$.x - $DvtAdfDiagramDragSource$$.x - $originalChildNodeDimensions_transformedPoints$$.x) * $cmd_transformedChildNodeDimensions$$.$w$ / $originalChildNodeDimensions_transformedPoints$$.$w$, $transformedChildNodePos_transformedPoint$$.y + $cmd_transformedChildNodeDimensions$$.y + ($DvtScrollbarBackground$$.y - $DvtAdfDiagramDragSource$$.y - 
    $originalChildNodeDimensions_transformedPoints$$.y) * $cmd_transformedChildNodeDimensions$$.$h$ / $originalChildNodeDimensions_transformedPoints$$.$h$);
    $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramTransitionUtils$.$_calculateMatrix$($DvtAdfDiagramKeyboardHandler$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$);
    $originalChildNodeDimensions_transformedPoints$$ = [];
    if ($DvtAdfDiagramDropTarget$$) {
      for ($DvtAdfDiagramDropTarget$$ = 0;$DvtAdfDiagramDropTarget$$ < $pointsToTransform$$.length;$DvtAdfDiagramDropTarget$$++) {
        switch($cmd_transformedChildNodeDimensions$$ = $pointsToTransform$$[$DvtAdfDiagramDropTarget$$], $cmd_transformedChildNodeDimensions$$) {
          case "M":
            $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$]));
            $originalChildNodeDimensions_transformedPoints$$.push($cmd_transformedChildNodeDimensions$$, $transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y);
            break;
          case "L":
            $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$]));
            $originalChildNodeDimensions_transformedPoints$$.push($cmd_transformedChildNodeDimensions$$, $transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y);
            break;
          case "Q":
            $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$]));
            $originalChildNodeDimensions_transformedPoints$$.push($cmd_transformedChildNodeDimensions$$, $transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y);
            $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$]));
            $originalChildNodeDimensions_transformedPoints$$.push($transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y);
            break;
          case "C":
            $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$])), $originalChildNodeDimensions_transformedPoints$$.push($cmd_transformedChildNodeDimensions$$, $transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y), $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], 
            $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$])), $originalChildNodeDimensions_transformedPoints$$.push($transformedChildNodePos_transformedPoint$$.x, $transformedChildNodePos_transformedPoint$$.y), $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[++$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[++$DvtAdfDiagramDropTarget$$])), $originalChildNodeDimensions_transformedPoints$$.push($transformedChildNodePos_transformedPoint$$.x, 
            $transformedChildNodePos_transformedPoint$$.y);
        }
      }
    } else {
      for ($DvtAdfDiagramDropTarget$$ = 0;$DvtAdfDiagramDropTarget$$ < $pointsToTransform$$.length;$DvtAdfDiagramDropTarget$$ += 2) {
        $transformedChildNodePos_transformedPoint$$ = $DvtAdfDiagramDragSource$$.$transformPoint$(new $dvt$$1$$.$Point$($pointsToTransform$$[$DvtAdfDiagramDropTarget$$], $pointsToTransform$$[$DvtAdfDiagramDropTarget$$ + 1])), $originalChildNodeDimensions_transformedPoints$$.push($transformedChildNodePos_transformedPoint$$.x), $originalChildNodeDimensions_transformedPoints$$.push($transformedChildNodePos_transformedPoint$$.y);
      }
    }
    return $originalChildNodeDimensions_transformedPoints$$;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_removeDescendants$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_removeDescendants$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbar$$.length;$DvtAdfDiagramDragSource$$++) {
      var $node$$119_nodeId$$75$$ = $DvtScrollbar$$[$DvtAdfDiagramDragSource$$], $DvtScrollbarArrow$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarBackground$$, $node$$119_nodeId$$75$$);
      -1 != $DvtScrollbarArrow$$ && $DvtScrollbarBackground$$.splice($DvtScrollbarArrow$$, 1);
      $node$$119_nodeId$$75$$ = $DvtScrollbarEvent$$.$getNodeById$($node$$119_nodeId$$75$$);
      0 < $node$$119_nodeId$$75$$.$getChildNodeCount$() && $dvt$$1$$.$AdfDiagramTransitionUtils$.$_removeDescendants$($DvtScrollbarBackground$$, $node$$119_nodeId$$75$$.$_childNodeIds$, $DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$_findFirstVisibleNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $diagram$$72$$) {
    if (-1 != $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbar$$, $DvtScrollbarBackground$$)) {
      return $DvtScrollbarBackground$$;
    }
    if ($DvtScrollbarEvent$$ && $DvtAdfDiagramDragSource$$) {
      var $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$[$DvtScrollbarBackground$$];
      if ($DvtScrollbarArrow$$ && ($DvtScrollbarArrow$$ = $DvtScrollbarEvent$$[$DvtScrollbarArrow$$][0], $DvtScrollbarBackground$$ != $DvtScrollbarArrow$$)) {
        return $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtScrollbarArrow$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $diagram$$72$$);
      }
    }
    return ($DvtScrollbarBackground$$ = $diagram$$72$$.$getNodeById$($DvtScrollbarBackground$$).getData().$getGroupId$()) ? $dvt$$1$$.$AdfDiagramTransitionUtils$.$_findFirstVisibleNode$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $diagram$$72$$) : null;
  };
  $dvt$$1$$.$AdfDiagramTransitionUtils$.$IsNodeDisclosed$ = function $$dvt$$1$$$$AdfDiagramTransitionUtils$$$IsNodeDisclosed$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return $DvtScrollbarBackground$$.$_disclosedNodes$ && -1 < $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarBackground$$.$_disclosedNodes$, $DvtScrollbar$$) || $DvtScrollbarBackground$$.$_drilledNodePath$ && -1 < $dvt$$1$$.$ArrayUtils$.$getIndex$($DvtScrollbarBackground$$.$_drilledNodePath$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramClientBehaviorHandler$$, $dvt$$1$$.$ClientBehaviorHandler$, "DvtAdfDiagramClientBehaviorHandler");
  $DvtAdfDiagramClientBehaviorHandler$$.prototype.Init = function $$DvtAdfDiagramClientBehaviorHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtAdfDiagramClientBehaviorHandler$$.$superclass$.Init.call(this, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $DvtAdfDiagramClientBehaviorHandler$$.prototype.$processClick$ = function $$DvtAdfDiagramClientBehaviorHandler$$$$$processClick$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = $DvtAdfDiagramClientBehaviorHandler$$.$superclass$.$processClick$.call(this, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    $DvtScrollbarEvent$$ && !this.$_suspendAnimation$ && $dvt$$1$$.$AdfDiagramTransitionUtils$.$processFilter$(this.$_diagram$);
    this.$_suspendAnimation$ = !1;
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramClientBehaviorHandler$$.prototype.$CreateClientBehaviorEvent$ = function $$DvtAdfDiagramClientBehaviorHandler$$$$$CreateClientBehaviorEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtAdfDiagramClientBehaviorHandler$$.$superclass$.$CreateClientBehaviorEvent$.call(this, $dvt$$1$$, $DvtScrollbarBackground$$);
    $DvtScrollbar$$.$addParam$("suppressAnimation", !0);
    return $DvtScrollbar$$;
  };
  $DvtAdfDiagramClientBehaviorHandler$$.prototype.$suspendAnimation$ = function $$DvtAdfDiagramClientBehaviorHandler$$$$$suspendAnimation$$() {
    this.$_suspendAnimation$ = !0;
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$ = {};
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_TREE$ = "viewtree";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_TREE_HORIZONTAL$ = "viewtreeHorizontal";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_VERTICAL$ = "viewtreeVertical";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_RADIAL$ = "viewtreeRadial";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_CIRCLE$ = "viewtreeCircle";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_FORCE$ = "viewtree_force";
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createLayoutButtonState$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$createLayoutButtonState$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $styleMap$$11$$) {
    return $dvt$$1$$.$ButtonLAFUtils$.$createControlButtonState$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$ConvertLayoutToButtonIconName$($DvtScrollbarEvent$$), $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, $styleMap$$11$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createLayoutItemState$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$createLayoutItemState$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $styleMap$$12$$) {
    return $dvt$$1$$.$ButtonLAFUtils$.$createLayoutItemButtonState$($DvtScrollbarBackground$$, $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$ConvertLayoutToItemIconName$($DvtScrollbarEvent$$), $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, $styleMap$$12$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$ConvertLayoutToButtonIconName$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$ConvertLayoutToButtonIconName$$($DvtScrollbarBackground$$) {
    ($DvtScrollbarBackground$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$ConvertLayoutToItemIconName$($DvtScrollbarBackground$$)) && ($DvtScrollbarBackground$$ += "Sel");
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$ConvertLayoutToItemIconName$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$ConvertLayoutToItemIconName$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    switch($DvtScrollbarBackground$$) {
      case $dvt$$1$$.$HierarchyViewer$.$LAYOUT_HIER_VERT_TOP$:
        $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_TREE$;
        break;
      case $dvt$$1$$.$HierarchyViewer$.$LAYOUT_HIER_HORZ_START$:
        $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_TREE_HORIZONTAL$;
        break;
      case $dvt$$1$$.$HierarchyViewer$.$LAYOUT_TREE$:
        $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_VERTICAL$;
        break;
      case $dvt$$1$$.$HierarchyViewer$.$LAYOUT_RADIAL$:
        $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_RADIAL$;
        break;
      case $dvt$$1$$.$HierarchyViewer$.$LAYOUT_CIRCLE$:
        $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$BUTTON_NAME_VIEW_CIRCLE$;
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncButtonState$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$createPanelCardSyncButtonState$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    return $dvt$$1$$.$ButtonLAFUtils$.$createPanelCardButtonState$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncItemState$ = function $$dvt$$1$$$$AdfDiagramControlPanelLAFUtils$$$createPanelCardSyncItemState$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $styleMap$$14$$, $DvtScrollbarArrow$$) {
    return $dvt$$1$$.$ButtonLAFUtils$.$createPanelCardSyncItemState$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $styleMap$$14$$, $DvtScrollbarArrow$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanel$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramControlPanel$, $dvt$$1$$.$ControlPanel$, "dvt.AdfDiagramControlPanel");
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.Init = function $$dvt$$1$$$$AdfDiagramControlPanel$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$AdfDiagramControlPanel$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$PopulateHorzContentBar$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$PopulateHorzContentBar$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$AdfDiagramControlPanel$.$superclass$.$PopulateHorzContentBar$.call(this, $DvtScrollbarBackground$$);
    var $DvtScrollbar$$;
    this.$_view$.$_bSyncCardOff$ || (($DvtScrollbar$$ = this.$updateCardSelectorList$($DvtScrollbarBackground$$)) && 1 < $DvtScrollbar$$.$getItemCount$() && ($DvtScrollbarBackground$$.$addChild$($DvtScrollbar$$), $DvtScrollbar$$.$setTranslate$(0, 0)), this.$_panelCardSyncCombo$ = $DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$HandlePanelCardSyncChange$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$HandlePanelCardSyncChange$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$.$subtype$ == $dvt$$1$$.$ComboBoxEvent$.$SUBTYPE_ITEM_CHANGE$ && ($DvtScrollbarBackground$$ = this.$_panelCardSyncCombo$.getItem($DvtScrollbarBackground$$.$getIndex$()), this.$_view$.$syncPanelCards$($DvtScrollbarBackground$$.getId(), $DvtScrollbarBackground$$.$getText$(), $DvtScrollbarBackground$$.$getIcon$()));
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$updateCardSelectorList$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$updateCardSelectorList$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_view$.$_cardSelectorList$, $DvtScrollbar$$ = this.$_panelCardSyncComboBox$;
    $dvt$$1$$ = void 0 == $dvt$$1$$ ? null : $dvt$$1$$;
    null != $DvtScrollbarBackground$$ && 0 < $DvtScrollbarBackground$$.length && ($DvtScrollbar$$ && ($dvt$$1$$ || ($dvt$$1$$ = $DvtScrollbar$$.getParent()), this.$destroyCardSelector$()), $DvtScrollbar$$ = this.$createPanelCardSyncComboBox$($DvtScrollbarBackground$$), $dvt$$1$$ && $dvt$$1$$.$addChild$($DvtScrollbar$$));
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$createPanelCardSyncComboBox$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$createPanelCardSyncComboBox$$($DvtScrollbarBackground$$) {
    if (null == $DvtScrollbarBackground$$ || 1 > $DvtScrollbarBackground$$.length) {
      return null;
    }
    var $DvtScrollbar$$ = this.$_view$.$getCtx$(), $DvtScrollbarEvent$$ = this.$_view$.$getSubcomponentStyles$(), $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$ComboBox$($DvtScrollbar$$, null, $DvtScrollbarEvent$$), $bAnyIcons_images$$5$$ = this.$getButtonImages$();
    $DvtAdfDiagramDragSource$$.$setEventManager$(this.$_eventManager$);
    $DvtAdfDiagramDragSource$$.$setStaticButtonStates$($dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncButtonState$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_ENABLED$, $DvtScrollbarEvent$$, $bAnyIcons_images$$5$$), $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncButtonState$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_OVER$, $DvtScrollbarEvent$$, $bAnyIcons_images$$5$$), $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncButtonState$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_DOWN$, 
    $DvtScrollbarEvent$$, $bAnyIcons_images$$5$$));
    var $DvtScrollbarEvent$$ = -1, $DvtScrollbarArrow$$ = 0, $DvtAdfDiagramEditorManager$$, $bAnyIcons_images$$5$$ = !1, $i$$118$$;
    for ($i$$118$$ = 0;$i$$118$$ < $DvtScrollbarBackground$$.length;$i$$118$$++) {
      var $aCard_sIcon$$ = $DvtScrollbarBackground$$[$i$$118$$];
      $DvtAdfDiagramEditorManager$$ = $aCard_sIcon$$[0];
      $aCard_sIcon$$ = $aCard_sIcon$$[1];
      null != $aCard_sIcon$$ && 0 < $aCard_sIcon$$.length && ($bAnyIcons_images$$5$$ = !0);
      null != $DvtAdfDiagramEditorManager$$ && 0 < $DvtAdfDiagramEditorManager$$.length && ($DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$PanelCardComboBoxItem$.$createLabelText$($DvtScrollbar$$, $DvtAdfDiagramEditorManager$$), $DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramEditorManager$$.$measureDimensions$(), $DvtAdfDiagramEditorManager$$.$w$ > $DvtScrollbarArrow$$ && ($DvtScrollbarArrow$$ = $DvtAdfDiagramEditorManager$$.$w$, $DvtScrollbarEvent$$ = $i$$118$$));
    }
    var $widestItem$$;
    $DvtAdfDiagramEditorManager$$ = -1;
    -1 < $DvtScrollbarEvent$$ && ($DvtScrollbarArrow$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $widestItem$$ = this.$createDvtPanelCardComboBoxItem$($DvtScrollbarArrow$$[0], $DvtScrollbarArrow$$[1], $bAnyIcons_images$$5$$, null), $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$($DvtScrollbar$$, $widestItem$$), $DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramEditorManager$$.$w$);
    for ($i$$118$$ = 0;$i$$118$$ < $DvtScrollbarBackground$$.length;$i$$118$$++) {
      $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$[$i$$118$$], $i$$118$$ == $DvtScrollbarEvent$$ ? $DvtAdfDiagramDragSource$$.$addItem$($widestItem$$, $DvtScrollbarArrow$$[0]) : ($DvtScrollbar$$ = this.$createDvtPanelCardComboBoxItem$($DvtScrollbarArrow$$[0], $DvtScrollbarArrow$$[1], $bAnyIcons_images$$5$$, $DvtAdfDiagramEditorManager$$), $DvtAdfDiagramDragSource$$.$addItem$($DvtScrollbar$$, $DvtScrollbarArrow$$[0]));
    }
    $DvtScrollbarBackground$$ = $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$SUBCOMPONENT_PREFIX$, "CONTROL_PANEL_SYNC");
    this.$_eventManager$.$associate$($DvtAdfDiagramDragSource$$, new $dvt$$1$$.$SimpleObjPeer$($DvtScrollbarBackground$$));
    $DvtAdfDiagramDragSource$$.$addEvtListener$($dvt$$1$$.$ComboBoxEvent$.$TYPE$, this.$HandlePanelCardSyncChange$, !1, this);
    return $DvtAdfDiagramDragSource$$;
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$createDvtPanelCardComboBoxItem$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$createDvtPanelCardComboBoxItem$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    return new $dvt$$1$$.$PanelCardComboBoxItem$(this.$_view$.$getCtx$(), null, $DvtScrollbarEvent$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, void 0 == $DvtAdfDiagramDragSource$$ ? -1 : $DvtAdfDiagramDragSource$$, this.$_view$.$getSubcomponentStyles$(), this.$getButtonImages$());
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$destroyCardSelector$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$destroyCardSelector$$() {
    var $DvtScrollbarBackground$$ = this.$_panelCardSyncComboBox$;
    if ($DvtScrollbarBackground$$) {
      $DvtScrollbarBackground$$.$closeDropdown$();
      $DvtScrollbarBackground$$.$destroy$();
      $DvtScrollbarBackground$$.$removeEvtListener$($dvt$$1$$.$ComboBoxEvent$.$TYPE$, this.$HandlePanelCardSyncChange$);
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.getParent();
      null != $DvtScrollbar$$ && $DvtScrollbar$$.removeChild($DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$isSingleHorzRow$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$isSingleHorzRow$$() {
    return !0;
  };
  $dvt$$1$$.$AdfDiagramControlPanel$.prototype.$getActionDisplayable$ = function $$dvt$$1$$$$AdfDiagramControlPanel$$$$getActionDisplayable$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = $dvt$$1$$.$AdfDiagramControlPanel$.$superclass$.$getActionDisplayable$.call(this, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    !$DvtScrollbarEvent$$ && this.$_panelCardSyncCombo$ && "viewMenu" == $DvtScrollbarBackground$$ && (null != $DvtScrollbar$$ ? this.$_panelCardSyncCombo$.$_button$.$_bMouseEnabled$ || ($DvtScrollbarEvent$$ = this.$_panelCardSyncCombo$.getItem(this.$_view$.$convertPanelCardIdToIndex$($DvtScrollbar$$))) : $DvtScrollbarEvent$$ = this.$_panelCardSyncCombo$.$_button$);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$PanelCardComboBoxItem$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $sIcon$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $images$$6$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $sIcon$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $images$$6$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$PanelCardComboBoxItem$, $dvt$$1$$.$Container$, "dvt.PanelCardComboBoxItem");
  $dvt$$1$$.$PanelCardComboBoxItem$.prototype.Init = function $$dvt$$1$$$$PanelCardComboBoxItem$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $sIcon$$3$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $images$$7$$) {
    $dvt$$1$$.$PanelCardComboBoxItem$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, null, $DvtScrollbar$$);
    this.$_sText$ = $DvtAdfDiagramDragSource$$;
    this.$_sIcon$ = $sIcon$$3$$;
    this.$_images$ = $images$$7$$;
    this.$_styleMap$ = void 0 == $DvtAdfDiagramEditorManager$$ ? null : $DvtAdfDiagramEditorManager$$;
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Button$($DvtScrollbarBackground$$, this.$createItemState$($DvtScrollbarBackground$$, $dvt$$1$$.$Button$.$STATE_ENABLED$, $DvtAdfDiagramDragSource$$, $sIcon$$3$$, $DvtScrollbarEvent$$, $DvtScrollbarArrow$$), this.$createItemState$($DvtScrollbarBackground$$, $dvt$$1$$.$Button$.$STATE_OVER$, $DvtAdfDiagramDragSource$$, $sIcon$$3$$, $DvtScrollbarEvent$$, $DvtScrollbarArrow$$), this.$createItemState$($DvtScrollbarBackground$$, $dvt$$1$$.$Button$.$STATE_DOWN$, 
    $DvtAdfDiagramDragSource$$, $sIcon$$3$$, $DvtScrollbarEvent$$, $DvtScrollbarArrow$$), null, $DvtAdfDiagramDragSource$$);
    this.$addChild$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$PanelCardComboBoxItem$.prototype.$getText$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$$$getText$$() {
    return this.$_sText$;
  };
  $dvt$$1$$.$PanelCardComboBoxItem$.prototype.$getIcon$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$$$getIcon$$() {
    return this.$_sIcon$;
  };
  $dvt$$1$$.$PanelCardComboBoxItem$.prototype.$onIconLoaded$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$$$onIconLoaded$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$ButtonLAFUtils$.$CONTROL_BUTTON_WIDTH$, $DvtScrollbarEvent$$ = $dvt$$1$$.$ButtonLAFUtils$.$CONTROL_BUTTON_HEIGHT$;
    if (null != $DvtScrollbarBackground$$) {
      if ($DvtScrollbarBackground$$.width > $DvtScrollbar$$ || $DvtScrollbarBackground$$.height > $DvtScrollbarEvent$$) {
        var $DvtAdfDiagramDragSource$$ = Math.max($DvtScrollbarBackground$$.width / $DvtScrollbar$$, $DvtScrollbarBackground$$.height / $DvtScrollbarEvent$$);
        $DvtScrollbarBackground$$.$scaleX$ = 1 / $DvtAdfDiagramDragSource$$;
        $DvtScrollbarBackground$$.$scaleY$ = 1 / $DvtAdfDiagramDragSource$$;
      }
      $DvtScrollbarBackground$$.x = ($DvtScrollbar$$ - $DvtScrollbarBackground$$.width) / 2;
      $DvtScrollbarBackground$$.y = ($DvtScrollbarEvent$$ - $DvtScrollbarBackground$$.height) / 2;
    }
  };
  $dvt$$1$$.$PanelCardComboBoxItem$.prototype.$createItemState$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$$$createItemState$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $bSaveIconSpace$$3$$, $DvtScrollbarArrow$$) {
    var $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$.comboBox, "itemHeight", 0), $imagePadding$$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$.comboBox, "imagePadding", 0), $itemPadding$$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$.comboBox, "itemPadding", 0), $controlButtonWidth$$ = $dvt$$1$$.$ButtonLAFUtils$.$CONTROL_BUTTON_WIDTH$, $DvtAdfDiagramKeyboardHandler$$ = $dvt$$1$$.$ButtonLAFUtils$.$CONTROL_BUTTON_HEIGHT$, $DvtAdfDiagramDropTarget$$ = 
    new $dvt$$1$$.$Container$($DvtScrollbarBackground$$), $DvtAdfDiagramNodeEndpoint$$ = null, $DvtItemListEvent$$ = null, $DvtPaletteEventManager$$ = null;
    null != $DvtAdfDiagramDragSource$$ && 0 < $DvtAdfDiagramDragSource$$.length && ($DvtAdfDiagramNodeEndpoint$$ = new $dvt$$1$$.Image(this.$getCtx$(), this.$getIcon$(), $imagePadding$$, $imagePadding$$, $controlButtonWidth$$ - 2 * $imagePadding$$, $DvtAdfDiagramKeyboardHandler$$ - 2 * $imagePadding$$));
    null != $DvtScrollbarEvent$$ && ($DvtItemListEvent$$ = $dvt$$1$$.$PanelCardComboBoxItem$.$createLabelText$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$), $DvtPaletteEventManager$$ = $DvtItemListEvent$$.$measureDimensions$());
    0 > $DvtScrollbarArrow$$ && ($DvtScrollbarArrow$$ = $DvtPaletteEventManager$$ ? $DvtPaletteEventManager$$.$w$ + 2 * $itemPadding$$ : 0, $DvtScrollbarArrow$$ += $bSaveIconSpace$$3$$ ? $controlButtonWidth$$ + $itemPadding$$ : 0);
    $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramControlPanelLAFUtils$.$createPanelCardSyncItemState$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, this.$_styleMap$, this.$_images$);
    $DvtAdfDiagramDropTarget$$.$addChild$($DvtScrollbar$$);
    $DvtScrollbar$$ = 0;
    $DvtAdfDiagramNodeEndpoint$$ && ($DvtScrollbar$$ = $dvt$$1$$.$Agent$.$isRightToLeft$($DvtScrollbarBackground$$) ? $DvtScrollbarArrow$$ - $controlButtonWidth$$ - $itemPadding$$ : $itemPadding$$, $DvtAdfDiagramNodeEndpoint$$.$setTranslate$($DvtScrollbar$$, ($DvtAdfDiagramEditorManager$$ - $DvtAdfDiagramKeyboardHandler$$) / 2), $DvtAdfDiagramDropTarget$$.$addChild$($DvtAdfDiagramNodeEndpoint$$), $dvt$$1$$.$ImageLoader$.$loadImage$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$, $dvt$$1$$.$Obj$.$createCallback$(this, 
    this.$onIconLoaded$)));
    null != $DvtItemListEvent$$ && ($DvtScrollbar$$ = $dvt$$1$$.$Agent$.$isRightToLeft$($DvtScrollbarBackground$$) ? $bSaveIconSpace$$3$$ ? $DvtScrollbarArrow$$ - $DvtPaletteEventManager$$.$w$ - 2 * $itemPadding$$ - $controlButtonWidth$$ : $DvtScrollbarArrow$$ - $DvtPaletteEventManager$$.$w$ - $itemPadding$$ : $bSaveIconSpace$$3$$ ? 2 * $itemPadding$$ + $controlButtonWidth$$ : $itemPadding$$, $DvtItemListEvent$$.$setTranslate$($DvtScrollbar$$, ($DvtAdfDiagramEditorManager$$ - $DvtPaletteEventManager$$.$h$) / 
    2), $DvtAdfDiagramDropTarget$$.$addChild$($DvtItemListEvent$$));
    return $DvtAdfDiagramDropTarget$$;
  };
  $dvt$$1$$.$PanelCardComboBoxItem$.$createLabelText$ = function $$dvt$$1$$$$PanelCardComboBoxItem$$$createLabelText$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$OutputText$($DvtScrollbarBackground$$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$;
    $DvtAdfDiagramDragSource$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FONT_SIZE$, $dvt$$1$$.$AfStyleUtils$.$getDefaultFontSize$());
    $DvtAdfDiagramDragSource$$.$setStyle$($dvt$$1$$.$CSSStyle$.$FONT_FAMILY$, $dvt$$1$$.$AfStyleUtils$.$getDefaultFontFamily$());
    $DvtScrollbarEvent$$.$setCSSStyle$($DvtAdfDiagramDragSource$$);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramAutomationBase$ = function $$dvt$$1$$$$AdfDiagramAutomationBase$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramAutomationBase$, $dvt$$1$$.$Automation$, "dvt.AdfDiagramAutomationBase");
  $dvt$$1$$.$AdfDiagramAutomationBase$.prototype.Init = function $$dvt$$1$$$$AdfDiagramAutomationBase$$$Init$($dvt$$1$$) {
    this.$_diagram$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramAutomationBase$.prototype.$getComponent$ = function $$dvt$$1$$$$AdfDiagramAutomationBase$$$$getComponent$$() {
    return this.$_diagram$;
  };
  $dvt$$1$$.$AdfDiagramAutomationBase$.prototype.$FindAfComponent$ = function $$dvt$$1$$$$AdfDiagramAutomationBase$$$$FindAfComponent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = null;
    $DvtScrollbarBackground$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbarBackground$$, $DvtScrollbar$$));
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$AdfDiagramAutomationBase$.prototype.$CreateControlPanelSubId$ = function $$dvt$$1$$$$AdfDiagramAutomationBase$$$$CreateControlPanelSubId$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = "controlPanel";
    $dvt$$1$$ && ($DvtScrollbar$$ += "#" + $dvt$$1$$);
    $DvtScrollbarBackground$$ && ($DvtScrollbar$$ += ":" + $DvtScrollbarBackground$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$AdfDiagramAutomationBase$.prototype.$GetControlPanelSubId$ = function $$dvt$$1$$$$AdfDiagramAutomationBase$$$$GetControlPanelSubId$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getEventManager$().$GetLogicalObject$($DvtScrollbar$$);
      if ($DvtScrollbarEvent$$ && $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$Button$) {
        for (var $DvtAdfDiagramDragSource$$ = ["disclosure", "zoomIn", "zoomOut", "zoomToFit"], $idx$$2$$ = 0;$idx$$2$$ < $DvtAdfDiagramDragSource$$.length;$idx$$2$$++) {
          if ($DvtScrollbarBackground$$.$getActionDisplayable$($DvtAdfDiagramDragSource$$[$idx$$2$$]) === $DvtScrollbarEvent$$) {
            return this.$CreateControlPanelSubId$($DvtAdfDiagramDragSource$$[$idx$$2$$]);
          }
        }
      }
    }
    return null;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramAutomation$$, $dvt$$1$$.$AdfDiagramAutomationBase$, "DvtAdfDiagramAutomation");
  $DvtAdfDiagramAutomation$$.prototype.$GetSubIdForDomElement$ = function $$DvtAdfDiagramAutomation$$$$$GetSubIdForDomElement$$($DvtScrollbarBackground$$) {
    if (!$DvtScrollbarBackground$$) {
      return null;
    }
    var $DvtScrollbar$$ = this.$_getSubComponent$($DvtScrollbarBackground$$);
    if (!$DvtScrollbar$$) {
      return null;
    }
    for (var $DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$($DvtScrollbarBackground$$);$DvtScrollbarBackground$$ && !($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagram$);) {
      if ($DvtScrollbar$$ instanceof $dvt$$1$$.$AdfDiagramNode$) {
        if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$) {
          return this.$_createSubId$("node", $DvtScrollbar$$.getData().$getRowIndex$());
        }
        var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$Button$ && "disclosure" == $DvtScrollbarBackground$$.getId() ? "disclosure" : null;
        if ($DvtScrollbarEvent$$ || $DvtAdfDiagramDragSource$$) {
          return this.$_createSubId$("node", $DvtScrollbar$$.getData().$getRowIndex$(), $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.getId() : null, $DvtAdfDiagramDragSource$$);
        }
      } else {
        if ($DvtScrollbar$$ instanceof $dvt$$1$$.$AdfDiagramLink$) {
          return this.$_createSubId$("link", $DvtScrollbar$$.getData().$getRowIndex$(), $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$.getId() : null);
        }
        if ($DvtScrollbar$$ instanceof $dvt$$1$$.$AdfDiagram$) {
          if ($DvtScrollbarBackground$$ instanceof $DvtAdfDiagramFlyOutButton$$) {
            var $node$$121_parent$$23_subId$$1$$ = this.$getComponent$().$getNodeById$(this.$getComponent$().$_transientToolbarDataId$);
            if ($node$$121_parent$$23_subId$$1$$) {
              return $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getId(), $DvtAdfDiagramDragSource$$ = "unstacking" == $DvtScrollbarBackground$$ || "restacking" == $DvtScrollbarBackground$$ ? "stacking" : $DvtScrollbarBackground$$, this.$_createSubId$("node", $node$$121_parent$$23_subId$$1$$.getData().$getRowIndex$(), null, $DvtAdfDiagramDragSource$$);
            }
          }
          if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$Button$ && "restore" == $DvtScrollbarBackground$$.getId()) {
            return this.$_createSubId$("restore");
          }
          $node$$121_parent$$23_subId$$1$$ = $DvtScrollbarBackground$$.getParent();
          if ($node$$121_parent$$23_subId$$1$$ instanceof $dvt$$1$$.$Breadcrumbs$) {
            return this.$_createSubId$("breadcrumbs", $node$$121_parent$$23_subId$$1$$.$getCrumbIndex$($DvtScrollbarBackground$$));
          }
        } else {
          if ($DvtScrollbar$$ instanceof $dvt$$1$$.$AdfDiagramControlPanel$ && ($node$$121_parent$$23_subId$$1$$ = this.$GetControlPanelSubId$($DvtScrollbarBackground$$))) {
            return $node$$121_parent$$23_subId$$1$$;
          }
        }
      }
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getParent();
    }
    return null;
  };
  $DvtAdfDiagramAutomation$$.prototype.$GetControlPanelSubId$ = function $$DvtAdfDiagramAutomation$$$$$GetControlPanelSubId$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getComponent$().$_panZoomCanvas$.$_controlPanel$;
    if (!$DvtScrollbar$$ || !$DvtScrollbarBackground$$) {
      return null;
    }
    var $DvtScrollbarEvent$$ = $DvtAdfDiagramAutomation$$.$superclass$.$GetControlPanelSubId$.call(this, $DvtScrollbar$$, $DvtScrollbarBackground$$);
    if (!$DvtScrollbarEvent$$ && ($DvtScrollbar$$ = $DvtScrollbar$$.$getActionDisplayable$("viewMenu"))) {
      if ($DvtScrollbarBackground$$ === $DvtScrollbar$$) {
        $DvtScrollbarEvent$$ = this.$CreateControlPanelSubId$("viewMenu");
      } else {
        if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$PanelCardComboBoxItem$) {
          for (var $DvtScrollbar$$ = $DvtScrollbar$$.getParent().$getItems$(), $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbar$$.length;$DvtAdfDiagramDragSource$$++) {
            if ($DvtScrollbar$$[$DvtAdfDiagramDragSource$$] === $DvtScrollbarBackground$$) {
              return this.$CreateControlPanelSubId$("viewMenu", this.$getComponent$().$convertIndexToPanelCardId$($DvtAdfDiagramDragSource$$));
            }
          }
        }
      }
    }
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramAutomation$$.prototype.$_getSubComponent$ = function $$DvtAdfDiagramAutomation$$$$$_getSubComponent$$($DvtScrollbarBackground$$) {
    for (;$DvtScrollbarBackground$$;) {
      if ($DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagram$ || $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ || $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramLink$ || $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramControlPanel$) {
        return $DvtScrollbarBackground$$;
      }
      if (!$DvtScrollbarBackground$$.getParent) {
        break;
      }
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getParent();
    }
    return null;
  };
  $DvtAdfDiagramAutomation$$.prototype.$getDomElementForSubId$ = function $$DvtAdfDiagramAutomation$$$$$getDomElementForSubId$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_parseSubId$($dvt$$1$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$.component, $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.index;
    $dvt$$1$$ = $DvtScrollbarBackground$$.action;
    var $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.stampId, $displayable$$11$$ = null;
    "link" == $DvtScrollbar$$ ? $displayable$$11$$ = this.$_findLinkDisplayable$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$) : "node" == $DvtScrollbar$$ ? $displayable$$11$$ = this.$_findNodeDisplayable$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$, $dvt$$1$$) : "breadcrumbs" == $DvtScrollbar$$ ? $displayable$$11$$ = this.$getComponent$().$getBreadcrumbs$().$getCrumb$($DvtScrollbarEvent$$) : "restore" == $DvtScrollbar$$ ? $displayable$$11$$ = this.$getComponent$().$_restoreButton$.$getChildAt$(0) : 
    "controlPanel" == $DvtScrollbar$$ && ($DvtScrollbar$$ = this.$getComponent$().$_panZoomCanvas$.$_controlPanel$) && $dvt$$1$$ && ($displayable$$11$$ = $DvtScrollbar$$.$getActionDisplayable$($dvt$$1$$, $DvtScrollbarBackground$$));
    return $displayable$$11$$ ? $displayable$$11$$.$getElem$() : null;
  };
  $DvtAdfDiagramAutomation$$.prototype.$_findLinkDisplayable$ = function $$DvtAdfDiagramAutomation$$$$$_findLinkDisplayable$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$getComponent$().$GetLinkByRowIndex$($DvtScrollbarBackground$$);
    if ($DvtScrollbarEvent$$) {
      if ($DvtScrollbar$$) {
        var $DvtAdfDiagramDragSource$$, $endConnector$$ = $DvtScrollbarEvent$$.$_endConnector$;
        if (($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$($endConnector$$)) && $DvtAdfDiagramDragSource$$.getId() == $DvtScrollbar$$) {
          return $endConnector$$;
        }
        $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$_startConnector$;
        if (($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$($DvtScrollbarEvent$$)) && $DvtAdfDiagramDragSource$$.getId() == $DvtScrollbar$$) {
          return $DvtScrollbarEvent$$;
        }
      } else {
        return $DvtScrollbarEvent$$;
      }
    }
    return null;
  };
  $DvtAdfDiagramAutomation$$.prototype.$_findNodeDisplayable$ = function $$DvtAdfDiagramAutomation$$$$$_findNodeDisplayable$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($dvt$$1$$ = this.$getComponent$().$GetNodeByRowIndex$($dvt$$1$$)) {
      if ($DvtScrollbarBackground$$) {
        if ($DvtScrollbarBackground$$ = $dvt$$1$$.$getAfComponent$($DvtScrollbarBackground$$)) {
          return $DvtScrollbarBackground$$.$_bgShape$;
        }
      } else {
        return $DvtScrollbar$$ ? "disclosure" == $DvtScrollbar$$ ? $dvt$$1$$.$_containerBadge$ : $dvt$$1$$.$getFlyOutButtonById$($DvtScrollbar$$) : $dvt$$1$$;
      }
    }
    return null;
  };
  $DvtAdfDiagramAutomation$$.prototype.$_parseSubId$ = function $$DvtAdfDiagramAutomation$$$$$_parseSubId$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = $dvt$$1$$, $DvtScrollbar$$ = -1, $DvtScrollbarEvent$$ = null, $action$$5$$ = null, $DvtAdfDiagramDragSource$$ = $dvt$$1$$.substring(0, $dvt$$1$$.indexOf("["));
    if ($DvtAdfDiagramDragSource$$) {
      switch($DvtAdfDiagramDragSource$$) {
        case "node":
        ;
        case "link":
        ;
        case "breadcrumbs":
          $DvtScrollbarBackground$$ = $DvtAdfDiagramDragSource$$;
          break;
        default:
          $DvtScrollbarBackground$$ = null;
      }
      $DvtScrollbar$$ = parseInt($dvt$$1$$.substring($dvt$$1$$.indexOf("[") + 1, $dvt$$1$$.indexOf("]")));
    } else {
      0 == $DvtScrollbarBackground$$.indexOf("controlPanel") && ($DvtScrollbarBackground$$ = "controlPanel");
    }
    if ("link" == $DvtScrollbarBackground$$ || "node" == $DvtScrollbarBackground$$) {
      if ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.indexOf(":"), -1 !== $DvtAdfDiagramDragSource$$) {
        $DvtScrollbarEvent$$ = $dvt$$1$$.substring($DvtAdfDiagramDragSource$$ + 1);
      } else {
        var $DvtScrollbarArrow$$ = $dvt$$1$$.indexOf("#");
        -1 !== $DvtScrollbarArrow$$ && ($action$$5$$ = $dvt$$1$$.substring($DvtScrollbarArrow$$ + 1));
      }
    } else {
      "controlPanel" == $DvtScrollbarBackground$$ && ($DvtScrollbarArrow$$ = $dvt$$1$$.indexOf("#"), -1 !== $DvtScrollbarArrow$$ && ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.indexOf(":"), -1 !== $DvtAdfDiagramDragSource$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.substring($DvtAdfDiagramDragSource$$ + 1)), $action$$5$$ = -1 != $DvtAdfDiagramDragSource$$ ? $dvt$$1$$.substring($DvtScrollbarArrow$$ + 1, $DvtAdfDiagramDragSource$$) : $dvt$$1$$.substring($DvtScrollbarArrow$$ + 1)));
    }
    return {component:$DvtScrollbarBackground$$, index:$DvtScrollbar$$, stampId:$DvtScrollbarEvent$$, action:$action$$5$$};
  };
  $DvtAdfDiagramAutomation$$.prototype.$_createSubId$ = function $$DvtAdfDiagramAutomation$$$$$_createSubId$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    null != $DvtScrollbarBackground$$ && ($dvt$$1$$ = $dvt$$1$$ + "[" + $DvtScrollbarBackground$$ + "]");
    $DvtScrollbar$$ ? $dvt$$1$$ = $dvt$$1$$ + ":" + $DvtScrollbar$$ : $DvtScrollbarEvent$$ && ($dvt$$1$$ = $dvt$$1$$ + "#" + $DvtScrollbarEvent$$);
    return $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagramChangeLinkEvent$ = function $$dvt$$1$$$$AdfDiagramChangeLinkEvent$$($DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$.$AdfDiagramChangeLinkEvent$.$TYPE$);
    this.$_link$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramChangeLinkEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramChangeLinkEvent");
  $dvt$$1$$.$AdfDiagramChangeLinkEvent$.$TYPE$ = "diagramChangeLinkEvent";
  $dvt$$1$$.$AdfDiagramChangeLinkEvent$.prototype.$getLink$ = function $$dvt$$1$$$$AdfDiagramChangeLinkEvent$$$$getLink$$() {
    return this.$_link$;
  };
  $dvt$$1$$.$AdfDiagramCreateLinkEvent$ = function $$dvt$$1$$$$AdfDiagramCreateLinkEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$.$AdfDiagramCreateLinkEvent$.$TYPE$);
    this.$_source$ = $DvtScrollbarBackground$$;
    this.$_destination$ = $DvtScrollbar$$;
    this.$_paletteId$ = $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramCreateLinkEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramCreateLinkEvent");
  $dvt$$1$$.$AdfDiagramCreateLinkEvent$.$TYPE$ = "diagramCreateLinkEvent";
  $dvt$$1$$.$AdfDiagramCreateLinkEvent$.prototype.$getSource$ = function $$dvt$$1$$$$AdfDiagramCreateLinkEvent$$$$getSource$$() {
    return this.$_source$;
  };
  $dvt$$1$$.$AdfDiagramCreateLinkEvent$.prototype.$getDestination$ = function $$dvt$$1$$$$AdfDiagramCreateLinkEvent$$$$getDestination$$() {
    return this.$_destination$;
  };
  $dvt$$1$$.$AdfDiagramCreateNodeEvent$ = function $$dvt$$1$$$$AdfDiagramCreateNodeEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.Init($dvt$$1$$.$AdfDiagramCreateNodeEvent$.$TYPE$);
    this.$_paletteId$ = $DvtScrollbarBackground$$;
    this.$_parentId$ = $DvtScrollbar$$;
    this.$_position$ = $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramCreateNodeEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramCreateNodeEvent");
  $dvt$$1$$.$AdfDiagramCreateNodeEvent$.$TYPE$ = "nodeCreate";
  $dvt$$1$$.$AdfDiagramCreateNodeEvent$.prototype.$getParentId$ = function $$dvt$$1$$$$AdfDiagramCreateNodeEvent$$$$getParentId$$() {
    return this.$_parentId$;
  };
  $dvt$$1$$.$AdfDiagramCreateNodeEvent$.prototype.$getPosition$ = function $$dvt$$1$$$$AdfDiagramCreateNodeEvent$$$$getPosition$$() {
    return this.$_position$;
  };
  $dvt$$1$$.$AdfDiagramDeleteNodeEvent$ = function $$dvt$$1$$$$AdfDiagramDeleteNodeEvent$$($DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$.$AdfDiagramDeleteNodeEvent$.$TYPE$);
    this.$_nodes$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramDeleteNodeEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramDeleteNodeEvent");
  $dvt$$1$$.$AdfDiagramDeleteNodeEvent$.$TYPE$ = "diagramNodeDeleteEvent";
  $dvt$$1$$.$AdfDiagramDeleteNodeEvent$.prototype.$getNodes$ = function $$dvt$$1$$$$AdfDiagramDeleteNodeEvent$$$$getNodes$$() {
    return this.$_nodes$;
  };
  $dvt$$1$$.$AdfDiagramDeleteLinkEvent$ = function $$dvt$$1$$$$AdfDiagramDeleteLinkEvent$$($DvtScrollbarBackground$$) {
    this.Init($dvt$$1$$.$AdfDiagramDeleteLinkEvent$.$TYPE$);
    this.$_links$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramDeleteLinkEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramDeleteLinkEvent");
  $dvt$$1$$.$AdfDiagramDeleteLinkEvent$.$TYPE$ = "diagramLinkDeleteEvent";
  $dvt$$1$$.$AdfDiagramDeleteLinkEvent$.prototype.$getLinks$ = function $$dvt$$1$$$$AdfDiagramDeleteLinkEvent$$$$getLinks$$() {
    return this.$_links$;
  };
  var $DvtAdfDiagramEndpointUtils$$ = {};
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramEndpointUtils$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramEndpointUtils");
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$ = 7.5;
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_STROKE$ = 2;
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_ENA$ = "endpointNodeBorderEna";
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_ENA$ = "endpointNodeBgEna";
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_DWN$ = "endpointNodeBorderDwn";
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_DWN$ = "endpointNodeBgDwn";
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BORDER_STROKE$ = 1;
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BORDER_COLOR_ATTR$ = "endpointLinkBorder";
  $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BG_COLOR_ATTR$ = "endpointLinkBg";
  $DvtAdfDiagramEndpointUtils$$.$createEndpointShape$ = function $$DvtAdfDiagramEndpointUtils$$$$createEndpointShape$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $badgeRad_downShape$$ = $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$, $DvtScrollbarArrow$$ = $dvt$$1$$.$Agent$.$isTouchDevice$() ? 2 * $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$ : $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$ - $badgeRad_downShape$$;
    $DvtScrollbarEvent$$ = "linkhandle_" + $DvtScrollbar$$ + "_" + $DvtScrollbarEvent$$;
    var $overState$$4_strokeWidth$$1$$ = $DvtAdfDiagramEndpointUtils$$.$getStrokeWidth$($DvtScrollbar$$), $overShape_strokeEna$$ = $DvtAdfDiagramEndpointUtils$$.$getStrokeColor$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_ENABLED$, $DvtAdfDiagramDragSource$$), $downState$$4_strokeDwn$$ = $DvtAdfDiagramEndpointUtils$$.$getStrokeColor$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_DOWN$, $DvtAdfDiagramDragSource$$), $DvtAdfDiagramKeyboardHandler$$ = $DvtAdfDiagramEndpointUtils$$.$getFillColor$($DvtScrollbar$$, 
    $dvt$$1$$.$Button$.$STATE_ENABLED$, $DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramEndpointUtils$$.$getFillColor$($DvtScrollbar$$, $dvt$$1$$.$Button$.$STATE_DOWN$, $DvtAdfDiagramDragSource$$);
    $DvtScrollbar$$ = $DvtAdfDiagramEndpointUtils$$.$_createShape$($DvtScrollbarBackground$$, $badgeRad_downShape$$, $DvtAdfDiagramKeyboardHandler$$, $overShape_strokeEna$$, $overState$$4_strokeWidth$$1$$, $DvtAdfDiagramEditorManager$$);
    $overShape_strokeEna$$ = $DvtAdfDiagramEndpointUtils$$.$_createShape$($DvtScrollbarBackground$$, $badgeRad_downShape$$, $DvtAdfDiagramKeyboardHandler$$, $overShape_strokeEna$$, $overState$$4_strokeWidth$$1$$, $DvtAdfDiagramEditorManager$$);
    $badgeRad_downShape$$ = $DvtAdfDiagramEndpointUtils$$.$_createShape$($DvtScrollbarBackground$$, $badgeRad_downShape$$, $DvtAdfDiagramDragSource$$, $downState$$4_strokeDwn$$, $overState$$4_strokeWidth$$1$$, $DvtAdfDiagramEditorManager$$);
    $DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$);
    $DvtAdfDiagramEditorManager$$.$addChild$($DvtAdfDiagramEndpointUtils$$.$_createUnderlay$($DvtScrollbarBackground$$, $DvtScrollbarArrow$$));
    $DvtAdfDiagramEditorManager$$.$addChild$($DvtScrollbar$$);
    $overState$$4_strokeWidth$$1$$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$);
    $overState$$4_strokeWidth$$1$$.$addChild$($DvtAdfDiagramEndpointUtils$$.$_createUnderlay$($DvtScrollbarBackground$$, $DvtScrollbarArrow$$));
    $overState$$4_strokeWidth$$1$$.$addChild$($overShape_strokeEna$$);
    $downState$$4_strokeDwn$$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$);
    $downState$$4_strokeDwn$$.$addChild$($DvtAdfDiagramEndpointUtils$$.$_createUnderlay$($DvtScrollbarBackground$$, $DvtScrollbarArrow$$));
    $downState$$4_strokeDwn$$.$addChild$($badgeRad_downShape$$);
    return new $dvt$$1$$.$Button$($DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$, $overState$$4_strokeWidth$$1$$, $downState$$4_strokeDwn$$, null, $DvtScrollbarEvent$$);
  };
  $DvtAdfDiagramEndpointUtils$$.$getEndpointOffset$ = function $$DvtAdfDiagramEndpointUtils$$$$getEndpointOffset$$() {
    return $dvt$$1$$.$Agent$.$isTouchDevice$() ? 2 * $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$ : $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_RADIUS$;
  };
  $DvtAdfDiagramEndpointUtils$$.$_createShape$ = function $$DvtAdfDiagramEndpointUtils$$$$_createShape$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $strokeWidth$$2$$, $DvtScrollbarArrow$$) {
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Circle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbar$$, $DvtScrollbar$$);
    $DvtScrollbarBackground$$.$setSolidFill$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$setSolidStroke$($DvtAdfDiagramDragSource$$, 1, $strokeWidth$$2$$);
    $DvtScrollbarBackground$$.$setTranslate$($DvtScrollbarArrow$$, $DvtScrollbarArrow$$);
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramEndpointUtils$$.$_createUnderlay$ = function $$DvtAdfDiagramEndpointUtils$$$$_createUnderlay$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$Circle$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbar$$, $DvtScrollbar$$);
    $DvtScrollbarEvent$$.$setInvisibleFill$();
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramEndpointUtils$$.$getStrokeColor$ = function $$DvtAdfDiagramEndpointUtils$$$$getStrokeColor$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramNode$.$_HOVER_SHADOW_COLOR$;
    if (!$DvtScrollbarEvent$$) {
      return $DvtAdfDiagramDragSource$$;
    }
    if ($DvtScrollbarBackground$$ == $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$) {
      switch($DvtScrollbar$$) {
        case $dvt$$1$$.$Button$.$STATE_ENABLED$:
          $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_ENA$];
          break;
        case $dvt$$1$$.$Button$.$STATE_DOWN$:
          $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_COLOR_ATTR_DWN$];
          break;
        default:
          $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AdfDiagramNode$.$_HOVER_SHADOW_COLOR$;
      }
    } else {
      $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BORDER_COLOR_ATTR$];
    }
    return $DvtAdfDiagramDragSource$$;
  };
  $DvtAdfDiagramEndpointUtils$$.$getFillColor$ = function $$DvtAdfDiagramEndpointUtils$$$$getFillColor$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if (!$DvtScrollbarEvent$$) {
      return "#FFFFFF";
    }
    if ($DvtScrollbarBackground$$ == $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$) {
      switch($DvtScrollbar$$) {
        case $dvt$$1$$.$Button$.$STATE_ENABLED$:
          $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_ENA$];
          break;
        case $dvt$$1$$.$Button$.$STATE_DOWN$:
          $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BG_COLOR_ATTR_DWN$];
          break;
        default:
          $DvtScrollbarBackground$$ = "#FFFFFF";
      }
    } else {
      $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$[$DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BG_COLOR_ATTR$];
    }
    return $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramEndpointUtils$$.$getStrokeWidth$ = function $$DvtAdfDiagramEndpointUtils$$$$getStrokeWidth$$($dvt$$1$$) {
    return $dvt$$1$$ == $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$ ? $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_NODE_BORDER_STROKE$ : $DvtAdfDiagramEndpointUtils$$.$ENDPOINT_LINK_BORDER_STROKE$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramLinkEndpoint$$, $dvt$$1$$.$Container$, "DvtAdfDiagramLinkEndpoint");
  $DvtAdfDiagramLinkEndpoint$$.$START_TYPE$ = "start";
  $DvtAdfDiagramLinkEndpoint$$.$END_TYPE$ = "end";
  $DvtAdfDiagramLinkEndpoint$$.prototype.Init = function $$DvtAdfDiagramLinkEndpoint$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $id$$44$$, $DvtScrollbarArrow$$) {
    $DvtAdfDiagramLinkEndpoint$$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, null, $id$$44$$ + "_" + $DvtScrollbarEvent$$ + "Hdl");
    this.$_link$ = $DvtScrollbar$$;
    this.$_type$ = $DvtScrollbarEvent$$;
    this.$_shape$ = $DvtAdfDiagramEndpointUtils$$.$createEndpointShape$(this.$getCtx$(), this.$_type$, $id$$44$$, $DvtScrollbarArrow$$);
    this.$_endpointOffset$ = $DvtAdfDiagramEndpointUtils$$.$getEndpointOffset$();
    this.$addChild$(this.$_shape$);
    this.setPosition($DvtAdfDiagramDragSource$$);
    $DvtScrollbarBackground$$ = this.$_link$.$GetDiagram$().$getEventManager$();
    this.$_shape$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, $DvtScrollbarBackground$$.$OnMouseDown$, !0, $DvtScrollbarBackground$$);
    this.$_shape$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, $DvtScrollbarBackground$$.$OnMouseUp$, !0, $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$associate$(this.$_shape$, this);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$isLinkEndpoint$ = function $$DvtAdfDiagramLinkEndpoint$$$$$isLinkEndpoint$$() {
    return !0;
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$HandleChangeStart$ = function $$DvtAdfDiagramLinkEndpoint$$$$$HandleChangeStart$$($dvt$$1$$) {
    this.$_link$.$startLinkChange$(this.$_type$);
    this.$RenderTempLink$($dvt$$1$$);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.setPosition = function $$DvtAdfDiagramLinkEndpoint$$$$setPosition$($dvt$$1$$) {
    this.$_shape$.$setTranslate$($dvt$$1$$.x - this.$_endpointOffset$, $dvt$$1$$.y - this.$_endpointOffset$);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$RenderTempLink$ = function $$DvtAdfDiagramLinkEndpoint$$$$$RenderTempLink$$($dvt$$1$$) {
    this.$_link$.$updateLinkChange$(this.$_type$, $dvt$$1$$);
    this.$setMouseEnabled$(!1);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$HandleChangeMove$ = function $$DvtAdfDiagramLinkEndpoint$$$$$HandleChangeMove$$($dvt$$1$$) {
    this.$RenderTempLink$($dvt$$1$$);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$HandleChangeEndNewNode$ = function $$DvtAdfDiagramLinkEndpoint$$$$$HandleChangeEndNewNode$$($dvt$$1$$) {
    this.$_link$.$endLinkChangeNewNode$(this.$_type$, $dvt$$1$$);
    this.$setMouseEnabled$(!0);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$HandleChangeEndRestore$ = function $$DvtAdfDiagramLinkEndpoint$$$$$HandleChangeEndRestore$$() {
    this.$_link$.$endLinkChangeRestore$(this.$_type$);
    this.$setMouseEnabled$(!0);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$isUpdateEnabled$ = function $$DvtAdfDiagramLinkEndpoint$$$$$isUpdateEnabled$$() {
    return this.$_link$.$isUpdateEnabled$();
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$isSelectable$ = function $$DvtAdfDiagramLinkEndpoint$$$$$isSelectable$$() {
    return this.$_link$.$isSelectable$();
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$isSelected$ = function $$DvtAdfDiagramLinkEndpoint$$$$$isSelected$$() {
    return this.$_link$.$isSelected$();
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$setSelected$ = function $$DvtAdfDiagramLinkEndpoint$$$$$setSelected$$($dvt$$1$$) {
    this.$_link$.$setSelected$($dvt$$1$$);
  };
  $DvtAdfDiagramLinkEndpoint$$.prototype.$getLink$ = function $$DvtAdfDiagramLinkEndpoint$$$$$getLink$$() {
    return this.$_link$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramNodeEndpoint$$, $dvt$$1$$.$Container$, "DvtAdfDiagramNodeEndpoint");
  $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$ = "top";
  $DvtAdfDiagramNodeEndpoint$$.prototype.Init = function $$DvtAdfDiagramNodeEndpoint$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    $DvtAdfDiagramNodeEndpoint$$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, null, $DvtScrollbarEvent$$ + "_" + $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$ + "Hdl");
    this.$_type$ = $DvtAdfDiagramNodeEndpoint$$.$NODE_TYPE$;
    this.$_shape$ = $DvtAdfDiagramEndpointUtils$$.$createEndpointShape$(this.$getCtx$(), this.$_type$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$);
    this.$_endpointOffset$ = $DvtAdfDiagramEndpointUtils$$.$getEndpointOffset$();
    this.$_bHovered$ = this.$_bLocked$ = !1;
    this.$addChild$(this.$_shape$);
    $DvtScrollbarBackground$$ = $DvtScrollbar$$.$GetDiagram$().$getEventManager$();
    this.$_shape$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, $DvtScrollbarBackground$$.$OnMouseDown$, !0, $DvtScrollbarBackground$$);
    this.$_shape$.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, $DvtScrollbarBackground$$.$OnMouseUp$, !0, $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$addRolloverType$($DvtAdfDiagramNodeEndpoint$$);
    $DvtScrollbarBackground$$.$associate$(this, this);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.setPosition = function $$DvtAdfDiagramNodeEndpoint$$$$setPosition$($dvt$$1$$) {
    this.$setTranslate$($dvt$$1$$.x - this.$_endpointOffset$, $dvt$$1$$.y - this.$_endpointOffset$);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$getLayoutBounds$ = function $$DvtAdfDiagramNodeEndpoint$$$$$getLayoutBounds$$() {
    return this.$getDimensions$();
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$setVisible$ = function $$DvtAdfDiagramNodeEndpoint$$$$$setVisible$$($dvt$$1$$) {
    this.$_bHovered$ && !$dvt$$1$$ || this.$_bLocked$ || this.$_shape$.$setVisible$($dvt$$1$$);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$setLocked$ = function $$DvtAdfDiagramNodeEndpoint$$$$$setLocked$$($dvt$$1$$) {
    this.$_bLocked$ = $dvt$$1$$;
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$isSelectable$ = function $$DvtAdfDiagramNodeEndpoint$$$$$isSelectable$$() {
    return this.getParent().$isSelectable$();
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$setSelected$ = function $$DvtAdfDiagramNodeEndpoint$$$$$setSelected$$($dvt$$1$$) {
    return this.getParent().$setSelected$($dvt$$1$$);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$isSelected$ = function $$DvtAdfDiagramNodeEndpoint$$$$$isSelected$$() {
    return this.getParent().$isSelected$();
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$hideHoverEffect$ = function $$DvtAdfDiagramNodeEndpoint$$$$$hideHoverEffect$$() {
    this.getParent().$hideHoverEffect$();
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$showRollOverEffect$ = function $$DvtAdfDiagramNodeEndpoint$$$$$showRollOverEffect$$() {
    this.$setHovered$(!0);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$hideRollOverEffect$ = function $$DvtAdfDiagramNodeEndpoint$$$$$hideRollOverEffect$$() {
    this.$setHovered$(!1);
  };
  $DvtAdfDiagramNodeEndpoint$$.prototype.$setHovered$ = function $$DvtAdfDiagramNodeEndpoint$$$$$setHovered$$($dvt$$1$$) {
    this.$_bHovered$ = $dvt$$1$$;
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$isDragAvailable$ = function $$dvt$$1$$$$AdfDiagram$$$$isDragAvailable$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    return this.$_dragSource$.$isDragAvailable$($DvtScrollbar$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getDragTransferable$ = function $$dvt$$1$$$$AdfDiagram$$$$getDragTransferable$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return this.$_dragSource$.$getDragTransferable$($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getDragOverFeedback$ = function $$dvt$$1$$$$AdfDiagram$$$$getDragOverFeedback$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return this.$_dragSource$.$getDragOverFeedback$($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$AdfDiagram$.prototype.$getDragOffset$ = function $$dvt$$1$$$$AdfDiagram$$$$getDragOffset$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    return this.$_dragSource$.$getDragOffset$($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramDragSource$$, $dvt$$1$$.$DragSource$, "DvtAdfDiagramDragSource");
  $DvtAdfDiagramDragSource$$.prototype.Init = function $$DvtAdfDiagramDragSource$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    $DvtAdfDiagramDragSource$$.$superclass$.Init.call(this, $dvt$$1$$);
    this.$_view$ = $DvtScrollbarBackground$$;
  };
  $DvtAdfDiagramDragSource$$.prototype.$isDragAvailable$ = function $$DvtAdfDiagramDragSource$$$$$isDragAvailable$$($dvt$$1$$) {
    return $DvtAdfDiagramDragSource$$.$superclass$.$isDragAvailable$.call(this, $dvt$$1$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramDropTarget$$, $dvt$$1$$.$DropTarget$, "DvtAdfDiagramDropTarget");
  $DvtAdfDiagramDropTarget$$.$_AUTO_PAN_ZONE_SIZE$ = 40;
  $DvtAdfDiagramDropTarget$$.$_AUTO_PAN_TIMER_INTERVAL$ = 50;
  $DvtAdfDiagramDropTarget$$.$_CHECK_AUTO_PAN_TIMER_INTERVAL$ = 300;
  $DvtAdfDiagramDropTarget$$.prototype.Init = function $$DvtAdfDiagramDropTarget$$$$Init$($DvtScrollbarBackground$$) {
    this.$_view$ = $DvtScrollbarBackground$$;
    this.$_autoPanTimer$ = this.$_mousePoint$ = this.$_centerPoint$ = null;
    new $dvt$$1$$.$Timer$(this.$_view$.$getCtx$(), $DvtAdfDiagramDropTarget$$.$_CHECK_AUTO_PAN_TIMER_INTERVAL$, this.$CheckAutoPan$, this);
    this.$_acceptDragMouseY$ = this.$_acceptDragMouseX$ = 0;
  };
  $DvtAdfDiagramDropTarget$$.prototype.$CheckAutoPan$ = function $$DvtAdfDiagramDropTarget$$$$$CheckAutoPan$$() {
    var $dvt$$1$$ = this.$_view$.getWidth(), $DvtScrollbarBackground$$ = this.$_view$.getHeight(), $DvtScrollbar$$ = this.$_acceptDragMouseX$, $DvtScrollbarEvent$$ = this.$_acceptDragMouseY$, $zoneSize$$ = $DvtAdfDiagramDropTarget$$.$_AUTO_PAN_ZONE_SIZE$;
    $DvtScrollbar$$ < $zoneSize$$ || $DvtScrollbarEvent$$ < $zoneSize$$ || $DvtScrollbar$$ > $dvt$$1$$ - $zoneSize$$ || $DvtScrollbarEvent$$ > $DvtScrollbarBackground$$ - $zoneSize$$ ? this.$StartAutoPan$($DvtScrollbar$$, $DvtScrollbarEvent$$) : this.$StopAutoPan$();
  };
  $DvtAdfDiagramDropTarget$$.prototype.$StartAutoPan$ = function $$DvtAdfDiagramDropTarget$$$$$StartAutoPan$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_mousePoint$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if (!this.$_autoPanTimer$) {
      var $DvtScrollbarEvent$$ = this.$_view$.getWidth(), $DvtAdfDiagramDragSource$$ = this.$_view$.getHeight();
      this.$_centerPoint$ = new $dvt$$1$$.$Point$(.5 * $DvtScrollbarEvent$$, .5 * $DvtAdfDiagramDragSource$$);
      this.$_autoPanTimer$ = new $dvt$$1$$.$Timer$(this.$_view$.$getCtx$(), $DvtAdfDiagramDropTarget$$.$_AUTO_PAN_TIMER_INTERVAL$, this.$HandleAutoPanTimer$, this);
      this.$_autoPanTimer$.start();
    }
  };
  $DvtAdfDiagramDropTarget$$.prototype.$StopAutoPan$ = function $$DvtAdfDiagramDropTarget$$$$$StopAutoPan$$() {
    this.$_centerPoint$ = this.$_mousePoint$ = null;
    this.$_autoPanTimer$ && (this.$_autoPanTimer$.stop(), this.$_autoPanTimer$ = null);
  };
  $DvtAdfDiagramDropTarget$$.prototype.$HandleAutoPanTimer$ = function $$DvtAdfDiagramDropTarget$$$$$HandleAutoPanTimer$$() {
    var $dvt$$1$$ = Math.atan2(this.$_centerPoint$.y - this.$_mousePoint$.y, this.$_centerPoint$.x - this.$_mousePoint$.x);
    this.$_view$.$_panZoomCanvas$.$panBy$(15 * Math.cos($dvt$$1$$), 15 * Math.sin($dvt$$1$$));
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramEditorManager$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramEditorManager");
  $DvtAdfDiagramEditorManager$$.prototype.$processDragStart$ = function $$DvtAdfDiagramEditorManager$$$$$processDragStart$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = {}, $DvtAdfDiagramDragSource$$ = !1;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ && ($DvtAdfDiagramDragSource$$ = !0);
    var $result$$1_resultCreate$$1$$ = this.$processLinkUpdateStart$($DvtScrollbarBackground$$, $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$ || $result$$1_resultCreate$$1$$;
    this.$_diagram$.$_linkToolEnabled$ && ($result$$1_resultCreate$$1$$ = this.$processLinkCreateStart$($DvtScrollbarBackground$$), $DvtAdfDiagramDragSource$$ = $DvtAdfDiagramDragSource$$ || $result$$1_resultCreate$$1$$);
    this.$_diagram$.$_stickyNodeEnabled$ && this.$processStickyNodeCreateStart$();
    $DvtScrollbarEvent$$.$dragStarted$ = $DvtAdfDiagramDragSource$$;
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processDragMove$ = function $$DvtAdfDiagramEditorManager$$$$$processDragMove$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$processLinkUpdateMove$($DvtScrollbarBackground$$);
    this.$_diagram$.$_linkToolEnabled$ && this.$processLinkCreateMove$($DvtScrollbarBackground$$);
    this.$_diagram$.$_stickyNodeEnabled$ && this.$processStickyNodeCreateMove$();
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processDragEnd$ = function $$DvtAdfDiagramEditorManager$$$$$processDragEnd$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = [];
    this.$processLinkUpdateEnd$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$_diagram$.$_linkToolEnabled$ && this.$processLinkCreateEnd$($dvt$$1$$, $DvtScrollbarBackground$$);
    $dvt$$1$$ = {};
    $dvt$$1$$.$events$ = $DvtScrollbarBackground$$;
    return $dvt$$1$$;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processDragCancel$ = function $$DvtAdfDiagramEditorManager$$$$$processDragCancel$$() {
    this.$processLinkUpdateCancel$();
    this.$_diagram$.$_linkToolEnabled$ && this.$processLinkCreateCancel$();
    return {$events$:[]};
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processNodeCreate$ = function $$DvtAdfDiagramEditorManager$$$$$processNodeCreate$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [];
    this.$_diagram$.$_stickyNodeEnabled$ && this.$processStickyNodeCreateEnd$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    var $DvtScrollbarEvent$$ = {};
    $DvtScrollbarEvent$$.$events$ = $DvtScrollbar$$;
    return $DvtScrollbarEvent$$;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkUpdateStart$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkUpdateStart$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if ($dvt$$1$$ && $dvt$$1$$.$isLinkEndpoint$ && $dvt$$1$$.$HandleChangeStart$ && $dvt$$1$$.$isUpdateEnabled$()) {
      var $DvtScrollbar$$ = $dvt$$1$$.$stageToLocal$($DvtScrollbarBackground$$);
      $dvt$$1$$.$HandleChangeStart$($DvtScrollbar$$);
      this.$_dragItems$.push($dvt$$1$$);
      return !0;
    }
    return !1;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkUpdateMove$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkUpdateMove$$($dvt$$1$$) {
    for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_dragItems$.length;$DvtScrollbarBackground$$++) {
      var $DvtScrollbar$$ = this.$_dragItems$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = $DvtScrollbar$$.$stageToLocal$($dvt$$1$$);
      $DvtScrollbar$$.$HandleChangeMove$($DvtScrollbarEvent$$);
    }
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkUpdateEnd$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkUpdateEnd$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < this.$_dragItems$.length;$DvtScrollbarEvent$$++) {
      var $DvtAdfDiagramDragSource$$ = this.$_dragItems$[$DvtScrollbarEvent$$];
      if ($DvtScrollbarBackground$$) {
        var $centerPoint$$4_nNode$$ = $DvtScrollbarBackground$$;
        $DvtScrollbarBackground$$ instanceof $DvtAdfDiagramNodeEndpoint$$ && ($centerPoint$$4_nNode$$ = $DvtScrollbarBackground$$.getParent());
        var $DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$.$getLink$(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$.getData(), $pNode$$1$$ = this.$_diagram$.$getNodeById$($DvtAdfDiagramEditorManager$$.$getStartId$()), $cNode$$1$$ = this.$_diagram$.$getNodeById$($DvtAdfDiagramEditorManager$$.$getEndId$());
        $DvtAdfDiagramDragSource$$.$_type$ == $DvtAdfDiagramLinkEndpoint$$.$START_TYPE$ ? ($DvtAdfDiagramEditorManager$$.$getStartId$(), $DvtAdfDiagramEditorManager$$.$setStartId$($centerPoint$$4_nNode$$.getId()), $pNode$$1$$.$removeOutLinkId$($DvtAdfDiagramEditorManager$$.getId()), $centerPoint$$4_nNode$$.$addOutLinkId$($DvtAdfDiagramEditorManager$$.getId()), $DvtAdfDiagramEditorManager$$.$getStartId$()) : ($DvtAdfDiagramEditorManager$$.$getEndId$(), $DvtAdfDiagramEditorManager$$.$setEndId$($centerPoint$$4_nNode$$.getId()), 
        $cNode$$1$$.$removeInLinkId$($DvtAdfDiagramEditorManager$$.getId()), $centerPoint$$4_nNode$$.$addInLinkId$($DvtAdfDiagramEditorManager$$.getId()), $DvtAdfDiagramEditorManager$$.$getEndId$());
        $centerPoint$$4_nNode$$ = $dvt$$1$$.$AdfDiagramEventManager$.$GetTempLinkPositionOnNode$($DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$);
        $DvtAdfDiagramDragSource$$.$HandleChangeEndNewNode$($centerPoint$$4_nNode$$);
        $DvtScrollbar$$.push(new $dvt$$1$$.$AdfDiagramChangeLinkEvent$($DvtScrollbarArrow$$.getId()));
      } else {
        $DvtAdfDiagramDragSource$$.$HandleChangeEndRestore$();
      }
    }
    this.$_dragItems$ = [];
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkUpdateCancel$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkUpdateCancel$$() {
    for (var $dvt$$1$$ = 0;$dvt$$1$$ < this.$_dragItems$.length;$dvt$$1$$++) {
      this.$_dragItems$[$dvt$$1$$].$HandleChangeEndRestore$();
    }
    this.$_dragItems$ = [];
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkCreateStart$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkCreateStart$$($dvt$$1$$) {
    this.$_linkEndpoint$ = null;
    return $dvt$$1$$ instanceof $DvtAdfDiagramNodeEndpoint$$ ? ($dvt$$1$$.$setLocked$ && $dvt$$1$$.$setLocked$(!0), this.$_linkEndpoint$ = $dvt$$1$$, !0) : !1;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$showLinkCreateStart$ = function $$DvtAdfDiagramEditorManager$$$$$showLinkCreateStart$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$_linkEndpoint$, $DvtScrollbarEvent$$ = $DvtScrollbar$$.getParent().getId(), $DvtAdfDiagramDragSource$$ = new $DvtAdfDiagramLinkData$$;
    $DvtAdfDiagramDragSource$$.setId("tempLink" + this.$_tempLinks$.length);
    $DvtAdfDiagramDragSource$$.$setStartId$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = this.$_diagram$.$getCreateLinkData$();
    $DvtAdfDiagramDragSource$$.$setTemplateId$($DvtScrollbarEvent$$.$linkDef$.getId());
    var $link$$43$$ = new $dvt$$1$$.$AdfDiagramLink$(this.$_context$, $DvtAdfDiagramDragSource$$, this.$_diagram$);
    $link$$43$$.$setLinkDef$(this.$_diagram$.$GetLinkDef$($DvtAdfDiagramDragSource$$.$_templateId$));
    $link$$43$$.$setMouseEnabled$(!1);
    $link$$43$$.$paletteId$ = this.$_diagram$.$moveToDiagramFront$($link$$43$$);
    $DvtScrollbar$$ = $dvt$$1$$.$AdfDiagramEventManager$.$GetTempLinkPositionOnNode$($DvtScrollbar$$, $link$$43$$);
    $DvtScrollbarBackground$$ ? ($DvtScrollbarBackground$$ = $link$$43$$.$stageToLocal$($DvtScrollbarBackground$$), $link$$43$$.$setPoints$([$DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y]), $link$$43$$.$renderLink$()) : $link$$43$$.$setPoints$([$DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbar$$.x, $DvtScrollbar$$.y]);
    $link$$43$$.$paletteId$ = $DvtScrollbarEvent$$.$paletteId$;
    this.$_tempLinks$.push($link$$43$$);
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkCreateMove$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkCreateMove$$($dvt$$1$$) {
    if (this.$_linkEndpoint$) {
      this.$showLinkCreateStart$($dvt$$1$$);
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_tempLinks$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = this.$_tempLinks$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = $DvtScrollbar$$.$stageToLocal$($dvt$$1$$), $oldPoint$$ = $DvtScrollbar$$.$getPoints$();
        $DvtScrollbar$$.$setPoints$([$oldPoint$$[0], $oldPoint$$[1], $DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y]);
      }
    }
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkCreateEnd$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkCreateEnd$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_linkEndpoint$ && this.$_linkEndpoint$.$setLocked$ && (this.$_linkEndpoint$.$setLocked$(!1), this.$_linkEndpoint$.$hideHoverEffect$());
    this.$_linkEndpoint$ = null;
    this.$setLinkCreateWithKeyboard$(!1);
    var $DvtScrollbarEvent$$ = null;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AdfDiagramNode$ ? $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.getId() : $DvtScrollbarBackground$$ instanceof $DvtAdfDiagramNodeEndpoint$$ && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.getParent().getId());
    for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < this.$_tempLinks$.length;$DvtAdfDiagramDragSource$$++) {
      var $newLink$$2$$ = this.$_tempLinks$[$DvtAdfDiagramDragSource$$];
      if ($DvtScrollbarBackground$$ && $DvtScrollbarEvent$$) {
        var $DvtScrollbarArrow$$ = $newLink$$2$$.getData();
        if ($DvtScrollbarEvent$$ != $DvtScrollbarArrow$$.$getStartId$()) {
          var $DvtAdfDiagramEditorManager$$ = "fakeLink" + this.$_fakeLinks$.length;
          $DvtScrollbarArrow$$.setId($DvtAdfDiagramEditorManager$$);
          $DvtScrollbarArrow$$.$setEndId$($DvtScrollbarEvent$$);
          this.$_diagram$.$addLinkData$($DvtScrollbarArrow$$);
          $DvtAdfDiagramEditorManager$$ = this.$_diagram$.$getLinkById$($DvtAdfDiagramEditorManager$$);
          $DvtAdfDiagramEditorManager$$.$setSelectable$(!1);
          var $endPos$$1$$ = $dvt$$1$$.$AdfDiagramEventManager$.$GetTempLinkPositionOnNode$($DvtScrollbarBackground$$, $DvtAdfDiagramEditorManager$$), $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$ = $newLink$$2$$.$getPoints$(), $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$ = new $dvt$$1$$.$Point$($localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$[0], $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$[1]), $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$ = 
          $newLink$$2$$.$localToStage$($localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$), $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$ = $DvtAdfDiagramEditorManager$$.$stageToLocal$($localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$);
          $DvtAdfDiagramEditorManager$$.$setPoints$([$localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$.x, $localSourcePoint_oldPoints$$1_sourcePoint_stageSourcePoint$$.y, $endPos$$1$$.x, $endPos$$1$$.y]);
          $DvtAdfDiagramEditorManager$$.$renderLink$();
          this.$_fakeLinks$.push($DvtAdfDiagramEditorManager$$);
          $DvtScrollbar$$.push(new $dvt$$1$$.$AdfDiagramCreateLinkEvent$($DvtScrollbarArrow$$.$getStartId$(), $DvtScrollbarArrow$$.$getEndId$(), $newLink$$2$$.$paletteId$));
        }
      }
      $newLink$$2$$.getParent().removeChild($newLink$$2$$);
    }
    this.$_tempLinks$ = [];
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkCreateCancel$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkCreateCancel$$() {
    this.$_linkEndpoint$ && this.$_linkEndpoint$.$setLocked$ && (this.$_linkEndpoint$.$setLocked$(!1), this.$_linkEndpoint$.$hideHoverEffect$());
    this.$_linkEndpoint$ = null;
    this.$setLinkCreateWithKeyboard$(!1);
    for (var $dvt$$1$$ = 0;$dvt$$1$$ < this.$_tempLinks$.length;$dvt$$1$$++) {
      var $DvtScrollbarBackground$$ = this.$_tempLinks$[$dvt$$1$$];
      $DvtScrollbarBackground$$.getParent().removeChild($DvtScrollbarBackground$$);
    }
    this.$_tempLinks$ = [];
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processStickyNodeCreateStart$ = function $$DvtAdfDiagramEditorManager$$$$$processStickyNodeCreateStart$$() {
    this.$_stickyNodeStarted$ = !0;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processStickyNodeCreateMove$ = function $$DvtAdfDiagramEditorManager$$$$$processStickyNodeCreateMove$$() {
    this.$_stickyNodeStarted$ = !1;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$createNewNode$ = function $$DvtAdfDiagramEditorManager$$$$$createNewNode$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    if ($DvtScrollbar$$) {
      var $nodeData$$13_pos$$13$$ = new $dvt$$1$$.$AdfDiagramNodeData$, $DvtScrollbarArrow$$ = "fakeNode" + this.$_fakeNodes$.length;
      $nodeData$$13_pos$$13$$.$setTemplateId$($DvtScrollbar$$.getId());
      $nodeData$$13_pos$$13$$.setId($DvtScrollbarArrow$$);
      $nodeData$$13_pos$$13$$.$setHasAnchorListener$(!1);
      this.$_diagram$.$addNodeData$($nodeData$$13_pos$$13$$);
      $DvtScrollbar$$ = this.$_diagram$.$getNodeById$($DvtScrollbarArrow$$);
      $DvtScrollbar$$.$setSelectable$(!1);
      $nodeData$$13_pos$$13$$ = $DvtScrollbar$$.$stageToLocal$($DvtScrollbarBackground$$);
      $DvtScrollbarArrow$$ = this.$_diagram$.$createAfContext$();
      $DvtScrollbar$$.$createNodeContents$($DvtScrollbarArrow$$);
      $DvtScrollbar$$.$renderNode$($DvtScrollbarArrow$$);
      $DvtScrollbarArrow$$ = $DvtScrollbar$$.$getLayoutBounds$();
      $DvtScrollbar$$.$setTranslate$($nodeData$$13_pos$$13$$.x - $DvtScrollbarArrow$$.$w$ / 2, $nodeData$$13_pos$$13$$.y - $DvtScrollbarArrow$$.$h$ / 2);
      this.$_fakeNodes$.push($DvtScrollbar$$);
    }
    return $dvt$$1$$.$AdfDiagramEventManager$.$GetCreateNodeEvent$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$, $DvtAdfDiagramDragSource$$);
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processStickyNodeCreateEnd$ = function $$DvtAdfDiagramEditorManager$$$$$processStickyNodeCreateEnd$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (this.$_stickyNodeStarted$) {
      var $DvtScrollbarEvent$$ = null;
      $dvt$$1$$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.getId());
      $dvt$$1$$ = this.$_diagram$.$getCreateNodeData$();
      $DvtScrollbarBackground$$ = this.$createNewNode$($DvtScrollbarBackground$$, $dvt$$1$$.$nodeDef$, $DvtScrollbarEvent$$, $dvt$$1$$.$paletteId$);
      $DvtScrollbar$$.push($DvtScrollbarBackground$$);
      this.$_stickyNodeStarted$ = !1;
    }
  };
  $DvtAdfDiagramEditorManager$$.prototype.$setLinkCreateWithKeyboard$ = function $$DvtAdfDiagramEditorManager$$$$$setLinkCreateWithKeyboard$$($dvt$$1$$) {
    this.$_linkCreateWithKeyboard$ = $dvt$$1$$;
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processLinkCreateWithKeyboard$ = function $$DvtAdfDiagramEditorManager$$$$$processLinkCreateWithKeyboard$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$getLinkHandle$()) {
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getLinkHandle$();
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getLayoutBounds$();
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$localToStage$(new $dvt$$1$$.$Point$(.5 * $DvtScrollbar$$.$w$, .5 * $DvtScrollbar$$.$h$));
      this.$processLinkCreateMove$($DvtScrollbarBackground$$);
    } else {
      this.$showLinkCreateStart$(null);
    }
  };
  $DvtAdfDiagramEditorManager$$.prototype.$processNodeCreateWithKeyboard$ = function $$DvtAdfDiagramEditorManager$$$$$processNodeCreateWithKeyboard$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$.$localToStage$(new $dvt$$1$$.$Point$(0, 0)) : this.$_diagram$.$localToStage$(new $dvt$$1$$.$Point$(0, 0));
    this.$processStickyNodeCreateStart$();
    $DvtScrollbarBackground$$ = this.$processNodeCreate$($DvtScrollbarBackground$$, $DvtScrollbar$$).$events$;
    if (0 < $DvtScrollbarBackground$$.length) {
      for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
        this.$_diagram$.dispatchEvent($DvtScrollbarBackground$$[$DvtScrollbar$$]);
      }
    }
  };
  $dvt$$1$$.$AdfDiagramFetchEvent$ = function $$dvt$$1$$$$AdfDiagramFetchEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$.$AdfDiagramFetchEvent$.$TYPE$);
    this.$_subtype$ = $DvtScrollbarBackground$$;
    this.$_node$ = $DvtScrollbar$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$AdfDiagramFetchEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.AdfDiagramFetchEvent");
  $dvt$$1$$.$AdfDiagramFetchEvent$.$TYPE$ = "diagramFetchEvent";
  $dvt$$1$$.$AdfDiagramFetchEvent$.$DISCLOSE$ = "disclose";
  $dvt$$1$$.$AdfDiagramFetchEvent$.$DRILL$ = "drill";
  $dvt$$1$$.$AdfDiagramFetchEvent$.prototype.$getNode$ = function $$dvt$$1$$$$AdfDiagramFetchEvent$$$$getNode$$() {
    return this.$_node$;
  };
  $dvt$$1$$.$AdfDiagramFetchEvent$.prototype.$getSubtype$ = function $$dvt$$1$$$$AdfDiagramFetchEvent$$$$getSubtype$$() {
    return this.$_subtype$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAdfDiagramJsonUtils$$, $dvt$$1$$.$Obj$, "DvtAdfDiagramJsonUtils");
  $DvtAdfDiagramJsonUtils$$.$ELEM_NODE_TEMPLATES$ = "nodeTemplates";
  $DvtAdfDiagramJsonUtils$$.$ELEM_NODE_TEMPLATE_ID$ = "templateId";
  $DvtAdfDiagramJsonUtils$$.$ELEM_NODE_DATA$ = "nodes";
  $DvtAdfDiagramJsonUtils$$.$ELEM_LINK_TEMPLATES$ = "linkTemplates";
  $DvtAdfDiagramJsonUtils$$.$ELEM_LINK_TEMPLATE_ID$ = "linkTemplateId";
  $DvtAdfDiagramJsonUtils$$.$ELEM_LINK_DATA$ = "links";
  $DvtAdfDiagramJsonUtils$$.$ELEM_CUSTOM_ATTRIBUTES$ = "attributes";
  $DvtAdfDiagramJsonUtils$$.$ATTR_NODE_ID$ = "id";
  $DvtAdfDiagramJsonUtils$$.$ATTR_COMPONENT$ = "component";
  $DvtAdfDiagramJsonUtils$$.$ATTR_CHILDREN$ = "children";
  $DvtAdfDiagramJsonUtils$$.$_maps$ = null;
  $DvtAdfDiagramJsonUtils$$.$_isHV$ = function $$DvtAdfDiagramJsonUtils$$$$_isHV$$($dvt$$1$$) {
    return "hv" == $dvt$$1$$;
  };
  $DvtAdfDiagramJsonUtils$$.$_toXMLName$ = function $$DvtAdfDiagramJsonUtils$$$$_toXMLName$$($DvtScrollbarBackground$$) {
    $DvtAdfDiagramJsonUtils$$.$_maps$ || ($DvtAdfDiagramJsonUtils$$.$_maps$ = {button:$dvt$$1$$.$AfButton$.$TAG_NAME$, clientBehavior:$dvt$$1$$.$AfClientBehavior$.$TAG_NAME$, commandButton:$dvt$$1$$.$AfCommandButton$.$TAG_NAME$, commandImageLink:$dvt$$1$$.$AfCommandImageLink$.$TAG_NAME$, commandLink:$dvt$$1$$.$AfCommandLink$.$TAG_NAME$, commandMenuItem:$dvt$$1$$.$AfCommandMenuItem$.$TAG_NAME$, goButton:$dvt$$1$$.$AfGoButton$.$TAG_NAME$, goLink:$dvt$$1$$.$AfGoLink$.$TAG_NAME$, group:$dvt$$1$$.$AfGroup$.$TAG_NAME$, 
    image:$dvt$$1$$.$AfImage$.$TAG_NAME$, link:$dvt$$1$$.$AfLink$.$TAG_NAME$, marker:$dvt$$1$$.$AfMarker$.$TAG_NAME$, menu:$dvt$$1$$.$AfMenu$.$TAG_NAME$, outputFormatted:$dvt$$1$$.$AfOutputFormatted$.$TAG_NAME$, outputText:$dvt$$1$$.$AfOutputText$.$TAG_NAME$, panelCard:$dvt$$1$$.$AfPanelCard$.$TAG_NAME$, panelFormLayout:$dvt$$1$$.$AfPanelFormLayout$.$TAG_NAME$, panelGroupLayout:$dvt$$1$$.$AfPanelGroupLayout$.$TAG_NAME$, panelLabelAndMessage:$dvt$$1$$.$AfPanelLabelAndMessage$.$TAG_NAME$, pointLocation:$dvt$$1$$.$AfPointLocation$.$TAG_NAME$, 
    separator:$dvt$$1$$.$AfSeparator$.$TAG_NAME$, showDetailItem:$dvt$$1$$.$AfShowDetailItem$.$TAG_NAME$, showPopupBehavior:$dvt$$1$$.$AfShowPopupBehavior$.$TAG_NAME$, spacer:$dvt$$1$$.$AfSpacer$.$TAG_NAME$});
    return $DvtAdfDiagramJsonUtils$$.$_maps$[$DvtScrollbarBackground$$];
  };
  $DvtAdfDiagramJsonUtils$$.$isXmlStartChar$ = function $$DvtAdfDiagramJsonUtils$$$$isXmlStartChar$$($DvtScrollbarBackground$$) {
    return $DvtScrollbarBackground$$.charAt && $DvtScrollbarBackground$$.replace && "\x3c" == $dvt$$1$$.$StringUtils$.trim($DvtScrollbarBackground$$).charAt(0) ? !0 : !1;
  };
  window.DvtDiagramPoint = $dvt$$1$$.$DiagramPoint$;
  window.DvtDiagramRectangle = $dvt$$1$$.$DiagramRectangle$;
  $dvt$$1$$.$exportProperty$($dvt$$1$$, "AdfDiagram", $dvt$$1$$.$AdfDiagram$);
  $dvt$$1$$.$Palette$ = function $$dvt$$1$$$$Palette$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $paletteHandler$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $images$$8$$, $styleMap$$29$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $paletteHandler$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $images$$8$$, $styleMap$$29$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$Palette$, $dvt$$1$$.$Container$, "dvt.Palette");
  $dvt$$1$$.$Palette$.$PALETTE_DISCLOSED_KEY$ = "isPaletteDisclosed";
  $dvt$$1$$.$Palette$.$PALETTE_ACTIVE_LINK_KEY$ = "paletteActiveLinkInfo";
  $dvt$$1$$.$Palette$.$PALETTE_ACTIVE_SECTIONS_KEY$ = "paletteActiveSectionsInfo";
  $dvt$$1$$.$Palette$.prototype.Init = function $$dvt$$1$$$$Palette$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $paletteHandler$$1$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $images$$9$$, $styleMap$$30$$) {
    $dvt$$1$$.$Palette$.$superclass$.Init.call(this, $DvtScrollbarBackground$$);
    this.$_paletteHandler$ = $paletteHandler$$1$$;
    this.$_diagram$ = $DvtScrollbarArrow$$;
    this.$_dragSource$ = $DvtAdfDiagramEditorManager$$;
    this.$_parent$ = null;
    this.$_sectionContent$ = [];
    this.$_bDisclosed$ = !0;
    this.$_activeSections$ = [];
    this.$_styleMap$ = (new $DvtPaletteDefaults$$).$calcOptions$($styleMap$$30$$);
    this.$_eventManager$ = new $DvtPaletteEventManager$$($DvtScrollbarBackground$$, this.$_paletteHandler$, this.$_diagram$, this);
    $dvt$$1$$.$Agent$.$isTouchDevice$() || this.$_eventManager$.$setKeyboardHandler$(this.$CreateKeyboardHandler$(this.$_eventManager$));
    this.$_eventManager$.$addListeners$(this);
    this.$_eventManager$.$associate$(this, this);
    this.$_accordion$ = new $dvt$$1$$.$Accordion$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, this.$_eventManager$, $images$$9$$, this.$_styleMap$);
    this.$_accordion$.$setCollapseAll$();
    this.$_accordion$.$setExpandMany$();
    this.$_accordion$.$addEvtListener$($dvt$$1$$.$ResizeEvent$.$RESIZE_EVENT$, this.$_handleResize$, !1, this);
  };
  $dvt$$1$$.$Palette$.prototype.$getDiagram$ = function $$dvt$$1$$$$Palette$$$$getDiagram$$() {
    return this.$_diagram$;
  };
  $dvt$$1$$.$Palette$.prototype.$getEventManager$ = function $$dvt$$1$$$$Palette$$$$getEventManager$$() {
    return this.$_eventManager$;
  };
  $dvt$$1$$.$Palette$.prototype.$setJSON$ = function $$dvt$$1$$$$Palette$$$$setJSON$$($dvt$$1$$) {
    if ($dvt$$1$$ && (this.$_stickyPaletteData$ = [], $dvt$$1$$)) {
      this.$_bDisclosed$ = "false" == $dvt$$1$$.disclosed ? !1 : !0;
      this.$setNoWrap$($dvt$$1$$.noWrap);
      var $DvtScrollbarBackground$$ = this.$_getMaxWidthValue$($dvt$$1$$.maxWidth);
      this.$_accordion$.$setMaxWidth$(Math.min($DvtScrollbarBackground$$ ? $DvtScrollbarBackground$$ : this.$_styleMap$.maxWidth, this.$_accordion$.$_maxWidth$));
      this.$_accordion$.$setMinWidth$(Math.min(this.$_styleMap$.minWidth, this.$_accordion$.$_maxWidth$));
      this.$_parsePaletteSectionJSON$($dvt$$1$$.paletteSection);
      this.$_parseLinkSectionJSON$($dvt$$1$$.paletteLinkSection);
    }
  };
  $dvt$$1$$.$Palette$.prototype.$_parsePaletteItemJSON$ = function $$dvt$$1$$$$Palette$$$$_parsePaletteItemJSON$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramDragSource$$++) {
      var $paletteItem_stickyItemData$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtScrollbarArrow$$ = $paletteItem_stickyItemData$$.id, $DvtAdfDiagramEditorManager$$ = $paletteItem_stickyItemData$$.children;
      $DvtScrollbarEvent$$ ? ($paletteItem_stickyItemData$$ = new $DvtPaletteLinkItem$$(this.$_context$, this, $paletteItem_stickyItemData$$.typeHint, $DvtScrollbarArrow$$, $paletteItem_stickyItemData$$.label, null, this.$_styleMap$), $DvtAdfDiagramEditorManager$$ = this.$getDiagram$().$GetJsonParser$().$parseLinkTemplate$($DvtAdfDiagramEditorManager$$ ? $DvtAdfDiagramEditorManager$$[0] : null)) : ($paletteItem_stickyItemData$$ = new $DvtPaletteStickyItem$$(this.$_context$, this, $paletteItem_stickyItemData$$.typeHint, 
      $DvtScrollbarArrow$$, $paletteItem_stickyItemData$$.label, $paletteItem_stickyItemData$$.dragFlavor, this.$_styleMap$), $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtAdfDiagramEditorManager$$));
      this.$_stampDefs$ || (this.$_stampDefs$ = {});
      this.$_stampDefs$[$DvtScrollbarArrow$$] = $DvtAdfDiagramEditorManager$$;
      $DvtScrollbar$$.$addItem$($paletteItem_stickyItemData$$);
      this.$_stickyPaletteData$.push($paletteItem_stickyItemData$$);
    }
  };
  $dvt$$1$$.$Palette$.prototype.$_parseLinkSectionJSON$ = function $$dvt$$1$$$$Palette$$$$_parseLinkSectionJSON$$($dvt$$1$$) {
    if ($dvt$$1$$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = $dvt$$1$$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = new $DvtPaletteSection$$(this, $DvtScrollbar$$.id, $DvtScrollbar$$.label, this.$_styleMap$);
        $DvtScrollbarEvent$$.$setDisclosed$($DvtScrollbar$$.disclosed);
        $DvtScrollbarEvent$$.$setSelectedItemId$($DvtScrollbar$$.selected);
        this.$_linkSection$ = $DvtScrollbarEvent$$;
        this.$_parsePaletteItemJSON$($DvtScrollbar$$.paletteItem, $DvtScrollbarEvent$$, !0);
      }
    }
  };
  $dvt$$1$$.$Palette$.prototype.$_parsePaletteSectionJSON$ = function $$dvt$$1$$$$Palette$$$$_parsePaletteSectionJSON$$($dvt$$1$$) {
    if ($dvt$$1$$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = $dvt$$1$$[$DvtScrollbarBackground$$], $DvtScrollbarEvent$$ = new $DvtPaletteSection$$(this, $DvtScrollbar$$.id, $DvtScrollbar$$.label, this.$_styleMap$);
        $DvtScrollbarEvent$$.$setDisclosed$($DvtScrollbar$$.disclosed);
        this.$addSectionContent$($DvtScrollbarEvent$$);
        this.$_parsePaletteItemJSON$($DvtScrollbar$$.paletteItem, $DvtScrollbarEvent$$, !1);
      }
    }
  };
  $dvt$$1$$.$Palette$.prototype.$_handleResize$ = function $$dvt$$1$$$$Palette$$$$_handleResize$$($DvtScrollbarBackground$$) {
    this.$_scrollingContainer$ && (this.removeChild(this.$_scrollingContainer$), this.$_scrollingContainer$ = new $dvt$$1$$.$SimpleScrollableContainer$(this.$getCtx$(), Math.min(this.$_accordion$.$_maxWidth$, $DvtScrollbarBackground$$.getWidth()), Math.min(this.$_accordion$.$_maxHeight$, $DvtScrollbarBackground$$.getHeight())), this.$addChild$(this.$_scrollingContainer$), this.$_scrollingContainer$.$_container$.$addChild$(this.$_accordion$), this.$_scrollingContainer$.$prepareContentPane$(), this.$FireListener$($DvtScrollbarBackground$$));
  };
  $dvt$$1$$.$Palette$.prototype.$addSectionContent$ = function $$dvt$$1$$$$Palette$$$$addSectionContent$$($dvt$$1$$) {
    this.$_sectionContent$.push($dvt$$1$$);
  };
  $dvt$$1$$.$Palette$.prototype.$render$ = function $$dvt$$1$$$$Palette$$$$render$$() {
    if (this.$getDiagram$().$_nodeCreateEnabled$) {
      for (var $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_sectionContent$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$()), $DvtScrollbarEvent$$ = this.$_sectionContent$[$DvtScrollbarBackground$$], $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getLabel$(), $sectionId$$ = $DvtScrollbarEvent$$.getId(), $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$isDisclosed$();
        this.$addChild$($DvtScrollbar$$);
        $DvtScrollbarEvent$$.$render$($DvtScrollbar$$, this.$_accordion$.$_maxWidth$, this.$_accordion$.$_maxHeight$);
        this.removeChild($DvtScrollbar$$);
        this.$_accordion$.$addSection$($DvtAdfDiagramDragSource$$, $DvtScrollbar$$, $DvtScrollbarArrow$$, $sectionId$$);
        $DvtScrollbarArrow$$ && this.$_activeSections$.push($sectionId$$);
      }
    }
    this.$_linkSection$ && this.$getDiagram$().$_linkCreateEnabled$ && ($DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$()), $DvtAdfDiagramDragSource$$ = this.$_linkSection$.$getLabel$(), $sectionId$$ = this.$_linkSection$.getId(), $DvtScrollbarArrow$$ = this.$_linkSection$.$isDisclosed$(), this.$addChild$($DvtScrollbar$$), this.$_linkSection$.$render$($DvtScrollbar$$, this.$_accordion$.$_maxWidth$, this.$_accordion$.$_maxHeight$), this.removeChild($DvtScrollbar$$), this.$_accordion$.$addSection$($DvtAdfDiagramDragSource$$, 
    $DvtScrollbar$$, $DvtScrollbarArrow$$, $sectionId$$), $DvtScrollbarArrow$$ && this.$_activeSections$.push($sectionId$$));
    this.$addChild$(this.$_accordion$);
    this.$_accordion$.$render$();
    $DvtScrollbarBackground$$ = this.$_accordion$.$getDimensionsWithStroke$();
    this.$_scrollingContainer$ = new $dvt$$1$$.$SimpleScrollableContainer$(this.$getCtx$(), Math.min(this.$_accordion$.$_maxWidth$, $DvtScrollbarBackground$$.$w$), Math.min(this.$_accordion$.$_maxHeight$, $DvtScrollbarBackground$$.$h$));
    this.$addChild$(this.$_scrollingContainer$);
    this.$_scrollingContainer$.$_container$.$addChild$(this.$_accordion$);
    this.$_scrollingContainer$.$prepareContentPane$();
    this.$getEventManager$().$setDragSource$(this.$_dragSource$);
    for ($DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_stickyPaletteData$.length;$DvtScrollbarBackground$$++) {
      $DvtScrollbar$$ = this.$_stickyPaletteData$[$DvtScrollbarBackground$$], $DvtScrollbar$$.$AdjustItemDimensions$(this.$_accordion$.$getMaxSectionWidth$()), this.$getEventManager$().$associate$($DvtScrollbar$$.$_itemContainer$, $DvtScrollbar$$);
    }
    this.$_linkSection$ && ($DvtScrollbarBackground$$ = this.$_linkSection$.$getItems$()) && 0 < $DvtScrollbarBackground$$.length && ($DvtScrollbarBackground$$ = this.$_linkSection$.$getSelectedItem$()) && this.$getEventManager$().$ProcessSelectionEventHelper$($DvtScrollbarBackground$$, !1);
  };
  $dvt$$1$$.$Palette$.prototype.$isDisclosed$ = function $$dvt$$1$$$$Palette$$$$isDisclosed$$() {
    return this.$_bDisclosed$;
  };
  $dvt$$1$$.$Palette$.prototype.$setNoWrap$ = function $$dvt$$1$$$$Palette$$$$setNoWrap$$($dvt$$1$$) {
    this.$_noWrap$ = $dvt$$1$$;
  };
  $dvt$$1$$.$Palette$.prototype.$isNoWrap$ = function $$dvt$$1$$$$Palette$$$$isNoWrap$$() {
    return "true" == this.$_noWrap$ ? this.$_noWrap$ : "false";
  };
  $dvt$$1$$.$Palette$.prototype.update = function $$dvt$$1$$$$Palette$$$update$($DvtScrollbarBackground$$) {
    this.$_accordion$.update($DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$_accordion$.$getSectionById$($DvtScrollbarBackground$$).$_isActive$, $DvtScrollbarEvent$$ = -1;
    this.$_activeSections$ && ($DvtScrollbarEvent$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$(this.$_activeSections$, $DvtScrollbarBackground$$));
    !$DvtScrollbar$$ && -1 < $DvtScrollbarEvent$$ ? this.$_activeSections$.splice($DvtScrollbarEvent$$, 1) : $DvtScrollbar$$ && 0 > $DvtScrollbarEvent$$ && this.$_activeSections$.push($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$EventFactory$.$newAdfPropertyChangeEvent$($dvt$$1$$.$Palette$.$PALETTE_ACTIVE_SECTIONS_KEY$, this.$_activeSections$.join($dvt$$1$$.$AdfDiagram$.$ROWKEY_DELIMITER$));
    this.$_diagram$.dispatchEvent($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Palette$.prototype.$_getMaxWidthValue$ = function $$dvt$$1$$$$Palette$$$$_getMaxWidthValue$$($DvtScrollbarBackground$$) {
    if (!$DvtScrollbarBackground$$) {
      return null;
    }
    $DvtScrollbarBackground$$ = $dvt$$1$$.$StringUtils$.trim($DvtScrollbarBackground$$);
    return $dvt$$1$$.$StringUtils$.endsWith($DvtScrollbarBackground$$, "%") ? ($DvtScrollbarBackground$$ = $dvt$$1$$.$StringUtils$.trim($DvtScrollbarBackground$$.replace(/\%$/, "")), isNaN(parseFloat($DvtScrollbarBackground$$)) ? null : parseFloat($DvtScrollbarBackground$$) / 100 * this.$_diagram$.getWidth()) : $dvt$$1$$.$StringUtils$.endsWith($DvtScrollbarBackground$$, "px") ? this.$_getMaxWidthValue$($DvtScrollbarBackground$$.replace(/px$/, "")) : isNaN(parseFloat($DvtScrollbarBackground$$)) ? 
    null : parseFloat($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Palette$.prototype.$CreateKeyboardHandler$ = function $$dvt$$1$$$$Palette$$$$CreateKeyboardHandler$$($dvt$$1$$) {
    return new $DvtPaletteKeyboardHandler$$($dvt$$1$$, this);
  };
  $dvt$$1$$.$Palette$.prototype.$getSectionContentById$ = function $$dvt$$1$$$$Palette$$$$getSectionContentById$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = null;
    if (this.$_linkSection$ && this.$_linkSection$.getId() == $dvt$$1$$) {
      $DvtScrollbarBackground$$ = this.$_linkSection$;
    } else {
      for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < this.$_sectionContent$.length;$DvtScrollbar$$++) {
        var $DvtScrollbarEvent$$ = this.$_sectionContent$[$DvtScrollbar$$];
        if ($DvtScrollbarEvent$$.getId() == $dvt$$1$$) {
          $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$;
          break;
        }
      }
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Palette$.prototype.$getExpandedHeight$ = function $$dvt$$1$$$$Palette$$$$getExpandedHeight$$() {
    return this.$_accordion$.$getExpandedHeight$();
  };
  $dvt$$1$$.$Palette$.prototype.$getSections$ = function $$dvt$$1$$$$Palette$$$$getSections$$() {
    return this.$_accordion$.$getSections$();
  };
  $dvt$$1$$.$Palette$.prototype.$getDimensions$ = function $$dvt$$1$$$$Palette$$$$getDimensions$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$Rectangle$(0, 0, this.$_scrollingContainer$.getWidth(), this.$_scrollingContainer$.getHeight());
    return $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$ !== this ? this.$ConvertCoordSpaceRect$($DvtScrollbar$$, $DvtScrollbarBackground$$) : $DvtScrollbar$$;
  };
  $dvt$$1$$.$Palette$.prototype.$getDimensionsWithStroke$ = function $$dvt$$1$$$$Palette$$$$getDimensionsWithStroke$$($dvt$$1$$) {
    return this.$getDimensions$($dvt$$1$$);
  };
  $dvt$$1$$.$Palette$.prototype.$setInteractionEnabled$ = function $$dvt$$1$$$$Palette$$$$setInteractionEnabled$$($dvt$$1$$) {
    $dvt$$1$$ ? this.$_eventManager$.$addListeners$(this) : this.$_eventManager$.$removeListeners$(this);
  };
  $dvt$$1$$.$Palette$.prototype.$hasLinkSection$ = function $$dvt$$1$$$$Palette$$$$hasLinkSection$$() {
    return this.$_linkSection$ ? !0 : !1;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteEventManager$$, $dvt$$1$$.$EventManager$, "DvtPaletteEventManager");
  $DvtPaletteEventManager$$.prototype.$OnClick$ = function $$DvtPaletteEventManager$$$$$OnClick$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$.stopPropagation();
    var $DvtScrollbar$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtPaletteEventManager$$.$superclass$.$OnClick$.call(this, $DvtScrollbarBackground$$);
    $DvtScrollbar$$ instanceof $dvt$$1$$.$AccordionSection$ && this.$_palette$.update($DvtScrollbar$$.getId());
  };
  $DvtPaletteEventManager$$.prototype.$HandleTouchClickInternal$ = function $$DvtPaletteEventManager$$$$$HandleTouchClickInternal$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtScrollbarBackground$$));
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$AccordionSection$ && this.$_palette$.update($DvtScrollbarBackground$$.getId());
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteKeyboardHandler$$, $dvt$$1$$.$KeyboardHandler$, "DvtPaletteKeyboardHandler");
  $DvtPaletteKeyboardHandler$$.prototype.Init = function $$DvtPaletteKeyboardHandler$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$) {
    $DvtPaletteKeyboardHandler$$.$superclass$.Init.call(this, $dvt$$1$$);
    this.$_palette$ = $DvtScrollbarBackground$$;
  };
  $DvtPaletteKeyboardHandler$$.prototype.$processKeyDown$ = function $$DvtPaletteKeyboardHandler$$$$$processKeyDown$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode, $DvtScrollbarEvent$$ = this.$_eventManager$.$getFocus$();
    return $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$TAB$ ? ($DvtScrollbar$$ = null, $dvt$$1$$.$EventManager$.$consumeEvent$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$ ? $DvtScrollbar$$ = $DvtScrollbarEvent$$ : ($DvtScrollbarBackground$$ = this.$_palette$.$getSections$(), 0 < $DvtScrollbarBackground$$.length && ($DvtScrollbar$$ = $DvtScrollbarBackground$$[0])), $DvtScrollbar$$) : $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ENTER$ || $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$LEFT_ARROW$ || 
    $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$RIGHT_ARROW$ || $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SPACE$ ? ($DvtScrollbarEvent$$ && $DvtScrollbarEvent$$ instanceof $dvt$$1$$.$AccordionSection$ ? ($DvtScrollbarEvent$$.$_isActive$ && $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$LEFT_ARROW$ || !$DvtScrollbarEvent$$.$_isActive$ && $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$RIGHT_ARROW$ || $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ENTER$ || $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SPACE$) && 
    this.$_palette$.update($DvtScrollbarEvent$$.getId()) : $DvtScrollbarEvent$$ && $DvtScrollbarEvent$$ instanceof $DvtPaletteItem$$ && $DvtScrollbarEvent$$.$HandleKeyboardEvent$($DvtScrollbarBackground$$), null) : $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$N$ && $DvtScrollbarBackground$$.ctrlKey && $DvtScrollbarBackground$$.altKey ? ($DvtScrollbarEvent$$ && $DvtScrollbarEvent$$ instanceof $DvtPaletteItem$$ && ($DvtScrollbarBackground$$ = this.$_palette$.$getDiagram$().$_editor$) && this.$_palette$.$getDiagram$().$_stickyNodeEnabled$ && 
    $DvtScrollbarBackground$$.$processNodeCreateWithKeyboard$(null), null) : $DvtPaletteKeyboardHandler$$.$superclass$.$processKeyDown$.call(this, $DvtScrollbarBackground$$);
  };
  $DvtPaletteKeyboardHandler$$.prototype.$getNextNavigable$ = function $$DvtPaletteKeyboardHandler$$$$$getNextNavigable$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if ($DvtScrollbar$$.keyCode != $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$ && $DvtScrollbar$$.keyCode != $dvt$$1$$.KeyboardEvent.$UP_ARROW$) {
      return $DvtScrollbarBackground$$;
    }
    for (var $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.keyCode == $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$ ? !0 : !1, $itemIdx$$1$$ = -1, $DvtScrollbarArrow$$ = this.$_getNavigables$(), $DvtAdfDiagramEditorManager$$ = 0;$DvtAdfDiagramEditorManager$$ < $DvtScrollbarArrow$$.length;$DvtAdfDiagramEditorManager$$++) {
      if ($DvtScrollbarBackground$$ == $DvtScrollbarArrow$$[$DvtAdfDiagramEditorManager$$]) {
        $itemIdx$$1$$ = $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramEditorManager$$ == $DvtScrollbarArrow$$.length - 1 ? -1 : $DvtAdfDiagramEditorManager$$ + 1 : 0 == $DvtAdfDiagramEditorManager$$ ? -1 : $DvtAdfDiagramEditorManager$$ - 1;
        break;
      }
    }
    0 <= $itemIdx$$1$$ && ($DvtScrollbarEvent$$ = $DvtScrollbarArrow$$[$itemIdx$$1$$]);
    return $DvtScrollbarEvent$$;
  };
  $DvtPaletteKeyboardHandler$$.prototype.$_getNavigables$ = function $$DvtPaletteKeyboardHandler$$$$$_getNavigables$$() {
    for (var $dvt$$1$$ = [], $DvtScrollbarBackground$$ = this.$_palette$.$getSections$(), $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      $dvt$$1$$.push($DvtScrollbarEvent$$);
      if ($DvtScrollbarEvent$$.$_isActive$) {
        for (var $DvtScrollbarEvent$$ = this.$_palette$.$getSectionContentById$($DvtScrollbarEvent$$.getId()).$getItems$() || [], $j$$20$$ = 0;$j$$20$$ < $DvtScrollbarEvent$$.length;$j$$20$$++) {
          $dvt$$1$$.push($DvtScrollbarEvent$$[$j$$20$$]);
        }
      }
    }
    return $dvt$$1$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteItem$$, $dvt$$1$$.$Obj$, "DvtPaletteItem");
  $DvtPaletteItem$$.prototype.Init = function $$DvtPaletteItem$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $labelText$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$) {
    this.$_context$ = $DvtScrollbarBackground$$;
    this.$_paletteId$ = $DvtScrollbarEvent$$;
    this.$_id$ = $DvtAdfDiagramDragSource$$;
    this.$_palette$ = $DvtScrollbar$$;
    this.$_paletteStamp$ = null;
    this.$_labelText$ = $labelText$$;
    this.$_focusRect$ = this.$_label$ = null;
    this.$_itemContainer$ = new $dvt$$1$$.$Container$(this.$_context$);
    $DvtScrollbarArrow$$ && this.$_palette$.$getDiagram$().$ConvertDataFlavorFunc$ && this.$_palette$.$getDiagram$().$ConvertDataFlavorFunc$("javax.faces.component.UIComponent/" + $DvtScrollbarArrow$$);
    this.$_styleMap$ = $DvtAdfDiagramEditorManager$$;
  };
  $DvtPaletteItem$$.prototype.$layout$ = function $$DvtPaletteItem$$$$$layout$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getPaletteVisualComponent$().$_bgShape$;
    $DvtScrollbar$$.$setMouseEnabled$(!1);
    var $DvtScrollbarEvent$$ = this.$_styleMap$.sectionItem.itemPaddingX, $DvtAdfDiagramDragSource$$ = this.$_styleMap$.sectionItem.itemPaddingY, $labelPaddingX$$ = this.$_styleMap$.sectionItem.labelPaddingX, $DvtScrollbarArrow$$ = this.$getLabelDimensions$(), $DvtAdfDiagramEditorManager$$ = this.$_shapeDims$, $itemHeight$$1$$ = Math.max(this.$_styleMap$.sectionItem.minHeight, $DvtAdfDiagramEditorManager$$ ? $DvtAdfDiagramEditorManager$$.$h$ : 0);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$_context$) && $DvtScrollbarBackground$$ ? ($DvtScrollbar$$ && $DvtAdfDiagramEditorManager$$ && $DvtScrollbar$$.$setTranslate$($DvtScrollbarBackground$$ - $DvtAdfDiagramEditorManager$$.$w$ - $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$), this.$_label$ && $DvtScrollbarArrow$$ && this.$_label$.$setTranslate$($DvtScrollbarBackground$$ - (this.$_labelOffsetX$ ? $DvtScrollbarEvent$$ + this.$_labelOffsetX$ + $labelPaddingX$$ + $DvtScrollbarArrow$$.$w$ : $DvtScrollbarEvent$$ + 
    $DvtScrollbarArrow$$.$w$), ($itemHeight$$1$$ - $DvtScrollbarArrow$$.$h$) / 2 + $DvtAdfDiagramDragSource$$)) : ($DvtScrollbar$$ && $DvtScrollbar$$.$setTranslate$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$), this.$_label$ && $DvtScrollbarArrow$$ && this.$_label$.$setTranslate$(this.$_labelOffsetX$ ? $DvtScrollbarEvent$$ + this.$_labelOffsetX$ + $labelPaddingX$$ : $DvtScrollbarEvent$$, ($itemHeight$$1$$ - $DvtScrollbarArrow$$.$h$) / 2 + $DvtAdfDiagramDragSource$$));
    this.$_focusRect$ || this.$_addFocusRect$(this.$_labelOffsetX$ + $DvtScrollbarEvent$$ + ($DvtScrollbarArrow$$ ? $DvtScrollbarArrow$$.$w$ + 2 * $labelPaddingX$$ : $DvtScrollbarEvent$$), $itemHeight$$1$$ + 2 * $DvtAdfDiagramDragSource$$);
    this.$addAccessibilityAttributes$();
  };
  $DvtPaletteItem$$.prototype.$RenderLabel$ = function $$DvtPaletteItem$$$$$RenderLabel$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    if (this.$_labelText$) {
      this.$_label$ = new $dvt$$1$$.$OutputText$(this.$_context$, this.$_labelText$);
      this.$_label$.$setCSSStyle$(this.$_styleMap$.sectionItem.labelStyle);
      $dvt$$1$$.$TextUtils$.$fitText$(this.$_label$, $DvtScrollbarBackground$$ - 2 * this.$_styleMap$.sectionItem.labelPaddingX, $DvtScrollbar$$, this.$_itemContainer$);
      var $DvtScrollbarEvent$$ = this.$_label$.$measureDimensions$();
      this.$setLabelDimensions$($DvtScrollbarEvent$$);
    }
  };
  $DvtPaletteItem$$.prototype.$_addFocusRect$ = function $$DvtPaletteItem$$$$$_addFocusRect$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_focusRect$ = new $dvt$$1$$.Rect(this.$_context$, 0, 0, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$_focusRect$.$setInvisibleFill$();
    this.$_focusRect$.$setRx$(this.$_styleMap$.sectionItem.borderRadius);
    this.$_itemContainer$.$addChildAt$(this.$_focusRect$, 0);
  };
  $DvtPaletteItem$$.prototype.$RenderShape$ = function $$DvtPaletteItem$$$$$RenderShape$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$getPaletteVisualComponent$();
    if ($DvtScrollbarEvent$$) {
      var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$AfContext$(this.$_context$, this.$_palette$.$getEventManager$());
      $DvtAdfDiagramDragSource$$.$setSkinName$(this.$_palette$.$getDiagram$().$_skinName$);
      $DvtAdfDiagramDragSource$$.$setAvailableWidth$($DvtScrollbarBackground$$);
      $DvtAdfDiagramDragSource$$.$setAvailableHeight$($DvtScrollbar$$);
      $dvt$$1$$.$AfComponentFactory$.$doLayout$($DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$, this.$_itemContainer$);
      this.$setShapeDimensions$($DvtScrollbarEvent$$.$getBounds$());
    }
  };
  $DvtPaletteItem$$.prototype.$SetLabelOffsetX$ = function $$DvtPaletteItem$$$$$SetLabelOffsetX$$($dvt$$1$$) {
    this.$_labelOffsetX$ = $dvt$$1$$;
  };
  $DvtPaletteItem$$.prototype.$getDimensions$ = function $$DvtPaletteItem$$$$$getDimensions$$() {
    return $dvt$$1$$.$DisplayableUtils$.$getDimForced$(this.$_context$, this.$_itemContainer$);
  };
  $DvtPaletteItem$$.prototype.$setShapeDimensions$ = function $$DvtPaletteItem$$$$$setShapeDimensions$$($dvt$$1$$) {
    this.$_shapeDims$ = $dvt$$1$$;
  };
  $DvtPaletteItem$$.prototype.$setLabelDimensions$ = function $$DvtPaletteItem$$$$$setLabelDimensions$$($dvt$$1$$) {
    this.$_labelDims$ = $dvt$$1$$;
  };
  $DvtPaletteItem$$.prototype.$getLabelDimensions$ = function $$DvtPaletteItem$$$$$getLabelDimensions$$() {
    return this.$_labelDims$;
  };
  $DvtPaletteItem$$.prototype.$getPaletteVisualComponent$ = function $$DvtPaletteItem$$$$$getPaletteVisualComponent$$() {
  };
  $DvtPaletteItem$$.prototype.$getTemplateDef$ = function $$DvtPaletteItem$$$$$getTemplateDef$$() {
    var $dvt$$1$$ = null;
    return $dvt$$1$$ = this.$_palette$.$_stampDefs$[this.$_id$];
  };
  $DvtPaletteItem$$.prototype.$isSelectable$ = function $$DvtPaletteItem$$$$$isSelectable$$() {
    return !0;
  };
  $DvtPaletteItem$$.prototype.$isSelected$ = function $$DvtPaletteItem$$$$$isSelected$$() {
    return this.$_selected$;
  };
  $DvtPaletteItem$$.prototype.$setSelected$ = function $$DvtPaletteItem$$$$$setSelected$$($DvtScrollbarBackground$$) {
    (this.$_selected$ = $DvtScrollbarBackground$$) ? this.$_focusRect$.$setFill$(new $dvt$$1$$.$SolidFill$(this.$_styleMap$.sectionItem.fillColorSelected)) : this.$_focusRect$.$setInvisibleFill$();
    this.$updateAccessibilityAttributes$();
  };
  $DvtPaletteItem$$.prototype.$AdjustItemDimensions$ = function $$DvtPaletteItem$$$$$AdjustItemDimensions$$($DvtScrollbarBackground$$) {
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$_context$) && this.$layout$($DvtScrollbarBackground$$);
    this.$_focusRect$.$setWidth$($DvtScrollbarBackground$$);
  };
  $DvtPaletteItem$$.prototype.$showHoverEffect$ = function $$DvtPaletteItem$$$$$showHoverEffect$$() {
    this.$_focusRect$ && (this.$_selected$ || this.$_focusRect$.$setFill$(new $dvt$$1$$.$SolidFill$(this.$_styleMap$.sectionItem.fillColorHover)));
  };
  $DvtPaletteItem$$.prototype.$hideHoverEffect$ = function $$DvtPaletteItem$$$$$hideHoverEffect$$() {
    this.$_selected$ || this.$_focusRect$.$setInvisibleFill$();
  };
  $DvtPaletteItem$$.prototype.$getKeyboardBoundingBox$ = function $$DvtPaletteItem$$$$$getKeyboardBoundingBox$$() {
    var $DvtScrollbarBackground$$ = this.$_focusRect$.$getDimensions$(), $DvtScrollbar$$ = this.$_itemContainer$.$localToStage$(new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.x, $DvtScrollbarBackground$$.y)), $DvtScrollbarBackground$$ = this.$_itemContainer$.$localToStage$(new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.x + $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.y + $DvtScrollbarBackground$$.$h$));
    return new $dvt$$1$$.$Rectangle$($DvtScrollbar$$.x, $DvtScrollbar$$.y, $DvtScrollbarBackground$$.x - $DvtScrollbar$$.x, $DvtScrollbarBackground$$.y - $DvtScrollbar$$.y);
  };
  $DvtPaletteItem$$.prototype.$getTargetElem$ = function $$DvtPaletteItem$$$$$getTargetElem$$() {
    return this.$_itemContainer$.$getElem$();
  };
  $DvtPaletteItem$$.prototype.$showKeyboardFocusEffect$ = function $$DvtPaletteItem$$$$$showKeyboardFocusEffect$$() {
    this.$_isShowingKeyboardFocusEffect$ = !0;
    this.$showHoverEffect$();
    this.$_context$.$setActiveElement$(this.$_itemContainer$);
  };
  $DvtPaletteItem$$.prototype.$hideKeyboardFocusEffect$ = function $$DvtPaletteItem$$$$$hideKeyboardFocusEffect$$() {
    this.$_isShowingKeyboardFocusEffect$ = !1;
    this.$hideHoverEffect$();
  };
  $DvtPaletteItem$$.prototype.$isShowingKeyboardFocusEffect$ = function $$DvtPaletteItem$$$$$isShowingKeyboardFocusEffect$$() {
    return this.$_isShowingKeyboardFocusEffect$;
  };
  $DvtPaletteItem$$.prototype.$getNextNavigable$ = function $$DvtPaletteItem$$$$$getNextNavigable$$($dvt$$1$$) {
    return this.$_palette$.$getEventManager$().$KeyboardHandler$.$getNextNavigable$(this, $dvt$$1$$);
  };
  $DvtPaletteItem$$.prototype.$HandleKeyboardEvent$ = function $$DvtPaletteItem$$$$$HandleKeyboardEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode;
    if ($DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$ENTER$ || $DvtScrollbar$$ == $dvt$$1$$.KeyboardEvent.$SPACE$) {
      var $DvtScrollbar$$ = this.$_palette$.$getEventManager$(), $DvtScrollbarEvent$$ = this.$_itemContainer$, $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$localToStage$(new $dvt$$1$$.$Point$(0, 0));
      $DvtScrollbarBackground$$ = $dvt$$1$$.$DomEventFactory$.$generateMouseEventFromKeyboardEvent$($DvtScrollbarBackground$$, this.$_context$, $dvt$$1$$.MouseEvent.$CLICK$, $DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y);
      $DvtScrollbarBackground$$.target = $DvtScrollbarEvent$$;
      $DvtScrollbar$$.$PreOnClick$($DvtScrollbarBackground$$);
    }
  };
  $DvtPaletteItem$$.prototype.$addAccessibilityAttributes$ = function $$DvtPaletteItem$$$$$addAccessibilityAttributes$$() {
    var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
    this.$_itemContainer$.$setAriaRole$("group");
    $dvt$$1$$.$Agent$.$deferAriaCreation$() || this.$_itemContainer$.$setAriaProperty$("label", $DvtScrollbarBackground$$);
  };
  $DvtPaletteItem$$.prototype.$updateAccessibilityAttributes$ = function $$DvtPaletteItem$$$$$updateAccessibilityAttributes$$() {
    if (!$dvt$$1$$.$Agent$.$deferAriaCreation$()) {
      var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
      $DvtScrollbarBackground$$ && this.$_itemContainer$.$setAriaProperty$("label", $DvtScrollbarBackground$$);
    }
  };
  $DvtPaletteItem$$.prototype.$getAriaLabel$ = function $$DvtPaletteItem$$$$$getAriaLabel$$() {
    var $DvtScrollbarBackground$$ = [];
    $DvtScrollbarBackground$$.push(this.$_selected$ ? $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_SELECTED") : $dvt$$1$$.$Bundle$.$getTranslatedString$($dvt$$1$$.$Bundle$.$UTIL_PREFIX$, "STATE_UNSELECTED"));
    return $dvt$$1$$.$Displayable$.$generateAriaLabel$(this.$_labelText$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteStickyItem$$, $DvtPaletteItem$$, "DvtPaletteStickyItem");
  $DvtPaletteStickyItem$$.prototype.getId = function $$DvtPaletteStickyItem$$$$getId$() {
    var $dvt$$1$$ = {};
    $dvt$$1$$.$paletteId$ = this.$_paletteId$;
    $dvt$$1$$.$def$ = this.$getTemplateDef$();
    $dvt$$1$$.type = $DvtPaletteLinkItem$$.$NODE_TYPE$;
    $dvt$$1$$.id = this.$_id$;
    return $dvt$$1$$;
  };
  $DvtPaletteStickyItem$$.prototype.$getPaletteVisualComponent$ = function $$DvtPaletteStickyItem$$$$$getPaletteVisualComponent$$() {
    if (this.$_paletteStamp$) {
      return this.$_paletteStamp$;
    }
    var $DvtScrollbarBackground$$ = this.$getTemplateDef$(), $DvtScrollbar$$ = new $dvt$$1$$.$AfPanelGroupLayout$;
    $DvtScrollbar$$.$setLayout$($dvt$$1$$.$AfPanelGroupLayout$.$LAYOUT_VERTICAL$);
    $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    return this.$_paletteStamp$ = $DvtScrollbar$$;
  };
  $DvtPaletteStickyItem$$.prototype.$isDragAvailable$ = function $$DvtPaletteStickyItem$$$$$isDragAvailable$$($dvt$$1$$) {
    return $dvt$$1$$[0];
  };
  $DvtPaletteStickyItem$$.prototype.$getDragTransferable$ = function $$DvtPaletteStickyItem$$$$$getDragTransferable$$() {
    return [];
  };
  $DvtPaletteStickyItem$$.prototype.$getDragFeedback$ = function $$DvtPaletteStickyItem$$$$$getDragFeedback$$() {
    var $dvt$$1$$ = [];
    this.$setSelected$(!1);
    $dvt$$1$$.push(this.$getPaletteVisualComponent$().$getContentShape$());
    return $dvt$$1$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteLinkItem$$, $DvtPaletteItem$$, "DvtPaletteLinkItem");
  $DvtPaletteLinkItem$$.$LINK_TYPE$ = "link";
  $DvtPaletteLinkItem$$.$NODE_TYPE$ = "node";
  $DvtPaletteLinkItem$$.prototype.getId = function $$DvtPaletteLinkItem$$$$getId$() {
    var $dvt$$1$$ = {};
    $dvt$$1$$.$paletteId$ = this.$_paletteId$;
    $dvt$$1$$.$def$ = this.$getTemplateDef$();
    $dvt$$1$$.type = $DvtPaletteLinkItem$$.$LINK_TYPE$;
    $dvt$$1$$.id = this.$_id$;
    return $dvt$$1$$;
  };
  $DvtPaletteLinkItem$$.prototype.$getPaletteVisualComponent$ = function $$DvtPaletteLinkItem$$$$$getPaletteVisualComponent$$() {
    if (this.$_paletteStamp$) {
      return this.$_paletteStamp$;
    }
    var $DvtScrollbarBackground$$ = new $DvtAdfDiagramLinkData$$, $DvtScrollbar$$ = this.$getTemplateDef$(), $DvtScrollbarBackground$$ = new $dvt$$1$$.$AdfDiagramLink$(this.$_context$, $DvtScrollbarBackground$$, this.$_palette$.$getDiagram$());
    $DvtScrollbarBackground$$.$setLinkDef$($DvtScrollbar$$);
    $DvtScrollbarBackground$$.$setSelectable$(!1);
    $DvtScrollbarBackground$$.$setPoints$([0, 0, $DvtScrollbarBackground$$.$getLinkLength$(), 0]);
    $DvtScrollbar$$ = new $DvtAfPaletteLink$$($DvtScrollbarBackground$$, this.$_styleMap$);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$AfPanelGroupLayout$;
    $DvtScrollbarBackground$$.$setLayout$($dvt$$1$$.$AfPanelGroupLayout$.$LAYOUT_VERTICAL$);
    $DvtScrollbarBackground$$.$addChild$($DvtScrollbar$$);
    return this.$_paletteStamp$ = $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtAfPaletteLink$$, $dvt$$1$$.$AfComponent$, "DvtAfPaletteLink");
  $DvtAfPaletteLink$$.$TAG_NAME$ = "paletteLink";
  $dvt$$1$$.$AfComponentFactory$.$registerComponent$($DvtAfPaletteLink$$.$TAG_NAME$, $DvtAfPaletteLink$$);
  $DvtAfPaletteLink$$.prototype.$GetDefaultStyles$ = function $$DvtAfPaletteLink$$$$$GetDefaultStyles$$() {
    return $DvtAfPaletteLink$$.$_afStyles$;
  };
  $DvtAfPaletteLink$$.prototype.$SetDefaultStyles$ = function $$DvtAfPaletteLink$$$$$SetDefaultStyles$$($dvt$$1$$) {
    $DvtAfPaletteLink$$.$_afStyles$ = $dvt$$1$$;
  };
  $DvtAfPaletteLink$$.prototype.$createContentShape$ = function $$DvtAfPaletteLink$$$$$createContentShape$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.getId();
    $DvtScrollbar$$ || ($DvtScrollbar$$ = "_PaletteLinkItem" + $dvt$$1$$.$AfComponent$.$genUniqueId$());
    $DvtScrollbar$$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$_dvtContext$ = $DvtScrollbarBackground$$;
    $DvtScrollbar$$.$addChild$(this.$_drawableContent$);
    return $DvtScrollbar$$;
  };
  $DvtAfPaletteLink$$.prototype.$renderSelfBeforeChildren$ = function $$DvtAfPaletteLink$$$$$renderSelfBeforeChildren$$() {
    this.$_drawableContent$.$renderLink$();
    var $DvtScrollbarBackground$$ = this.$_drawableContent$.$getDimensions$(), $DvtScrollbar$$ = new $dvt$$1$$.Rect(this.$_dvtContext$, 0, 0, $DvtScrollbarBackground$$.$w$ + 2 * this.$_styleMap$.linkItem.paddingX, $DvtScrollbarBackground$$.$h$ + 2 * this.$_styleMap$.linkItem.paddingY);
    $DvtScrollbar$$.$setInvisibleFill$();
    this.$_drawableContent$.$setTranslate$(-$DvtScrollbarBackground$$.x + this.$_styleMap$.linkItem.paddingX, -$DvtScrollbarBackground$$.y + this.$_styleMap$.linkItem.paddingY);
    this.$_drawableContent$.getParent().$addChildAt$($DvtScrollbar$$, 0);
    this.$_drawableContent$.$_shape$.$_logicalObject$ = null;
  };
  $DvtAfPaletteLink$$.prototype.$getBounds$ = function $$DvtAfPaletteLink$$$$$getBounds$$() {
    var $DvtScrollbarBackground$$ = this.$_drawableContent$.getParent().$getDimensions$();
    return new $dvt$$1$$.$Rectangle$(0, 0, $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.$h$);
  };
  $DvtAfPaletteLink$$.prototype.$getTagName$ = function $$DvtAfPaletteLink$$$$$getTagName$$() {
    return $DvtAfPaletteLink$$.$TAG_NAME$;
  };
  $DvtAfPaletteLink$$.prototype.$_hasBgShape$ = function $$DvtAfPaletteLink$$$$$_hasBgShape$$() {
    return !1;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteSection$$, $dvt$$1$$.$Obj$, "DvtPaletteSection");
  $DvtPaletteSection$$.prototype.Init = function $$DvtPaletteSection$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    this.$_id$ = $DvtScrollbarBackground$$;
    this.$_label$ = $DvtScrollbar$$;
    this.$_items$ = [];
    this.$_palette$ = $dvt$$1$$;
    this.$_bDisclosed$ = !1;
    this.$_context$ = $dvt$$1$$.$getCtx$();
    this.$_styleMap$ = $DvtScrollbarEvent$$;
  };
  $DvtPaletteSection$$.prototype.getId = function $$DvtPaletteSection$$$$getId$() {
    return this.$_id$;
  };
  $DvtPaletteSection$$.prototype.$getLabel$ = function $$DvtPaletteSection$$$$$getLabel$$() {
    return this.$_label$;
  };
  $DvtPaletteSection$$.prototype.$addItem$ = function $$DvtPaletteSection$$$$$addItem$$($dvt$$1$$) {
    return this.$_items$.push($dvt$$1$$);
  };
  $DvtPaletteSection$$.prototype.$getItems$ = function $$DvtPaletteSection$$$$$getItems$$() {
    return this.$_items$;
  };
  $DvtPaletteSection$$.prototype.$setDisclosed$ = function $$DvtPaletteSection$$$$$setDisclosed$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = !1;
    "boolean" === typeof $dvt$$1$$ ? $DvtScrollbarBackground$$ = $dvt$$1$$ : "string" === typeof $dvt$$1$$ && ($DvtScrollbarBackground$$ = "true" === $dvt$$1$$.toLowerCase());
    this.$_bDisclosed$ = $DvtScrollbarBackground$$;
  };
  $DvtPaletteSection$$.prototype.$isDisclosed$ = function $$DvtPaletteSection$$$$$isDisclosed$$() {
    return this.$_bDisclosed$;
  };
  $DvtPaletteSection$$.prototype.$setSelectedItemId$ = function $$DvtPaletteSection$$$$$setSelectedItemId$$($dvt$$1$$) {
    this.$_selectedItemId$ = $dvt$$1$$;
  };
  $DvtPaletteSection$$.prototype.$getSelectedItem$ = function $$DvtPaletteSection$$$$$getSelectedItem$$() {
    var $dvt$$1$$ = this.$getItems$(), $DvtScrollbarBackground$$ = this.$_selectedItemId$;
    if (!$DvtScrollbarBackground$$ && 0 < $dvt$$1$$.length) {
      return $dvt$$1$$[0];
    }
    for (var $DvtScrollbar$$ = 0;$DvtScrollbar$$ < $dvt$$1$$.length;$DvtScrollbar$$++) {
      if ($dvt$$1$$[$DvtScrollbar$$].getId().id === $DvtScrollbarBackground$$) {
        return $dvt$$1$$[$DvtScrollbar$$];
      }
    }
    return null;
  };
  $DvtPaletteSection$$.prototype.$render$ = function $$DvtPaletteSection$$$$$render$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = 0, $spacerHeight$$ = 2 * this.$_styleMap$.sectionItem.itemPaddingY, $DvtAdfDiagramDragSource$$ = 0;
    if (0 < this.$_items$.length) {
      for (var $DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < this.$_items$.length;$DvtScrollbarArrow$$++) {
        var $item$$5_shapeDim$$1$$ = this.$_items$[$DvtScrollbarArrow$$];
        $dvt$$1$$.$addChild$($item$$5_shapeDim$$1$$.$_itemContainer$);
        $item$$5_shapeDim$$1$$.$RenderShape$($DvtScrollbarBackground$$, $DvtScrollbar$$);
        ($item$$5_shapeDim$$1$$ = $item$$5_shapeDim$$1$$.$_shapeDims$) && $DvtScrollbarEvent$$ < $item$$5_shapeDim$$1$$.$w$ && ($DvtScrollbarEvent$$ = $item$$5_shapeDim$$1$$.$w$);
      }
      for ($DvtScrollbarArrow$$ = 0;$DvtScrollbarArrow$$ < this.$_items$.length;$DvtScrollbarArrow$$++) {
        $item$$5_shapeDim$$1$$ = this.$_items$[$DvtScrollbarArrow$$], $dvt$$1$$ = Math.max(this.$_styleMap$.sectionItem.minHeight, $item$$5_shapeDim$$1$$.$_shapeDims$ ? $item$$5_shapeDim$$1$$.$_shapeDims$.$h$ : 0), $item$$5_shapeDim$$1$$.$SetLabelOffsetX$($DvtScrollbarEvent$$), $item$$5_shapeDim$$1$$.$RenderLabel$($DvtScrollbarBackground$$ - $DvtScrollbarEvent$$, $dvt$$1$$), $item$$5_shapeDim$$1$$.$layout$(), $item$$5_shapeDim$$1$$.$_itemContainer$.$setTranslate$(0, $DvtAdfDiagramDragSource$$), $DvtAdfDiagramDragSource$$ += 
        $dvt$$1$$ + $spacerHeight$$;
      }
    }
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteSelectionHandler$$, $dvt$$1$$.$SelectionHandler$, "DvtPaletteSelectionHandler");
  $DvtPaletteSelectionHandler$$.prototype.Init = function $$DvtPaletteSelectionHandler$$$$Init$() {
    this.$_type$ = $dvt$$1$$.$SelectionHandler$.$TYPE_SINGLE$;
    $DvtPaletteSelectionHandler$$.$superclass$.Init.call(this, this.$_type$);
  };
  $DvtPaletteSelectionHandler$$.prototype.$processClick$ = function $$DvtPaletteSelectionHandler$$$$$processClick$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = !1;
    $dvt$$1$$ && $dvt$$1$$.$isSelectable$ && $dvt$$1$$.$isSelectable$() ? $dvt$$1$$.$isSelected$() ? $dvt$$1$$ instanceof $DvtPaletteStickyItem$$ && ($DvtScrollbarBackground$$ = this.$_clearSelectionExceptLink$()) : $DvtScrollbarBackground$$ = this.$_addToSelectionExceptLink$($dvt$$1$$) : $DvtScrollbarBackground$$ = this.$_clearSelectionExceptLink$();
    return $DvtScrollbarBackground$$;
  };
  $DvtPaletteSelectionHandler$$.prototype.$_addToSelectionExceptLink$ = function $$DvtPaletteSelectionHandler$$$$$_addToSelectionExceptLink$$($dvt$$1$$) {
    if ($dvt$$1$$.$isSelected$()) {
      return !1;
    }
    $dvt$$1$$ instanceof $DvtPaletteStickyItem$$ ? this.$_clearSelectionExceptLink$() : $dvt$$1$$ instanceof $DvtPaletteLinkItem$$ && this.$_clearSelectionExceptNode$();
    $dvt$$1$$.$setSelected$(!0);
    this.$_selection$.push($dvt$$1$$);
    return !0;
  };
  $DvtPaletteSelectionHandler$$.prototype.$_clearSelectionExceptLink$ = function $$DvtPaletteSelectionHandler$$$$$_clearSelectionExceptLink$$() {
    if (0 >= this.$_selection$.length) {
      return !1;
    }
    for (var $dvt$$1$$ = null, $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_selection$.length;$DvtScrollbarBackground$$++) {
      var $DvtScrollbar$$ = this.$_selection$[$DvtScrollbarBackground$$];
      $DvtScrollbar$$ instanceof $DvtPaletteLinkItem$$ ? $dvt$$1$$ = $DvtScrollbar$$ : $DvtScrollbar$$.$setSelected$(!1);
    }
    this.$_selection$ = [];
    $dvt$$1$$ && this.$_selection$.push($dvt$$1$$);
    return !0;
  };
  $DvtPaletteSelectionHandler$$.prototype.$_clearSelectionExceptNode$ = function $$DvtPaletteSelectionHandler$$$$$_clearSelectionExceptNode$$() {
    if (!(0 >= this.$_selection$.length)) {
      for (var $dvt$$1$$ = null, $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < this.$_selection$.length;$DvtScrollbarBackground$$++) {
        var $DvtScrollbar$$ = this.$_selection$[$DvtScrollbarBackground$$];
        $DvtScrollbar$$ instanceof $DvtPaletteStickyItem$$ ? $dvt$$1$$ = $DvtScrollbar$$ : $DvtScrollbar$$.$setSelected$(!1);
      }
      this.$_selection$ = [];
      $dvt$$1$$ && this.$_selection$.push($dvt$$1$$);
    }
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtPaletteDefaults$$, $dvt$$1$$.$BaseComponentDefaults$, "DvtPaletteDefaults");
  $DvtPaletteDefaults$$.$VERSION_1$ = {skin:$dvt$$1$$.$CSSStyle$.$SKIN_ALTA$, paddingX:0, paddingY:5, minWidth:150, maxWidth:300, sectionItem:{labelStyle:new $dvt$$1$$.$CSSStyle$($dvt$$1$$.$BaseComponentDefaults$.$FONT_FAMILY_ALTA_12$ + "color:#333333;"), labelPaddingX:10, fillColorSelected:"#CFE8FC", fillColorHover:"#ebeced", borderRadius:2, minHeight:24, itemPaddingX:5, itemPaddingY:5}, linkItem:{paddingX:10, paddingY:10}};
  $DvtPaletteDefaults$$.$SKIN_ALTA$ = {};
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollbarEvent$$, $dvt$$1$$.$BaseComponentEvent$, "DvtScrollbarEvent");
  $DvtScrollbarEvent$$.$SB_MOVE$ = "scrollbarMove";
  $DvtScrollbarEvent$$.$SB_MOVE_COMPLETE$ = "scrollbarMoveComplete";
  $DvtScrollbarEvent$$.$SB_RESIZE$ = "scrollbarResize";
  $DvtScrollbarEvent$$.$SB_RESIZE_COMPLETE$ = "scrollbarResizeComplete";
  $DvtScrollbarEvent$$.prototype.Init = function $$DvtScrollbarEvent$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, $valueDelta$$1$$) {
    $DvtScrollbarEvent$$.$superclass$.Init.call(this, $dvt$$1$$);
    this.type = $dvt$$1$$;
    this.$_sb$ = $DvtScrollbarBackground$$;
    this.$_startCoord$ = $DvtScrollbar$$;
    this.$_endCoord$ = $DvtAdfDiagramDragSource$$;
    this.$_delta$ = $valueDelta$$1$$;
  };
  $DvtScrollbarEvent$$.prototype.$getStartCoord$ = function $$DvtScrollbarEvent$$$$$getStartCoord$$() {
    return this.$_startCoord$;
  };
  $DvtScrollbarEvent$$.prototype.$getEndCoord$ = function $$DvtScrollbarEvent$$$$$getEndCoord$$() {
    return this.$_endCoord$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollbar$$, $dvt$$1$$.$Container$, "DvtScrollbar");
  $DvtScrollbar$$.$SMALL_SCROLL_AMOUNT$ = .2;
  $DvtScrollbar$$.$LARGE_SCROLL_AMOUNT$ = 1;
  $DvtScrollbar$$.$MIN_THUMB_SIZE$ = 30;
  $DvtScrollbar$$.$SCROLL_TIMER_DELAY$ = 50;
  $DvtScrollbar$$.$SCROLL_TIMER_INITIAL_DELAY$ = 400;
  $DvtScrollbar$$.$THUMB_TYPE$ = "thumb";
  $DvtScrollbar$$.$_TEST_ID_THIS$ = 0;
  $DvtScrollbar$$.$_TEST_ID_SCROLL_THUMB$ = 1;
  $DvtScrollbar$$.$_TEST_ID_SCROLL_BUTTON_DOWN$ = 2;
  $DvtScrollbar$$.$_TEST_ID_SCROLL_BUTTON_UP$ = 3;
  $DvtScrollbar$$.$BACKGROUND$ = "scrollbarBackground";
  $DvtScrollbar$$.$BORDER_COLOR$ = "scrollbarBorderColor";
  $DvtScrollbar$$.$HANDLE_COLOR$ = "scrollbarHandleColor";
  $DvtScrollbar$$.$HANDLE_ACTIVE_COLOR$ = "scrollbarHandleActiveColor";
  $DvtScrollbar$$.$HANDLE_HOVER_COLOR$ = "scrollbarHandleHoverColor";
  $DvtScrollbar$$.prototype.Init = function $$DvtScrollbar$$$$Init$($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramKeyboardHandler$$, $h$$7$$, $DvtAdfDiagramDropTarget$$, $DvtAdfDiagramNodeEndpoint$$, $styleMap$$39$$, $id$$56$$) {
    $DvtScrollbar$$.$superclass$.Init.call(this, $DvtScrollbarEvent$$);
    this.$_isHoriz$ = $DvtAdfDiagramDropTarget$$;
    this.$_styleMap$ = $styleMap$$39$$;
    this.$_skinName$ = $DvtAdfDiagramNodeEndpoint$$;
    this.$_clickDiff$ = {};
    this.$_clickStartPos$ = {};
    this.$_lastMovePos$ = -1;
    this.$_container$ = new $dvt$$1$$.Rect($DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramKeyboardHandler$$, $h$$7$$, $id$$56$$);
    this.$_container$.$setPixelHinting$();
    this.$addChild$(this.$_container$);
    this.$_background$ = new $DvtScrollbarBackground$$(this);
    this.$_container$.$addChild$(this.$_background$);
    this.$IsSkinAlta$() ? this.$_arrowWidth$ = 0 : (this.$_arrowWidth$ = $DvtScrollbarArrow$$.$WIDTH$, this.$_isHoriz$ ? (this.$_arrowDown$ = new $DvtScrollbarArrow$$(this, $DvtScrollbarArrow$$.$ORIENT_LEFT$), this.$_arrowUp$ = new $DvtScrollbarArrow$$(this, $DvtScrollbarArrow$$.$ORIENT_RIGHT$)) : (this.$_arrowDown$ = new $DvtScrollbarArrow$$(this, $DvtScrollbarArrow$$.$ORIENT_DOWN$), this.$_arrowUp$ = new $DvtScrollbarArrow$$(this, $DvtScrollbarArrow$$.$ORIENT_UP$)), this.$_container$.$addChild$(this.$_arrowDown$), 
    this.$_container$.$addChild$(this.$_arrowUp$), this.$_container$.$setSolidStroke$("black"));
    this.$_thumbStartPos$ = this.$_thumbStartMin$ = this.$_arrowWidth$;
    this.$_thumbLength$ = this.$_thumbLengthMax$ = this.$_isHoriz$ ? $DvtAdfDiagramKeyboardHandler$$ - 2 * this.$_arrowWidth$ : $h$$7$$ - 2 * this.$_arrowWidth$;
    this.$_thumb$ = new $DvtScrollbarThumb$$(this, this.$_skinName$);
    this.$_container$.$addChild$(this.$_thumb$);
    this.$_scrollTimer$ = new $dvt$$1$$.$Timer$($DvtScrollbarEvent$$, $DvtScrollbar$$.$SCROLL_TIMER_DELAY$, this.$repeatScroll$, this);
    this.$_initScrollTimer$ = new $dvt$$1$$.$Timer$($DvtScrollbarEvent$$, $DvtScrollbar$$.$SCROLL_TIMER_INITIAL_DELAY$, this.$initRepeatScroll$, this);
    this.$_bScrolled$ = !1;
    this.$_isLiveScroll$ = !0;
  };
  $DvtScrollbar$$.prototype.$getStyleMap$ = function $$DvtScrollbar$$$$$getStyleMap$$() {
    return this.$_styleMap$;
  };
  $DvtScrollbar$$.prototype.$IsSkinAlta$ = function $$DvtScrollbar$$$$$IsSkinAlta$$() {
    return "alta" == this.$_skinName$;
  };
  $DvtScrollbar$$.prototype.$isHorizontal$ = function $$DvtScrollbar$$$$$isHorizontal$$() {
    return this.$_isHoriz$;
  };
  $DvtScrollbar$$.prototype.$initRepeatScroll$ = function $$DvtScrollbar$$$$$initRepeatScroll$$() {
    this.$_initScrollTimer$.stop();
    this.$_scrollTimer$.stop();
    this.$_scrollTimer$.start();
  };
  $DvtScrollbar$$.prototype.$repeatScroll$ = function $$DvtScrollbar$$$$$repeatScroll$$() {
    this.$_arrow$ && !this.$_arrow$.$isDisabled$() && this.$arrowScroll$();
  };
  $DvtScrollbar$$.prototype.$arrowScroll$ = function $$DvtScrollbar$$$$$arrowScroll$$() {
    var $dvt$$1$$ = $DvtScrollbar$$.$SMALL_SCROLL_AMOUNT$;
    this.$_lastMovePos$ = this.$_thumbStartPos$;
    switch(this.$_arrow$.$_orientation$) {
      case $DvtScrollbarArrow$$.$ORIENT_RIGHT$:
      ;
      case $DvtScrollbarArrow$$.$ORIENT_DOWN$:
        this.doScroll($dvt$$1$$);
        break;
      case $DvtScrollbarArrow$$.$ORIENT_LEFT$:
      ;
      case $DvtScrollbarArrow$$.$ORIENT_UP$:
        this.doScroll(-$dvt$$1$$);
    }
    this.$_bScrolled$ = !0;
    this.$_fireMoveEvent$(!this.$_isLiveScroll$);
  };
  $DvtScrollbar$$.prototype.doScroll = function $$DvtScrollbar$$$$doScroll$($dvt$$1$$) {
    this.moveTo(this.$_thumbStartPos$ + Math.round(this.$_thumbLength$ * $dvt$$1$$));
  };
  $DvtScrollbar$$.prototype.moveTo = function $$DvtScrollbar$$$$moveTo$($dvt$$1$$) {
    $dvt$$1$$ < this.$_thumbStartMin$ && ($dvt$$1$$ = this.$_thumbStartMin$);
    $dvt$$1$$ + this.$_thumbLength$ > this.$_thumbStartMin$ + this.$_thumbLengthMax$ && ($dvt$$1$$ = this.$_thumbStartMin$ + this.$_thumbLengthMax$ - this.$_thumbLength$);
    this.$_thumbStartPos$ = $dvt$$1$$;
    this.$_thumb$.$updateSize$();
  };
  $DvtScrollbar$$.prototype.moveStart = function $$DvtScrollbar$$$$moveStart$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_thumbStartPos$ + this.$_thumbLength$;
    $dvt$$1$$ < this.$_thumbStartMin$ && ($dvt$$1$$ = this.$_thumbStartMin$);
    $dvt$$1$$ > $DvtScrollbarBackground$$ - $DvtScrollbar$$.$MIN_THUMB_SIZE$ && ($dvt$$1$$ = $DvtScrollbarBackground$$ - $DvtScrollbar$$.$MIN_THUMB_SIZE$);
    this.$_thumbStartPos$ = $dvt$$1$$;
    this.$_thumbLength$ = $DvtScrollbarBackground$$ - $dvt$$1$$;
    this.$_thumb$.$updateSize$();
  };
  $DvtScrollbar$$.prototype.moveEnd = function $$DvtScrollbar$$$$moveEnd$($dvt$$1$$) {
    $dvt$$1$$ < this.$_thumbStartPos$ + $DvtScrollbar$$.$MIN_THUMB_SIZE$ && ($dvt$$1$$ = this.$_thumbStartPos$ + $DvtScrollbar$$.$MIN_THUMB_SIZE$);
    $dvt$$1$$ > this.$_thumbStartMin$ + this.$_thumbLengthMax$ && ($dvt$$1$$ = this.$_thumbStartMin$ + this.$_thumbLengthMax$);
    this.$_thumbLength$ = $dvt$$1$$ - this.$_thumbStartPos$;
    this.$_thumb$.$updateSize$();
  };
  $DvtScrollbar$$.prototype.$processBackgroundClick$ = function $$DvtScrollbar$$$$$processBackgroundClick$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = 0;
    $dvt$$1$$ = this.$_isHoriz$ ? $dvt$$1$$.x - this.$getX$() : $dvt$$1$$.y - this.$getY$();
    $dvt$$1$$ < this.$_thumbStartPos$ ? $DvtScrollbarBackground$$ = -$DvtScrollbar$$.$LARGE_SCROLL_AMOUNT$ : $dvt$$1$$ > this.$_thumbStartPos$ + this.$_thumbLength$ && ($DvtScrollbarBackground$$ = $DvtScrollbar$$.$LARGE_SCROLL_AMOUNT$);
    0 != $DvtScrollbarBackground$$ && (this.$_lastMovePos$ = this.$_thumbStartPos$, this.doScroll($DvtScrollbarBackground$$), this.$_isLiveScroll$ && this.$_fireMoveEvent$(!1), this.$_fireMoveEvent$(!0));
  };
  $DvtScrollbar$$.prototype.$processArrowDown$ = function $$DvtScrollbar$$$$$processArrowDown$$($dvt$$1$$) {
    this.$_arrow$ = $dvt$$1$$;
    this.$arrowScroll$();
    this.$_initScrollTimer$.stop();
    this.$_initScrollTimer$.start();
  };
  $DvtScrollbar$$.prototype.$handleArrowDown$ = function $$DvtScrollbar$$$$$handleArrowDown$$($dvt$$1$$) {
    this.$processArrowDown$($dvt$$1$$);
  };
  $DvtScrollbar$$.prototype.$processArrowUp$ = function $$DvtScrollbar$$$$$processArrowUp$$() {
    this.$_clearTimers$();
    this.$_bScrolled$ && this.$_isLiveScroll$ && this.$_fireMoveEvent$(!0);
    this.$_bScrolled$ = !1;
  };
  $DvtScrollbar$$.prototype.$_clearTimers$ = function $$DvtScrollbar$$$$$_clearTimers$$() {
    this.$_initScrollTimer$.stop();
    this.$_scrollTimer$.stop();
  };
  $DvtScrollbar$$.prototype.$handleArrowUp$ = function $$DvtScrollbar$$$$$handleArrowUp$$() {
    this.$processArrowUp$();
  };
  $DvtScrollbar$$.prototype.$processThumbDragStart$ = function $$DvtScrollbar$$$$$processThumbDragStart$$($dvt$$1$$) {
    this.$isHorizontal$() ? this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$] = $dvt$$1$$.x : this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$] = $dvt$$1$$.y;
    this.$_lastMovePos$ = this.$_clickStartPos$[$DvtScrollbar$$.$THUMB_TYPE$] = this.$_thumbStartPos$;
  };
  $DvtScrollbar$$.prototype.$processThumbDragMove$ = function $$DvtScrollbar$$$$$processThumbDragMove$$($dvt$$1$$) {
    $dvt$$1$$ = this.$isHorizontal$() ? this.$_clickStartPos$[$DvtScrollbar$$.$THUMB_TYPE$] + ($dvt$$1$$.x - this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$]) : this.$_clickStartPos$[$DvtScrollbar$$.$THUMB_TYPE$] + ($dvt$$1$$.y - this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$]);
    this.moveTo($dvt$$1$$);
    this.$_fireMoveEvent$(!1);
  };
  $DvtScrollbar$$.prototype.$processThumbDragEnd$ = function $$DvtScrollbar$$$$$processThumbDragEnd$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = 0, $DvtScrollbarBackground$$ = this.$isHorizontal$() ? this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$] - $dvt$$1$$.x : this.$_clickDiff$[$DvtScrollbar$$.$THUMB_TYPE$] - $dvt$$1$$.y;
    0 != $DvtScrollbarBackground$$ && this.$_fireMoveEvent$(!0);
  };
  $DvtScrollbar$$.prototype.$_fireMoveEvent$ = function $$DvtScrollbar$$$$$_fireMoveEvent$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$;
    if ($dvt$$1$$) {
      $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$.$SB_MOVE_COMPLETE$;
    } else {
      if (this.$_isLiveScroll$) {
        $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$.$SB_MOVE$;
      } else {
        return;
      }
    }
    var $DvtScrollbar$$ = this.$_thumbStartPos$ - this.$_thumbStartMin$, $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$ + this.$_thumbLength$, $movedDelta$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$ = null;
    $movedDelta$$ = this.$_thumbStartPos$ - this.$_lastMovePos$;
    this.$_lastMovePos$ = this.$_thumbStartPos$;
    $DvtScrollbarArrow$$ = $movedDelta$$ / this.$_thumbLengthMax$;
    if (0 != $movedDelta$$ || $dvt$$1$$) {
      $DvtAdfDiagramEditorManager$$ = new $DvtScrollbarEvent$$($DvtScrollbarBackground$$, this, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, $movedDelta$$, $DvtScrollbarArrow$$);
    }
    $DvtAdfDiagramEditorManager$$ && this.$FireListener$($DvtAdfDiagramEditorManager$$, !1);
  };
  $DvtScrollbar$$.prototype.move = function $$DvtScrollbar$$$$move$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$moveSliderPercent$($dvt$$1$$);
    $DvtScrollbarBackground$$ && this.$_fireMoveEvent$($DvtScrollbar$$);
  };
  $DvtScrollbar$$.prototype.$moveSliderPercent$ = function $$DvtScrollbar$$$$$moveSliderPercent$$($dvt$$1$$) {
    -100 > $dvt$$1$$ || 100 < $dvt$$1$$ || this.$moveSlider$($dvt$$1$$ / 100 * this.$_thumbLengthMax$);
  };
  $DvtScrollbar$$.prototype.$moveSlider$ = function $$DvtScrollbar$$$$$moveSlider$$($dvt$$1$$) {
    this.$isHorizontal$();
    this.moveTo(this.$_thumbStartPos$ + $dvt$$1$$);
  };
  $DvtScrollbar$$.prototype.$getX$ = function $$DvtScrollbar$$$$$getX$$() {
    return this.$_container$.$getX$();
  };
  $DvtScrollbar$$.prototype.$getY$ = function $$DvtScrollbar$$$$$getY$$() {
    return this.$_container$.$getY$();
  };
  $DvtScrollbar$$.prototype.getWidth = function $$DvtScrollbar$$$$getWidth$() {
    return this.$_container$.getWidth();
  };
  $DvtScrollbar$$.prototype.getHeight = function $$DvtScrollbar$$$$getHeight$() {
    return this.$_container$.getHeight();
  };
  $DvtScrollbar$$.prototype.$setLogicalThumbStartAndLength$ = function $$DvtScrollbar$$$$$setLogicalThumbStartAndLength$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_thumbStartPos$ = this.$_arrowWidth$ + $dvt$$1$$;
    this.$_thumbLength$ = $DvtScrollbarBackground$$;
    this.$_thumb$.$updateSize$();
  };
  $DvtScrollbar$$.prototype.$destroy$ = function $$DvtScrollbar$$$$$destroy$$() {
    this.$_container$ && (this.$_thumb$ && (this.$_thumb$.$destroy$(), this.$_container$.removeChild(this.$_thumb$), this.$_thumb$ = null), this.$_arrowDown$ && (this.$_arrowDown$.$destroy$(), this.$_container$.removeChild(this.$_arrowDown$), this.$_arrowDown$ = null), this.$_arrowUp$ && (this.$_arrowUp$.$destroy$(), this.$_container$.removeChild(this.$_arrowUp$), this.$_arrowUp$ = null), this.$_background$ && (this.$_background$.$destroy$(), this.$_container$.removeChild(this.$_background$), this.$_background$ = 
    null));
    $DvtScrollbar$$.$superclass$.$destroy$.call(this);
    this.$_container$ = null;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollbarArrow$$, $dvt$$1$$.$Container$, "DvtScrollbarArrow");
  $DvtScrollbarArrow$$.$WIDTH$ = 15;
  $DvtScrollbarArrow$$.$ORIENT_RIGHT$ = 0;
  $DvtScrollbarArrow$$.$ORIENT_UP$ = 1;
  $DvtScrollbarArrow$$.$ORIENT_LEFT$ = 2;
  $DvtScrollbarArrow$$.$ORIENT_DOWN$ = 3;
  $DvtScrollbarArrow$$.$ARROW_UP_BORDER$ = "#000000";
  $DvtScrollbarArrow$$.$ARROW_UP_BORDER_ALPHA$ = 0;
  $DvtScrollbarArrow$$.$ARROW_UP_FILL$ = "#000000";
  $DvtScrollbarArrow$$.$BG_UP_FILL_COLORS$ = ["#ffffff", "#ffffff"];
  $DvtScrollbarArrow$$.$BG_UP_FILL_ALPHAS$ = [0, 0];
  $DvtScrollbarArrow$$.$BG_UP_FILL_RATIOS$ = [0, 255];
  $DvtScrollbarArrow$$.$ARROW_OVER_BORDER$ = "#000000";
  $DvtScrollbarArrow$$.$ARROW_OVER_BORDER_ALPHA$ = 0;
  $DvtScrollbarArrow$$.$ARROW_OVER_FILL$ = "#000000";
  $DvtScrollbarArrow$$.$BG_OVER_FILL_COLORS$ = ["#0d8cf9", "#4ab5fc"];
  $DvtScrollbarArrow$$.$BG_OVER_FILL_ALPHAS$ = [1, 1];
  $DvtScrollbarArrow$$.$BG_OVER_FILL_RATIOS$ = [0, 255];
  $DvtScrollbarArrow$$.$ARROW_DOWN_BORDER$ = "#4e555e";
  $DvtScrollbarArrow$$.$ARROW_DOWN_BORDER_ALPHA$ = 1;
  $DvtScrollbarArrow$$.$ARROW_DOWN_FILL$ = "#ffffff";
  $DvtScrollbarArrow$$.$BG_DOWN_FILL_COLORS$ = ["#4e555e", "#a7b7d4"];
  $DvtScrollbarArrow$$.$BG_DOWN_FILL_ALPHAS$ = [1, 1];
  $DvtScrollbarArrow$$.$BG_DOWN_FILL_RATIOS$ = [0, 255];
  $DvtScrollbarArrow$$.prototype.Init = function $$DvtScrollbarArrow$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $w$$9$$, $DvtAdfDiagramEditorManager$$;
    this.$_sb$ = $DvtScrollbarBackground$$;
    this.$_orientation$ = $DvtScrollbar$$;
    this.$_arrow$ = null;
    this.$_disabled$ = !1;
    $DvtScrollbarBackground$$.$isHorizontal$() ? ($DvtScrollbar$$ == $DvtScrollbarArrow$$.$ORIENT_LEFT$ ? ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getX$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getY$()) : $DvtScrollbar$$ == $DvtScrollbarArrow$$.$ORIENT_RIGHT$ && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getX$() + $DvtScrollbarBackground$$.getWidth() - $DvtScrollbarArrow$$.$WIDTH$, $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getY$()), $w$$9$$ = $DvtScrollbarArrow$$.$WIDTH$, 
    $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.getHeight()) : ($DvtScrollbar$$ == $DvtScrollbarArrow$$.$ORIENT_DOWN$ ? ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getX$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getY$() + $DvtScrollbarBackground$$.getHeight() - $DvtScrollbarArrow$$.$WIDTH$) : $DvtScrollbar$$ == $DvtScrollbarArrow$$.$ORIENT_UP$ && ($DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getX$(), $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getY$()), 
    $w$$9$$ = $DvtScrollbarBackground$$.getWidth(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarArrow$$.$WIDTH$);
    var $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbarBackground$$.$getCtx$();
    $DvtScrollbarArrow$$.$superclass$.Init.call(this, $DvtAdfDiagramKeyboardHandler$$);
    this.$_container$ = new $dvt$$1$$.Rect($DvtAdfDiagramKeyboardHandler$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $w$$9$$, $DvtAdfDiagramEditorManager$$, null);
    this.$_arBGUpFillColors$ = $DvtScrollbarArrow$$.$BG_UP_FILL_COLORS$;
    this.$_arBGOverFillColors$ = $DvtScrollbarArrow$$.$BG_OVER_FILL_COLORS$;
    this.$_arBGDownFillColors$ = $DvtScrollbarArrow$$.$BG_DOWN_FILL_COLORS$;
    this.$_upFill$ = new $dvt$$1$$.$LinearGradientFill$(0, this.$_arBGUpFillColors$, $DvtScrollbarArrow$$.$BG_UP_FILL_ALPHAS$);
    this.$_overFill$ = new $dvt$$1$$.$LinearGradientFill$(0, this.$_arBGOverFillColors$, $DvtScrollbarArrow$$.$BG_OVER_FILL_ALPHAS$);
    this.$_downFill$ = new $dvt$$1$$.$LinearGradientFill$(0, this.$_arBGDownFillColors$, $DvtScrollbarArrow$$.$BG_DOWN_FILL_ALPHAS$);
    this.$_arrowUpFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$.$ARROW_UP_FILL$, null);
    this.$_arrowOverFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$.$ARROW_OVER_FILL$, null);
    this.$_arrowDownFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$.$ARROW_DOWN_FILL$, null);
    this.$_arrowUpBorder$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarArrow$$.$ARROW_UP_BORDER$, null, $DvtScrollbarArrow$$.$ARROW_UP_BORDER_ALPHA$);
    this.$_arrowOverBorder$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarArrow$$.$ARROW_OVER_BORDER$, null, $DvtScrollbarArrow$$.$ARROW_OVER_BORDER_ALPHA$);
    this.$_arrowDownBorder$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarArrow$$.$ARROW_DOWN_BORDER$, null, $DvtScrollbarArrow$$.$ARROW_DOWN_BORDER_ALPHA$);
    this.$_arrow$ = this.$_createArrow$();
    this.$_container$.$setPixelHinting$();
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : (this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, 
    this.$_mouseDownHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, this.$_mouseUpHandler$, !1, this));
    this.$_container$.$addChild$(this.$_arrow$);
    this.$addChild$(this.$_container$);
    this.$_drawOutState$();
  };
  $DvtScrollbarArrow$$.prototype.$_createArrow$ = function $$DvtScrollbarArrow$$$$$_createArrow$$() {
    var $DvtScrollbarBackground$$ = this.$_container$.$getX$() + this.$_container$.getWidth() / 2, $DvtScrollbar$$ = this.$_container$.$getY$() + this.$_container$.getHeight() / 2, $DvtScrollbarEvent$$ = [];
    this.$_orientation$ == $DvtScrollbarArrow$$.$ORIENT_RIGHT$ ? ($DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ - 2, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ + 2, $DvtScrollbar$$), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ - 2, $DvtScrollbar$$ + 3), $DvtScrollbarEvent$$.push($DvtScrollbarEvent$$[0], $DvtScrollbarEvent$$[1])) : this.$_orientation$ == $DvtScrollbarArrow$$.$ORIENT_UP$ ? ($DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ - 3, $DvtScrollbar$$ + 
    2), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$, $DvtScrollbar$$ - 2), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ + 3, $DvtScrollbar$$ + 2), $DvtScrollbarEvent$$.push($DvtScrollbarEvent$$[0], $DvtScrollbarEvent$$[1])) : this.$_orientation$ == $DvtScrollbarArrow$$.$ORIENT_LEFT$ ? ($DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ + 2, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ - 2, $DvtScrollbar$$), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ + 
    2, $DvtScrollbar$$ + 3), $DvtScrollbarEvent$$.push($DvtScrollbarEvent$$[0], $DvtScrollbarEvent$$[1])) : this.$_orientation$ == $DvtScrollbarArrow$$.$ORIENT_DOWN$ && ($DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ - 3, $DvtScrollbar$$ - 2), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$, $DvtScrollbar$$ + 2), $DvtScrollbarEvent$$.push($DvtScrollbarBackground$$ + 3, $DvtScrollbar$$ - 2), $DvtScrollbarEvent$$.push($DvtScrollbarEvent$$[0], $DvtScrollbarEvent$$[1]));
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Polygon$(this.$getCtx$(), $DvtScrollbarEvent$$, null);
    $DvtScrollbarBackground$$.$setFill$(this.$_arrowUpFill$);
    $DvtScrollbarBackground$$.$setStroke$(this.$_arrowUpBorder$);
    $DvtScrollbarBackground$$.$setMouseEnabled$(!1);
    return $DvtScrollbarBackground$$;
  };
  $DvtScrollbarArrow$$.prototype.$_mouseOverHandler$ = function $$DvtScrollbarArrow$$$$$_mouseOverHandler$$($dvt$$1$$) {
    this.$_drawOverState$();
    this.$_disabled$ = !1;
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarArrow$$.prototype.$_mouseOutHandler$ = function $$DvtScrollbarArrow$$$$$_mouseOutHandler$$($dvt$$1$$) {
    this.$_drawOutState$();
    this.$_disabled$ = !0;
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarArrow$$.prototype.$_mouseDownHandler$ = function $$DvtScrollbarArrow$$$$$_mouseDownHandler$$($dvt$$1$$) {
    this.$_drawDownState$();
    this.$_sb$.$handleArrowDown$(this);
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarArrow$$.prototype.$_mouseUpHandler$ = function $$DvtScrollbarArrow$$$$$_mouseUpHandler$$($dvt$$1$$) {
    this.$_drawOverState$();
    this.$_sb$.$handleArrowUp$();
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarArrow$$.prototype.$_touchHandler$ = function $$DvtScrollbarArrow$$$$$_touchHandler$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.type;
    $DvtScrollbar$$ == $dvt$$1$$.TouchEvent.$TOUCHSTART$ ? !this.$_dragStarted$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$.targetTouches[0]) && (this.$_sb$.$processArrowDown$(this), this.$_dragStarted$ = !0, this.$_touchId$ = $DvtScrollbar$$.identifier) : $DvtScrollbar$$ != $dvt$$1$$.TouchEvent.$TOUCHMOVE$ && $DvtScrollbar$$ == $dvt$$1$$.TouchEvent.$TOUCHEND$ && this.$_dragStarted$ && ($DvtScrollbar$$ = $dvt$$1$$.$TouchManager$.$getTouchById$(this.$_touchId$, $DvtScrollbarBackground$$.changedTouches)) && 
    (this.$_sb$.$processArrowUp$(), this.$_dragStarted$ = !1, this.$_touchId$ = null);
    $DvtScrollbarBackground$$.$blockTouchHold$();
    $DvtScrollbarBackground$$.preventDefault();
  };
  $DvtScrollbarArrow$$.prototype.$_drawOutState$ = function $$DvtScrollbarArrow$$$$$_drawOutState$$() {
    this.$_container$.$setFill$(this.$_upFill$);
    this.$_arrow$.$setStroke$(this.$_arrowUpBorder$);
    this.$_arrow$.$setFill$(this.$_arrowUpFill$);
  };
  $DvtScrollbarArrow$$.prototype.$_drawOverState$ = function $$DvtScrollbarArrow$$$$$_drawOverState$$() {
    this.$_container$.$setFill$(this.$_overFill$);
    this.$_arrow$.$setStroke$(this.$_arrowOverBorder$);
    this.$_arrow$.$setFill$(this.$_arrowOverFill$);
  };
  $DvtScrollbarArrow$$.prototype.$_drawDownState$ = function $$DvtScrollbarArrow$$$$$_drawDownState$$() {
    this.$_container$.$setFill$(this.$_downFill$);
    this.$_arrow$.$setStroke$(this.$_arrowDownBorder$);
    this.$_arrow$.$setFill$(this.$_arrowDownFill$);
  };
  $DvtScrollbarArrow$$.prototype.$isDisabled$ = function $$DvtScrollbarArrow$$$$$isDisabled$$() {
    return this.$_disabled$;
  };
  $DvtScrollbarArrow$$.prototype.$destroy$ = function $$DvtScrollbarArrow$$$$$destroy$$() {
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : (this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, 
    !1, this), this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, this.$_mouseDownHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, this.$_mouseUpHandler$, !1, this));
    this.$_container$ && this.$_arrow$ && (this.$_container$.removeChild(this.$_arrow$), this.$_arrow$ = null);
    $DvtScrollbarArrow$$.$superclass$.$destroy$.call(this);
    this.$_container$ = null;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollbarBackground$$, $dvt$$1$$.$Container$, "DvtScrollbarBackground");
  $DvtScrollbarBackground$$.$BORDER_COLOR$ = "rgb(206,211,226)";
  $DvtScrollbarBackground$$.$FILL_COLORS$ = ["#fafafb", "#e7e9ef"];
  $DvtScrollbarBackground$$.prototype.Init = function $$DvtScrollbarBackground$$$$Init$($DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $h$$9$$;
    this.$_sb$ = $DvtScrollbarEvent$$;
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getX$();
    $DvtScrollbarArrow$$ = $DvtScrollbarEvent$$.$getY$();
    $DvtAdfDiagramEditorManager$$ = $DvtScrollbarEvent$$.getWidth();
    $h$$9$$ = $DvtScrollbarEvent$$.getHeight();
    var $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbarEvent$$.$getCtx$();
    $DvtScrollbarBackground$$.$superclass$.Init.call(this, $DvtAdfDiagramKeyboardHandler$$);
    this.$_container$ = new $dvt$$1$$.Rect($DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $h$$9$$, null);
    this.$addChild$(this.$_container$);
    var $DvtAdfDiagramDropTarget$$;
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getStyleMap$();
    var $borderColor$$3$$;
    $DvtAdfDiagramDragSource$$ && ($DvtScrollbarArrow$$ = $DvtAdfDiagramDragSource$$[$DvtScrollbar$$.$BACKGROUND$], $borderColor$$3$$ = $DvtAdfDiagramDragSource$$[$DvtScrollbar$$.$BORDER_COLOR$], $DvtScrollbarArrow$$ ? $dvt$$1$$.$ColorUtils$.$isColor$($DvtScrollbarArrow$$) && ($DvtAdfDiagramDropTarget$$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$)) : ($DvtAdfDiagramDragSource$$ = $dvt$$1$$.$GradientParser$.$parseCSSGradient$($DvtScrollbarArrow$$)) && ($DvtAdfDiagramDropTarget$$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramDragSource$$.$getAngle$(), 
    $DvtAdfDiagramDragSource$$.$_arColors$, $DvtAdfDiagramDragSource$$.$_arAlphas$, $DvtAdfDiagramDragSource$$.$_arRatios$)));
    $DvtAdfDiagramDropTarget$$ || ($DvtScrollbarEvent$$ = $DvtScrollbarEvent$$.$isHorizontal$() ? 90 : 180, $DvtAdfDiagramDropTarget$$ = new $dvt$$1$$.$LinearGradientFill$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$.$FILL_COLORS$));
    this.$_container$.$setSolidStroke$($borderColor$$3$$ ? $borderColor$$3$$ : $DvtScrollbarBackground$$.$BORDER_COLOR$);
    this.$_container$.$setFill$($DvtAdfDiagramDropTarget$$);
    this.$_container$.$setPixelHinting$();
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : this.$addEvtListener$($dvt$$1$$.MouseEvent.$CLICK$, this.$_mouseClickHandler$, !1, this);
  };
  $DvtScrollbarBackground$$.prototype.$_touchHandler$ = function $$DvtScrollbarBackground$$$$$_touchHandler$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.type;
    $DvtScrollbar$$ == $dvt$$1$$.TouchEvent.$TOUCHSTART$ ? !this.$_backgroundClickStarted$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$.targetTouches[0]) && (this.$_backgroundClickStarted$ = !0, this.$_touchId$ = $DvtScrollbar$$.identifier) : $DvtScrollbar$$ != $dvt$$1$$.TouchEvent.$TOUCHMOVE$ && $DvtScrollbar$$ == $dvt$$1$$.TouchEvent.$TOUCHEND$ && this.$_backgroundClickStarted$ && ($DvtScrollbar$$ = $dvt$$1$$.$TouchManager$.$getTouchById$(this.$_touchId$, $DvtScrollbarBackground$$.changedTouches)) && 
    ($DvtScrollbar$$ = this.$getCtx$().$pageToStageCoords$($DvtScrollbar$$.pageX, $DvtScrollbar$$.pageY), $DvtScrollbar$$ = new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y), this.$_sb$.$processBackgroundClick$($DvtScrollbar$$), this.$_backgroundClickStarted$ = !1, this.$_touchId$ = null);
    $DvtScrollbarBackground$$.$blockTouchHold$();
    $DvtScrollbarBackground$$.preventDefault();
  };
  $DvtScrollbarBackground$$.prototype.$_mouseClickHandler$ = function $$DvtScrollbarBackground$$$$$_mouseClickHandler$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getCtx$().$pageToStageCoords$($DvtScrollbarBackground$$.$_event$.pageX, $DvtScrollbarBackground$$.$_event$.pageY), $DvtScrollbar$$ = new $dvt$$1$$.$Point$($DvtScrollbar$$.x, $DvtScrollbar$$.y);
    this.$_sb$.$processBackgroundClick$($DvtScrollbar$$);
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.preventDefault();
  };
  $DvtScrollbarBackground$$.prototype.$destroy$ = function $$DvtScrollbarBackground$$$$$destroy$$() {
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : this.$removeEvtListener$($dvt$$1$$.MouseEvent.$CLICK$, this.$_mouseClickHandler$, !1, this);
    $DvtScrollbarBackground$$.$superclass$.$destroy$.call(this);
    this.$_container$ = null;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollbarThumb$$, $dvt$$1$$.$Container$, "DvtScrollbarThumb");
  $DvtScrollbarThumb$$.$UP_BORDER_COLOR$ = "#c2cadb";
  $DvtScrollbarThumb$$.$UP_FILL_COLORS$ = ["#ffffff", "#e4eef8"];
  $DvtScrollbarThumb$$.$UP_FILL_ALPHAS$ = [1, 1];
  $DvtScrollbarThumb$$.$UP_FILL_RATIOS$ = [70, 255];
  $DvtScrollbarThumb$$.$OVER_BORDER_COLOR$ = "#097bf8";
  $DvtScrollbarThumb$$.$OVER_FILL_COLORS$ = ["#ffffff", "#bfdefd"];
  $DvtScrollbarThumb$$.$OVER_FILL_ALPHAS$ = [1, 1];
  $DvtScrollbarThumb$$.$OVER_FILL_RATIOS$ = [70, 255];
  $DvtScrollbarThumb$$.$DOWN_BORDER_COLOR$ = "#c2cadb";
  $DvtScrollbarThumb$$.$DOWN_FILL_COLORS$ = ["#ffffff", "#e4eef8"];
  $DvtScrollbarThumb$$.$DOWN_FILL_ALPHAS$ = [1, 1];
  $DvtScrollbarThumb$$.$DOWN_FILL_RATIOS$ = [70, 255];
  $DvtScrollbarThumb$$.$GRIP_ZONE_COLOR$ = "#b6bbca";
  $DvtScrollbarThumb$$.prototype.Init = function $$DvtScrollbarThumb$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $w$$11$$, $DvtAdfDiagramEditorManager$$;
    this.$_sb$ = $DvtScrollbarBackground$$;
    this.$_skinName$ = $DvtScrollbarEvent$$;
    $DvtScrollbarBackground$$.$isHorizontal$() ? ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getX$() + $DvtScrollbarBackground$$.$_thumbStartPos$, $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$getY$(), $w$$11$$ = $DvtScrollbarBackground$$.$_thumbLength$, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.getHeight()) : ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getX$(), $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$getY$() + $DvtScrollbarBackground$$.getHeight() - 
    $DvtScrollbarBackground$$.$_thumbStartPos$ - $DvtScrollbarBackground$$.$_thumbLength$, $w$$11$$ = $DvtScrollbarBackground$$.getWidth(), $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$.$_thumbLength$);
    var $DvtAdfDiagramKeyboardHandler$$ = $DvtScrollbarBackground$$.$getCtx$();
    $DvtScrollbarThumb$$.$superclass$.Init.call(this, $DvtAdfDiagramKeyboardHandler$$);
    this.$_container$ = new $dvt$$1$$.Rect($DvtAdfDiagramKeyboardHandler$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $w$$11$$, $DvtAdfDiagramEditorManager$$, null);
    $DvtAdfDiagramDragSource$$ = this.$_sb$.$isHorizontal$() ? 270 : 0;
    $DvtScrollbarArrow$$ = $DvtScrollbarBackground$$.$getStyleMap$();
    this.$IsSkinAlta$() && $DvtScrollbarArrow$$ ? (this.$_upFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$[$DvtScrollbar$$.$HANDLE_COLOR$]), this.$_overFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$[$DvtScrollbar$$.$HANDLE_HOVER_COLOR$]), this.$_downFill$ = new $dvt$$1$$.$SolidFill$($DvtScrollbarArrow$$[$DvtScrollbar$$.$HANDLE_ACTIVE_COLOR$]), this.$_downStroke$ = this.$_overStroke$ = this.$_upStroke$ = null) : (this.$_upFill$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramDragSource$$, 
    $DvtScrollbarThumb$$.$UP_FILL_COLORS$, $DvtScrollbarThumb$$.$UP_FILL_ALPHAS$), this.$_overFill$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramDragSource$$, $DvtScrollbarThumb$$.$OVER_FILL_COLORS$, $DvtScrollbarThumb$$.$OVER_FILL_ALPHAS$), this.$_downFill$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramDragSource$$, $DvtScrollbarThumb$$.$DOWN_FILL_COLORS$, $DvtScrollbarThumb$$.$DOWN_FILL_ALPHAS$), this.$_upStroke$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarThumb$$.$UP_BORDER_COLOR$, null, 
    1), this.$_overStroke$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarThumb$$.$OVER_BORDER_COLOR$, null, 1), this.$_downStroke$ = new $dvt$$1$$.$SolidStroke$($DvtScrollbarThumb$$.$DOWN_BORDER_COLOR$, null, 1), this.$_grip$ = this.$_createGrip$(), this.$_container$.$addChild$(this.$_grip$));
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : (this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this), this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, !1, this), this.$_removeDragListeners$ = 
    $dvt$$1$$.$SvgDocumentUtils$.$addDragListeners$(this, this.$_mouseDownHandler$, this.$_mouseMoveHandler$, this.$_mouseUpHandler$, this));
    this.$_container$.$setPixelHinting$();
    this.$addChild$(this.$_container$);
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? this.$_drawOverState$() : this.$_drawUpState$();
  };
  $DvtScrollbarThumb$$.prototype.$IsSkinAlta$ = function $$DvtScrollbarThumb$$$$$IsSkinAlta$$() {
    return "alta" == this.$_skinName$;
  };
  $DvtScrollbarThumb$$.prototype.$_touchHandler$ = function $$DvtScrollbarThumb$$$$$_touchHandler$$($dvt$$1$$) {
    this.$getTouchManager$().$preEventBubble$($dvt$$1$$);
    this.$getTouchManager$().$processAssociatedTouchDefault$($dvt$$1$$, this);
    this.$getTouchManager$().$postEventBubble$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$updateSize$ = function $$DvtScrollbarThumb$$$$$updateSize$$() {
    var $dvt$$1$$ = this.$_sb$;
    $dvt$$1$$.$isHorizontal$() ? (this.$setX$($dvt$$1$$.$getX$() + $dvt$$1$$.$_thumbStartPos$), this.$setWidth$($dvt$$1$$.$_thumbLength$)) : (this.$setY$($dvt$$1$$.$getY$() + $dvt$$1$$.$_thumbStartPos$), this.$setHeight$($dvt$$1$$.$_thumbLength$));
    null != this.$_grip$ && -1 != this.$_container$.$_findChild$(this.$_grip$) ? (this.$_container$.removeChild(this.$_grip$), this.$_grip$ = this.$_createGrip$(), this.$_container$.$addChild$(this.$_grip$)) : this.$_grip$ = this.$_createGrip$();
  };
  $DvtScrollbarThumb$$.prototype.$isHorizontal$ = function $$DvtScrollbarThumb$$$$$isHorizontal$$() {
    return this.$_sb$.$isHorizontal$();
  };
  $DvtScrollbarThumb$$.prototype.$_createGrip$ = function $$DvtScrollbarThumb$$$$$_createGrip$$() {
    var $DvtScrollbarBackground$$ = this.$getX$() + this.getWidth() / 2, $DvtScrollbar$$ = this.$getY$() + this.getHeight() / 2, $DvtScrollbarEvent$$ = "";
    this.$_sb$.$isHorizontal$() ? ($DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 4.5, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ - 4.5, $DvtScrollbar$$ + 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 1.5, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ - 1.5, $DvtScrollbar$$ + 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ + 
    1.5, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 1.5, $DvtScrollbar$$ + 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ + 4.5, $DvtScrollbar$$ - 3), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 4.5, $DvtScrollbar$$ + 3)) : ($DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 3, $DvtScrollbar$$ - 4.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 
    3, $DvtScrollbar$$ - 4.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 3, $DvtScrollbar$$ - 1.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 3, $DvtScrollbar$$ - 1.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 3, $DvtScrollbar$$ + 1.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 3, $DvtScrollbar$$ + 1.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.moveTo($DvtScrollbarBackground$$ - 
    3, $DvtScrollbar$$ + 4.5), $DvtScrollbarEvent$$ += $dvt$$1$$.$PathUtils$.lineTo($DvtScrollbarBackground$$ + 3, $DvtScrollbar$$ + 4.5));
    $dvt$$1$$.$PathUtils$.closePath();
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Path$(this.$getCtx$(), $DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$setSolidStroke$($DvtScrollbarThumb$$.$GRIP_ZONE_COLOR$);
    $DvtScrollbarBackground$$.$setMouseEnabled$(!1);
    return $DvtScrollbarBackground$$;
  };
  $DvtScrollbarThumb$$.prototype.$_mouseOverHandler$ = function $$DvtScrollbarThumb$$$$$_mouseOverHandler$$($dvt$$1$$) {
    this.$_drawOverState$();
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarThumb$$.prototype.$_mouseOutHandler$ = function $$DvtScrollbarThumb$$$$$_mouseOutHandler$$($dvt$$1$$) {
    this.$_drawUpState$();
    $dvt$$1$$ && $dvt$$1$$.preventDefault();
  };
  $DvtScrollbarThumb$$.prototype.$_mouseDownHandler$ = function $$DvtScrollbarThumb$$$$$_mouseDownHandler$$($DvtScrollbarBackground$$) {
    this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this);
    this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, !1, this);
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
    this.$processThumbDragStart$($DvtScrollbarBackground$$);
    this.$_drawDownState$();
    return !0;
  };
  $DvtScrollbarThumb$$.prototype.$processThumbDragStart$ = function $$DvtScrollbarThumb$$$$$processThumbDragStart$$($dvt$$1$$) {
    this.$_sb$.$processThumbDragStart$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$_mouseUpHandler$ = function $$DvtScrollbarThumb$$$$$_mouseUpHandler$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
    this.$processThumbDragEnd$($DvtScrollbar$$);
    this.$_drawUpState$();
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this);
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, !1, this);
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.preventDefault();
  };
  $DvtScrollbarThumb$$.prototype.$processThumbDragEnd$ = function $$DvtScrollbarThumb$$$$$processThumbDragEnd$$($dvt$$1$$) {
    this.$_sb$.$processThumbDragEnd$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$_mouseMoveHandler$ = function $$DvtScrollbarThumb$$$$$_mouseMoveHandler$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$Point$($DvtScrollbarBackground$$.pageX, $DvtScrollbarBackground$$.pageY);
    this.$processThumbDragMove$($DvtScrollbar$$);
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.preventDefault();
  };
  $DvtScrollbarThumb$$.prototype.$processThumbDragMove$ = function $$DvtScrollbarThumb$$$$$processThumbDragMove$$($dvt$$1$$) {
    this.$_sb$.$processThumbDragMove$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$_drawUpState$ = function $$DvtScrollbarThumb$$$$$_drawUpState$$() {
    this.$drawPlainState$();
  };
  $DvtScrollbarThumb$$.prototype.$drawHighlightState$ = function $$DvtScrollbarThumb$$$$$drawHighlightState$$() {
    this.$_overStroke$ && this.$setStroke$(this.$_overStroke$);
    this.$setFill$(this.$_overFill$);
  };
  $DvtScrollbarThumb$$.prototype.$drawPlainState$ = function $$DvtScrollbarThumb$$$$$drawPlainState$$() {
    this.$_upStroke$ && this.$setStroke$(this.$_upStroke$);
    this.$setFill$(this.$_upFill$);
  };
  $DvtScrollbarThumb$$.prototype.$_drawOverState$ = function $$DvtScrollbarThumb$$$$$_drawOverState$$() {
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? this.$drawPlainState$() : this.$drawHighlightState$();
  };
  $DvtScrollbarThumb$$.prototype.$_drawDownState$ = function $$DvtScrollbarThumb$$$$$_drawDownState$$() {
    this.$_downStroke$ && this.$setStroke$(this.$_downStroke$);
    this.$setFill$(this.$_downFill$);
  };
  $DvtScrollbarThumb$$.prototype.$getX$ = function $$DvtScrollbarThumb$$$$$getX$$() {
    return this.$_container$.$getX$();
  };
  $DvtScrollbarThumb$$.prototype.$getY$ = function $$DvtScrollbarThumb$$$$$getY$$() {
    return this.$_container$.$getY$();
  };
  $DvtScrollbarThumb$$.prototype.getWidth = function $$DvtScrollbarThumb$$$$getWidth$() {
    return this.$_container$.getWidth();
  };
  $DvtScrollbarThumb$$.prototype.getHeight = function $$DvtScrollbarThumb$$$$getHeight$() {
    return this.$_container$.getHeight();
  };
  $DvtScrollbarThumb$$.prototype.$setX$ = function $$DvtScrollbarThumb$$$$$setX$$($dvt$$1$$) {
    this.$_container$.$setX$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setY$ = function $$DvtScrollbarThumb$$$$$setY$$($dvt$$1$$) {
    this.$_container$.$setY$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setWidth$ = function $$DvtScrollbarThumb$$$$$setWidth$$($dvt$$1$$) {
    this.$_container$.$setWidth$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setHeight$ = function $$DvtScrollbarThumb$$$$$setHeight$$($dvt$$1$$) {
    this.$_container$.$setHeight$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setStroke$ = function $$DvtScrollbarThumb$$$$$setStroke$$($dvt$$1$$) {
    this.$_container$.$setStroke$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setSolidStroke$ = function $$DvtScrollbarThumb$$$$$setSolidStroke$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$_container$.$setSolidStroke$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $DvtScrollbarThumb$$.prototype.$setFill$ = function $$DvtScrollbarThumb$$$$$setFill$$($dvt$$1$$) {
    this.$_container$.$setFill$($dvt$$1$$);
  };
  $DvtScrollbarThumb$$.prototype.$setSolidFill$ = function $$DvtScrollbarThumb$$$$$setSolidFill$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_container$.$setSolidFill$($dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $DvtScrollbarThumb$$.prototype.$destroy$ = function $$DvtScrollbarThumb$$$$$destroy$$() {
    $dvt$$1$$.$Agent$.$isTouchDevice$() ? (this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHSTART$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHMOVE$, this.$_touchHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.TouchEvent.$TOUCHEND$, this.$_touchHandler$, !1, this)) : (this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOVER$, this.$_mouseOverHandler$, !1, this), this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEOUT$, this.$_mouseOutHandler$, 
    !1, this), this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEDOWN$, this.$_mouseDownHandler$, !1, this), this.$_removeDragListeners$.call(), this.$getCtx$().$_stage$.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEMOVE$, this.$_mouseMoveHandler$, !1, this), this.$getCtx$().$_stage$.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEUP$, this.$_mouseUpHandler$, !1, this));
    this.$_container$ && this.$_grip$ && (this.$_container$.removeChild(this.$_grip$), this.$_grip$ = null);
    $DvtScrollbarThumb$$.$superclass$.$destroy$.call(this);
    this.$_container$ = null;
  };
  $DvtScrollbarThumb$$.prototype.$getTouchManager$ = function $$DvtScrollbarThumb$$$$$getTouchManager$$() {
    !this.$_touchManager$ && $dvt$$1$$.$Agent$.$isTouchDevice$() && (this.$_touchManager$ = new $dvt$$1$$.$TouchManager$("_touchManager_sb", this.$_context$));
    return this.$_touchManager$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtScrollableContainer$$, $dvt$$1$$.$Container$, "DvtScrollableContainer");
  $DvtScrollableContainer$$.$DEFAULT_SCROLLBAR_WIDTH$ = 14;
  $DvtScrollableContainer$$.$DEFAULT_ALTA_SCROLLBAR_WIDTH$ = 11;
  $DvtScrollableContainer$$.prototype.Init = function $$DvtScrollableContainer$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $maxH$$1$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$) {
    $DvtScrollableContainer$$.$superclass$.Init.call(this, $DvtScrollbarBackground$$);
    this.$_scrollbarContentGap$ = $DvtScrollbarArrow$$;
    this.$_skinName$ = $DvtAdfDiagramEditorManager$$;
    this.$_sbWidth$ = this.$IsSkinAlta$() ? $DvtScrollableContainer$$.$DEFAULT_ALTA_SCROLLBAR_WIDTH$ : $DvtScrollableContainer$$.$DEFAULT_SCROLLBAR_WIDTH$;
    $DvtAdfDiagramDragSource$$ ? (this.$_maxW$ = $DvtAdfDiagramDragSource$$, this.$_maxContentW$ = $DvtAdfDiagramDragSource$$ - this.$_sbWidth$ - this.$_scrollbarContentGap$) : this.$_maxContentW$ = this.$_maxW$ = Number.MAX_VALUE;
    $maxH$$1$$ ? (this.$_maxH$ = $maxH$$1$$, this.$_maxContentH$ = $maxH$$1$$ - this.$_sbWidth$ - this.$_scrollbarContentGap$) : this.$_maxContentH$ = this.$_maxH$ = Number.MAX_VALUE;
    this.$_minW$ = $DvtScrollbar$$;
    this.$_fullW$ = 0;
    this.$_minH$ = $DvtScrollbarEvent$$;
    this.$_fullH$ = 0;
    this.$_hsb$ = null;
    this.$_hsbStart$ = this.$_hsbScale$ = 0;
    this.$_vsb$ = null;
    this.$_translateX$ = this.$_translateY$ = this.$_vsbStart$ = this.$_vsbScale$ = 0;
    this.$_contentPane$ = new $dvt$$1$$.$Container$($DvtScrollbarBackground$$);
    $DvtScrollableContainer$$.$superclass$.$addChild$.call(this, this.$_contentPane$);
    this.$_isBiDi$ = $dvt$$1$$.$Agent$.$isRightToLeft$($DvtScrollbarBackground$$);
  };
  $DvtScrollableContainer$$.prototype.$IsSkinAlta$ = function $$DvtScrollableContainer$$$$$IsSkinAlta$$() {
    return "alta" == this.$_skinName$;
  };
  $DvtScrollableContainer$$.prototype.$setStyleMap$ = function $$DvtScrollableContainer$$$$$setStyleMap$$($dvt$$1$$) {
    this.$_styleMap$ = $dvt$$1$$;
  };
  $DvtScrollableContainer$$.prototype.$addChild$ = function $$DvtScrollableContainer$$$$$addChild$$($dvt$$1$$) {
    this.$_contentPane$.$addChild$($dvt$$1$$);
    this.$_addScrollEventListener$($dvt$$1$$);
    this.refresh();
  };
  $DvtScrollableContainer$$.prototype.$addChildAt$ = function $$DvtScrollableContainer$$$$$addChildAt$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_contentPane$.$addChildAt$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$_addScrollEventListener$($dvt$$1$$);
    this.refresh();
  };
  $DvtScrollableContainer$$.prototype.removeChild = function $$DvtScrollableContainer$$$$removeChild$($dvt$$1$$) {
    this.$_removeScrollEventListener$($dvt$$1$$);
    this.$_contentPane$.removeChild($dvt$$1$$);
    this.refresh();
  };
  $DvtScrollableContainer$$.prototype.$removeChildAt$ = function $$DvtScrollableContainer$$$$$removeChildAt$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_contentPane$.$getChildAt$($dvt$$1$$);
    this.$_removeScrollEventListener$($DvtScrollbarBackground$$);
    this.$_contentPane$.$removeChildAt$($dvt$$1$$);
    this.refresh();
  };
  $DvtScrollableContainer$$.prototype.$getNumChildren$ = function $$DvtScrollableContainer$$$$$getNumChildren$$() {
    return this.$_contentPane$.$getNumChildren$();
  };
  $DvtScrollableContainer$$.prototype.contains = function $$DvtScrollableContainer$$$$contains$($dvt$$1$$) {
    return this.$_contentPane$.contains($dvt$$1$$);
  };
  $DvtScrollableContainer$$.prototype.$getChildAfter$ = function $$DvtScrollableContainer$$$$$getChildAfter$$($dvt$$1$$) {
    return this.$_contentPane$.$getChildAfter$($dvt$$1$$);
  };
  $DvtScrollableContainer$$.prototype.$getChildBefore$ = function $$DvtScrollableContainer$$$$$getChildBefore$$($dvt$$1$$) {
    return this.$_contentPane$.$getChildBefore$($dvt$$1$$);
  };
  $DvtScrollableContainer$$.prototype.$getChildAt$ = function $$DvtScrollableContainer$$$$$getChildAt$$($dvt$$1$$) {
    return this.$_contentPane$.$getChildAt$($dvt$$1$$);
  };
  $DvtScrollableContainer$$.prototype.$getChildIndex$ = function $$DvtScrollableContainer$$$$$getChildIndex$$($dvt$$1$$) {
    return this.$_contentPane$.$getChildIndex$($dvt$$1$$);
  };
  $DvtScrollableContainer$$.prototype.$removeChildren$ = function $$DvtScrollableContainer$$$$$removeChildren$$() {
    for (var $dvt$$1$$ = this.$_contentPane$.$getNumChildren$(), $DvtScrollbarBackground$$ = 0;$DvtScrollbarBackground$$ < $dvt$$1$$;$DvtScrollbarBackground$$++) {
      this.$_removeScrollEventListener$(this.$_contentPane$.$getChildAt$($DvtScrollbarBackground$$));
    }
    this.$_contentPane$.$removeChildren$();
  };
  $DvtScrollableContainer$$.prototype.$destroy$ = function $$DvtScrollableContainer$$$$$destroy$$() {
    $DvtScrollableContainer$$.$superclass$.$destroy$.call(this);
    this.$_contentPane$.$setClipPath$(null);
    this.$_contentPane$.$removeAllDrawEffects$();
    this.$_removeHSB$();
    this.$_removeVSB$();
  };
  $DvtScrollableContainer$$.prototype.$getDimensions$ = function $$DvtScrollableContainer$$$$$getDimensions$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_getDimensionsForContentPane$(!1, this), $DvtScrollbarBackground$$ = this.$_getDimensionsWithScrollbar$($DvtScrollbarBackground$$);
    return $dvt$$1$$ && $DvtScrollbarBackground$$ ? this.$ConvertCoordSpaceRect$($DvtScrollbarBackground$$, $dvt$$1$$) : $DvtScrollbarBackground$$;
  };
  $DvtScrollableContainer$$.prototype.$getDimensionsWithStroke$ = function $$DvtScrollableContainer$$$$$getDimensionsWithStroke$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_getDimensionsForContentPane$(!0, this), $DvtScrollbarBackground$$ = this.$_getDimensionsWithScrollbar$($DvtScrollbarBackground$$);
    return $dvt$$1$$ && $DvtScrollbarBackground$$ ? this.$ConvertCoordSpaceRect$($DvtScrollbarBackground$$, $dvt$$1$$) : $DvtScrollbarBackground$$;
  };
  $DvtScrollableContainer$$.prototype.$_getDimensionsWithScrollbar$ = function $$DvtScrollableContainer$$$$$_getDimensionsWithScrollbar$$($dvt$$1$$) {
    $dvt$$1$$ && (this.$hasHorizontalScrollbar$() && ($dvt$$1$$.$h$ = Math.min(this.$_maxContentH$, $dvt$$1$$.$h$) + this.$_scrollbarContentGap$ + this.$_sbWidth$), this.$hasVerticalScrollbar$() && ($dvt$$1$$.$w$ = Math.min(this.$_maxContentW$, $dvt$$1$$.$w$) + this.$_scrollbarContentGap$ + this.$_sbWidth$), $dvt$$1$$.x = 0, $dvt$$1$$.y = 0, $dvt$$1$$.$w$ = Math.min(this.$_maxW$, $dvt$$1$$.$w$), $dvt$$1$$.$h$ = Math.min(this.$_maxH$, $dvt$$1$$.$h$));
    return $dvt$$1$$;
  };
  $DvtScrollableContainer$$.prototype.$setVerticalThumbPosition$ = function $$DvtScrollableContainer$$$$$setVerticalThumbPosition$$($dvt$$1$$) {
    this.$_vsb$ && (this.$_vsbStart$ = $dvt$$1$$, this.$_contentPane$.$setTranslateY$(-$dvt$$1$$), this.$_vsb$.$moveSlider$($dvt$$1$$ - this.$_vsb$.$_thumbStartPos$));
  };
  $DvtScrollableContainer$$.prototype.$setVerticalContentPosition$ = function $$DvtScrollableContainer$$$$$setVerticalContentPosition$$($dvt$$1$$) {
    this.$_vsb$ && this.$_vsb$.$moveSlider$(-(($dvt$$1$$ - this.$_translateY$) / this.$_vsbScale$));
    this.$_translateY$ = $dvt$$1$$;
    this.$_contentPane$.$setTranslateY$(this.$_translateY$);
  };
  $DvtScrollableContainer$$.prototype.$getVerticalContentPosition$ = function $$DvtScrollableContainer$$$$$getVerticalContentPosition$$() {
    return this.$_contentPane$.$getTranslateY$();
  };
  $DvtScrollableContainer$$.prototype.$hasHorizontalScrollbar$ = function $$DvtScrollableContainer$$$$$hasHorizontalScrollbar$$() {
    return null != this.$_hsb$;
  };
  $DvtScrollableContainer$$.prototype.refresh = function $$DvtScrollableContainer$$$$refresh$() {
    this.$_removeVSB$();
    this.$_removeHSB$();
    var $DvtScrollbarBackground$$ = !1, $DvtScrollbar$$ = !1, $DvtScrollbarEvent$$ = this.$_getDimensionsForContentPane$(!1);
    $DvtScrollbarEvent$$ ? ($DvtScrollbarEvent$$.x + $DvtScrollbarEvent$$.$w$ > this.$_maxW$ && ($DvtScrollbar$$ = !0), $DvtScrollbarEvent$$.y + $DvtScrollbarEvent$$.$h$ > ($DvtScrollbar$$ ? this.$_maxContentH$ : this.$_maxH$) && ($DvtScrollbarBackground$$ = !0), this.$_fullH$ = Math.max($DvtScrollbarEvent$$.y + $DvtScrollbarEvent$$.$h$, this.$_minH$), this.$_fullW$ = Math.max($DvtScrollbarEvent$$.x + $DvtScrollbarEvent$$.$w$, this.$_minW$)) : (this.$_fullH$ = this.$_minH$, this.$_fullW$ = this.$_minW$);
    $DvtScrollbarEvent$$ = new $dvt$$1$$.$ClipPath$;
    $DvtScrollbarBackground$$ && $DvtScrollbar$$ ? $DvtScrollbarEvent$$.$addRect$(this.$_isBiDi$ ? this.$_scrollbarContentGap$ + this.$_sbWidth$ : 0, 0, this.$_maxContentW$, this.$_maxContentH$) : $DvtScrollbarBackground$$ ? $DvtScrollbarEvent$$.$addRect$(this.$_isBiDi$ ? this.$_scrollbarContentGap$ + this.$_sbWidth$ : 0, 0, this.$_maxContentW$, this.$_maxH$) : $DvtScrollbar$$ ? $DvtScrollbarEvent$$.$addRect$(0, 0, this.$_maxW$, this.$_maxContentH$) : $DvtScrollbarEvent$$ = null;
    this.$_contentPane$.$setClipPath$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$ && this.$_addVSB$($DvtScrollbar$$);
    $DvtScrollbar$$ && this.$_addHSB$($DvtScrollbarBackground$$);
    this.$_translateX$ = this.$_isBiDi$ && $DvtScrollbarBackground$$ ? $DvtScrollbar$$ ? -(this.$_fullW$ - this.$_maxW$) : this.$_sbWidth$ + this.$_scrollbarContentGap$ : 0;
    this.$_contentPane$.$setTranslateX$(this.$_translateX$);
  };
  $DvtScrollableContainer$$.prototype.$hasVerticalScrollbar$ = function $$DvtScrollableContainer$$$$$hasVerticalScrollbar$$() {
    return null != this.$_vsb$;
  };
  $DvtScrollableContainer$$.prototype.$_removeHSB$ = function $$DvtScrollableContainer$$$$$_removeHSB$$() {
    this.$_hsb$ && (this.$_hsb$.$removeEvtListener$($DvtScrollbarEvent$$.$SB_MOVE$, this.$_onHorizontalScroll$, !1, this), this.$_hsb$.$destroy$(), $DvtScrollableContainer$$.$superclass$.removeChild.call(this, this.$_hsb$), this.$_hsb$ = null);
  };
  $DvtScrollableContainer$$.prototype.$_removeVSB$ = function $$DvtScrollableContainer$$$$$_removeVSB$$() {
    this.$_vsb$ && (this.$_vsb$.$removeEvtListener$($DvtScrollbarEvent$$.$SB_MOVE$, this.$_onVerticalScroll$, !1, this), this.$_vsb$.$destroy$(), $DvtScrollableContainer$$.$superclass$.removeChild.call(this, this.$_vsb$), this.$_vsb$ = null);
  };
  $DvtScrollableContainer$$.prototype.$_addVSB$ = function $$DvtScrollableContainer$$$$$_addVSB$$($DvtScrollbarBackground$$) {
    if (!this.$_vsb$) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$ ? this.$_maxH$ - this.$_sbWidth$ : this.$_maxH$;
      this.$_vsbLength$ = $DvtAdfDiagramDragSource$$;
      var $DvtScrollbarArrow$$ = this.$_isBiDi$ ? 0 : $DvtScrollbarBackground$$ ? this.$_maxW$ - this.$_sbWidth$ : this.$_fullW$ + this.$_scrollbarContentGap$, $DvtAdfDiagramEditorManager$$ = this.$_sbWidth$, $y$$52$$ = 0, $DvtAdfDiagramKeyboardHandler$$;
      this.$IsSkinAlta$() && !$DvtScrollbarBackground$$ && ($DvtAdfDiagramEditorManager$$ += 1, $DvtAdfDiagramDragSource$$ += 2, --$y$$52$$, $DvtAdfDiagramKeyboardHandler$$ = new $dvt$$1$$.$ClipPath$("vsb"), $DvtAdfDiagramKeyboardHandler$$.$addRect$($DvtScrollbarArrow$$, 0, $DvtAdfDiagramEditorManager$$ - 1, $DvtAdfDiagramDragSource$$ - 2));
      this.$_vsb$ = new $DvtScrollbar$$(this.$getCtx$(), $DvtScrollbarArrow$$, $y$$52$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDragSource$$, !1, this.$_skinName$, this.$_styleMap$);
      $DvtAdfDiagramKeyboardHandler$$ && this.$_vsb$.$setClipPath$($DvtAdfDiagramKeyboardHandler$$);
      $DvtScrollableContainer$$.$superclass$.$addChild$.call(this, this.$_vsb$);
    }
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$ ? this.$_maxContentH$ : this.$_maxH$;
    $DvtScrollbarArrow$$ = Math.min(this.$_vsb$.$_thumbLengthMax$, Math.max($DvtScrollbarBackground$$ / this.$_fullH$ * this.$_vsb$.$_thumbLengthMax$, $DvtScrollbar$$.$MIN_THUMB_SIZE$));
    this.$_vsbScale$ = (this.$_fullH$ - $DvtScrollbarBackground$$) / (this.$_vsb$.$_thumbLengthMax$ - $DvtScrollbarArrow$$);
    this.$_vsb$.$setLogicalThumbStartAndLength$(this.$_vsbStart$, $DvtScrollbarArrow$$);
    this.$_vsb$.$addEvtListener$($DvtScrollbarEvent$$.$SB_MOVE$, this.$_onVerticalScroll$, !1, this);
  };
  $DvtScrollableContainer$$.prototype.$_addHSB$ = function $$DvtScrollableContainer$$$$$_addHSB$$($DvtScrollbarBackground$$) {
    if (!this.$_hsb$) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$ ? this.$_maxW$ - this.$_sbWidth$ : this.$_maxW$;
      this.$_hsbLength$ = $DvtAdfDiagramDragSource$$;
      var $DvtScrollbarArrow$$ = this.$_isBiDi$ && $DvtScrollbarBackground$$ ? this.$_sbWidth$ : 0, $DvtAdfDiagramEditorManager$$ = $DvtScrollbarBackground$$ ? this.$_maxH$ - this.$_sbWidth$ : this.$_fullH$ + this.$_scrollbarContentGap$, $height$$18$$ = this.$_sbWidth$, $DvtAdfDiagramKeyboardHandler$$;
      this.$IsSkinAlta$() && !$DvtScrollbarBackground$$ && ($height$$18$$ += 1, $DvtAdfDiagramDragSource$$ += 2, $DvtAdfDiagramKeyboardHandler$$ = new $dvt$$1$$.$ClipPath$("hsb"), $DvtAdfDiagramKeyboardHandler$$.$addRect$($DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDragSource$$ - 2, $height$$18$$ - 1));
      this.$_hsb$ = new $DvtScrollbar$$(this.$getCtx$(), $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDragSource$$, $height$$18$$, !0, this.$_skinName$, this.$_styleMap$);
      $DvtAdfDiagramKeyboardHandler$$ && this.$_hsb$.$setClipPath$($DvtAdfDiagramKeyboardHandler$$);
      $DvtScrollableContainer$$.$superclass$.$addChild$.call(this, this.$_hsb$);
    }
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$ ? this.$_maxContentW$ : this.$_maxW$;
    $DvtScrollbarArrow$$ = Math.min(this.$_hsb$.$_thumbLengthMax$, Math.max($DvtScrollbarBackground$$ / this.$_fullW$ * this.$_hsb$.$_thumbLengthMax$, $DvtScrollbar$$.$MIN_THUMB_SIZE$));
    this.$_hsbScale$ = (this.$_fullW$ - $DvtScrollbarBackground$$) / (this.$_hsb$.$_thumbLengthMax$ - $DvtScrollbarArrow$$);
    this.$_isBiDi$ && (this.$_hsbStart$ = this.$_hsb$.$_thumbLengthMax$ - $DvtScrollbarArrow$$);
    this.$_hsb$.$setLogicalThumbStartAndLength$(this.$_hsbStart$, $DvtScrollbarArrow$$);
    this.$_hsb$.$addEvtListener$($DvtScrollbarEvent$$.$SB_MOVE$, this.$_onHorizontalScroll$, !1, this);
  };
  $DvtScrollableContainer$$.prototype.$_onVerticalScroll$ = function $$DvtScrollableContainer$$$$$_onVerticalScroll$$($dvt$$1$$) {
    $dvt$$1$$ = $dvt$$1$$.$_delta$;
    0 != $dvt$$1$$ && (this.$_translateY$ -= $dvt$$1$$ * this.$_vsbScale$, this.$_contentPane$.$setTranslateY$(this.$_translateY$), this.$_fireScrollEvent$(null, this.$_vsbLength$ * this.$_vsbScale$ + this.$_translateY$));
  };
  $DvtScrollableContainer$$.prototype.$_onHorizontalScroll$ = function $$DvtScrollableContainer$$$$$_onHorizontalScroll$$($dvt$$1$$) {
    $dvt$$1$$ = $dvt$$1$$.$_delta$;
    0 != $dvt$$1$$ && (this.$_translateX$ -= $dvt$$1$$ * this.$_hsbScale$, this.$_contentPane$.$setTranslateX$(this.$_translateX$), this.$_fireScrollEvent$(this.$_hsbLength$ * this.$_hsbScale$ + this.$_translateX$, null));
  };
  $DvtScrollableContainer$$.prototype.$_fireScrollEvent$ = function $$DvtScrollableContainer$$$$$_fireScrollEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$FireListener$(new $dvt$$1$$.$ScrollEvent$($DvtScrollbarBackground$$, $DvtScrollbar$$));
  };
  $DvtScrollableContainer$$.prototype.$_getDimensionsForContentPane$ = function $$DvtScrollableContainer$$$$$_getDimensionsForContentPane$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    for (var $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$, $i$$147$$ = 0;$i$$147$$ < this.$getNumChildren$();$i$$147$$++) {
      ($DvtAdfDiagramDragSource$$ = this.$_contentPane$.$getChildAt$($i$$147$$)) && ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$ ? $DvtAdfDiagramDragSource$$.$getDimensionsWithStroke$(this.$_contentPane$) : $DvtAdfDiagramDragSource$$.$getDimensions$(this.$_contentPane$)) && ($DvtScrollbarEvent$$ = null == $DvtScrollbarEvent$$ ? new $dvt$$1$$.$Rectangle$($DvtAdfDiagramDragSource$$.x, $DvtAdfDiagramDragSource$$.y, $DvtAdfDiagramDragSource$$.$w$, $DvtAdfDiagramDragSource$$.$h$) : $DvtScrollbarEvent$$.$getUnion$($DvtAdfDiagramDragSource$$))
      ;
    }
    return $DvtScrollbar$$ && $DvtScrollbarEvent$$ ? this.$ConvertCoordSpaceRect$($DvtScrollbarEvent$$, $DvtScrollbar$$) : $DvtScrollbarEvent$$;
  };
  $DvtScrollableContainer$$.prototype.$_addScrollEventListener$ = function $$DvtScrollableContainer$$$$$_addScrollEventListener$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$getScrollEventCallback$ && this.$addEvtListener$($dvt$$1$$.$ScrollEvent$.$SCROLL_EVENT$, $DvtScrollbarBackground$$.$getScrollEventCallback$(), !1, $DvtScrollbarBackground$$);
  };
  $DvtScrollableContainer$$.prototype.$_removeScrollEventListener$ = function $$DvtScrollableContainer$$$$$_removeScrollEventListener$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$getScrollEventCallback$ && this.$removeEvtListener$($dvt$$1$$.$ScrollEvent$.$SCROLL_EVENT$, $DvtScrollbarBackground$$.$getScrollEventCallback$(), !1, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$ItemList$ = function $$dvt$$1$$$$ItemList$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $backgroundStyleCallback$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $calbackObj$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $backgroundStyleCallback$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $calbackObj$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$ItemList$, $dvt$$1$$.$Container$, "dvt.ItemList");
  $dvt$$1$$.$ItemList$.$INT_MODEL_SINGLE_CLICK$ = 0;
  $dvt$$1$$.$ItemList$.$INT_MODEL_DOUBLE_CLICK$ = 1;
  $dvt$$1$$.$ItemList$.$_PADDING$ = 1;
  $dvt$$1$$.$ItemList$.$_ITEM_FOCUS_COLOR$ = "#c1e6ff";
  $dvt$$1$$.$ItemList$.$_ALTA_PADDING$ = 10;
  $dvt$$1$$.$ItemList$.prototype.Init = function $$dvt$$1$$$$ItemList$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $backgroundStyleCallback$$1$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$, $callbackObj$$13$$) {
    $dvt$$1$$.$ItemList$.$superclass$.Init.call(this, $DvtScrollbarBackground$$);
    this.$_callback$ = $DvtAdfDiagramEditorManager$$;
    this.$_callbackObj$ = $callbackObj$$13$$;
    this.$_items$ = $DvtScrollbar$$;
    this.$_minWidth$ = $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ : 0;
    this.$_backgroundStyleCallback$ = $backgroundStyleCallback$$1$$;
    this.$_backgroundStyleCallbackObj$ = $DvtScrollbarArrow$$;
    this.$_hoverIndex$ = this.$_focusIndex$ = -1;
    this.$_interactionModel$ = $dvt$$1$$.$ItemList$.$INT_MODEL_SINGLE_CLICK$;
    this.$_focusColor$ = $dvt$$1$$.$ItemList$.$_ITEM_FOCUS_COLOR$;
    this.$_hoverColor$ = null;
  };
  $dvt$$1$$.$ItemList$.prototype.$renderComponent$ = function $$dvt$$1$$$$ItemList$$$$renderComponent$$() {
    this.$RenderSelf$();
  };
  $dvt$$1$$.$ItemList$.prototype.$setFocusColor$ = function $$dvt$$1$$$$ItemList$$$$setFocusColor$$() {
    this.$_focusColor$ = "#CFE8FC";
  };
  $dvt$$1$$.$ItemList$.prototype.$setHoverColor$ = function $$dvt$$1$$$$ItemList$$$$setHoverColor$$() {
    this.$_hoverColor$ = "#ebeced";
  };
  $dvt$$1$$.$ItemList$.prototype.$setAltaSkin$ = function $$dvt$$1$$$$ItemList$$$$setAltaSkin$$() {
    this.$_bAltaSkin$ = !0;
  };
  $dvt$$1$$.$ItemList$.prototype.$IsSkinAlta$ = function $$dvt$$1$$$$ItemList$$$$IsSkinAlta$$() {
    return this.$_bAltaSkin$ ? !0 : !1;
  };
  $dvt$$1$$.$ItemList$.prototype.$setInteractionModel$ = function $$dvt$$1$$$$ItemList$$$$setInteractionModel$$($dvt$$1$$) {
    this.$_interactionModel$ = $dvt$$1$$;
  };
  $dvt$$1$$.$ItemList$.prototype.$FireEvent$ = function $$dvt$$1$$$$ItemList$$$$FireEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_callback$ && this.$_callback$.call(this.$_callbackObj$, $dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$ItemList$.prototype.$FireItemListEvent$ = function $$dvt$$1$$$$ItemList$$$$FireItemListEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $DvtItemListEvent$$($dvt$$1$$, $DvtScrollbarBackground$$);
    this.$FireEvent$($DvtScrollbar$$);
  };
  $dvt$$1$$.$ItemList$.prototype.$HandleClick$ = function $$dvt$$1$$$$ItemList$$$$HandleClick$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.target;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ItemListSprite$ && (this.$_interactionModel$ == $dvt$$1$$.$ItemList$.$INT_MODEL_SINGLE_CLICK$ ? this.$FireItemListEvent$($DvtItemListEvent$$.$TYPE_SELECTION$, $DvtScrollbarBackground$$.$getIndex$()) : this.$setFocusIndex$($DvtScrollbarBackground$$.$getIndex$()));
  };
  $dvt$$1$$.$ItemList$.prototype.$HandleDblClick$ = function $$dvt$$1$$$$ItemList$$$$HandleDblClick$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.target;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ItemListSprite$ && this.$_interactionModel$ == $dvt$$1$$.$ItemList$.$INT_MODEL_DOUBLE_CLICK$ && (this.$setFocusIndex$($DvtScrollbarBackground$$.$getIndex$()), this.$FireItemListEvent$($DvtItemListEvent$$.$TYPE_SELECTION$, $DvtScrollbarBackground$$.$getIndex$()));
  };
  $dvt$$1$$.$ItemList$.prototype.$isDoubleClickable$ = function $$dvt$$1$$$$ItemList$$$$isDoubleClickable$$() {
    return this.$_interactionModel$ == $dvt$$1$$.$ItemList$.$INT_MODEL_DOUBLE_CLICK$ ? !0 : !1;
  };
  $dvt$$1$$.$ItemList$.prototype.$HandleRollOver$ = function $$dvt$$1$$$$ItemList$$$$HandleRollOver$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.target;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ItemListSprite$ && (this.$_interactionModel$ == $dvt$$1$$.$ItemList$.$INT_MODEL_SINGLE_CLICK$ ? this.$setFocusIndex$($DvtScrollbarBackground$$.$getIndex$()) : this.$_focusIndex$ != $DvtScrollbarBackground$$.$getIndex$() && this.$SetHoverIndex$($DvtScrollbarBackground$$.$getIndex$()));
  };
  $dvt$$1$$.$ItemList$.prototype.$HandleRollOut$ = function $$dvt$$1$$$$ItemList$$$$HandleRollOut$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.target;
    $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ItemListSprite$ && (this.$_interactionModel$ == $dvt$$1$$.$ItemList$.$INT_MODEL_SINGLE_CLICK$ ? this.$setFocusIndex$(-1) : this.$_focusIndex$ != $DvtScrollbarBackground$$.$getIndex$() && this.$SetHoverIndex$(-1));
  };
  $dvt$$1$$.$ItemList$.prototype.$HighlightItem$ = function $$dvt$$1$$$$ItemList$$$$HighlightItem$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getDimensions$();
    if (this.$IsSkinAlta$()) {
      var $w$$13$$ = $DvtAdfDiagramDragSource$$.$w$ + $dvt$$1$$.$ItemList$.$_ALTA_PADDING$ - $DvtScrollableContainer$$.$DEFAULT_ALTA_SCROLLBAR_WIDTH$, $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Rect(this.$getCtx$(), -$dvt$$1$$.$ItemList$.$_ALTA_PADDING$, -$dvt$$1$$.$ItemList$.$_ALTA_PADDING$, 0 > $w$$13$$ ? 0 : $w$$13$$, $DvtAdfDiagramDragSource$$.$h$ + $dvt$$1$$.$ItemList$.$_ALTA_PADDING$)
    } else {
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtAdfDiagramDragSource$$.$w$ - 1, $DvtAdfDiagramDragSource$$.$h$ - 1);
    }
    var $DvtScrollbarArrow$$;
    $DvtScrollbar$$ ? $DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidFill$(this.$_focusColor$, 1) : $DvtScrollbarEvent$$ && ($DvtScrollbarArrow$$ = new $dvt$$1$$.$SolidFill$(this.$_hoverColor$, 1));
    $DvtAdfDiagramDragSource$$.$setFill$($DvtScrollbarArrow$$);
    $DvtAdfDiagramDragSource$$.$setMouseEnabled$(!1);
    $DvtScrollbarBackground$$.$addChildAt$($DvtAdfDiagramDragSource$$, 0);
  };
  $dvt$$1$$.$ItemList$.prototype.$UnhighlightItem$ = function $$dvt$$1$$$$ItemList$$$$UnhighlightItem$$($dvt$$1$$) {
    $dvt$$1$$.$removeChildAt$(0);
  };
  $dvt$$1$$.$ItemList$.prototype.$getNumItems$ = function $$dvt$$1$$$$ItemList$$$$getNumItems$$() {
    return this.$_items$ ? this.$_items$.length : 0;
  };
  $dvt$$1$$.$ItemList$.prototype.$getItemAt$ = function $$dvt$$1$$$$ItemList$$$$getItemAt$$($dvt$$1$$) {
    return this.$getChildAt$($dvt$$1$$ + 1);
  };
  $dvt$$1$$.$ItemList$.prototype.$SetHoverIndex$ = function $$dvt$$1$$$$ItemList$$$$SetHoverIndex$$($dvt$$1$$) {
    this.$_hoverColor$ && (-1 < this.$_hoverIndex$ && this.$_hoverIndex$ < this.$getNumItems$() && this.$UnhighlightItem$(this.$getItemAt$(this.$_hoverIndex$)), this.$_hoverIndex$ = $dvt$$1$$, -1 < this.$_hoverIndex$ && this.$_hoverIndex$ < this.$getNumItems$() && this.$HighlightItem$(this.$getItemAt$(this.$_hoverIndex$), !1, !0));
  };
  $dvt$$1$$.$ItemList$.prototype.$setFocusIndex$ = function $$dvt$$1$$$$ItemList$$$$setFocusIndex$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    if (this.$_focusIndex$ != $dvt$$1$$ || $DvtScrollbarBackground$$) {
      -1 < this.$_focusIndex$ && this.$_focusIndex$ < this.$getNumItems$() && this.$UnhighlightItem$(this.$getItemAt$(this.$_focusIndex$)), this.$_focusIndex$ = $dvt$$1$$, -1 < this.$_focusIndex$ && this.$_focusIndex$ < this.$getNumItems$() && (this.$_hoverIndex$ == this.$_focusIndex$ && this.$SetHoverIndex$(-1), this.$HighlightItem$(this.$getItemAt$(this.$_focusIndex$), !0));
    }
  };
  $dvt$$1$$.$ItemList$.prototype.getItem = function $$dvt$$1$$$$ItemList$$$getItem$($dvt$$1$$) {
    return $dvt$$1$$ < this.$getNumItems$() ? this.$getChildAt$($dvt$$1$$) : null;
  };
  $dvt$$1$$.$ItemList$.prototype.$getClosestItemIndex$ = function $$dvt$$1$$$$ItemList$$$$getClosestItemIndex$$($DvtScrollbarBackground$$) {
    for (var $DvtScrollbar$$ = this.$getNumItems$(), $DvtScrollbarEvent$$ = null, $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbar$$;$DvtAdfDiagramDragSource$$++) {
      var $DvtScrollbarEvent$$ = this.getItem($DvtAdfDiagramDragSource$$), $iDims$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtScrollbarEvent$$);
      if ($DvtScrollbarBackground$$ < $DvtScrollbarEvent$$.$getTranslateY$() + $iDims$$.$h$) {
        return $DvtAdfDiagramDragSource$$;
      }
    }
    return $DvtScrollbar$$ - 1;
  };
  $dvt$$1$$.$ItemList$.prototype.$RenderSelf$ = function $$dvt$$1$$$$ItemList$$$$RenderSelf$$() {
    var $DvtScrollbarBackground$$, $DvtScrollbar$$ = $dvt$$1$$.$ItemList$.$_PADDING$, $DvtScrollbarEvent$$ = $dvt$$1$$.$ItemList$.$_PADDING$;
    this.$IsSkinAlta$() && ($DvtScrollbar$$ = $DvtScrollbarEvent$$ = $dvt$$1$$.$ItemList$.$_ALTA_PADDING$);
    for (var $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < this.$_items$.length;$DvtAdfDiagramDragSource$$++) {
      $DvtScrollbarBackground$$ = new $dvt$$1$$.$ItemListSprite$(this.$getCtx$(), $DvtAdfDiagramDragSource$$, this);
      this.$_callbackObj$.$getEventManager$().$associate$($DvtScrollbarBackground$$, $DvtScrollbarBackground$$);
      $DvtScrollbarBackground$$.$addChild$(this.$_items$[$DvtAdfDiagramDragSource$$]);
      $DvtScrollbarBackground$$.$setTranslateX$($DvtScrollbarEvent$$);
      $DvtScrollbarBackground$$.$setTranslateY$($DvtScrollbarBackground$$.$getTranslateY$() + $DvtScrollbar$$);
      var $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtScrollbarBackground$$), $DvtScrollbar$$ = $DvtScrollbar$$ + $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$h$, $DvtScrollbar$$ = this.$IsSkinAlta$() ? $DvtScrollbar$$ + 2 * $dvt$$1$$.$ItemList$.$_ALTA_PADDING$ : $DvtScrollbar$$ + $dvt$$1$$.$ItemList$.$_PADDING$;
      this.$addChild$($DvtScrollbarBackground$$);
    }
    $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this);
    $DvtScrollbarBackground$$ = Math.max($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$w$, this.$_minWidth$);
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < this.$getNumChildren$();$DvtScrollbar$$++) {
      $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = this.$getChildAt$($DvtScrollbar$$), this.$RenderItemBackground$($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$, $DvtScrollbarBackground$$), $DvtAdfDiagramDragSource$$ = this.$_items$[$DvtScrollbar$$], $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && ($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtAdfDiagramDragSource$$), $DvtScrollbarEvent$$ = this.$IsSkinAlta$() ? 
      $dvt$$1$$.$ItemList$.$_ALTA_PADDING$ : $dvt$$1$$.$ItemList$.$_PADDING$, $DvtAdfDiagramDragSource$$.$setTranslateX$($DvtScrollbarBackground$$ - $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$w$ - $DvtScrollbarEvent$$)), this.$IsSkinAlta$() && ($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = this.$MakeSeparator$($DvtScrollbarBackground$$ + $dvt$$1$$.$ItemList$.$_ALTA_PADDING$), $DvtAdfDiagramDragSource$$.$addChild$($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$), $DvtAdfDiagramDragSource$$ = 
      $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? $DvtAdfDiagramDragSource$$.$getTranslateX$() + $dvt$$1$$.$ItemList$.$_ALTA_PADDING$ : $dvt$$1$$.$ItemList$.$_ALTA_PADDING$, $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$setTranslateX$(-$DvtAdfDiagramDragSource$$), $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$setTranslateY$(-$dvt$$1$$.$ItemList$.$_ALTA_PADDING$));
    }
    $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this);
    $DvtScrollbarEvent$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarBackground$$ + $DvtScrollbarEvent$$, $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$.$h$ + $DvtScrollbarEvent$$);
    this.$addChildAt$($DvtScrollbarEvent$$, 0);
    this.$_backgroundStyleCallback$ ? this.$_backgroundStyleCallback$.call(this.$_backgroundStyleCallbackObj$, $DvtScrollbarEvent$$) : ($DvtScrollbarBackground$$ = new $dvt$$1$$.$SolidStroke$("#000000", 1, 1), $_separator_child$$15_dims$$16_fill$$13_iDims$$1$$ = new $dvt$$1$$.$SolidFill$("#ffffff"), $DvtScrollbarEvent$$.$setStroke$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$.$setFill$($_separator_child$$15_dims$$16_fill$$13_iDims$$1$$));
  };
  $dvt$$1$$.$ItemList$.prototype.$RenderItemBackground$ = function $$dvt$$1$$$$ItemList$$$$RenderItemBackground$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbar$$ || 0 == $DvtScrollbar$$ || ($DvtScrollbar$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this).$w$ - $dvt$$1$$.$ItemList$.$_PADDING$);
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$SolidStroke$("#000000", 0, 1);
    $DvtScrollbarBackground$$.$setStroke$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$setInvisibleFill$();
    $DvtScrollbarBackground$$.$setWidth$($DvtScrollbar$$ - $dvt$$1$$.$ItemList$.$_PADDING$);
    $DvtScrollbarEvent$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$setHeight$($DvtScrollbarEvent$$.$h$);
  };
  $dvt$$1$$.$ItemList$.prototype.$MakeSeparator$ = function $$dvt$$1$$$$ItemList$$$$MakeSeparator$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$Path$(this.$getCtx$(), ["M", 0, 0, "L", $DvtScrollbarBackground$$, 0]);
    $DvtScrollbarBackground$$.$setSolidStroke$("#D9DFE3");
    $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$ItemList$.prototype.$getItemData$ = function $$dvt$$1$$$$ItemList$$$$getItemData$$($dvt$$1$$) {
    return 0 <= $dvt$$1$$ && $dvt$$1$$ < this.$_items$.length ? this.$_items$[$dvt$$1$$] : null;
  };
  $dvt$$1$$.$ItemListSprite$ = function $$dvt$$1$$$$ItemListSprite$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$ItemListSprite$, $dvt$$1$$.Rect, "dvt.ItemListSprite");
  $dvt$$1$$.$ItemListSprite$.prototype.Init = function $$dvt$$1$$$$ItemListSprite$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$ItemListSprite$.$superclass$.Init.call(this, $DvtScrollbarBackground$$, 0, 0, 1, 1);
    this.$_index$ = $DvtScrollbar$$;
    this.$_list$ = $DvtScrollbarEvent$$;
    this.setCursor("pointer");
    this.$_ariaLabel$ = this.$getTopShortDesc$();
    this.$addAccessibilityAttributes$();
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$getIndex$ = function $$dvt$$1$$$$ItemListSprite$$$$getIndex$$() {
    return this.$_index$;
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$HandleClick$ = function $$dvt$$1$$$$ItemListSprite$$$$HandleClick$$($dvt$$1$$) {
    this.$_list$.$HandleClick$($dvt$$1$$);
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$HandleDblClick$ = function $$dvt$$1$$$$ItemListSprite$$$$HandleDblClick$$($dvt$$1$$) {
    this.$_list$.$HandleDblClick$($dvt$$1$$);
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$isDoubleClickable$ = function $$dvt$$1$$$$ItemListSprite$$$$isDoubleClickable$$() {
    return this.$_list$.$isDoubleClickable$();
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$HandleRollOver$ = function $$dvt$$1$$$$ItemListSprite$$$$HandleRollOver$$($dvt$$1$$) {
    this.$_list$.$HandleRollOver$($dvt$$1$$);
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$HandleRollOut$ = function $$dvt$$1$$$$ItemListSprite$$$$HandleRollOut$$($dvt$$1$$) {
    this.$_list$.$HandleRollOut$($dvt$$1$$);
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$getTooltip$ = function $$dvt$$1$$$$ItemListSprite$$$$getTooltip$$() {
    return this.$getTopShortDesc$();
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$getTopShortDesc$ = function $$dvt$$1$$$$ItemListSprite$$$$getTopShortDesc$$() {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_list$.$getItemData$(this.$_index$)), $DvtScrollbar$$ = [], $DvtScrollbarEvent$$ = 0;
    for ($DvtScrollbarBackground$$ && $DvtScrollbar$$.push($DvtScrollbarBackground$$);$DvtScrollbarEvent$$ < $DvtScrollbar$$.length;) {
      var $DvtScrollbarBackground$$ = $DvtScrollbar$$[$DvtScrollbarEvent$$++], $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getShortDesc$();
      if ($DvtAdfDiagramDragSource$$) {
        return $DvtAdfDiagramDragSource$$;
      }
      for ($DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.$getNumChildren$();$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbar$$.push($DvtScrollbarBackground$$.$getChildAt$($DvtAdfDiagramDragSource$$));
      }
    }
    return null;
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$getAriaLabel$ = function $$dvt$$1$$$$ItemListSprite$$$$getAriaLabel$$() {
    return this.$_ariaLabel$;
  };
  $dvt$$1$$.$ItemListSprite$.prototype.$addAccessibilityAttributes$ = function $$dvt$$1$$$$ItemListSprite$$$$addAccessibilityAttributes$$() {
    this.$setAriaRole$("group");
    if (!$dvt$$1$$.$Agent$.$deferAriaCreation$()) {
      var $DvtScrollbarBackground$$ = this.$getAriaLabel$();
      $DvtScrollbarBackground$$ && this.$setAriaProperty$("label", $DvtScrollbarBackground$$);
    }
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtItemListEvent$$, $dvt$$1$$.$BaseComponentEvent$, "DvtItemListEvent");
  $DvtItemListEvent$$.$TYPE_FOCUS$ = "dvtItemListFocus";
  $DvtItemListEvent$$.$TYPE_SELECTION$ = "dvtItemListSelection";
  $DvtItemListEvent$$.prototype.$getIndex$ = function $$DvtItemListEvent$$$$$getIndex$$() {
    return this.$_index$;
  };
  $dvt$$1$$.$SearchEvent$ = function $$dvt$$1$$$$SearchEvent$$($dvt$$1$$) {
    this.Init($dvt$$1$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$SearchEvent$, $dvt$$1$$.$BaseComponentEvent$, "dvt.SearchEvent");
  $dvt$$1$$.$SearchEvent$.$SEARCH_EVENT$ = "dvt.SearchEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_EXPAND_EVENT$ = "dvtSearchExpandEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_COLLAPSE_EVENT$ = "dvtSearchCollapseEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_CLEAR_EVENT$ = "dvtSearchResultsClearEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_FETCH_EVENT$ = "dvtSearchResultsFetchEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SCROLL_EVENT$ = "dvtSearchResultsScrollEvent";
  $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SELECTED_EVENT$ = "dvtSearchResultSelectedEvent";
  $dvt$$1$$.$SearchEvent$.$PARAM_CLIENT_ROW_KEY$ = "clientRowKey";
  $dvt$$1$$.$SearchEvent$.$PARAM_DIRECTION$ = "direction";
  $dvt$$1$$.$SearchEvent$.$PARAM_FIRST_VIS_CLIENT_ROW_KEY$ = "firstVisClientRowKey";
  $dvt$$1$$.$SearchEvent$.$PARAM_FIRST_VIS_INDEX$ = "firstVisIndex";
  $dvt$$1$$.$SearchEvent$.$PARAM_INDEX$ = "index";
  $dvt$$1$$.$SearchEvent$.$PARAM_LAST_VIS_CLIENT_ROW_KEY$ = "lastVisClientRowKey";
  $dvt$$1$$.$SearchEvent$.$PARAM_LAST_VIS_INDEX$ = "lastVisIndex";
  $dvt$$1$$.$SearchEvent$.$PARAM_SELECTED_CLIENT_ROW_KEY$ = "selectedClientRowKey";
  $dvt$$1$$.$SearchEvent$.$PARAM_SELECTED_INDEX$ = "selectedIndex";
  $dvt$$1$$.$SearchEvent$.$PARAM_TEXT$ = "text";
  $dvt$$1$$.$SearchEvent$.$DIR_NEXT$ = 0;
  $dvt$$1$$.$SearchPanel$ = function $$dvt$$1$$$$SearchPanel$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.Init($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
  };
  $dvt$$1$$.$Obj$.$createSubclass$($dvt$$1$$.$SearchPanel$, $dvt$$1$$.$Container$, "dvt.SearchPanel");
  $dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA$ = .2;
  $dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA_DE_EMPHASIZED$ = .2;
  $dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA_ROLLOVER$ = .6;
  $dvt$$1$$.$SearchPanel$.$_BACKGROUND_COLOR$ = "#ffffff";
  $dvt$$1$$.$SearchPanel$.$_BORDER_ALPHA$ = 1;
  $dvt$$1$$.$SearchPanel$.$_BORDER_ALPHA_DE_EMPHASIZED$ = .3;
  $dvt$$1$$.$SearchPanel$.$_BORDER_COLOR$ = "#ffffff";
  $dvt$$1$$.$SearchPanel$.$_BORDER_THICKNESS$ = 1;
  $dvt$$1$$.$SearchPanel$.$_BORDER_RADIUS$ = 6;
  $dvt$$1$$.$SearchPanel$.$_GO_BUTTON_WIDTH$ = 18;
  $dvt$$1$$.$SearchPanel$.$_GO_BUTTON_HEIGHT$ = 17;
  $dvt$$1$$.$SearchPanel$.$BUTTONWIDTH$ = 10;
  $dvt$$1$$.$SearchPanel$.$BUTTONHEIGHT$ = 26;
  $dvt$$1$$.$SearchPanel$.$_ALTA_CONTENT_PADDING$ = 10;
  $dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$ = 2;
  $dvt$$1$$.$SearchPanel$.$_ROUND_RECT_ELLIPSE$ = 4;
  $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_ALPHA$ = .9;
  $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_ALPHA_ROLLOVER$ = .9;
  $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_COLOR$ = "#ffffff";
  $dvt$$1$$.$SearchPanel$.$_TEXT_COLOR$ = "#2d3039";
  $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_ADVANCED_TEMPLATE$ = "saTm";
  $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$ = "srd";
  $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_TEMPLATE$ = "srTm";
  $dvt$$1$$.$SearchPanel$.$_ELEM_EL$ = "el";
  $dvt$$1$$.$SearchPanel$.$_ELEM_F$ = "f";
  $dvt$$1$$.$SearchPanel$.$_ELEM_NODE$ = "n";
  $dvt$$1$$.$SearchPanel$.$_ELEM_NODE_DATA$ = "nd";
  $dvt$$1$$.$SearchPanel$.$_ATTR_AF_NAME$ = "name";
  $dvt$$1$$.$SearchPanel$.$_ATTR_EMPTY_TEXT$ = "emptyText";
  $dvt$$1$$.$SearchPanel$.$_ATTR_HEIGHT$ = "height";
  $dvt$$1$$.$SearchPanel$.$_ATTR_ID$ = "id";
  $dvt$$1$$.$SearchPanel$.$_ATTR_INITIAL_BEHAVIOR$ = "initialBehavior";
  $dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_FIRST_VISIBLE$ = "searchResultsFirstVisible";
  $dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_LAST_VISIBLE$ = "searchResultsLastVisible";
  $dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_SELECTED$ = "searchResultsSelected";
  $dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_TEXT$ = "searchText";
  $dvt$$1$$.$SearchPanel$.$_ATTR_TOTAL$ = "total";
  $dvt$$1$$.$SearchPanel$.$_ATTR_WIDTH$ = "width";
  $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ = 0;
  $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$ = 1;
  $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$ = 2;
  $dvt$$1$$.$SearchPanel$.$_EXPAND_BUTTON_WIDTH$ = 10;
  $dvt$$1$$.$SearchPanel$.$_TEXT_FIELD_HEIGHT$ = 20;
  $dvt$$1$$.$SearchPanel$.$HEIGHT$ = $dvt$$1$$.$ControlPanelLAFUtils$.$VIEW_PANEL_HALF_HEIGHT$;
  $dvt$$1$$.$SearchPanel$.prototype.Init = function $$dvt$$1$$$$SearchPanel$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    $dvt$$1$$.$SearchPanel$.$superclass$.Init.call(this, $DvtScrollbarBackground$$);
    this.$_eventManager$ = new $DvtSearchPanelEventManager$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$);
    this.$_eventManager$.$addListeners$(this);
    this.$_eventManager$.$addRolloverType$($dvt$$1$$.$SearchPanel$);
    this.$_eventManager$.$addRolloverType$($dvt$$1$$.$ItemListSprite$);
    this.$_eventManager$.$associate$(this, this);
    this.$_callback$ = $DvtScrollbar$$;
    this.$_callbackObj$ = $DvtScrollbarEvent$$;
    this.$_textFieldContainer$ = this.$_background$ = this.$_frame$ = this.$_goButton$ = this.$_textField$ = null;
    this.$_defaultText$ = "Search";
    this.$_advancedComponent$ = this.$_advancedTemplate$ = this.$_resultsTemplate$ = this.$_imageURIs$ = null;
    this.$_text$ = this.$_defaultText$;
    this.$_collapsedSprite$ = this.$_expandedSprite$ = null;
    this.$_searchResultsTotal$ = -1;
    this.$_arSearchResultsNodeData$ = this.$_searchResultsSelected$ = this.$_searchResultsLastVisible$ = this.$_searchResultsFirstVisible$ = null;
    this.$_bShowSearchResults$ = !1;
    this.$_resultsMaxHeight$ = this.$_resultsMaxWidth$ = -1;
    this.$_resultsTitleResource$ = "Results";
    this.$_bTextFieldUsed$ = !1;
    this.$_searchResultsEmptyText$ = this.$_searchResultsPanel$ = null;
    this.$_initialBehavior$ = $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_HIDDEN$;
    this.$_expandButton$ = this.$_collapseButton$ = null;
    this.$_origHeight$ = this.$_origWidth$ = 0;
    this.$_placeholderRect$ = null;
    this.$_state$ = $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$;
    this.$_bFocus$ = !1;
    this.$_textFieldProxyObj$ = null;
    this.$_goTooltip$ = "Search";
    this.$_expandTooltip$ = "Show Search (Ctrl+F)";
    this.$_collapseTooltip$ = "Hide Search (Esc)";
    this.$_resultsCloseTooltip$ = "Close";
    this.$_skinName$ = null;
    this.$_textFieldHeight$ = $dvt$$1$$.$SearchPanel$.$_TEXT_FIELD_HEIGHT$;
    this.$_textBgColor$ = $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_COLOR$;
    this.$_textBgAlpha$ = $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_ALPHA$;
    this.$_textBgAlphaRollover$ = $dvt$$1$$.$SearchPanel$.$_TEXT_BACKGROUND_ALPHA_ROLLOVER$;
    this.$_textCornerRadius$ = $dvt$$1$$.$SearchPanel$.$_ROUND_RECT_ELLIPSE$;
    this.$_textBorderColor$ = null;
    this.$_goButtonWidth$ = $dvt$$1$$.$SearchPanel$.$_GO_BUTTON_WIDTH$;
    this.$_goButtonHeight$ = $dvt$$1$$.$SearchPanel$.$_GO_BUTTON_HEIGHT$;
    this.$_styleMap$ = null;
    $DvtScrollbarEvent$$ && (this.$_styleMap$ = $DvtScrollbarEvent$$.$getSubcomponentStyles$());
    this.$_bgAlpha$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$ControlPanel$.$BG_ALPHA$, $dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA$);
    this.$_borderColor$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $dvt$$1$$.$SearchPanel$.$_BORDER_COLOR$);
    this.$_borderRadius$ = parseInt($dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$CSSStyle$.$BORDER_RADIUS$, $dvt$$1$$.$SearchPanel$.$_BORDER_RADIUS$));
    this.$_bgColor$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, $dvt$$1$$.$SearchPanel$.$_BACKGROUND_COLOR$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getStyleMap$ = function $$dvt$$1$$$$SearchPanel$$$$getStyleMap$$() {
    return this.$_styleMap$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$renderComponent$ = function $$dvt$$1$$$$SearchPanel$$$$renderComponent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    for (var $DvtScrollbarEvent$$ = this.$getNumChildren$() - 1;0 <= $DvtScrollbarEvent$$;$DvtScrollbarEvent$$--) {
      this.removeChild(this.$getChildAt$($DvtScrollbarEvent$$));
    }
    this.$_searchResultsPanel$ && this.$_searchResultsPanel$.$destroy$ && this.$_searchResultsPanel$.$destroy$();
    $DvtScrollbarBackground$$ && (this.$_defaultText$ = $DvtScrollbarBackground$$);
    $DvtScrollbarEvent$$ = !1;
    this.$_textField$ && null != this.$_textField$.$getText$() && "" != this.$_textField$.$getText$() ? (this.$_text$ = this.$_textField$.$getText$(), this.$_textField$.$destroy$()) : (this.$_text$ = this.$_defaultText$, this.$IsSkinAlta$() && ($DvtScrollbarEvent$$ = !0));
    this.$_advancedComponent$ = this.$_textFieldContainer$ = this.$_background$ = this.$_frame$ = this.$_goButton$ = this.$_textField$ = this.$_collapsedSprite$ = this.$_expandedSprite$ = this.$_expandButton$ = this.$_collapseButton$ = this.$_searchResultsPanel$ = null;
    this.$_imageURIs$ = $DvtScrollbar$$;
    this.$addEvtListener$($dvt$$1$$.MouseEvent.$MOUSEWHEEL$, $dvt$$1$$.$EventManager$.$consumeEvent$, !1);
    this.$_origWidth$ || this.$_origHeight$ ? this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ ? this.$addChild$(this.$RenderSelfCollapsed$()) : this.$addChild$(this.$RenderSelfExpanded$()) : (this.$addChild$(this.$RenderSelfExpanded$()), this.$_origWidth$ = this.$_background$.getWidth(), this.$_origHeight$ = this.$_background$.getHeight(), this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ && this.$_doCollapse$(!0));
    $DvtScrollbarEvent$$ && (this.$_text$ = "", this.$_textField$.$setText$(this.$_text$));
    this.$_state$ != $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ && this.$_bShowSearchResults$ && this.$DisplaySearchResults$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setText$ = function $$dvt$$1$$$$SearchPanel$$$$setText$$($dvt$$1$$) {
    this.$_text$ = $dvt$$1$$;
    this.$_textField$ && this.$_textField$.$setText$(this.$_text$);
    this.$_bTextFieldUsed$ = !0;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setInitialBehavior$ = function $$dvt$$1$$$$SearchPanel$$$$setInitialBehavior$$($DvtScrollbarBackground$$) {
    this.$_initialBehavior$ = $DvtScrollbarBackground$$;
    this.$_origWidth$ || this.$_origHeight$ || $DvtScrollbarBackground$$ != $dvt$$1$$.$PanZoomComponent$.$CONTROL_PANEL_BEHAVIOR_INIT_COLLAPSED$ || (this.$_state$ = $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setSearchResultsEmptyText$ = function $$dvt$$1$$$$SearchPanel$$$$setSearchResultsEmptyText$$($dvt$$1$$) {
    this.$_searchResultsEmptyText$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$isDisclosed$ = function $$dvt$$1$$$$SearchPanel$$$$isDisclosed$$() {
    return this.$getDiagram$().$isSearchPanelDisclosed$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setGoTooltip$ = function $$dvt$$1$$$$SearchPanel$$$$setGoTooltip$$($dvt$$1$$) {
    this.$_goTooltip$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setExpandTooltip$ = function $$dvt$$1$$$$SearchPanel$$$$setExpandTooltip$$($dvt$$1$$) {
    this.$_expandTooltip$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setCollapseTooltip$ = function $$dvt$$1$$$$SearchPanel$$$$setCollapseTooltip$$($dvt$$1$$) {
    this.$_collapseTooltip$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setResultsCloseTooltip$ = function $$dvt$$1$$$$SearchPanel$$$$setResultsCloseTooltip$$($dvt$$1$$) {
    this.$_resultsCloseTooltip$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setResultsMaxWidth$ = function $$dvt$$1$$$$SearchPanel$$$$setResultsMaxWidth$$($dvt$$1$$) {
    this.$_resultsMaxWidth$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setResultsMaxHeight$ = function $$dvt$$1$$$$SearchPanel$$$$setResultsMaxHeight$$($dvt$$1$$) {
    this.$_resultsMaxHeight$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setResultsTitleResource$ = function $$dvt$$1$$$$SearchPanel$$$$setResultsTitleResource$$($dvt$$1$$) {
    this.$_resultsTitleResource$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setState$ = function $$dvt$$1$$$$SearchPanel$$$$setState$$($dvt$$1$$) {
    this.$_state$ != $dvt$$1$$ && (this.$_origWidth$ && this.$_origHeight$ && this.$toggleExpandCollapse$(), this.$_state$ = $dvt$$1$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$IsEmbedded$ = function $$dvt$$1$$$$SearchPanel$$$$IsEmbedded$$() {
    return this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$toggleExpandCollapse$ = function $$dvt$$1$$$$SearchPanel$$$$toggleExpandCollapse$$($DvtScrollbarBackground$$) {
    this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$ ? this.$_doCollapse$() : this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$ && this.$_doExpand$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.getWidth = function $$dvt$$1$$$$SearchPanel$$$getWidth$() {
    return this.$_origWidth$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.getHeight = function $$dvt$$1$$$$SearchPanel$$$getHeight$() {
    return this.$_origHeight$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setButtonStyle$ = function $$dvt$$1$$$$SearchPanel$$$$setButtonStyle$$($dvt$$1$$) {
    this.$_buttonStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setLabelStyle$ = function $$dvt$$1$$$$SearchPanel$$$$setLabelStyle$$($dvt$$1$$) {
    this.$_labelStyle$ = $dvt$$1$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getLabelStyle$ = function $$dvt$$1$$$$SearchPanel$$$$getLabelStyle$$() {
    return this.$_labelStyle$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getAfComponentRoot$ = function $$dvt$$1$$$$SearchPanel$$$$getAfComponentRoot$$() {
    return $dvt$$1$$.$AfComponentFactory$.$getAfComponent$(this.$_advancedComponent$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getAfComponent$ = function $$dvt$$1$$$$SearchPanel$$$$getAfComponent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$getAfComponentRoot$();
    return $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbar$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$destroy$ = function $$dvt$$1$$$$SearchPanel$$$$destroy$$() {
    this.$removeEvtListener$($dvt$$1$$.MouseEvent.$MOUSEWHEEL$, $dvt$$1$$.$EventManager$.$consumeEvent$, !1);
    this.$removeEvtListener$($dvt$$1$$.KeyboardEvent.$KEYDOWN$, this.$HandleKeyDownSelf$, !1, this);
    this.$_searchResultsPanel$ && this.$_searchResultsPanel$.$destroy$ && this.$_searchResultsPanel$.$destroy$();
    this.$_removeTabStop$(this.$_searchResultsPanel$);
    this.$_searchResultsPanel$ = null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$deEmphasizeStart$ = function $$dvt$$1$$$$SearchPanel$$$$deEmphasizeStart$$() {
    this.$setMouseEnabled$(!1);
    this.$_background$ && this.$_background$.$setAlpha$($dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA_DE_EMPHASIZED$);
    this.$_collapseButton$ && (this.$_collapseButtonAlpha$ = this.$_collapseButton$.$getAlpha$(), this.$_collapseButton$.$setAlpha$($dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA_DE_EMPHASIZED$));
    this.$_frame$ && this.$_frame$.$setAlpha$($dvt$$1$$.$SearchPanel$.$_BORDER_ALPHA_DE_EMPHASIZED$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$deEmphasizeEnd$ = function $$dvt$$1$$$$SearchPanel$$$$deEmphasizeEnd$$() {
    this.$setMouseEnabled$(!0);
    null != this.$_background$ && this.$_background$.$setAlpha$(this.$_bgAlpha$);
    this.$_collapseButton$ && (this.$_collapseButton$.$setAlpha$(this.$_collapseButtonAlpha$), this.$_collapseButtonAlpha$ = null);
    null != this.$_frame$ && this.$_frame$.$setAlpha$($dvt$$1$$.$SearchPanel$.$_BORDER_ALPHA$);
    this.$HandleRollOut$(null);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$focusTextField$ = function $$dvt$$1$$$$SearchPanel$$$$focusTextField$$() {
    var $dvt$$1$$ = this.$getCurrentTabStop$();
    $dvt$$1$$ && $dvt$$1$$ != this && $dvt$$1$$.$hideKeyboardFocusEffect$ && $dvt$$1$$.$hideKeyboardFocusEffect$();
    this.$_curTabStopIdx$ = 0;
    this.$_bFocus$ = !0;
    this.$ApplyAlphasRollover$();
    this.$_textField$ && (this.$HandleTextFieldMouseDown$(), this.$_textField$.$selectEditText$());
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_blurTextField$ = function $$dvt$$1$$$$SearchPanel$$$$_blurTextField$$() {
    this.$HandleTextFieldFocusOut$();
    this.$_bFocus$ = !1;
    this.$_eventManager$.$setFocus$(null);
    this.$ApplyAlphasForMouse$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleStageFocusChange$ = function $$dvt$$1$$$$SearchPanel$$$$HandleStageFocusChange$$($dvt$$1$$) {
    this.$_bFocus$ && $dvt$$1$$.target && $dvt$$1$$.target != this.$_textField$ && this.$_blurTextField$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setSkinName$ = function $$dvt$$1$$$$SearchPanel$$$$setSkinName$$($dvt$$1$$) {
    this.$_skinName$ = $dvt$$1$$;
    this.$IsSkinAlta$() && (this.$_textFieldHeight$ = 26, this.$_textBgColor$ = "#fcfdfe", this.$_textBgAlphaRollover$ = this.$_textBgAlpha$ = 1, this.$_textCornerRadius$ = 2, this.$_textBorderColor$ = "#dfe4e7", this.$_goButtonWidth$ = null, this.$_goButtonHeight$ = this.$_textFieldHeight$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$IsSkinAlta$ = function $$dvt$$1$$$$SearchPanel$$$$IsSkinAlta$$() {
    return this.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_ALTA$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$DisplaySearchResults$ = function $$dvt$$1$$$$SearchPanel$$$$DisplaySearchResults$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ && this.$DestroySearchResultsPanel$();
    this.$CreateSearchResultsPanel$();
    if (this.$_state$ != $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$) {
      if (this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$) {
        var $DvtScrollbar$$ = this.$_searchResultsPanel$.getParent() || !1;
        $DvtScrollbar$$ || this.$addChild$(this.$_searchResultsPanel$);
        var $DvtScrollbarEvent$$ = this.$getDimensions$();
        this.$FireListener$(new $dvt$$1$$.$ResizeEvent$($DvtScrollbarEvent$$.$w$, $DvtScrollbarEvent$$.$h$, $DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y));
        $DvtScrollbar$$ || this.removeChild(this.$_searchResultsPanel$);
        this.$RemovePlaceholderRect$();
        this.$_placeholderRect$ = new $dvt$$1$$.Rect(this.$getCtx$(), $DvtScrollbarEvent$$.x, $DvtScrollbarEvent$$.y, $DvtScrollbarEvent$$.$w$, $DvtScrollbarEvent$$.$h$);
        this.$_placeholderRect$.$setAlpha$(0);
        this.$_placeholderRect$.$setMouseEnabled$(!1);
        this.$addChildAt$(this.$_placeholderRect$, 0);
      }
      ($DvtScrollbarBackground$$ = this.$ShowSearchResultsPanel$($DvtScrollbarBackground$$)) ? (this.$_placeholderRect$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$RemovePlaceholderRect$, this), $DvtScrollbarBackground$$.play()) : this.$_placeholderRect$ && this.$RemovePlaceholderRect$();
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$RemovePlaceholderRect$ = function $$dvt$$1$$$$SearchPanel$$$$RemovePlaceholderRect$$() {
    if (this.$_placeholderRect$) {
      var $dvt$$1$$ = this.$_placeholderRect$.getParent();
      $dvt$$1$$ && $dvt$$1$$.removeChild(this.$_placeholderRect$);
    }
    this.$_placeholderRect$ = null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$StampSearchResults$ = function $$dvt$$1$$$$SearchPanel$$$$StampSearchResults$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = [];
    if ($DvtScrollbarBackground$$ && 0 < $DvtScrollbarBackground$$.length) {
      for (var $DvtScrollbarEvent$$ = 0;$DvtScrollbarEvent$$ < $DvtScrollbarBackground$$.length;$DvtScrollbarEvent$$++) {
        var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$DvtScrollbarEvent$$], $afContext$$22$$ = this.$CreateAfContext$();
        $afContext$$22$$.$setELContext$($DvtAdfDiagramDragSource$$.$_elAttributes$);
        $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$AfComponentFactory$.$parseAndLayout$($afContext$$22$$, this.$_resultsTemplate$, this);
        $DvtAdfDiagramDragSource$$.$setMouseEnabled$(!1);
        $DvtScrollbar$$.push($DvtAdfDiagramDragSource$$);
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateSearchResultsPanel$ = function $$dvt$$1$$$$SearchPanel$$$$CreateSearchResultsPanel$$() {
    var $DvtScrollbarBackground$$ = this.$StampSearchResults$(this.$_arSearchResultsNodeData$), $DvtScrollbar$$ = this.$_searchResultsTotal$, $DvtScrollbarEvent$$ = this.$_searchResultsFirstVisible$, $DvtAdfDiagramDragSource$$ = this.$_searchResultsLastVisible$, $selectedIndex$$ = this.$_searchResultsSelected$, $DvtScrollbarArrow$$ = this.$_resultsMaxWidth$, $DvtAdfDiagramEditorManager$$ = this.$_resultsMaxHeight$, $titleResource$$ = this.$_resultsTitleResource$;
    $DvtScrollbarArrow$$ || 0 == $DvtScrollbarArrow$$ || ($DvtScrollbarArrow$$ = -1);
    $DvtAdfDiagramEditorManager$$ || 0 == $DvtAdfDiagramEditorManager$$ || ($DvtAdfDiagramEditorManager$$ = -1);
    $DvtScrollbarEvent$$ || 0 == $DvtScrollbarEvent$$ || ($DvtScrollbarEvent$$ = -1);
    $DvtAdfDiagramDragSource$$ || 0 == $DvtAdfDiagramDragSource$$ || ($DvtAdfDiagramDragSource$$ = -1);
    $selectedIndex$$ || 0 == $selectedIndex$$ || ($selectedIndex$$ = -1);
    var $minWidth$$4$$ = this.$_origWidth$ - this.$_textFieldContainer$.$getTranslateX$();
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && ($minWidth$$4$$ = this.$_textFieldContainer$.$getTranslateX$() + this.$_textFieldContainer$.$getDimensions$().$w$ + 1);
    var $padY_resultsTy$$ = 1;
    this.$IsSkinAlta$() && ($padY_resultsTy$$ = 7, $minWidth$$4$$ += $dvt$$1$$.$SearchPanel$.$_ALTA_CONTENT_PADDING$);
    $padY_resultsTy$$ = this.$_origHeight$ + $padY_resultsTy$$;
    this.$_searchResultsPanel$ = new $DvtSearchResultsPanel$$(this.$getCtx$(), $titleResource$$, this.$_searchResultsEmptyText$, this.$HandleSearchResultsEvent$, this);
    this.$_tabStopsNodeArray$.push(this.$_searchResultsPanel$);
    this.$_searchResultsPanel$.$setSkinName$(this.$_skinName$);
    this.$_searchResultsPanel$.$renderComponent$(this, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarArrow$$, $DvtAdfDiagramEditorManager$$ - $padY_resultsTy$$, $minWidth$$4$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $selectedIndex$$, this.$_imageURIs$);
    this.$_searchResultsPanel$.$setCloseTooltip$(this.$_resultsCloseTooltip$);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) || this.$IsSkinAlta$() ? ($DvtScrollbarBackground$$ = 10, this.$IsSkinAlta$() && ($DvtScrollbarBackground$$ = 0), this.$_searchResultsPanel$.$setTranslateX$($DvtScrollbarBackground$$)) : this.$_searchResultsPanel$.getWidth() > $minWidth$$4$$ ? this.$_searchResultsPanel$.$setTranslateX$(this.$_origWidth$ - this.$_searchResultsPanel$.getWidth()) : this.$_searchResultsPanel$.$setTranslateX$(this.$_textFieldContainer$.$getTranslateX$());
    this.$_searchResultsPanel$.$setTranslateY$($padY_resultsTy$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ShowSearchResultsPanel$ = function $$dvt$$1$$$$SearchPanel$$$$ShowSearchResultsPanel$$($dvt$$1$$) {
    this.$addChild$(this.$_searchResultsPanel$);
    return this.$_searchResultsPanel$.show($dvt$$1$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HideSearchResultsPanel$ = function $$dvt$$1$$$$SearchPanel$$$$HideSearchResultsPanel$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    this.$_searchResultsPanel$ && (this.$_searchResultsPanel$.$_bVisible$ ? ($DvtScrollbar$$ = this.$_searchResultsPanel$.$hide$(), $DvtScrollbarBackground$$ && ($DvtScrollbar$$ ? $DvtScrollbar$$.$onEnd$ = this.$DestroySearchResultsPanel$ : this.$DestroySearchResultsPanel$()), this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$ && this.$FireListener$(new $dvt$$1$$.$ResizeEvent$(this.getWidth(), this.getHeight(), 0, 0))) : $DvtScrollbarBackground$$ && this.$DestroySearchResultsPanel$());
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$DestroySearchResultsPanel$ = function $$dvt$$1$$$$SearchPanel$$$$DestroySearchResultsPanel$$() {
    this.$_searchResultsPanel$ && (this.$_searchResultsPanel$.getParent() && this.$_searchResultsPanel$.getParent().removeChild(this.$_searchResultsPanel$), this.$_removeTabStop$(this.$_searchResultsPanel$), this.$_searchResultsPanel$.$destroy$ && this.$_searchResultsPanel$.$destroy$(), this.$_searchResultsPanel$ = null);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleSearchResultsEvent$ = function $$dvt$$1$$$$SearchPanel$$$$HandleSearchResultsEvent$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$.type == $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_CLEAR_EVENT$) {
      if (this.$_bShowSearchResults$ = !1, this.$DestroySearchResultsPanel$(), this.$_searchResultsPanel$ = null, this.$ClearResultsNodeData$(), this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$) {
        var $DvtScrollbar$$ = this.$getDimensions$();
        this.$FireListener$(new $dvt$$1$$.$ResizeEvent$($DvtScrollbar$$.$w$, $DvtScrollbar$$.$h$, $DvtScrollbar$$.x, $DvtScrollbar$$.y));
      }
    } else {
      $DvtScrollbarBackground$$.type == $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SELECTED_EVENT$ ? ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getParamValue$($dvt$$1$$.$SearchEvent$.$PARAM_INDEX$), ($DvtScrollbar$$ = this.$GetResultId$($DvtScrollbar$$)) && $DvtScrollbarBackground$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_CLIENT_ROW_KEY$, $DvtScrollbar$$)) : $DvtScrollbarBackground$$.type == $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_FETCH_EVENT$ ? ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getParamValue$($dvt$$1$$.$SearchEvent$.$PARAM_INDEX$), 
      ($DvtScrollbar$$ = this.$GetResultId$($DvtScrollbar$$)) && $DvtScrollbarBackground$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_CLIENT_ROW_KEY$, $DvtScrollbar$$)) : $DvtScrollbarBackground$$.type == $dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SCROLL_EVENT$ && ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getParamValue$($dvt$$1$$.$SearchEvent$.$PARAM_FIRST_VIS_INDEX$), ($DvtScrollbar$$ = this.$GetResultId$($DvtScrollbar$$)) && $DvtScrollbarBackground$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_FIRST_VIS_CLIENT_ROW_KEY$, 
      $DvtScrollbar$$), $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getParamValue$($dvt$$1$$.$SearchEvent$.$PARAM_SELECTED_INDEX$), ($DvtScrollbar$$ = this.$GetResultId$($DvtScrollbar$$)) && $DvtScrollbarBackground$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_SELECTED_CLIENT_ROW_KEY$, $DvtScrollbar$$));
    }
    this.$FireEvent$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$GetResultId$ = function $$dvt$$1$$$$SearchPanel$$$$GetResultId$$($dvt$$1$$) {
    return this.$_arSearchResultsNodeData$ && this.$_arSearchResultsNodeData$.length > $dvt$$1$$ && ($dvt$$1$$ = this.$_arSearchResultsNodeData$[$dvt$$1$$]) ? $dvt$$1$$.getId() : null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$FireEvent$ = function $$dvt$$1$$$$SearchPanel$$$$FireEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_callback$ && this.$_callback$.call(this.$_callbackObj$, $dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$FireSearchEvent$ = function $$dvt$$1$$$$SearchPanel$$$$FireSearchEvent$$($DvtScrollbarBackground$$) {
    this.$ClearResultsNodeData$();
    var $DvtScrollbar$$ = new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_EVENT$);
    $DvtScrollbar$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_TEXT$, $DvtScrollbarBackground$$);
    this.$FireEvent$($DvtScrollbar$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$FireExpandEvent$ = function $$dvt$$1$$$$SearchPanel$$$$FireExpandEvent$$() {
    this.$FireEvent$(new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_EXPAND_EVENT$));
  };
  $dvt$$1$$.$SearchPanel$.prototype.$FireCollapseEvent$ = function $$dvt$$1$$$$SearchPanel$$$$FireCollapseEvent$$() {
    this.$FireEvent$(new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_COLLAPSE_EVENT$));
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleRollOver$ = function $$dvt$$1$$$$SearchPanel$$$$HandleRollOver$$() {
    this.$ApplyAlphasRollover$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleRollOut$ = function $$dvt$$1$$$$SearchPanel$$$$HandleRollOut$$() {
    this.$_bFocus$ || this.$ApplyAlphasRollout$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ApplyAlphasRollover$ = function $$dvt$$1$$$$SearchPanel$$$$ApplyAlphasRollover$$() {
    this.$_textFieldContainer$ && this.$_textFieldContainer$.$setAlpha$(this.$_textBgAlphaRollover$);
    this.$_background$ && this.$_background$.$setAlpha$($dvt$$1$$.$SearchPanel$.$_BACKGROUND_ALPHA_ROLLOVER$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ApplyAlphasRollout$ = function $$dvt$$1$$$$SearchPanel$$$$ApplyAlphasRollout$$() {
    this.$_textFieldContainer$ && this.$_textFieldContainer$.$setAlpha$(this.$_textBgAlpha$);
    this.$_background$ && this.$_background$.$setAlpha$(this.$_bgAlpha$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ApplyAlphasForMouse$ = function $$dvt$$1$$$$SearchPanel$$$$ApplyAlphasForMouse$$() {
    this.$ApplyAlphasRollover$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_doExpand$ = function $$dvt$$1$$$$SearchPanel$$$$_doExpand$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$RenderSelfExpanded$();
    this.$addChild$($DvtScrollbar$$);
    $DvtScrollbar$$ = this.$TransitionExpand$(this.$_collapsedSprite$, $DvtScrollbar$$);
    this.$_state$ = $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$;
    this.$FireExpandEvent$();
    if (this.$_searchResultsPanel$) {
      var $DvtScrollbarEvent$$ = this;
      $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbar$$, function() {
        var $DvtScrollbar$$ = $DvtScrollbarEvent$$.$ShowSearchResultsPanel$();
        $DvtScrollbarBackground$$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbar$$, $DvtScrollbarBackground$$);
        $DvtScrollbar$$.play();
      });
    } else {
      $DvtScrollbarBackground$$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbar$$, $DvtScrollbarBackground$$);
    }
    $DvtScrollbar$$.play();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_doCollapse$ = function $$dvt$$1$$$$SearchPanel$$$$_doCollapse$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$HideSearchResultsPanel$(!1);
    this.$_textField$ && (this.$_text$ = this.$_textField$.$getText$());
    var $DvtScrollbarEvent$$ = this.$RenderSelfCollapsed$();
    this.$addChild$($DvtScrollbarEvent$$);
    this.$_bFocus$ = !1;
    var $DvtAdfDiagramDragSource$$ = this.$TransitionCollapse$(this.$_expandedSprite$, $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    this.$_state$ = $dvt$$1$$.$SearchPanel$.$STATE_COLLAPSED$;
    this.$FireCollapseEvent$();
    $DvtScrollbar$$ ? ($DvtAdfDiagramDragSource$$ && $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbar$$, function() {
      $DvtAdfDiagramDragSource$$.play();
    }), $DvtScrollbar$$.play()) : $DvtAdfDiagramDragSource$$ && $DvtAdfDiagramDragSource$$.play();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$TransitionExpand$ = function $$dvt$$1$$$$SearchPanel$$$$TransitionExpand$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), .25);
    $DvtScrollbarBackground$$.$setAlpha$(1);
    $DvtScrollbar$$.$setAlpha$(0);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getAlpha$, $DvtScrollbarBackground$$.$setAlpha$, 0);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getAlpha$, $DvtScrollbar$$.$setAlpha$, 1);
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$getDimensions$(), $oldDims$$ = $DvtScrollbarBackground$$.$getDimensions$();
    $DvtScrollbar$$.$setScaleX$($oldDims$$.$w$ / $DvtAdfDiagramDragSource$$.$w$);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleX$, $DvtScrollbar$$.$setScaleX$, 1);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) || ($DvtScrollbar$$.$setTranslateX$($DvtScrollbarBackground$$.$getTranslateX$()), $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getTranslateX$, $DvtScrollbar$$.$setTranslateX$, 0));
    $DvtScrollbar$$.$setScaleY$($oldDims$$.$h$ / $DvtAdfDiagramDragSource$$.$h$);
    $DvtScrollbarEvent$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getScaleY$, $DvtScrollbar$$.$setScaleY$, 1);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, function() {
      $DvtScrollbarBackground$$.getParent().removeChild($DvtScrollbarBackground$$);
    });
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarEvent$$, this.$ApplyAlphasForMouse$, this);
    this.$_collapsedSprite$ = null;
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$TransitionCollapse$ = function $$dvt$$1$$$$SearchPanel$$$$TransitionCollapse$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = null;
    $DvtScrollbarEvent$$ || ($DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), .25));
    $DvtAdfDiagramDragSource$$ ? ($DvtScrollbarBackground$$.$setAlpha$(1), $DvtScrollbar$$.$setAlpha$(0), $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getAlpha$, $DvtScrollbarBackground$$.$setAlpha$, 0), $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbar$$, $DvtScrollbar$$.$getAlpha$, $DvtScrollbar$$.$setAlpha$, 1)) : ($DvtScrollbarBackground$$.alpha = 0, $DvtScrollbar$$.alpha = 1);
    if ($DvtAdfDiagramDragSource$$) {
      $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getDimensions$();
      var $oldDims$$1$$ = $DvtScrollbarBackground$$.$getDimensions$();
      $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getScaleX$, $DvtScrollbarBackground$$.$setScaleX$, $DvtScrollbarEvent$$.$w$ / $oldDims$$1$$.$w$);
      $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getScaleY$, $DvtScrollbarBackground$$.$setScaleY$, $DvtScrollbarEvent$$.$h$ / $oldDims$$1$$.$h$);
      $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) || $DvtAdfDiagramDragSource$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, $DvtScrollbarBackground$$, $DvtScrollbarBackground$$.$getTranslateX$, $DvtScrollbarBackground$$.$setTranslateX$, $DvtScrollbar$$.$getTranslateX$());
    }
    if ($DvtAdfDiagramDragSource$$) {
      var $DvtScrollbarArrow$$ = this;
      $dvt$$1$$.$Playable$.$appendOnEnd$($DvtAdfDiagramDragSource$$, function() {
        $DvtScrollbarBackground$$.getParent().removeChild($DvtScrollbarBackground$$);
        $DvtScrollbarArrow$$.$ApplyAlphasForMouse$();
      });
    } else {
      $DvtScrollbarBackground$$.getParent().removeChild($DvtScrollbarBackground$$), this.$ApplyAlphasForMouse$();
    }
    this.$_expandedSprite$ = null;
    return $DvtAdfDiagramDragSource$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$RenderSelfCollapsed$ = function $$dvt$$1$$$$SearchPanel$$$$RenderSelfCollapsed$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$Container$(this.$getCtx$()), $DvtScrollbar$$ = $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$());
    this.$addChild$($DvtScrollbarBackground$$);
    var $DvtScrollbarEvent$$ = $dvt$$1$$.$ControlPanelLAFUtils$.$getViewPanelHalfHeight$();
    this.$_background$ = $dvt$$1$$.$ControlPanelLAFUtils$.$createEmptyViewClosedShape$(this.$getCtx$(), $DvtScrollbarEvent$$, this.$_styleMap$, !$DvtScrollbar$$);
    this.$_background$.$setAlpha$(this.$_bgAlpha$);
    $DvtScrollbarBackground$$.$addChild$(this.$_background$);
    this.$_frame$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    $DvtScrollbarEvent$$ = $dvt$$1$$.$ControlPanelLAFUtils$.$createEmptyViewClosedFrame$(this.$getCtx$(), $DvtScrollbarEvent$$, this.$_styleMap$, !$DvtScrollbar$$);
    this.$_frame$.$addChild$($DvtScrollbarEvent$$);
    $DvtScrollbarBackground$$.$addChild$(this.$_frame$);
    this.$_expandButton$ = this.$CreateExpandButton$();
    $DvtScrollbar$$ || this.$_expandButton$.$setTranslateX$(this.$_expandButton$.$getTranslateX$() + 1);
    this.$_frame$.$addChild$(this.$_expandButton$);
    $DvtScrollbar$$ || ($DvtScrollbar$$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$ControlPanel$.$CP_OPEN_CLOSE_BUTTON_WIDTH$, 0), $DvtScrollbarBackground$$.$setTranslateX$(this.$_origWidth$ - $DvtScrollbar$$));
    this.$_collapsedSprite$ = $DvtScrollbarBackground$$;
    this.removeChild($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateAfContext$ = function $$dvt$$1$$$$SearchPanel$$$$CreateAfContext$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AfContext$(this.$getCtx$(), this.$_eventManager$);
    $DvtScrollbarBackground$$.$setSkinName$(this.$_skinName$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getScrollEventCallback$ = function $$dvt$$1$$$$SearchPanel$$$$getScrollEventCallback$$() {
    if (!this.$_scrollCallbackFunc$) {
      var $dvt$$1$$ = this;
      this.$_scrollCallbackFunc$ = function $this$$_scrollCallbackFunc$$($DvtScrollbarBackground$$) {
        null != $DvtScrollbarBackground$$.$getX$() && ($DvtScrollbarBackground$$ = $dvt$$1$$.getParent().$getTranslateX$(), $dvt$$1$$.$_textField$.$updateClipRect$(-($DvtScrollbarBackground$$ + $dvt$$1$$.$_textFieldContainer$.$getTranslateX$() + $dvt$$1$$.$_textField$.$getTranslateX$())));
      };
    }
    return this.$_scrollCallbackFunc$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_getTextFieldWidth$ = function $$dvt$$1$$$$SearchPanel$$$$_getTextFieldWidth$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = this.$IsSkinAlta$() ? 200 : 110, $DvtScrollbarEvent$$ = .5 * this.$_callbackObj$.getWidth() - $dvt$$1$$, $DvtScrollbarEvent$$ = Math.max($DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    return $DvtScrollbarEvent$$ = Math.min($DvtScrollbar$$, $DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$RenderSelfExpanded$ = function $$dvt$$1$$$$SearchPanel$$$$RenderSelfExpanded$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    this.$addChild$($DvtScrollbarBackground$$);
    this.$_background$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, 1, 1);
    this.$_background$.$setFill$(null);
    this.$_background$.$setAlpha$(this.$_bgAlpha$);
    $DvtScrollbarBackground$$.$addChild$(this.$_background$);
    this.$_frame$ = new $dvt$$1$$.$Path$(this.$getCtx$());
    this.$_frame$.$setFill$(null);
    $DvtScrollbarBackground$$.$addChild$(this.$_frame$);
    var $DvtScrollbar$$ = this.$IsSkinAlta$() ? $dvt$$1$$.$SearchPanel$.$_ALTA_CONTENT_PADDING$ : 4, $DvtScrollbarEvent$$ = this.$IsSkinAlta$() ? $dvt$$1$$.$SearchPanel$.$_ALTA_CONTENT_PADDING$ + 7 : 3, $DvtAdfDiagramDragSource$$ = this.$IsSkinAlta$() ? 3 : $DvtScrollbar$$ + 2, $advancedComponentDims$$ = null;
    this.$_goButton$ = this.$CreateGoButton$();
    var $DvtScrollbarArrow$$ = this.$CreateAfContext$();
    this.$_tabStopsNodeArray$ = [];
    $DvtScrollbarArrow$$.$setTabStopsArray$(this.$_tabStopsNodeArray$);
    $DvtScrollbarArrow$$.$registerTabStop$(this);
    this.$_curTabStopIdx$ = -1;
    this.$_advancedTemplate$ && (this.$_advancedComponent$ = $dvt$$1$$.$AfComponentFactory$.$parseAndLayout$($DvtScrollbarArrow$$, this.$_advancedTemplate$, this.$_frame$)) && ($advancedComponentDims$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_advancedComponent$));
    this.$_textFieldContainer$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, 1, 1);
    this.$_textFieldContainer$.$setAlpha$(this.$_textBgAlpha$);
    this.$_frame$.$addChild$(this.$_textFieldContainer$);
    var $DvtAdfDiagramEditorManager$$ = this.$_getTextFieldWidth$($advancedComponentDims$$ ? $advancedComponentDims$$.$w$ + this.$_goButtonWidth$ + 4 * $DvtScrollbar$$ + $DvtAdfDiagramDragSource$$ + 1 : this.$_goButtonWidth$ + 3 * $DvtScrollbar$$ + $DvtAdfDiagramDragSource$$ + 1, this.$_goButtonWidth$);
    this.$_textField$ = this.$CreateTextField$(this.$_textFieldContainer$, $DvtAdfDiagramEditorManager$$);
    var $textFieldContainerDims$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_textFieldContainer$), $DvtScrollbarArrow$$ = new $dvt$$1$$.$Rectangle$($textFieldContainerDims$$.x, $textFieldContainerDims$$.y, $DvtAdfDiagramEditorManager$$, $textFieldContainerDims$$.$h$);
    $textFieldContainerDims$$.$h$ < this.$_textFieldHeight$ && (this.$_textField$.$setTranslateY$(.5 * (this.$_textFieldHeight$ - $textFieldContainerDims$$.$h$)), $textFieldContainerDims$$.$h$ = this.$_textFieldHeight$);
    $textFieldContainerDims$$.$w$ = $DvtAdfDiagramEditorManager$$ + $DvtScrollbar$$;
    this.$_textFieldContainer$.$setTranslate$($DvtScrollbar$$, $DvtScrollbarEvent$$);
    this.$_textFieldContainer$.$setWidth$($textFieldContainerDims$$.$w$);
    this.$_textFieldContainer$.$setHeight$($textFieldContainerDims$$.$h$);
    this.$_textFieldContainer$.$setRx$(this.$_textCornerRadius$);
    this.$_textFieldContainer$.$setRy$(this.$_textCornerRadius$);
    $DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.$SolidFill$(this.$_textBgColor$);
    this.$_textFieldContainer$.$setFill$($DvtAdfDiagramEditorManager$$);
    this.$_textBorderColor$ && this.$_textFieldContainer$.$setSolidStroke$(this.$_textBorderColor$);
    this.$IsSkinAlta$() && this.$_textField$.$setTranslateX$(this.$_textFieldContainer$.$getTranslateX$() / 2);
    this.$_frame$.$addChild$(this.$_goButton$);
    this.$_goButton$.$setTranslate$(this.$_textFieldContainer$.$getTranslateX$() + $textFieldContainerDims$$.$w$ + $DvtAdfDiagramDragSource$$, (this.$_textFieldContainer$.$getTranslateY$() + $textFieldContainerDims$$.$h$ + $DvtScrollbarEvent$$ - this.$_goButtonHeight$) / 2);
    var $maxHeight$$1$$ = Math.max(this.$_goButton$.$getTranslateY$() + this.$_goButtonHeight$, this.$_textFieldContainer$.$getTranslateY$() + $textFieldContainerDims$$.$h$), $DvtAdfDiagramDragSource$$ = this.$_goButton$.$getTranslateX$() + this.$_goButtonWidth$ + $DvtScrollbar$$, $advancedComponentCalcW_clipPath$$3$$;
    this.$_advancedComponent$ && ($advancedComponentCalcW_clipPath$$3$$ = $advancedComponentDims$$.$w$, this.$IsSkinAlta$() ? (this.$_advancedComponent$.$setTranslate$(this.$_goButton$.$getTranslateX$() + this.$_goButtonWidth$ + $DvtScrollbar$$, this.$_goButton$.$getTranslateY$() + (this.$_goButtonHeight$ - $advancedComponentDims$$.$h$) / 2), $DvtAdfDiagramDragSource$$ = this.$_advancedComponent$.$getTranslateX$() + $advancedComponentCalcW_clipPath$$3$$ + $DvtScrollbar$$, $maxHeight$$1$$ = this.$_advancedComponent$.$getTranslateY$() + 
    $advancedComponentDims$$.$h$) : (this.$_advancedComponent$.$setTranslateX$($DvtAdfDiagramDragSource$$), $advancedComponentDims$$.$h$ < this.$_textFieldContainer$.$getTranslateY$() + $textFieldContainerDims$$.$h$ + $DvtScrollbarEvent$$ && this.$_advancedComponent$.$setTranslateY$((this.$_textFieldContainer$.$getTranslateY$() + $textFieldContainerDims$$.$h$ + $DvtScrollbarEvent$$ - $advancedComponentDims$$.$h$) / 2), $maxHeight$$1$$ = Math.max($maxHeight$$1$$, $advancedComponentDims$$.$h$), $DvtAdfDiagramDragSource$$ = 
    this.$_advancedComponent$.$getTranslateX$() + $advancedComponentCalcW_clipPath$$3$$ + $DvtScrollbar$$), this.$_frame$.$addChild$(this.$_advancedComponent$));
    this.$IsEmbedded$() || (this.$_collapseButton$ = this.$CreateCollapseButton$($maxHeight$$1$$ + $DvtScrollbarEvent$$), $DvtScrollbarBackground$$.$addChild$(this.$_collapseButton$));
    $DvtScrollbar$$ = 0;
    this.$_collapseButton$ && ($DvtScrollbar$$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$ControlPanel$.$CP_OPEN_CLOSE_BUTTON_WIDTH$, 0));
    this.$_background$.$setWidth$($DvtAdfDiagramDragSource$$ + 1 + $DvtScrollbar$$);
    this.$_background$.$setHeight$($maxHeight$$1$$ + $DvtScrollbarEvent$$ + 1);
    this.$_background$.$setRx$(this.$_borderRadius$);
    this.$_background$.$setRy$(this.$_borderRadius$);
    this.$IsEmbedded$() || ($DvtAdfDiagramEditorManager$$ = new $dvt$$1$$.$SolidFill$(this.$_bgColor$), this.$_background$.$setFill$($DvtAdfDiagramEditorManager$$));
    this.$CreateFrame$(this.$_frame$, $DvtAdfDiagramDragSource$$, $maxHeight$$1$$ + $DvtScrollbarEvent$$, this.$_borderRadius$);
    this.$IsEmbedded$() || ($DvtScrollbarEvent$$ = new $dvt$$1$$.$SolidStroke$(this.$_borderColor$, $dvt$$1$$.$SearchPanel$.$_BORDER_ALPHA$, $dvt$$1$$.$SearchPanel$.$_BORDER_THICKNESS$), this.$_frame$.$setStroke$($DvtScrollbarEvent$$));
    this.$_collapseButton$ && !$dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && this.$_frame$.$setTranslateX$($dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$ControlPanel$.$CP_OPEN_CLOSE_BUTTON_WIDTH$, 0));
    this.$_expandedSprite$ = $DvtScrollbarBackground$$;
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && (this.$_collapseButton$ && this.$_collapseButton$.$setTranslateX$($DvtAdfDiagramDragSource$$ - this.$_collapseButton$.$getTranslateX$()), this.$_textFieldContainer$.$setTranslateX$($DvtAdfDiagramDragSource$$ - this.$_textFieldContainer$.$getTranslateX$() - $textFieldContainerDims$$.$w$), this.$_goButton$.$setTranslateX$($DvtAdfDiagramDragSource$$ - this.$_goButton$.$getTranslateX$() - this.$_goButtonWidth$), this.$_advancedComponent$ && this.$_advancedComponent$.$setTranslateX$($DvtAdfDiagramDragSource$$ - 
    this.$_advancedComponent$.$getTranslateX$() - $advancedComponentCalcW_clipPath$$3$$));
    this.$CheckShowDefaultText$();
    $advancedComponentCalcW_clipPath$$3$$ = new $dvt$$1$$.$ClipPath$("searchTextClip");
    $advancedComponentCalcW_clipPath$$3$$.$addRect$($DvtScrollbarArrow$$.x + this.$_textField$.$getTranslateX$(), $DvtScrollbarArrow$$.y + this.$_textField$.$getTranslateY$(), $DvtScrollbarArrow$$.$w$, $DvtScrollbarArrow$$.$h$);
    this.$_textField$.$setClipPath$($advancedComponentCalcW_clipPath$$3$$);
    this.removeChild($DvtScrollbarBackground$$);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CheckTextFieldUsed$ = function $$dvt$$1$$$$SearchPanel$$$$CheckTextFieldUsed$$() {
    this.$_bTextFieldUsed$ || (this.$_bTextFieldUsed$ = !0, this.$_textField$.$setText$(""));
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getDiagram$ = function $$dvt$$1$$$$SearchPanel$$$$getDiagram$$() {
    return this.$_callbackObj$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$blurEditTextField$ = function $$dvt$$1$$$$SearchPanel$$$$blurEditTextField$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$getCtx$().$_root$;
    this.$_blurTextField$();
    window.setTimeout(function() {
      $DvtScrollbarBackground$$.parentNode.focus($dvt$$1$$);
    }, 0);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleTextFieldMouseDown$ = function $$dvt$$1$$$$SearchPanel$$$$HandleTextFieldMouseDown$$() {
    this.$CheckTextFieldUsed$();
    this.$_eventManager$.$setFocus$(this.$_textFieldProxyObj$);
    this.$_textField$.$focusEditText$();
    this.$_bFocus$ = !0;
    this.$getDiagram$().$enableSearchKeyboardHandler$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleTextFieldKeyDown$ = function $$dvt$$1$$$$SearchPanel$$$$HandleTextFieldKeyDown$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !1;
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ENTER$ && this.$isTextFieldFocus$()) {
      this.$HideResultsAndFireSearchEvent$(), $DvtScrollbar$$ = !0;
    } else {
      if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ESCAPE$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$TAB$) {
        $DvtScrollbar$$ = this.$HandleKeyDownSelf$($DvtScrollbarBackground$$);
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$isTextFieldFocus$ = function $$dvt$$1$$$$SearchPanel$$$$isTextFieldFocus$$() {
    return this.$_eventManager$.$getFocus$() == this.$_textFieldProxyObj$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleGoClick$ = function $$dvt$$1$$$$SearchPanel$$$$HandleGoClick$$() {
    $dvt$$1$$.$Agent$.$isTouchDevice$() && $dvt$$1$$.$Agent$.$isBrowserChrome$() && this.$_textField$ && this.$_textField$.$_bEditing$ && this.$_textField$.$destroy$();
    this.$HideResultsAndFireSearchEvent$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HideResultsAndFireSearchEvent$ = function $$dvt$$1$$$$SearchPanel$$$$HideResultsAndFireSearchEvent$$() {
    if (this.$_bTextFieldUsed$) {
      var $DvtScrollbarBackground$$ = this.$HideSearchResultsPanel$(!0);
      if ($DvtScrollbarBackground$$) {
        var $DvtScrollbar$$ = this;
        $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, function() {
          $DvtScrollbar$$.$FireSearchEvent$($DvtScrollbar$$.$_textField$.$getText$());
        });
        $DvtScrollbarBackground$$.play();
      } else {
        this.$FireSearchEvent$(this.$_textField$.$getText$());
      }
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleKeyDownSelf$ = function $$dvt$$1$$$$SearchPanel$$$$HandleKeyDownSelf$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = !1;
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$F$ && $DvtScrollbarBackground$$.ctrlKey) {
      this.$getDiagram$().$FocusSearchField$(), $DvtScrollbar$$ = !0;
    } else {
      if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ESCAPE$) {
        $DvtScrollbar$$ = this.$HandleKeyboardEscape$($DvtScrollbarBackground$$);
      } else {
        if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$TAB$) {
          var $DvtScrollbarEvent$$ = this.$getNextNavigable$($DvtScrollbarBackground$$);
          $DvtScrollbarEvent$$ && ($DvtScrollbarEvent$$ instanceof $dvt$$1$$.$SearchPanel$ ? (this.$focusTextField$(), $DvtScrollbar$$ = !0) : $DvtScrollbarEvent$$ instanceof $DvtSearchResultsPanel$$ && this.$_searchResultsPanel$ && this.$_searchResultsPanel$.$_bVisible$ ? $DvtScrollbar$$ = this.$HandleSearchResultsKeyDown$($DvtScrollbarBackground$$) : $DvtScrollbarEvent$$.$showKeyboardFocusEffect$ && ($DvtScrollbarEvent$$.$showKeyboardFocusEffect$(), this.$_eventManager$.$UpdateActiveElement$($DvtScrollbarEvent$$, 
          $DvtScrollbarEvent$$.$_bgShape$), $DvtScrollbar$$ = !0));
        } else {
          if ($DvtScrollbarEvent$$ = this.$getCurrentTabStop$()) {
            $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ENTER$ && $DvtScrollbarEvent$$.$handleKeyboardEvent$ ? ($DvtScrollbarEvent$$.$hideKeyboardFocusEffect$ && $DvtScrollbarEvent$$.$hideKeyboardFocusEffect$(), $DvtScrollbarEvent$$.$handleKeyboardEvent$($DvtScrollbarBackground$$), $DvtScrollbar$$ = !0) : $DvtScrollbar$$ = this.$HandleSearchResultsKeyDown$($DvtScrollbarBackground$$);
          }
        }
      }
    }
    return $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleKeyboardEscape$ = function $$dvt$$1$$$$SearchPanel$$$$HandleKeyboardEscape$$($DvtScrollbarBackground$$) {
    this.$resetTabStops$();
    if (this.$_searchResultsPanel$ && this.$_searchResultsPanel$.$_bVisible$) {
      return this.$getDiagram$().$FocusSearchField$(), ($DvtScrollbarBackground$$ = this.$HideSearchResultsPanel$(!0)) && $DvtScrollbarBackground$$.play(), !0;
    }
    this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EMBEDDED$ ? (this.$blurEditTextField$($DvtScrollbarBackground$$), this.$getDiagram$().$collapseSearchPanel$()) : this.$_state$ == $dvt$$1$$.$SearchPanel$.$STATE_EXPANDED$ && (this.$blurEditTextField$($DvtScrollbarBackground$$), this.$_doCollapse$());
    this.$getDiagram$().$enableDiagramKeyboardHandler$();
    return !1;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleSearchResultsKeyDown$ = function $$dvt$$1$$$$SearchPanel$$$$HandleSearchResultsKeyDown$$($DvtScrollbarBackground$$) {
    return !this.$_searchResultsPanel$ || $DvtScrollbarBackground$$.keyCode != $dvt$$1$$.KeyboardEvent.$TAB$ && $DvtScrollbarBackground$$.keyCode != $dvt$$1$$.KeyboardEvent.$ENTER$ && $DvtScrollbarBackground$$.keyCode != $dvt$$1$$.KeyboardEvent.$UP_ARROW$ && $DvtScrollbarBackground$$.keyCode != $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$ ? !0 : this.$_searchResultsPanel$.$handleKeyboardEvent$($DvtScrollbarBackground$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateTextField$ = function $$dvt$$1$$$$SearchPanel$$$$CreateTextField$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.Text(this.$getCtx$(), this.$_text$);
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$addChild$($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$.$setSolidFill$($dvt$$1$$.$SearchPanel$.$_TEXT_COLOR$);
    if (this.$IsSkinAlta$()) {
      var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SolidFill$("#333333", 1);
      $DvtScrollbarEvent$$.$setFill$($DvtAdfDiagramDragSource$$);
      $DvtScrollbarEvent$$.$setFontSize$(12);
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$CSSStyle$($dvt$$1$$.$CSSStyle$.$FONT_FAMILY$ + ':"Helvetica Neue", Helvetica, Arial, sans-serif;' + $dvt$$1$$.$CSSStyle$.$BACKGROUND$ + ":" + this.$_textBgColor$ + ";");
      $DvtScrollbarEvent$$.$setCSSStyle$($DvtAdfDiagramDragSource$$);
    }
    $DvtScrollbarEvent$$.$setEditWidth$($DvtScrollbar$$);
    var $thisRef$$16$$ = this;
    $DvtScrollbarEvent$$.$setEditMode$(function() {
      $thisRef$$16$$.$_blurTextField$();
      return null;
    });
    var $DvtScrollbarArrow$$ = {};
    this.$_textFieldProxyObj$ = $DvtScrollbarArrow$$;
    $DvtScrollbarArrow$$.$HandleClick$ = function $$DvtScrollbarArrow$$$$HandleClick$$() {
      $thisRef$$16$$.$HandleTextFieldMouseDown$();
    };
    $DvtScrollbarArrow$$.$showKeyboardFocusEffect$ = function $$DvtScrollbarArrow$$$$showKeyboardFocusEffect$$() {
      $DvtScrollbarArrow$$.$bFocusEffect$ = !0;
    };
    $DvtScrollbarArrow$$.$hideKeyboardFocusEffect$ = function $$DvtScrollbarArrow$$$$hideKeyboardFocusEffect$$() {
      $DvtScrollbarArrow$$.$bFocusEffect$ = !1;
    };
    $DvtScrollbarArrow$$.$isShowingKeyboardFocusEffect$ = function $$DvtScrollbarArrow$$$$isShowingKeyboardFocusEffect$$() {
      return $DvtScrollbarArrow$$.$bFocusEffect$;
    };
    $DvtScrollbarArrow$$.$getNextNavigable$ = function $$DvtScrollbarArrow$$$$getNextNavigable$$() {
      return $DvtScrollbarArrow$$;
    };
    $DvtScrollbarArrow$$.$getDisplayable$ = function $$DvtScrollbarArrow$$$$getDisplayable$$() {
      return $DvtScrollbarEvent$$;
    };
    this.$_eventManager$.$associate$($DvtScrollbarEvent$$, $DvtScrollbarArrow$$);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$handleKeyboardEvent$ = function $$dvt$$1$$$$SearchPanel$$$$handleKeyboardEvent$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = !1;
    if (!this.$getDiagram$().$isSearchPanelDisclosed$()) {
      return $DvtScrollbarBackground$$;
    }
    if ($DvtScrollbarBackground$$ = this.$isTextFieldFocus$() ? this.$HandleTextFieldKeyDown$($dvt$$1$$) : this.$HandleKeyDownSelf$($dvt$$1$$)) {
      $dvt$$1$$.preventDefault(), $dvt$$1$$.stopPropagation();
    }
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleTextFieldFocusOut$ = function $$dvt$$1$$$$SearchPanel$$$$HandleTextFieldFocusOut$$() {
    this.$CheckShowDefaultText$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CheckShowDefaultText$ = function $$dvt$$1$$$$SearchPanel$$$$CheckShowDefaultText$$() {
    !this.$_textField$ || null != this.$_textField$.$getText$() && "" != this.$_textField$.$getText$() || (this.$IsSkinAlta$() || this.$_textField$.$setText$(this.$_defaultText$), this.$_bTextFieldUsed$ = !1);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateExpandButton$ = function $$dvt$$1$$$$SearchPanel$$$$CreateExpandButton$$() {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()), $DvtScrollbarBackground$$ = $dvt$$1$$.$ButtonLAFUtils$.$createExpandButton$(this.$getCtx$(), this.$_imageURIs$, $dvt$$1$$.$ControlPanelLAFUtils$.$getViewPanelHalfHeight$(), this.$_styleMap$, $DvtScrollbarBackground$$ ? $dvt$$1$$.$ButtonLAFUtils$.$DIR_LEFT$ : $dvt$$1$$.$ButtonLAFUtils$.$DIR_RIGHT$), $DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    var $DvtScrollbarBackground$$ = $DvtScrollbar$$, $DvtScrollbarEvent$$ = this;
    this.$_eventManager$.$associate$($DvtScrollbarBackground$$, {$HandleClick$:function($dvt$$1$$) {
      $DvtScrollbarEvent$$.$HandleExpandClick$($dvt$$1$$);
    }, $getTooltip$:function() {
      return $DvtScrollbarEvent$$.$_expandTooltip$;
    }});
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateCollapseButton$ = function $$dvt$$1$$$$SearchPanel$$$$CreateCollapseButton$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$());
    $DvtScrollbarBackground$$ || ($DvtScrollbarBackground$$ = $dvt$$1$$.$ControlPanelLAFUtils$.$getViewPanelHalfHeight$());
    $DvtScrollbarBackground$$ = $dvt$$1$$.$ButtonLAFUtils$.$createCollapseButton$(this.$getCtx$(), this.$_imageURIs$, $DvtScrollbarBackground$$, this.$_styleMap$, $DvtScrollbar$$ ? $dvt$$1$$.$ButtonLAFUtils$.$DIR_LEFT$ : $dvt$$1$$.$ButtonLAFUtils$.$DIR_RIGHT$);
    $DvtScrollbar$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$ = $DvtScrollbar$$;
    var $DvtScrollbarEvent$$ = this;
    this.$_eventManager$.$associate$($DvtScrollbarBackground$$, {$HandleClick$:function($dvt$$1$$) {
      $DvtScrollbarEvent$$.$HandleCollapseClick$($dvt$$1$$);
    }, $getTooltip$:function() {
      return $DvtScrollbarEvent$$.$_collapseTooltip$;
    }});
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleExpandClick$ = function $$dvt$$1$$$$SearchPanel$$$$HandleExpandClick$$($dvt$$1$$) {
    $dvt$$1$$.stopPropagation();
    this.$_doExpand$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$HandleCollapseClick$ = function $$dvt$$1$$$$SearchPanel$$$$HandleCollapseClick$$($dvt$$1$$) {
    $dvt$$1$$.stopPropagation();
    this.$_doCollapse$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateGoButton$ = function $$dvt$$1$$$$SearchPanel$$$$CreateGoButton$$() {
    var $DvtScrollbarBackground$$;
    $DvtScrollbarBackground$$ = this.$IsSkinAlta$() ? this.$_createAltaGoButton$() : $dvt$$1$$.$ButtonLAFUtils$.$createQuickQueryButton$(this.$getCtx$(), this.$_imageURIs$);
    var $DvtScrollbar$$ = this;
    this.$_eventManager$.$associate$($DvtScrollbarBackground$$, {$HandleClick$:function() {
      $DvtScrollbar$$.$HandleGoClick$();
    }, $getTooltip$:function() {
      return $DvtScrollbar$$.$_goTooltip$;
    }});
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_createAltaGoButton$ = function $$dvt$$1$$$$SearchPanel$$$$_createAltaGoButton$$() {
    var $DvtScrollbarBackground$$ = this.$_textFieldHeight$, $DvtScrollbar$$ = this.$_defaultText$, $DvtScrollbarEvent$$ = this.$getLabelStyle$(), $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Text(this.$getCtx$(), $DvtScrollbar$$, 0, 0), $dwn$$4_textOvr$$ = new $dvt$$1$$.Text(this.$getCtx$(), $DvtScrollbar$$, 0, 0), $DvtScrollbar$$ = new $dvt$$1$$.Text(this.$getCtx$(), $DvtScrollbar$$, 0, 0);
    $DvtScrollbarEvent$$ && ($DvtAdfDiagramDragSource$$.$setCSSStyle$($DvtScrollbarEvent$$[0]), $dwn$$4_textOvr$$.$setCSSStyle$($DvtScrollbarEvent$$[1]), $DvtScrollbar$$.$setCSSStyle$($DvtScrollbarEvent$$[2]));
    var $DvtScrollbarEvent$$ = this.$_buttonStyle$, $DvtScrollbarArrow$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $ww$$22$$, $DvtScrollbarBackground$$);
    $DvtScrollbarArrow$$.$setRx$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $DvtScrollbarArrow$$.$setRy$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    var $DvtAdfDiagramEditorManager$$ = $DvtAdfDiagramDragSource$$.$measureDimensions$(), $ww$$22$$ = $DvtAdfDiagramEditorManager$$.$w$ + 14;
    this.$_goButtonWidth$ = $ww$$22$$;
    $DvtScrollbarArrow$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $ww$$22$$, $DvtScrollbarBackground$$);
    $DvtScrollbarArrow$$.$setRx$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $DvtScrollbarArrow$$.$setRy$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $DvtAdfDiagramDragSource$$.$setX$(7);
    $DvtAdfDiagramDragSource$$.$setY$(.5 * ($DvtScrollbarBackground$$ - $DvtAdfDiagramEditorManager$$.$h$));
    $DvtScrollbarArrow$$.$addChild$($DvtAdfDiagramDragSource$$);
    $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $ww$$22$$, $DvtScrollbarBackground$$);
    $DvtAdfDiagramDragSource$$.$setRx$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $DvtAdfDiagramDragSource$$.$setRy$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $dwn$$4_textOvr$$.$setX$(7);
    $dwn$$4_textOvr$$.$setY$(.5 * ($DvtScrollbarBackground$$ - $DvtAdfDiagramEditorManager$$.$h$));
    $DvtAdfDiagramDragSource$$.$addChild$($dwn$$4_textOvr$$);
    $dwn$$4_textOvr$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $ww$$22$$, $DvtScrollbarBackground$$);
    $dwn$$4_textOvr$$.$setRx$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $dwn$$4_textOvr$$.$setRy$($dvt$$1$$.$SearchPanel$.$_ALTA_BUTTON_RADIUS$);
    $DvtScrollbar$$.$setX$(7);
    $DvtScrollbar$$.$setY$(.5 * ($DvtScrollbarBackground$$ - $DvtAdfDiagramEditorManager$$.$h$));
    $dwn$$4_textOvr$$.$addChild$($DvtScrollbar$$);
    $DvtScrollbarEvent$$ && ($dvt$$1$$.$ButtonLAFUtils$.$parseStyle$($DvtScrollbarArrow$$, $DvtScrollbarEvent$$[0]), $dvt$$1$$.$ButtonLAFUtils$.$parseStyle$($DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$[1]), $dvt$$1$$.$ButtonLAFUtils$.$parseStyle$($dwn$$4_textOvr$$, $DvtScrollbarEvent$$[2]));
    return new $dvt$$1$$.$Button$(this.$getCtx$(), $DvtScrollbarArrow$$, $DvtAdfDiagramDragSource$$, $dwn$$4_textOvr$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$LoadIcon$ = function $$dvt$$1$$$$SearchPanel$$$$LoadIcon$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = $dvt$$1$$.$ImageLAFUtils$.$getIconUrl$(), $DvtScrollbarEvent$$ = $dvt$$1$$.$ImageLAFUtils$.$loadIcon$(this.$getCtx$(), $DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$.$setMouseEnabled$(!1);
    $DvtScrollbar$$.$addChild$($DvtScrollbarEvent$$);
    return $DvtScrollbarEvent$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$parseNode$ = function $$dvt$$1$$$$SearchPanel$$$$parseNode$$($DvtScrollbarBackground$$) {
    switch($DvtScrollbarBackground$$.getName()) {
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_TEMPLATE$:
        this.$ParseResultsTemplate$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_ADVANCED_TEMPLATE$:
        this.$ParseAdvancedTemplate$($DvtScrollbarBackground$$);
        break;
      case $dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$:
        this.$ParseResultsData$($DvtScrollbarBackground$$), this.$_bShowSearchResults$ = !0;
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$parseNodeJson$ = function $$dvt$$1$$$$SearchPanel$$$$parseNodeJson$$($DvtScrollbarBackground$$) {
    if ($DvtScrollbarBackground$$) {
      var $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_TEMPLATE$];
      $DvtScrollbar$$ && this.$ParseResultsTemplateJson$($DvtScrollbar$$);
      ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_ADVANCED_TEMPLATE$]) && this.$ParseAdvancedTemplateJson$($DvtScrollbar$$);
      if ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$ELEM_SEARCH_RESULTS_DATA$]) {
        this.$ParseResultsDataJson$($DvtScrollbar$$), this.$_bShowSearchResults$ = !0;
      }
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$parseResultsData$ = function $$dvt$$1$$$$SearchPanel$$$$parseResultsData$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$ParseResultsData$($dvt$$1$$);
    this.$_bShowSearchResults$ = !0;
    $DvtScrollbarBackground$$ && "-1" != $DvtScrollbarBackground$$ ? this.$ProcessAdditionalSearchResults$() : this.$ProcessInitialSearchResults$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$parseResultsDataJson$ = function $$dvt$$1$$$$SearchPanel$$$$parseResultsDataJson$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$ParseResultsDataJson$($dvt$$1$$);
    this.$_bShowSearchResults$ = !0;
    $DvtScrollbarBackground$$ && "-1" != $DvtScrollbarBackground$$ ? this.$ProcessAdditionalSearchResults$() : this.$ProcessInitialSearchResults$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ProcessInitialSearchResults$ = function $$dvt$$1$$$$SearchPanel$$$$ProcessInitialSearchResults$$() {
    this.$DisplaySearchResults$();
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ProcessAdditionalSearchResults$ = function $$dvt$$1$$$$SearchPanel$$$$ProcessAdditionalSearchResults$$() {
    var $dvt$$1$$ = this.$_searchResultsPanel$.$getFocusItemIndex$();
    this.$DisplaySearchResults$(!0);
    this.$_searchResultsPanel$.$setFocusItemIndex$($dvt$$1$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsTemplate$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsTemplate$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_EMPTY_TEXT$)) && this.$setSearchResultsEmptyText$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_INITIAL_BEHAVIOR$)) && this.$setInitialBehavior$($DvtScrollbar$$);
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      $DvtScrollbarEvent$$.getName() == $dvt$$1$$.$SearchPanel$.$_ELEM_NODE$ && this.$ParseResultsNode$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsTemplateJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsTemplateJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_EMPTY_TEXT$]) && this.$setSearchResultsEmptyText$($DvtScrollbar$$);
    ($DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_INITIAL_BEHAVIOR$]) && this.$setInitialBehavior$($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ELEM_NODE$];
    this.$ParseResultsNodeJson$($DvtScrollbar$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseAdvancedTemplate$ = function $$dvt$$1$$$$SearchPanel$$$$ParseAdvancedTemplate$$($DvtScrollbarBackground$$) {
    this.$_advancedTemplate$ = ($DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarBackground$$)) ? $DvtScrollbarBackground$$ : null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseAdvancedTemplateJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseAdvancedTemplateJson$$($DvtScrollbarBackground$$) {
    this.$_advancedTemplate$ = ($DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarBackground$$.children)) ? $DvtScrollbarBackground$$ : null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsData$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    this.$_searchResultsTotal$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_TOTAL$)) ? parseInt($DvtScrollbar$$) : -1;
    $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_TEXT$);
    this.$_searchResultsFirstVisible$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_FIRST_VISIBLE$)) ? parseInt($DvtScrollbar$$) : -1;
    this.$_searchResultsLastVisible$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_LAST_VISIBLE$)) ? parseInt($DvtScrollbar$$) : -1;
    this.$_searchResultsSelected$ = ($DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_SELECTED$)) ? parseInt($DvtScrollbar$$) : -1;
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$();
    for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
      var $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtScrollbar$$];
      $DvtScrollbarEvent$$.getName() == $dvt$$1$$.$SearchPanel$.$_ELEM_NODE_DATA$ && this.$ParseNodeData$($DvtScrollbarEvent$$);
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsDataJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsDataJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_TOTAL$];
    this.$_searchResultsTotal$ = isNaN($DvtScrollbar$$) ? -1 : parseInt($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_FIRST_VISIBLE$];
    this.$_searchResultsFirstVisible$ = isNaN($DvtScrollbar$$) ? -1 : parseInt($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_LAST_VISIBLE$];
    this.$_searchResultsLastVisible$ = isNaN($DvtScrollbar$$) ? -1 : parseInt($DvtScrollbar$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_SEARCH_RESULTS_SELECTED$];
    this.$_searchResultsSelected$ = isNaN($DvtScrollbar$$) ? -1 : parseInt($DvtScrollbar$$);
    if ($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ELEM_NODE_DATA$]) {
      for ($DvtScrollbar$$ = 0;$DvtScrollbar$$ < $DvtScrollbarBackground$$.length;$DvtScrollbar$$++) {
        this.$ParseNodeDataJson$($DvtScrollbarBackground$$[$DvtScrollbar$$]);
      }
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseNodeData$ = function $$dvt$$1$$$$SearchPanel$$$$ParseNodeData$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$ = new $DvtSearchResultsNodeData$$;
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_ID$);
    $DvtScrollbarEvent$$.setId($DvtScrollbar$$);
    if (($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getFirstChild()) && $DvtScrollbarBackground$$.getName() === $dvt$$1$$.$SearchPanel$.$_ELEM_EL$) {
      $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.getAttributes();
      for (var $DvtAdfDiagramDragSource$$ = {}, $i$$161$$ = 0;$i$$161$$ < $DvtScrollbarBackground$$.length;$i$$161$$++) {
        $DvtScrollbar$$ = $DvtScrollbarBackground$$[$i$$161$$], $DvtAdfDiagramDragSource$$[$DvtScrollbar$$.name] = $DvtScrollbar$$.value;
      }
      $DvtScrollbarEvent$$.$setElAttributes$($DvtAdfDiagramDragSource$$);
    }
    this.$AddResultNodeData$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseNodeDataJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseNodeDataJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $DvtSearchResultsNodeData$$;
    $DvtScrollbar$$.setId($DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_ID$]);
    $DvtScrollbar$$.$setElAttributes$($DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ELEM_EL$]);
    this.$AddResultNodeData$($DvtScrollbar$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$AddResultNodeData$ = function $$dvt$$1$$$$SearchPanel$$$$AddResultNodeData$$($dvt$$1$$) {
    this.$_arSearchResultsNodeData$ || (this.$_arSearchResultsNodeData$ = []);
    this.$_arSearchResultsNodeData$.push($dvt$$1$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ClearResultsNodeData$ = function $$dvt$$1$$$$SearchPanel$$$$ClearResultsNodeData$$() {
    if (this.$_arSearchResultsNodeData$) {
      for (;0 < this.$_arSearchResultsNodeData$.length;) {
        this.$_arSearchResultsNodeData$.pop();
      }
      this.$_arSearchResultsNodeData$ = null;
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsNode$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsNode$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$AfPanelGroupLayout$;
    $DvtScrollbar$$.$setLayout$($dvt$$1$$.$AfPanelGroupLayout$.$LAYOUT_VERTICAL$);
    this.$ParseNodeAttrs$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    if (($DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.$getChildNodes$()) && 0 < $DvtScrollbarBackground$$.length) {
      for (var $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = 0;$DvtAdfDiagramDragSource$$ < $DvtScrollbarBackground$$.length;$DvtAdfDiagramDragSource$$++) {
        $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$[$DvtAdfDiagramDragSource$$], $DvtScrollbarEvent$$.getName() === $dvt$$1$$.$SearchPanel$.$_ELEM_F$ && ("content" === $DvtScrollbarEvent$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_AF_NAME$) && ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$parseXml$($DvtScrollbarEvent$$)) && $DvtScrollbar$$.$addChild$($DvtScrollbarEvent$$), $DvtScrollbarBackground$$.splice($DvtAdfDiagramDragSource$$, 1), $DvtAdfDiagramDragSource$$--);
      }
    }
    this.$_resultsTemplate$ = $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseResultsNodeJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseResultsNodeJson$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$AfPanelGroupLayout$;
    $DvtScrollbar$$.$setLayout$($dvt$$1$$.$AfPanelGroupLayout$.$LAYOUT_VERTICAL$);
    this.$ParseNodeAttrsJson$($DvtScrollbarBackground$$, $DvtScrollbar$$);
    $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ELEM_F$];
    "content" === $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_AF_NAME$] && ($DvtScrollbarBackground$$ = $dvt$$1$$.$AfComponentFactory$.$parseJson$($DvtScrollbarBackground$$.children)) && $DvtScrollbar$$.$addChild$($DvtScrollbarBackground$$);
    this.$_resultsTemplate$ = $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseNodeAttrs$ = function $$dvt$$1$$$$SearchPanel$$$$ParseNodeAttrs$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$;
    $DvtScrollbarEvent$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_ID$);
    $DvtScrollbar$$.setId($DvtScrollbarEvent$$);
    $DvtScrollbarEvent$$ = "";
    var $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_WIDTH$);
    $DvtAdfDiagramDragSource$$ && (0 < $DvtScrollbarEvent$$.length && ($DvtScrollbarEvent$$ += ";"), $DvtScrollbarEvent$$ += "width:" + $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$.$getAttr$($dvt$$1$$.$SearchPanel$.$_ATTR_HEIGHT$)) {
      0 < $DvtScrollbarEvent$$.length && ($DvtScrollbarEvent$$ += ";"), $DvtScrollbarEvent$$ += "height:" + $DvtAdfDiagramDragSource$$;
    }
    0 < $DvtScrollbarEvent$$.length && $DvtScrollbar$$.$setInlineStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$ParseNodeAttrsJson$ = function $$dvt$$1$$$$SearchPanel$$$$ParseNodeAttrsJson$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtScrollbar$$.setId($DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_ID$]);
    var $DvtScrollbarEvent$$ = "", $DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_WIDTH$];
    $DvtAdfDiagramDragSource$$ && (0 < $DvtScrollbarEvent$$.length && ($DvtScrollbarEvent$$ += ";"), $DvtScrollbarEvent$$ += "width:" + $DvtAdfDiagramDragSource$$);
    if ($DvtAdfDiagramDragSource$$ = $DvtScrollbarBackground$$[$dvt$$1$$.$SearchPanel$.$_ATTR_HEIGHT$]) {
      0 < $DvtScrollbarEvent$$.length && ($DvtScrollbarEvent$$ += ";"), $DvtScrollbarEvent$$ += "height:" + $DvtAdfDiagramDragSource$$;
    }
    0 < $DvtScrollbarEvent$$.length && $DvtScrollbar$$.$setInlineStyle$($DvtScrollbarEvent$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getDimensions$ = function $$dvt$$1$$$$SearchPanel$$$$getDimensions$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$;
    this.$_searchResultsPanel$ && ($DvtScrollbar$$ = this.$_searchResultsPanel$.$getDimensions$()) && ($DvtScrollbar$$.$h$ += $DvtScrollbar$$.y + this.$_searchResultsPanel$.$getTranslateY$());
    $DvtScrollbar$$ || ($DvtScrollbar$$ = $dvt$$1$$.$SearchPanel$.$superclass$.$getDimensions$.call(this));
    return $DvtScrollbarBackground$$ && $DvtScrollbar$$ ? this.$ConvertCoordSpaceRect$($DvtScrollbar$$, $DvtScrollbarBackground$$) : $DvtScrollbar$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getDimensionsWithStroke$ = function $$dvt$$1$$$$SearchPanel$$$$getDimensionsWithStroke$$($dvt$$1$$) {
    return this.$getDimensions$($dvt$$1$$);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$hideKeyboardFocusEffect$ = function $$dvt$$1$$$$SearchPanel$$$$hideKeyboardFocusEffect$$() {
  };
  $dvt$$1$$.$SearchPanel$.prototype.$CreateFrame$ = function $$dvt$$1$$$$SearchPanel$$$$CreateFrame$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$) {
    var $bidi$$ = $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()), $DvtScrollbarArrow$$ = this.$IsEmbedded$();
    $DvtScrollbarBackground$$.$setCommands$($DvtScrollbarArrow$$ || $bidi$$ ? !$DvtScrollbarArrow$$ && $bidi$$ ? ["M", $DvtScrollbar$$, 0, "L", $DvtScrollbar$$, $DvtScrollbarEvent$$, "L", $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, 0, $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, "L", 0, $DvtAdfDiagramDragSource$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, $DvtAdfDiagramDragSource$$, 0, "Z"] : 
    ["M", $DvtScrollbar$$ - $DvtAdfDiagramDragSource$$, 0, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, "L", $DvtScrollbar$$, $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, $DvtScrollbar$$ - $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$, "L", $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 
    0, 0, 1, 0, $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, "L", 0, $DvtAdfDiagramDragSource$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, $DvtAdfDiagramDragSource$$, 0, "Z"] : ["M", $DvtScrollbar$$ - $DvtAdfDiagramDragSource$$, 0, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 0, 0, 1, $DvtScrollbar$$, $DvtAdfDiagramDragSource$$, "L", $DvtScrollbar$$, $DvtScrollbarEvent$$ - $DvtAdfDiagramDragSource$$, "A", $DvtAdfDiagramDragSource$$, $DvtAdfDiagramDragSource$$, 
    0, 0, 1, $DvtScrollbar$$ - $DvtAdfDiagramDragSource$$, $DvtScrollbarEvent$$, "L", 0, $DvtScrollbarEvent$$, "L", 0, 0, "Z"]);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$canReuse$ = function $$dvt$$1$$$$SearchPanel$$$$canReuse$$() {
    var $DvtScrollbarBackground$$ = !1;
    $dvt$$1$$.$Agent$.$isTouchDevice$() && $dvt$$1$$.$Agent$.$isBrowserChrome$() && this.$_textField$ && this.$_textField$.$_bEditing$ && ($DvtScrollbarBackground$$ = !0);
    return $DvtScrollbarBackground$$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getEventManager$ = function $$dvt$$1$$$$SearchPanel$$$$getEventManager$$() {
    return this.$_eventManager$;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getNextTabStop$ = function $$dvt$$1$$$$SearchPanel$$$$getNextTabStop$$() {
    this.$_prevTabStopIdx$ = this.$_curTabStopIdx$;
    this.$_curTabStopIdx$++;
    if (this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$) {
      return this.$_tabStopsNodeArray$[this.$_curTabStopIdx$];
    }
    this.$_curTabStopIdx$ = -1;
    return null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getPrevTabStop$ = function $$dvt$$1$$$$SearchPanel$$$$getPrevTabStop$$() {
    -1 == this.$_curTabStopIdx$ && this.$_prevTabStopIdx$ == this.$_tabStopsNodeArray$.length - 1 ? this.$_curTabStopIdx$ = this.$_prevTabStopIdx$ : (this.$_prevTabStopIdx$ = this.$_curTabStopIdx$, this.$_curTabStopIdx$--);
    if (0 <= this.$_curTabStopIdx$ && this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$) {
      return this.$_tabStopsNodeArray$[this.$_curTabStopIdx$];
    }
    this.$_curTabStopIdx$ = -1;
    return null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getCurrentTabStop$ = function $$dvt$$1$$$$SearchPanel$$$$getCurrentTabStop$$() {
    return -1 < this.$_curTabStopIdx$ && this.$_tabStopsNodeArray$ && this.$_tabStopsNodeArray$.length > this.$_curTabStopIdx$ ? this.$_tabStopsNodeArray$[this.$_curTabStopIdx$] : null;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$setCurrentTabStop$ = function $$dvt$$1$$$$SearchPanel$$$$setCurrentTabStop$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ == this.$_textFieldProxyObj$ ? $DvtScrollbarBackground$$ = this : $DvtScrollbarBackground$$ instanceof $dvt$$1$$.$ItemListSprite$ && ($DvtScrollbarBackground$$ = this.$_searchResultsPanel$);
    $DvtScrollbarBackground$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$(this.$_tabStopsNodeArray$, $DvtScrollbarBackground$$);
    if (0 <= $DvtScrollbarBackground$$ && this.$_curTabStopIdx$ != $DvtScrollbarBackground$$) {
      var $DvtScrollbar$$ = this.$getCurrentTabStop$();
      $DvtScrollbar$$ && $DvtScrollbar$$.$hideKeyboardFocusEffect$ && $DvtScrollbar$$.$hideKeyboardFocusEffect$();
      this.$_curTabStopIdx$ = $DvtScrollbarBackground$$;
    }
  };
  $dvt$$1$$.$SearchPanel$.prototype.$_removeTabStop$ = function $$dvt$$1$$$$SearchPanel$$$$_removeTabStop$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = $dvt$$1$$.$ArrayUtils$.$getIndex$(this.$_tabStopsNodeArray$, $DvtScrollbarBackground$$);
    0 <= $DvtScrollbarBackground$$ && this.$_tabStopsNodeArray$.splice($DvtScrollbarBackground$$, 1);
  };
  $dvt$$1$$.$SearchPanel$.prototype.$resetTabStops$ = function $$dvt$$1$$$$SearchPanel$$$$resetTabStops$$() {
    var $dvt$$1$$ = this.$getCurrentTabStop$();
    $dvt$$1$$ && $dvt$$1$$ == this ? this.$blurEditTextField$() : $dvt$$1$$ && $dvt$$1$$.$hideKeyboardFocusEffect$ && $dvt$$1$$.$hideKeyboardFocusEffect$();
    this.$_curTabStopIdx$ = -1;
  };
  $dvt$$1$$.$SearchPanel$.prototype.$getNextNavigable$ = function $$dvt$$1$$$$SearchPanel$$$$getNextNavigable$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = null;
    ($DvtScrollbar$$ = this.$getCurrentTabStop$()) && $DvtScrollbar$$ instanceof $dvt$$1$$.$SearchPanel$ ? this.$blurEditTextField$() : $DvtScrollbar$$ && $DvtScrollbar$$.$hideKeyboardFocusEffect$ && $DvtScrollbar$$.$hideKeyboardFocusEffect$();
    return $DvtScrollbar$$ = $DvtScrollbarBackground$$.keyCode != $dvt$$1$$.KeyboardEvent.$TAB$ || $DvtScrollbarBackground$$.shiftKey ? $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$TAB$ ? this.$getPrevTabStop$() : null : this.$getNextTabStop$();
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtSearchResultsNodeData$$, $dvt$$1$$.$Obj$, "DvtSearchResultsNodeData");
  $DvtSearchResultsNodeData$$.prototype.setId = function $$DvtSearchResultsNodeData$$$$setId$($dvt$$1$$) {
    this.$_id$ = $dvt$$1$$;
  };
  $DvtSearchResultsNodeData$$.prototype.getId = function $$DvtSearchResultsNodeData$$$$getId$() {
    return this.$_id$;
  };
  $DvtSearchResultsNodeData$$.prototype.$setElAttributes$ = function $$DvtSearchResultsNodeData$$$$$setElAttributes$$($dvt$$1$$) {
    this.$_elAttributes$ = $dvt$$1$$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtSearchPanelEventManager$$, $dvt$$1$$.$EventManager$, "DvtSearchPanelEventManager");
  $DvtSearchPanelEventManager$$.prototype.Init = function $$DvtSearchPanelEventManager$$$$Init$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    $DvtSearchPanelEventManager$$.$superclass$.Init.call(this, $dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    this.$_diagram$ = $DvtScrollbar$$;
  };
  $DvtSearchPanelEventManager$$.prototype.$OnMouseDown$ = function $$DvtSearchPanelEventManager$$$$$OnMouseDown$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtSearchPanelEventManager$$.$superclass$.$OnMouseDown$.call(this, $dvt$$1$$);
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$HandleMouseDown$ && $DvtScrollbarBackground$$.$HandleMouseDown$($dvt$$1$$), this.$_diagram$.$enableSearchKeyboardHandler$(), this.$_diagram$.$getSearchPanel$().$setCurrentTabStop$($DvtScrollbarBackground$$));
  };
  $DvtSearchPanelEventManager$$.prototype.$OnClick$ = function $$DvtSearchPanelEventManager$$$$$OnClick$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtSearchPanelEventManager$$.$superclass$.$OnClick$.call(this, $dvt$$1$$);
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$HandleClick$ && $DvtScrollbarBackground$$.$HandleClick$($dvt$$1$$), $dvt$$1$$.stopPropagation());
  };
  $DvtSearchPanelEventManager$$.prototype.$OnDblClickInternal$ = function $$DvtSearchPanelEventManager$$$$$OnDblClickInternal$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$isDoubleClickable$ && $DvtScrollbarBackground$$.$isDoubleClickable$() && $DvtScrollbarBackground$$.$HandleDblClick$ && $DvtScrollbarBackground$$.$HandleDblClick$($dvt$$1$$), $dvt$$1$$.stopPropagation());
  };
  $DvtSearchPanelEventManager$$.prototype.$OnRollOver$ = function $$DvtSearchPanelEventManager$$$$$OnRollOver$$($dvt$$1$$) {
    $DvtSearchPanelEventManager$$.$superclass$.$OnRollOver$.call(this, $dvt$$1$$);
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$HandleRollOver$ && $DvtScrollbarBackground$$.$HandleRollOver$($dvt$$1$$);
  };
  $DvtSearchPanelEventManager$$.prototype.$OnRollOut$ = function $$DvtSearchPanelEventManager$$$$$OnRollOut$$($dvt$$1$$) {
    $DvtSearchPanelEventManager$$.$superclass$.$OnRollOut$.call(this, $dvt$$1$$);
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && $DvtScrollbarBackground$$.$HandleRollOut$ && $DvtScrollbarBackground$$.$HandleRollOut$($dvt$$1$$);
  };
  $DvtSearchPanelEventManager$$.prototype.$OnComponentTouchClick$ = function $$DvtSearchPanelEventManager$$$$$OnComponentTouchClick$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtSearchPanelEventManager$$.$superclass$.$OnComponentTouchClick$.call(this, $dvt$$1$$);
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$HandleClick$ && $DvtScrollbarBackground$$.$HandleClick$($dvt$$1$$), $dvt$$1$$.stopPropagation());
  };
  $DvtSearchPanelEventManager$$.prototype.$HandleTouchDblClickInternal$ = function $$DvtSearchPanelEventManager$$$$$HandleTouchDblClickInternal$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$1$$));
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$isDoubleClickable$ && $DvtScrollbarBackground$$.$isDoubleClickable$() && $DvtScrollbarBackground$$.$HandleDblClick$ && $DvtScrollbarBackground$$.$HandleDblClick$($dvt$$1$$), $dvt$$1$$.stopPropagation());
  };
  $DvtSearchPanelEventManager$$.prototype.$ShowKeyboardFocusByDefault$ = function $$DvtSearchPanelEventManager$$$$$ShowKeyboardFocusByDefault$$() {
    return !0;
  };
  $DvtSearchPanelEventManager$$.prototype.$setFocus$ = function $$DvtSearchPanelEventManager$$$$$setFocus$$($dvt$$1$$) {
    this.$_focusedObj$ = $dvt$$1$$;
  };
  $DvtSearchPanelEventManager$$.prototype.$getFocus$ = function $$DvtSearchPanelEventManager$$$$$getFocus$$() {
    return this.$_focusedObj$;
  };
  $dvt$$1$$.$Obj$.$createSubclass$($DvtSearchResultsPanel$$, $dvt$$1$$.$Container$, "DvtSearchResultsPanel");
  $DvtSearchResultsPanel$$.$_BORDER_COLOR$ = "#C1D0D7";
  $DvtSearchResultsPanel$$.$_TEXT_COLOR$ = "#333333";
  $DvtSearchResultsPanel$$.$_TEXT_FONT$ = "Arial";
  $DvtSearchResultsPanel$$.$_TEXT_SIZE$ = 11;
  $DvtSearchResultsPanel$$.$_TEXT_WEIGHT$ = "normal";
  $DvtSearchResultsPanel$$.$_TITLE_BAR_HEIGHT$ = 19;
  $DvtSearchResultsPanel$$.$_ANIM_DURATION$ = .25;
  $DvtSearchResultsPanel$$.$_CLOSE_BUTTON_WIDTH$ = 11;
  $DvtSearchResultsPanel$$.$_CLOSE_BUTTON_HEIGHT$ = 11;
  $DvtSearchResultsPanel$$.$_PGL_BASE_STYLE$ = "background-color:transparent;border-width:0px;fill-type:solid;padding:0px;";
  $DvtSearchResultsPanel$$.prototype.Init = function $$DvtSearchResultsPanel$$$$Init$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$, $callbackObj$$19$$) {
    $DvtSearchResultsPanel$$.$superclass$.Init.call(this, $DvtScrollbarBackground$$);
    this.$_callback$ = $DvtAdfDiagramDragSource$$;
    this.$_callbackObj$ = $callbackObj$$19$$;
    this.$_eventManager$ = this.$_callbackObj$.$getEventManager$();
    this.$_styleMap$ = $callbackObj$$19$$.$getStyleMap$();
    this.$_titleResource$ = $DvtScrollbar$$ ? $DvtScrollbar$$ : "Search Results [{0}]";
    this.$_emptyText$ = $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ : "No results to display.";
    this.$_actualItemCount$ = 0;
    this.$_total$ = -1;
    this.$_items$;
    this.$_maxHeight$ = this.$_maxWidth$ = Number.MAX_VALUE;
    this.$_minWidth$ = -1;
    this.$_origHeight$ = this.$_origWidth$ = 0;
    this.$_popupMenu$;
    this.$_popupMenuMinWidth$;
    this.$_scrollableContainer$;
    this.$_contentPGL$;
    this.$_titleTextField$;
    this.$_contentWidth$;
    this.$_closeTooltip$ = "Close";
    this.$_closeButton$;
    this.$_selectedIndex$ = this.$_lastVisIndex$ = this.$_firstVisIndex$ = -1;
    this.$_imageURIs$ = this.$_skinName$ = null;
    this.$_textColor$ = $DvtSearchResultsPanel$$.$_TEXT_COLOR$;
    this.$_textFont$ = $DvtSearchResultsPanel$$.$_TEXT_FONT$;
    this.$_textSize$ = $DvtSearchResultsPanel$$.$_TEXT_SIZE$;
    this.$_textWeight$ = $DvtSearchResultsPanel$$.$_TEXT_WEIGHT$;
    this.$_titleBarHeight$ = $DvtSearchResultsPanel$$.$_TITLE_BAR_HEIGHT$;
    this.$_closeButtonWidth$ = $DvtSearchResultsPanel$$.$_CLOSE_BUTTON_WIDTH$;
    this.$_closeButtonHeight$ = $DvtSearchResultsPanel$$.$_CLOSE_BUTTON_HEIGHT$;
    this.$_borderColor$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$CSSStyle$.$BORDER_COLOR$, $DvtSearchResultsPanel$$.$_BORDER_COLOR$);
    this.$_bgColor$ = $dvt$$1$$.$StyleUtils$.$getStyle$(this.$_styleMap$, $dvt$$1$$.$CSSStyle$.$BACKGROUND_COLOR$, null);
    this.$_bFetchFired$ = !1;
  };
  $DvtSearchResultsPanel$$.prototype.$renderComponent$ = function $$DvtSearchResultsPanel$$$$$renderComponent$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$, $maxHeight$$2$$, $DvtAdfDiagramDragSource$$, $DvtScrollbarArrow$$, $lastVisIndex$$1$$, $selectedIndex$$1$$, $DvtAdfDiagramEditorManager$$) {
    this.$_total$ = $DvtScrollbar$$ || 0 == $DvtScrollbar$$ ? $DvtScrollbar$$ : -1;
    this.$_maxWidth$ = $DvtScrollbarEvent$$ || 0 == $DvtScrollbarEvent$$ ? $DvtScrollbarEvent$$ : Number.MAX_VALUE;
    this.$_maxHeight$ = $maxHeight$$2$$ || 0 == $maxHeight$$2$$ ? $maxHeight$$2$$ : Number.MAX_VALUE;
    this.$_minWidth$ = $DvtAdfDiagramDragSource$$ || 0 == $DvtAdfDiagramDragSource$$ ? $DvtAdfDiagramDragSource$$ - 3 : -1;
    this.$_firstVisIndex$ = $DvtScrollbarArrow$$ || 0 == $DvtScrollbarArrow$$ ? $DvtScrollbarArrow$$ : -1;
    this.$_lastVisIndex$ = $lastVisIndex$$1$$ || 0 == $lastVisIndex$$1$$ ? $lastVisIndex$$1$$ : -1;
    this.$_selectedIndex$ = $selectedIndex$$1$$ || 0 == $selectedIndex$$1$$ ? $selectedIndex$$1$$ : -1;
    $dvt$$1$$ && $dvt$$1$$.$addChild$(this);
    this.$_imageURIs$ = $DvtAdfDiagramEditorManager$$;
    this.$setItems$($DvtScrollbarBackground$$);
    $dvt$$1$$ && $dvt$$1$$.removeChild(this);
  };
  $DvtSearchResultsPanel$$.prototype.$setCloseTooltip$ = function $$DvtSearchResultsPanel$$$$$setCloseTooltip$$($dvt$$1$$) {
    this.$_closeTooltip$ = $dvt$$1$$;
  };
  $DvtSearchResultsPanel$$.prototype.show = function $$DvtSearchResultsPanel$$$$show$($DvtScrollbarBackground$$) {
    if (this.$IsSkinAlta$() || !$dvt$$1$$.$Agent$.$isEnvironmentBrowser$()) {
      $DvtScrollbarBackground$$ = !0;
    }
    $DvtScrollbarBackground$$ ? (this.$setAlpha$(1), this.$setScaleY$(1)) : (this.$setAlpha$(0), this.$setScaleY$(.001));
    this.$setVisible$(!0);
    var $DvtScrollbar$$;
    $DvtScrollbarBackground$$ || ($DvtScrollbar$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), $DvtSearchResultsPanel$$.$_ANIM_DURATION$), $DvtScrollbar$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, 1), $DvtScrollbar$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getScaleY$, this.$setScaleY$, 1));
    this.$_bFetchFired$ = !1;
    return $DvtScrollbar$$;
  };
  $DvtSearchResultsPanel$$.prototype.$hide$ = function $$DvtSearchResultsPanel$$$$$hide$$() {
    if (this.$IsSkinAlta$()) {
      return this.$setAlpha$(0), this.$setScaleY$(.001), this.$MakeHidden$(), null;
    }
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$Animator$(this.$getCtx$(), $DvtSearchResultsPanel$$.$_ANIM_DURATION$);
    $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getAlpha$, this.$setAlpha$, 0);
    $DvtScrollbarBackground$$.$addProp$($dvt$$1$$.$Animator$.$TYPE_NUMBER$, this, this.$getScaleY$, this.$setScaleY$, .001);
    $dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$MakeHidden$, this);
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$MakeHidden$ = function $$DvtSearchResultsPanel$$$$$MakeHidden$$() {
    this.$setVisible$(!1);
  };
  $DvtSearchResultsPanel$$.prototype.$setItems$ = function $$DvtSearchResultsPanel$$$$$setItems$$($dvt$$1$$) {
    this.$_actualItemCount$ = 0;
    $dvt$$1$$ && (this.$_actualItemCount$ = $dvt$$1$$.length);
    this.$SetItemsHelper$($dvt$$1$$);
    this.$_items$ && this.$RenderSelf$();
  };
  $DvtSearchResultsPanel$$.prototype.$SetItemsHelper$ = function $$DvtSearchResultsPanel$$$$$SetItemsHelper$$($DvtScrollbarBackground$$) {
    (this.$_items$ = $DvtScrollbarBackground$$) && 0 > this.$_total$ && ($DvtScrollbarBackground$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_items$[0]), $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarBackground$$.$w$, $DvtScrollbarBackground$$.$h$), $DvtScrollbarBackground$$.$setInvisibleFill$(), this.$_items$.push($DvtScrollbarBackground$$));
  };
  $DvtSearchResultsPanel$$.prototype.$getItems$ = function $$DvtSearchResultsPanel$$$$$getItems$$() {
    return 0 > this.$_total$ && this.$_items$ ? this.$_items$.slice(0, this.$_items$.length - 2) : this.$_items$;
  };
  $DvtSearchResultsPanel$$.prototype.getWidth = function $$DvtSearchResultsPanel$$$$getWidth$() {
    return this.$_origWidth$;
  };
  $DvtSearchResultsPanel$$.prototype.getHeight = function $$DvtSearchResultsPanel$$$$getHeight$() {
    return this.$_origHeight$;
  };
  $DvtSearchResultsPanel$$.prototype.$setSkinName$ = function $$DvtSearchResultsPanel$$$$$setSkinName$$($dvt$$1$$) {
    this.$_skinName$ = $dvt$$1$$;
    this.$IsSkinAlta$() && (this.$_textColor$ = "#737373", this.$_textFont$ = '"Helvetica Neue", Helvetica, Arial, sans-serif', this.$_textWeight$ = "bold", this.$_textSize$ = 12, this.$_titleBarHeight$ = 32, this.$_closeButtonHeight$ = this.$_closeButtonWidth$ = 13);
  };
  $DvtSearchResultsPanel$$.prototype.$IsSkinSkyros$ = function $$DvtSearchResultsPanel$$$$$IsSkinSkyros$$() {
    return this.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_SKYROS$;
  };
  $DvtSearchResultsPanel$$.prototype.$IsSkinAlta$ = function $$DvtSearchResultsPanel$$$$$IsSkinAlta$$() {
    return this.$_skinName$ == $dvt$$1$$.$CSSStyle$.$SKIN_ALTA$;
  };
  $DvtSearchResultsPanel$$.prototype.$GetTitleText$ = function $$DvtSearchResultsPanel$$$$$GetTitleText$$() {
    var $DvtScrollbarBackground$$ = "";
    this.$_titleResource$ && ($DvtScrollbarBackground$$ = "0", 0 > this.$_total$ ? $DvtScrollbarBackground$$ = String(this.$_actualItemCount$) + "+" : this.$_items$ && ($DvtScrollbarBackground$$ = String(this.$_actualItemCount$)), $DvtScrollbarBackground$$ = $dvt$$1$$.$Bundle$.format(this.$_titleResource$, [$DvtScrollbarBackground$$]));
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$RenderSelf$ = function $$DvtSearchResultsPanel$$$$$RenderSelf$$() {
    var $DvtScrollbarBackground$$ = this.$CreateTitleBar$(this.$_minWidth$);
    this.$addChild$($DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getDimensions$(), $DvtScrollbarEvent$$ = null;
    if (this.$_items$ && 0 < this.$_items$.length) {
      var $DvtAdfDiagramDragSource$$ = $DvtScrollbar$$.$w$;
      this.$IsSkinAlta$() && ($DvtAdfDiagramDragSource$$ -= $dvt$$1$$.$ItemList$.$_ALTA_PADDING$, $DvtScrollbarEvent$$ = this.$CalcMaxItemListHeight$(), ($dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_items$[0]).$h$ + 2 * $dvt$$1$$.$ItemList$.$_ALTA_PADDING$) * this.$_items$.length > $DvtScrollbarEvent$$ && ($DvtAdfDiagramDragSource$$ -= $DvtScrollableContainer$$.$DEFAULT_ALTA_SCROLLBAR_WIDTH$));
      $DvtScrollbarEvent$$ = this.$CreateItemList$($DvtAdfDiagramDragSource$$);
    } else {
      $DvtScrollbarEvent$$ = this.$CreateEmptyItemList$($DvtScrollbar$$.$w$);
    }
    $DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$.$getDimensions$();
    $DvtAdfDiagramDragSource$$ = Math.max($DvtAdfDiagramDragSource$$.$w$, this.$_minWidth$);
    if ($DvtScrollbar$$.$w$ != $DvtAdfDiagramDragSource$$) {
      var $titleBarIndex$$ = this.$getChildIndex$($DvtScrollbarBackground$$);
      this.removeChild($DvtScrollbarBackground$$);
      $DvtScrollbarBackground$$.$destroy$ && $DvtScrollbarBackground$$.$destroy$();
      $DvtScrollbarBackground$$ = this.$CreateTitleBar$($DvtAdfDiagramDragSource$$);
      this.$addChildAt$($DvtScrollbarBackground$$, $titleBarIndex$$);
    }
    $DvtScrollbarBackground$$ = this.$MakeSeparator$($DvtAdfDiagramDragSource$$, 1);
    $DvtScrollbarBackground$$.$setTranslateY$($DvtScrollbar$$.$h$);
    this.$addChild$($DvtScrollbarBackground$$);
    $DvtScrollbar$$ = $DvtScrollbarBackground$$.$getDimensions$();
    $DvtScrollbarEvent$$.$setTranslateY$($DvtScrollbarBackground$$.$getTranslateY$() + $DvtScrollbar$$.$h$);
    $DvtScrollbar$$ = this.$getDimensions$();
    $DvtScrollbarBackground$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbar$$.$w$, $DvtScrollbar$$.$h$);
    $DvtScrollbarBackground$$.$setSolidFill$("#ffffff");
    this.$SetPanelLineStyle$($DvtScrollbarBackground$$);
    this.$addChildAt$($DvtScrollbarBackground$$, 0);
    this.$_origWidth$ = $DvtAdfDiagramDragSource$$;
    0 < this.$_maxWidth$ && this.$_maxWidth$ < $DvtAdfDiagramDragSource$$ && (this.$_origWidth$ = this.$_maxWidth$);
    this.$_origHeight$ = $DvtScrollbar$$.$h$;
    0 < this.$_maxHeight$ && this.$_maxHeight$ < $DvtScrollbar$$.$h$ && (this.$_origHeight$ = this.$_maxHeight$);
    this.$setAlpha$(0);
    this.$setVisible$(!1);
    this.$_popupMenu$ && ($DvtScrollbar$$ = this.$_popupMenu$.$_focusIndex$, -1 < $DvtScrollbar$$ && (this.$_popupMenu$.$setFocusIndex$($DvtScrollbar$$, !0), this.$ScrollFocusItemIntoView$()));
    this.$_selectedIndex$ = this.$_lastVisIndex$ = this.$_firstVisIndex$ = -1;
  };
  $DvtSearchResultsPanel$$.prototype.$CreateTitleBar$ = function $$DvtSearchResultsPanel$$$$$CreateTitleBar$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, 1, 1), $DvtScrollbarEvent$$ = 3, $DvtAdfDiagramDragSource$$ = 5;
    this.$IsSkinAlta$() && ($DvtAdfDiagramDragSource$$ = $DvtScrollbarEvent$$ = $dvt$$1$$.$SearchPanel$.$_ALTA_CONTENT_PADDING$, $DvtScrollbar$$.$setFill$(null));
    this.$_closeButton$ = this.$CreateCloseButton$();
    this.$_titleTextField$ = this.$CreateTitleTextField$(this.$GetTitleText$());
    var $titleTFDims$$ = this.$_titleTextField$.$measureDimensions$();
    if (0 > $DvtScrollbarBackground$$ || $titleTFDims$$.$w$ > $DvtScrollbarBackground$$) {
      $DvtScrollbarBackground$$ = $DvtScrollbarEvent$$ + $titleTFDims$$.$w$ + $DvtScrollbarEvent$$ + this.$_closeButtonWidth$ + $DvtAdfDiagramDragSource$$;
    }
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? this.$_titleTextField$.$setTranslateX$($DvtScrollbarBackground$$ - $DvtScrollbarEvent$$ - $titleTFDims$$.$w$) : this.$_titleTextField$.$setTranslateX$($DvtScrollbarEvent$$);
    this.$_titleTextField$.$setTranslateY$((this.$_titleBarHeight$ - $titleTFDims$$.$h$) / 2);
    $DvtScrollbar$$.$addChild$(this.$_titleTextField$);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) ? this.$_closeButton$.$setTranslateX$($DvtAdfDiagramDragSource$$) : this.$_closeButton$.$setTranslateX$($DvtScrollbarBackground$$ - $DvtAdfDiagramDragSource$$ - this.$_closeButtonWidth$);
    this.$_closeButton$.$setTranslateY$((this.$_titleBarHeight$ - this.$_closeButtonHeight$) / 2);
    $DvtScrollbar$$.$addChild$(this.$_closeButton$);
    this.$RenderTitleBarBackground$($DvtScrollbar$$, $DvtScrollbarBackground$$, this.$_titleBarHeight$);
    this.$_titleBarWidth$ = $DvtScrollbarBackground$$;
    return $DvtScrollbar$$;
  };
  $DvtSearchResultsPanel$$.prototype.$HandleCloseClick$ = function $$DvtSearchResultsPanel$$$$$HandleCloseClick$$() {
    var $DvtScrollbarBackground$$ = this.$hide$();
    $DvtScrollbarBackground$$ ? ($dvt$$1$$.$Playable$.$appendOnEnd$($DvtScrollbarBackground$$, this.$FireSearchResultsClearEvent$, this), $DvtScrollbarBackground$$.play()) : this.$FireSearchResultsClearEvent$();
  };
  $DvtSearchResultsPanel$$.prototype.$CreateCloseButton$ = function $$DvtSearchResultsPanel$$$$$CreateCloseButton$$() {
    var $DvtScrollbarBackground$$ = $dvt$$1$$.$ButtonLAFUtils$.$createClearResultsButton$(this.$getCtx$(), this.$_imageURIs$), $DvtScrollbar$$ = this;
    this.$_eventManager$.$associate$($DvtScrollbarBackground$$, {$HandleClick$:function() {
      $DvtScrollbar$$.$HandleCloseClick$();
    }, $getTooltip$:function() {
      return $DvtScrollbar$$.$_closeTooltip$;
    }});
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$CreateTitleTextField$ = function $$DvtSearchResultsPanel$$$$$CreateTitleTextField$$($DvtScrollbarBackground$$) {
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$OutputText$(this.$getCtx$(), $DvtScrollbarBackground$$);
    $DvtScrollbarBackground$$.$setSolidFill$(this.$_textColor$);
    $DvtScrollbarBackground$$.$setFontSize$(this.$_textSize$);
    var $DvtScrollbar$$ = new $dvt$$1$$.$CSSStyle$($dvt$$1$$.$CSSStyle$.$FONT_FAMILY$ + ":" + this.$_textFont$ + ";" + $dvt$$1$$.$CSSStyle$.$FONT_WEIGHT$ + ":" + this.$_textWeight$ + ";");
    $DvtScrollbarBackground$$.$setCSSStyle$($DvtScrollbar$$);
    $DvtScrollbarBackground$$.$setMouseEnabled$(!1);
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$CreateEmptyItemList$ = function $$DvtSearchResultsPanel$$$$$CreateEmptyItemList$$($DvtScrollbarBackground$$) {
    this.$_scrollableContainer$ = new $DvtScrollableContainer$$(this.$getCtx$(), $DvtScrollbarBackground$$, 0, this.$CalcMaxItemListWidth$(), this.$CalcMaxItemListHeight$(), 0, this.$_skinName$);
    this.$_scrollableContainer$.$setStyleMap$(this.$_styleMap$);
    this.$addChild$(this.$_scrollableContainer$);
    var $DvtScrollbar$$ = this.$CreateTitleTextField$(this.$_emptyText$);
    $DvtScrollbar$$.$setTranslate$(4, 4);
    var $DvtScrollbarEvent$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtScrollbar$$), $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.Rect(this.$getCtx$(), 0, 0, $DvtScrollbarEvent$$.$w$ + 8, $DvtScrollbarEvent$$.$h$ + 8);
    $DvtAdfDiagramDragSource$$.$setFill$(null);
    $DvtAdfDiagramDragSource$$.$addChild$($DvtScrollbar$$);
    this.$_scrollableContainer$.$addChild$($DvtAdfDiagramDragSource$$);
    $dvt$$1$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && $DvtScrollbar$$.$setTranslateX$(Math.max($DvtScrollbarBackground$$ - 4 - $DvtScrollbarEvent$$.$w$), 0);
    return this.$_scrollableContainer$;
  };
  $DvtSearchResultsPanel$$.prototype.$CreateItemList$ = function $$DvtSearchResultsPanel$$$$$CreateItemList$$($DvtScrollbarBackground$$) {
    this.$_popupMenu$ = this.$CreatePopupMenu$($DvtScrollbarBackground$$);
    var $DvtScrollbar$$ = this.$CalcMaxItemListWidth$(), $DvtScrollbarEvent$$ = this.$CalcMaxItemListHeight$(), $DvtAdfDiagramDragSource$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_popupMenu$), $accumHeight_itemListHeight$$ = $DvtAdfDiagramDragSource$$.$h$;
    if (-1 < this.$_firstVisIndex$ && -1 < this.$_lastVisIndex$ && this.$_lastVisIndex$ >= this.$_firstVisIndex$) {
      for (var $accumHeight_itemListHeight$$ = 0, $DvtScrollbarArrow$$ = this.$_firstVisIndex$;$DvtScrollbarArrow$$ <= this.$_lastVisIndex$;$DvtScrollbarArrow$$++) {
        var $DvtAdfDiagramEditorManager$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), this.$_popupMenu$.getItem($DvtScrollbarArrow$$)), $accumHeight_itemListHeight$$ = $accumHeight_itemListHeight$$ + $DvtAdfDiagramEditorManager$$.$h$
      }
    }
    0 > this.$_total$ && ($DvtScrollbarArrow$$ = null, 0 < this.$_popupMenu$.$getNumItems$() && ($DvtScrollbarArrow$$ = this.$_popupMenu$.getItem(this.$_popupMenu$.$getNumItems$() - 1)), $DvtScrollbarArrow$$ && ($DvtScrollbarArrow$$ = $dvt$$1$$.$DisplayableUtils$.$getDimensionsForced$(this.$getCtx$(), $DvtScrollbarArrow$$), $accumHeight_itemListHeight$$ - $DvtScrollbarArrow$$.$h$ - 1 <= $DvtScrollbarEvent$$ && $DvtAdfDiagramDragSource$$.$h$ == $accumHeight_itemListHeight$$ && ($DvtScrollbarEvent$$ = 
    $accumHeight_itemListHeight$$ - $DvtScrollbarArrow$$.$h$ - 1)));
    this.$_scrollableContainer$ = new $DvtScrollableContainer$$(this.$getCtx$(), $DvtScrollbarBackground$$, 0, $DvtScrollbar$$, $DvtScrollbarEvent$$, 0, this.$_skinName$);
    this.$_scrollableContainer$.$setStyleMap$(this.$_styleMap$);
    this.$addChild$(this.$_scrollableContainer$);
    this.$_scrollableContainer$.$addChild$(this.$_popupMenu$);
    this.$_scrollableContainer$.$hasVerticalScrollbar$() && (-1 < this.$_firstVisIndex$ && this.$_scrollableContainer$.$setVerticalThumbPosition$(this.$_popupMenu$.getItem(this.$_firstVisIndex$).$getTranslateY$()), this.$_scrollableContainer$.$addEvtListener$($dvt$$1$$.$ScrollEvent$.$SCROLL_EVENT$, this.$HandleVertScroll$, !1, this));
    this.$_contentWidth$ = this.$_scrollableContainer$.$getDimensions$().$w$;
    return this.$_scrollableContainer$;
  };
  $DvtSearchResultsPanel$$.prototype.$CreateAfContext$ = function $$DvtSearchResultsPanel$$$$$CreateAfContext$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$AfContext$(this.$getCtx$(), this.$_eventManager$);
    $DvtScrollbarBackground$$.$setSkinName$(this.$_skinName$);
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$HandleVertScroll$ = function $$DvtSearchResultsPanel$$$$$HandleVertScroll$$($DvtScrollbarBackground$$) {
    if (null != $DvtScrollbarBackground$$.$getY$() && (this.$FetchAdditionalResults$(), !this.$_bFetchFired$ && this.$_popupMenu$ && !$dvt$$1$$.$Agent$.$isTouchDevice$())) {
      var $DvtScrollbar$$ = this.$_scrollableContainer$.$getDimensions$(), $DvtScrollbarEvent$$ = this.$_popupMenu$.$getClosestItemIndex$($DvtScrollbarBackground$$.$getY$());
      $DvtScrollbarBackground$$ = this.$_popupMenu$.$getClosestItemIndex$($DvtScrollbarBackground$$.$getY$() + $DvtScrollbar$$.$h$ - 1);
      this.$FireSearchResultsScrollEvent$($DvtScrollbarEvent$$, $DvtScrollbarBackground$$, this.$_popupMenu$.$_focusIndex$);
    }
  };
  $DvtSearchResultsPanel$$.prototype.$FetchAdditionalResults$ = function $$DvtSearchResultsPanel$$$$$FetchAdditionalResults$$() {
    if (!this.$_bFetchFired$ && 0 > this.$_total$ && this.$_popupMenu$) {
      var $DvtScrollbarBackground$$ = this.$_popupMenu$.getItem(this.$_popupMenu$.$getNumItems$() - 1);
      if ($DvtScrollbarBackground$$) {
        var $DvtScrollbar$$ = this.$_scrollableContainer$.$getVerticalContentPosition$(), $DvtScrollbarEvent$$ = this.$_scrollableContainer$.$getDimensions$();
        $DvtScrollbarBackground$$.$getTranslateY$() + $DvtScrollbar$$ <= $DvtScrollbarEvent$$.$h$ && (this.$_bFetchFired$ = !0, this.$FireFetchEvent$(this.$_popupMenu$.$getNumItems$() - 2, $dvt$$1$$.$SearchEvent$.$DIR_NEXT$));
      }
    }
  };
  $DvtSearchResultsPanel$$.prototype.$FireScrollEvent$ = function $$DvtSearchResultsPanel$$$$$FireScrollEvent$$($DvtScrollbarBackground$$) {
    if (!this.$_bFetchFired$ && this.$_popupMenu$ && !$dvt$$1$$.$Agent$.$isTouchDevice$()) {
      var $DvtScrollbar$$ = 0, $DvtScrollbarEvent$$ = this.$_popupMenu$.$getNumItems$() - 1;
      this.$_scrollableContainer$.$hasVerticalScrollbar$() && ($DvtScrollbarEvent$$ = this.$_scrollableContainer$.$getDimensions$(), $DvtScrollbar$$ = this.$_popupMenu$.$getClosestItemIndex$(this.$_scrollableContainer$.$_vsb$.$_thumbStartPos$), $DvtScrollbarEvent$$ = this.$_popupMenu$.$getClosestItemIndex$(this.$_scrollableContainer$.$_vsb$.$_thumbStartPos$ + $DvtScrollbarEvent$$.$h$ - 1));
      this.$FireSearchResultsScrollEvent$($DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtScrollbarBackground$$);
    }
  };
  $DvtSearchResultsPanel$$.prototype.$getFocusItemIndex$ = function $$DvtSearchResultsPanel$$$$$getFocusItemIndex$$() {
    return this.$_popupMenu$ ? this.$_popupMenu$.$_focusIndex$ : -1;
  };
  $DvtSearchResultsPanel$$.prototype.$setFocusItemIndex$ = function $$DvtSearchResultsPanel$$$$$setFocusItemIndex$$($dvt$$1$$) {
    this.$_popupMenu$ && (this.$_popupMenu$.$setFocusIndex$($dvt$$1$$), this.$ScrollFocusItemIntoView$());
  };
  $DvtSearchResultsPanel$$.prototype.$FireEvent$ = function $$DvtSearchResultsPanel$$$$$FireEvent$$($dvt$$1$$, $DvtScrollbarBackground$$) {
    this.$_callback$ && this.$_callback$.call(this.$_callbackObj$, $dvt$$1$$, $DvtScrollbarBackground$$);
  };
  $DvtSearchResultsPanel$$.prototype.$FireFetchEvent$ = function $$DvtSearchResultsPanel$$$$$FireFetchEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_FETCH_EVENT$);
    $DvtScrollbarEvent$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_INDEX$, $DvtScrollbarBackground$$);
    $DvtScrollbarEvent$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_DIRECTION$, $DvtScrollbar$$);
    this.$FireEvent$($DvtScrollbarEvent$$);
  };
  $DvtSearchResultsPanel$$.prototype.$FireSearchResultsScrollEvent$ = function $$DvtSearchResultsPanel$$$$$FireSearchResultsScrollEvent$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SCROLL_EVENT$);
    $DvtAdfDiagramDragSource$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_FIRST_VIS_INDEX$, $DvtScrollbarBackground$$);
    $DvtAdfDiagramDragSource$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_LAST_VIS_INDEX$, $DvtScrollbar$$);
    $DvtAdfDiagramDragSource$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_SELECTED_INDEX$, $DvtScrollbarEvent$$);
    this.$FireEvent$($DvtAdfDiagramDragSource$$);
  };
  $DvtSearchResultsPanel$$.prototype.$FireSearchResultSelectedEvent$ = function $$DvtSearchResultsPanel$$$$$FireSearchResultSelectedEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$ = new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_SELECTED_EVENT$);
    $DvtScrollbar$$.$addParam$($dvt$$1$$.$SearchEvent$.$PARAM_INDEX$, $DvtScrollbarBackground$$);
    this.$FireEvent$($DvtScrollbar$$);
  };
  $DvtSearchResultsPanel$$.prototype.$FireSearchResultsClearEvent$ = function $$DvtSearchResultsPanel$$$$$FireSearchResultsClearEvent$$() {
    var $DvtScrollbarBackground$$ = new $dvt$$1$$.$SearchEvent$($dvt$$1$$.$SearchEvent$.$SEARCH_RESULTS_CLEAR_EVENT$);
    this.$FireEvent$($DvtScrollbarBackground$$);
  };
  $DvtSearchResultsPanel$$.prototype.$CreatePopupMenu$ = function $$DvtSearchResultsPanel$$$$$CreatePopupMenu$$($DvtScrollbarBackground$$) {
    this.$_popupMenuMinWidth$ = $DvtScrollbarBackground$$;
    $DvtScrollbarBackground$$ = new $dvt$$1$$.$ItemList$(this.$getCtx$(), this.$_items$, $DvtScrollbarBackground$$, !1, this.$PopupBackgroundStyle$, this, this.$HandlePopupMenu$, this);
    this.$IsSkinAlta$() && ($DvtScrollbarBackground$$.$setHoverColor$(), $DvtScrollbarBackground$$.$setFocusColor$(), $DvtScrollbarBackground$$.$setAltaSkin$());
    $DvtScrollbarBackground$$.$renderComponent$();
    -1 < this.$_selectedIndex$ && (this.$addChild$($DvtScrollbarBackground$$), $DvtScrollbarBackground$$.$setFocusIndex$(this.$_selectedIndex$), this.removeChild($DvtScrollbarBackground$$));
    $DvtScrollbarBackground$$.$setInteractionModel$($dvt$$1$$.$ItemList$.$INT_MODEL_DOUBLE_CLICK$);
    return $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$PopupBackgroundStyle$ = function $$DvtSearchResultsPanel$$$$$PopupBackgroundStyle$$($dvt$$1$$) {
    $dvt$$1$$.$setInvisibleFill$();
  };
  $DvtSearchResultsPanel$$.prototype.$HandlePopupMenu$ = function $$DvtSearchResultsPanel$$$$$HandlePopupMenu$$($dvt$$1$$) {
    $dvt$$1$$.type == $DvtItemListEvent$$.$TYPE_SELECTION$ ? this.$FireSearchResultSelectedEvent$($dvt$$1$$.$getIndex$()) : $dvt$$1$$.type == $DvtItemListEvent$$.$TYPE_FOCUS$ && this.$FireScrollEvent$($dvt$$1$$.$getIndex$());
  };
  $DvtSearchResultsPanel$$.prototype.$CalcMaxItemListWidth$ = function $$DvtSearchResultsPanel$$$$$CalcMaxItemListWidth$$() {
    return 0 < this.$_maxWidth$ ? this.$_maxWidth$ : Number.MAX_VALUE;
  };
  $DvtSearchResultsPanel$$.prototype.$CalcMaxItemListHeight$ = function $$DvtSearchResultsPanel$$$$$CalcMaxItemListHeight$$() {
    return 0 < this.$_maxHeight$ ? this.$_maxHeight$ - this.$_titleBarHeight$ : Number.MAX_VALUE;
  };
  $DvtSearchResultsPanel$$.prototype.$handleKeyboardEvent$ = function $$DvtSearchResultsPanel$$$$$handleKeyboardEvent$$($DvtScrollbarBackground$$) {
    var $DvtScrollbar$$, $DvtScrollbarEvent$$, $DvtAdfDiagramDragSource$$ = !0;
    if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$TAB$) {
      if (this.$_popupMenu$) {
        $DvtScrollbar$$ = this.$_popupMenu$.$_focusIndex$;
        if (!$DvtScrollbar$$ || 0 > $DvtScrollbar$$) {
          $DvtScrollbar$$ = 0;
        }
        $DvtScrollbar$$ = this.$_popupMenu$.$getItemAt$($DvtScrollbar$$);
        this.$_eventManager$.$UpdateActiveElement$($DvtScrollbar$$, $DvtScrollbar$$);
        $DvtScrollbarBackground$$.target = $DvtScrollbar$$;
        this.$_popupMenu$.$HandleClick$($DvtScrollbarBackground$$);
      } else {
        $DvtAdfDiagramDragSource$$ = !1;
      }
    } else {
      if ($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$ENTER$) {
        null != this.$_popupMenu$ && ($DvtScrollbar$$ = this.$_popupMenu$.$_focusIndex$, $DvtScrollbarEvent$$ = this.$_popupMenu$.$getNumItems$(), 0 < $DvtScrollbarEvent$$ && 0 <= $DvtScrollbar$$ && $DvtScrollbar$$ < $DvtScrollbarEvent$$ && ($DvtScrollbarBackground$$.target = this.$_popupMenu$.$getItemAt$($DvtScrollbar$$), this.$_popupMenu$.$HandleDblClick$($DvtScrollbarBackground$$)));
      } else {
        if (($DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$ || $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$UP_ARROW$) && null != this.$_popupMenu$) {
          $DvtScrollbarBackground$$ = $DvtScrollbarBackground$$.keyCode == $dvt$$1$$.KeyboardEvent.$DOWN_ARROW$;
          var $nextFocusIndex$$ = -1;
          $DvtScrollbar$$ = this.$_popupMenu$.$_focusIndex$;
          $DvtScrollbarEvent$$ = this.$_popupMenu$.$getNumItems$();
          0 < $DvtScrollbarEvent$$ && ($DvtScrollbarBackground$$ ? 0 > $DvtScrollbar$$ ? $nextFocusIndex$$ = 0 : $DvtScrollbar$$ < $DvtScrollbarEvent$$ - 1 && ($nextFocusIndex$$ = $DvtScrollbar$$ + 1) : 0 > $DvtScrollbar$$ ? $nextFocusIndex$$ = 0 > this.$_total$ ? $DvtScrollbarEvent$$ - 2 : $DvtScrollbarEvent$$ - 1 : 0 < $DvtScrollbar$$ && ($nextFocusIndex$$ = $DvtScrollbar$$ - 1));
          0 <= $nextFocusIndex$$ && (this.$_popupMenu$.$setFocusIndex$($nextFocusIndex$$), this.$ScrollFocusItemIntoView$(), $DvtScrollbar$$ = this.$_popupMenu$.$getItemAt$($nextFocusIndex$$), this.$_eventManager$.$UpdateActiveElement$($DvtScrollbar$$, $DvtScrollbar$$));
        }
      }
    }
    return $DvtAdfDiagramDragSource$$;
  };
  $DvtSearchResultsPanel$$.prototype.$ScrollFocusItemIntoView$ = function $$DvtSearchResultsPanel$$$$$ScrollFocusItemIntoView$$() {
    var $DvtScrollbarBackground$$ = this.$_popupMenu$.$_focusIndex$, $DvtScrollbar$$ = this.$_popupMenu$.$getItemAt$($DvtScrollbarBackground$$), $DvtScrollbarEvent$$ = this.$_scrollableContainer$.$hasVerticalScrollbar$();
    if (!(null == $DvtScrollbar$$ || 0 > $DvtScrollbarBackground$$) && $DvtScrollbarEvent$$) {
      var $DvtScrollbarEvent$$ = $DvtScrollbar$$.$getTranslateY$(), $DvtScrollbar$$ = $DvtScrollbar$$.getHeight(), $DvtAdfDiagramDragSource$$ = this.$_scrollableContainer$.$getDimensions$(), $contentOffset$$ = Math.abs(this.$_scrollableContainer$.$getVerticalContentPosition$()), $DvtScrollbarEvent$$ = $DvtScrollbarEvent$$ - $contentOffset$$;
      0 > $DvtScrollbarEvent$$ ? (this.$IsSkinAlta$() && ($DvtScrollbarEvent$$ -= $dvt$$1$$.$ItemList$.$_ALTA_PADDING$), this.$_scrollableContainer$.$setVerticalContentPosition$(-($contentOffset$$ + $DvtScrollbarEvent$$))) : $DvtScrollbarEvent$$ + $DvtScrollbar$$ > $DvtAdfDiagramDragSource$$.$h$ && ($DvtScrollbarEvent$$ += $DvtScrollbar$$ - $DvtAdfDiagramDragSource$$.$h$, this.$IsSkinAlta$() && ($DvtScrollbarEvent$$ += $dvt$$1$$.$ItemList$.$_ALTA_PADDING$), this.$_scrollableContainer$.$setVerticalContentPosition$(-($contentOffset$$ + 
      $DvtScrollbarEvent$$)), this.$FetchAdditionalResults$());
      this.$FireScrollEvent$($DvtScrollbarBackground$$);
    }
  };
  $DvtSearchResultsPanel$$.prototype.$DestroyPopupMenu$ = function $$DvtSearchResultsPanel$$$$$DestroyPopupMenu$$($dvt$$1$$) {
    $dvt$$1$$ && $dvt$$1$$.$destroy$ && $dvt$$1$$.$destroy$();
  };
  $DvtSearchResultsPanel$$.prototype.$DestroyScrollablePGL$ = function $$DvtSearchResultsPanel$$$$$DestroyScrollablePGL$$() {
    this.$_scrollableContainer$ && (this.$_scrollableContainer$.$hasVerticalScrollbar$() && this.$_scrollableContainer$.$removeEvtListener$($dvt$$1$$.$ScrollEvent$.$SCROLL_EVENT$, this.$HandleVertScroll$, !1, this), this.$_scrollableContainer$.$destroy$ && this.$_scrollableContainer$.$destroy$(), this.$_scrollableContainer$ = null);
  };
  $DvtSearchResultsPanel$$.prototype.$destroy$ = function $$DvtSearchResultsPanel$$$$$destroy$$() {
    this.$DestroyScrollablePGL$();
    this.$_contentPGL$ && this.$_contentPGL$.$destroy$ && this.$_contentPGL$.$destroy$();
    this.$_contentPGL$ = null;
    this.$DestroyPopupMenu$(this.$_popupMenu$);
    this.$_popupMenu$ = null;
  };
  $DvtSearchResultsPanel$$.$LoadIcon$ = function $$DvtSearchResultsPanel$$$$LoadIcon$$() {
    return null;
  };
  $DvtSearchResultsPanel$$.prototype.$RenderTitleBarBackground$ = function $$DvtSearchResultsPanel$$$$$RenderTitleBarBackground$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$SetPanelLineAndFill$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$);
    $dvt$$1$$.$setX$(0);
    $dvt$$1$$.$setY$(0);
    $dvt$$1$$.$setWidth$($DvtScrollbarBackground$$);
    $dvt$$1$$.$setHeight$($DvtScrollbar$$);
  };
  $DvtSearchResultsPanel$$.prototype.$SetPanelLineStyle$ = function $$DvtSearchResultsPanel$$$$$SetPanelLineStyle$$($dvt$$1$$) {
    this.$IsSkinAlta$() || $dvt$$1$$.$setSolidStroke$(this.$_borderColor$, .2);
  };
  $DvtSearchResultsPanel$$.prototype.$SetPanelFillStyle$ = function $$DvtSearchResultsPanel$$$$$SetPanelFillStyle$$($DvtScrollbarBackground$$, $DvtScrollbar$$, $DvtScrollbarEvent$$) {
    if (this.$IsSkinSkyros$() && this.$_bgColor$) {
      $DvtScrollbar$$ = new $dvt$$1$$.$SolidFill$(this.$_bgColor$);
    } else {
      var $DvtAdfDiagramDragSource$$ = ["#C1D0D7", "#FFFFFF"], $fillAlphas$$ = [1, 1], $DvtScrollbarArrow$$ = [0, 230 / 255], $DvtAdfDiagramEditorManager$$ = -90;
      this.$IsSkinAlta$() && ($DvtAdfDiagramDragSource$$ = ["#e6e9ec", "#edeff1"], $fillAlphas$$ = [1, 1], $DvtScrollbarArrow$$ = [0, 1], $DvtAdfDiagramEditorManager$$ = 90);
      $DvtScrollbar$$ = new $dvt$$1$$.$LinearGradientFill$($DvtAdfDiagramEditorManager$$, $DvtAdfDiagramDragSource$$, $fillAlphas$$, $DvtScrollbarArrow$$, [0, 0, $DvtScrollbar$$, $DvtScrollbarEvent$$]);
      $DvtScrollbarBackground$$.$setFill$($DvtScrollbar$$);
    }
    $DvtScrollbarBackground$$.$setFill$($DvtScrollbar$$);
  };
  $DvtSearchResultsPanel$$.prototype.$SetPanelLineAndFill$ = function $$DvtSearchResultsPanel$$$$$SetPanelLineAndFill$$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$) {
    this.$IsSkinAlta$() || (this.$SetPanelLineStyle$($dvt$$1$$), this.$SetPanelFillStyle$($dvt$$1$$, $DvtScrollbarBackground$$, $DvtScrollbar$$));
  };
  $DvtSearchResultsPanel$$.prototype.$MakeSeparator$ = function $$DvtSearchResultsPanel$$$$$MakeSeparator$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = new $dvt$$1$$.$Container$(this.$getCtx$());
    if (this.$IsSkinAlta$()) {
      var $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Path$(this.$getCtx$(), ["M", 0, 0, "L", $DvtScrollbarBackground$$, 0]);
      $DvtAdfDiagramDragSource$$.$setSolidStroke$("#D9DFE3", 1, $DvtScrollbar$$);
      $DvtScrollbarEvent$$.$addChild$($DvtAdfDiagramDragSource$$);
    } else {
      $DvtAdfDiagramDragSource$$ = new $dvt$$1$$.$Path$(this.$getCtx$(), ["M", 0, 0, "L", $DvtScrollbarBackground$$, 0]);
      $DvtAdfDiagramDragSource$$.$setSolidStroke$("#96A8BA", 1, $DvtScrollbar$$);
      var $line2$$ = new $dvt$$1$$.$Path$(this.$getCtx$(), ["M", 0, $DvtScrollbar$$, "L", $DvtScrollbarBackground$$, $DvtScrollbar$$]);
      $line2$$.$setSolidStroke$("#FFFFFF");
      $DvtScrollbarEvent$$.$addChild$($DvtAdfDiagramDragSource$$);
      $DvtScrollbarEvent$$.$addChild$($line2$$);
    }
    return $DvtScrollbarEvent$$;
  };
  $DvtSearchResultsPanel$$.prototype.$getDimensions$ = function $$DvtSearchResultsPanel$$$$$getDimensions$$($dvt$$1$$) {
    var $DvtScrollbarBackground$$ = this.$_scrollableContainer$.$getDimensions$();
    $DvtScrollbarBackground$$ && ($DvtScrollbarBackground$$.$h$ += $DvtScrollbarBackground$$.y + this.$_scrollableContainer$.$getTranslateY$(), this.$_titleBarWidth$ && ($DvtScrollbarBackground$$.$w$ = Math.max($DvtScrollbarBackground$$.$w$, this.$_titleBarWidth$)));
    return $dvt$$1$$ && $DvtScrollbarBackground$$ ? this.$ConvertCoordSpaceRect$($DvtScrollbarBackground$$, $dvt$$1$$) : $DvtScrollbarBackground$$;
  };
  $DvtSearchResultsPanel$$.prototype.$getEventManager$ = function $$DvtSearchResultsPanel$$$$$getEventManager$$() {
    return this.$_eventManager$;
  };
  $DvtSearchResultsPanel$$.prototype.$getAfComponent$ = function $$DvtSearchResultsPanel$$$$$getAfComponent$$($DvtScrollbarBackground$$, $DvtScrollbar$$) {
    var $DvtScrollbarEvent$$ = this.$getItems$();
    return $DvtScrollbarEvent$$ && $DvtScrollbarBackground$$ < $DvtScrollbarEvent$$.length ? ($DvtScrollbarEvent$$ = $dvt$$1$$.$AfComponentFactory$.$getAfComponent$($DvtScrollbarEvent$$[$DvtScrollbarBackground$$]), $dvt$$1$$.$AfComponentFactory$.$findAfComponent$($DvtScrollbarEvent$$, $DvtScrollbar$$)) : null;
  };
})(dvt);
