(function($dvt$$6$$) {
  function $DvtDiagramAutomation$$($dvt$$6$$) {
    this.Init($dvt$$6$$);
  }
  function $DvtDiagramNode$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$);
  }
  function $DvtDiagramLink$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$);
  }
  function $DvtDiagramKeyboardHandler$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$);
  }
  function $DvtDiagramEventManager$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$);
    this.$_diagram$ = $DvtDiagramDataAnimationHandler$$;
  }
  function $DvtDiagramDataAnimationHandler$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$);
  }
  function $DvtDiagramDefaults$$() {
    this.Init({skyros:$DvtDiagramDefaults$$.$VERSION_1$, alta:$DvtDiagramDefaults$$.$SKIN_ALTA$});
  }
  function $DvtDiagramCategoryRolloverHandler$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    $DvtDiagramCategoryRolloverHandler$$.$superclass$.constructor.call(this, $dvt$$6$$, $DvtDiagramDefaults$$);
    this.$setHoverDelay$($DvtDiagramCategoryRolloverHandler$$.$_HOVER_DELAY$);
    this.$_diagram$ = $DvtDiagramDefaults$$;
  }
  $dvt$$6$$.$Diagram$ = function $$dvt$$6$$$$Diagram$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$) {
    this.Init($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$);
  };
  $dvt$$6$$.$Obj$.$createSubclass$($dvt$$6$$.$Diagram$, $dvt$$6$$.$BaseDiagram$);
  $dvt$$6$$.$Diagram$.prototype.Init = function $$dvt$$6$$$$Diagram$$$Init$($context$$162$$, $callback$$105$$, $DvtDiagramDataAnimationHandler$$) {
    $dvt$$6$$.$Diagram$.$superclass$.Init.call(this, $context$$162$$, $callback$$105$$, $DvtDiagramDataAnimationHandler$$);
    this.$Defaults$ = new $DvtDiagramDefaults$$;
    this.$EventManager$ = new $DvtDiagramEventManager$$($context$$162$$, this.$processEvent$, this);
    this.$EventManager$.$addListeners$(this);
    $dvt$$6$$.$Agent$.$isTouchDevice$() || this.$EventManager$.$setKeyboardHandler$(new $DvtDiagramKeyboardHandler$$(this, this.$EventManager$));
    this.$_nodes$ = {};
    this.$_arNodeIds$ = [];
    this.$_arRootIds$ = [];
    this.$_links$ = {};
    this.$_arLinkIds$ = [];
    this.$_deferredObjCount$ = this.$_renderCount$ = 0;
    this.$_allNodeIdsMap$ = {};
    this.$_unresolvedNodeIds$ = [];
    this.$_nodesToResolve$ = [];
  };
  $dvt$$6$$.$Diagram$.newInstance = function $$dvt$$6$$$$Diagram$$newInstance$($DvtDiagramDefaults$$, $callback$$106$$, $DvtDiagramDataAnimationHandler$$) {
    return new $dvt$$6$$.$Diagram$($DvtDiagramDefaults$$, $callback$$106$$, $DvtDiagramDataAnimationHandler$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$PreRender$ = function $$dvt$$6$$$$Diagram$$$$PreRender$$() {
    !this.$_isResize$ && this.$_bRendered$ && ("none" != this.$_dataChangeAnim$ && (this.$_oldDataAnimState$ = {id:this.getId(), getId:function $this$$_oldDataAnimState$$getId$() {
      return this.id;
    }, options:this.$getOptions$(), getOptions:function $this$$_oldDataAnimState$$getOptions$() {
      return this.options;
    }, panZoomMatrix:this.$_panZoomCanvas$.$_contentPane$.$getMatrix$(), getPanZoomMatrix:function $this$$_oldDataAnimState$$getPanZoomMatrix$() {
      return this.panZoomMatrix;
    }, nodes:this.$_nodes$ ? this.$GetAllNodesMap$() : {}, roots:this.$_arRootIds$ ? this.$GetRootNodeObjects$() : [], links:this.$_links$ ? this.$GetAllLinkObjects$() : [], linkIds:this.$GetAllLinks$(), getNodes:function $this$$_oldDataAnimState$$getNodes$() {
      return this.nodes;
    }, getRoots:function $this$$_oldDataAnimState$$getRoots$() {
      return this.roots;
    }, getLinks:function $this$$_oldDataAnimState$$getLinks$() {
      return this.links;
    }, getLinkIds:function $this$$_oldDataAnimState$$getLinkIds$() {
      return this.linkIds;
    }}, this.$_oldDataAnimState$.$getOptions$ = this.$_oldDataAnimState$.getOptions, this.$_oldDataAnimState$.$getPanZoomMatrix$ = this.$_oldDataAnimState$.getPanZoomMatrix, this.$_oldDataAnimState$.getId = this.$_oldDataAnimState$.getId, this.$_oldDataAnimState$.$getNodes$ = this.$_oldDataAnimState$.getNodes, this.$_oldDataAnimState$.$getRoots$ = this.$_oldDataAnimState$.getRoots, this.$_oldDataAnimState$.$getLinks$ = this.$_oldDataAnimState$.getLinks, this.$_oldDataAnimState$.$getLinkIds$ = this.$_oldDataAnimState$.getLinkIds), 
    this.$_currentViewport$ = this.$_panZoomCanvas$.$getViewport$(), this.$_bRendered$ = !1, this.$_oldPanZoomCanvas$ = this.$_panZoomCanvas$, this.$_setDataSourceListeners$(this.$getOptions$().data, !1));
    this.$_isResize$ || this.$ResetNodesAndLinks$();
  };
  $dvt$$6$$.$Diagram$.prototype.$ResetNodesAndLinks$ = function $$dvt$$6$$$$Diagram$$$$ResetNodesAndLinks$$() {
    this.$setLinksPane$(new $dvt$$6$$.$Container$(this.$getCtx$()));
    this.$setNodesPane$(new $dvt$$6$$.$Container$(this.$getCtx$()));
    this.$setTopPane$(new $dvt$$6$$.$Container$(this.$getCtx$()));
    this.$_nodes$ = {};
    this.$_arNodeIds$ = [];
    this.$_arRootIds$ = [];
    this.$_links$ = {};
    this.$_arLinkIds$ = [];
    this.$_collapsedNodes$ = this.$_promotedLinksMap$ = this.$_highlightedObjects$ = null;
    this.$getOptions$().nodes = [];
    this.$getOptions$().links = [];
    this.$_allNodeIdsMap$ = {};
    this.$_unresolvedNodeIds$ = [];
  };
  $dvt$$6$$.$Diagram$.prototype.$_onAnimationEnd$ = function $$dvt$$6$$$$Diagram$$$$_onAnimationEnd$$() {
    this.$_deleteContainer$ && (this.removeChild(this.$_deleteContainer$), this.$_deleteContainer$.$destroy$());
    this.$_deleteContainer$ = null;
    this.$Animation$ && this.$getEventManager$().$addListeners$(this);
    this.$AnimationStopped$ || this.$RenderComplete$();
    this.$Animation$ = null;
    this.$AnimationStopped$ = !1;
  };
  $dvt$$6$$.$Diagram$.prototype.$animateUpdate$ = function $$dvt$$6$$$$Diagram$$$$animateUpdate$$($DvtDiagramDefaults$$, $oldDiagramState$$2$$) {
    var $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$CustomAnimation$(this.$getCtx$(), null, $DvtDiagramDefaults$$.$getAnimationDuration$()), $DvtDiagramCategoryRolloverHandler$$ = $oldDiagramState$$2$$.$getPanZoomMatrix$(), $DvtDiagramEventManager$$ = this.$_panZoomCanvas$.$_contentPane$.$getMatrix$();
    $DvtDiagramCategoryRolloverHandler$$.$equals$($DvtDiagramEventManager$$) || (this.$_panZoomCanvas$.$_contentPane$.$setMatrix$($DvtDiagramCategoryRolloverHandler$$), $DvtDiagramKeyboardHandler$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_MATRIX$, this.$_panZoomCanvas$.$_contentPane$, this.$_panZoomCanvas$.$_contentPane$.$getMatrix$, this.$_panZoomCanvas$.$_contentPane$.$setMatrix$, $DvtDiagramEventManager$$));
    $DvtDiagramDefaults$$.$constructAnimation$($oldDiagramState$$2$$.$getRoots$(), this.$_arRootIds$ ? this.$GetRootNodeObjects$() : []);
    $DvtDiagramDefaults$$.$constructAnimation$($oldDiagramState$$2$$.$getLinks$(), this.$_links$ ? this.$GetAllLinkObjects$() : []);
    $DvtDiagramDefaults$$.add($DvtDiagramKeyboardHandler$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
  };
  $dvt$$6$$.$Diagram$.prototype.$_resolveDeferredData$ = function $$dvt$$6$$$$Diagram$$$$_resolveDeferredData$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    if (null == $DvtDiagramDefaults$$ || this.$_isNodeDisclosed$($DvtDiagramDefaults$$.id) || this.$_discoverLinks$($dvt$$6$$, $DvtDiagramDefaults$$)) {
      var $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.getData($DvtDiagramDefaults$$);
      this.$_deferredObjCount$++;
      var $DvtDiagramKeyboardHandler$$ = this, $DvtDiagramCategoryRolloverHandler$$ = this.$_renderCount$;
      $DvtDiagramDataAnimationHandler$$.then(function($DvtDiagramDataAnimationHandler$$) {
        $DvtDiagramKeyboardHandler$$.$_renderDeferredData$($DvtDiagramCategoryRolloverHandler$$, $dvt$$6$$, $DvtDiagramDefaults$$ ? $DvtDiagramDefaults$$ : $DvtDiagramKeyboardHandler$$.$getOptions$(), $DvtDiagramDataAnimationHandler$$);
      }, function() {
        $DvtDiagramKeyboardHandler$$.$_renderDeferredData$($DvtDiagramCategoryRolloverHandler$$, $dvt$$6$$, $DvtDiagramDefaults$$ ? $DvtDiagramDefaults$$ : $DvtDiagramKeyboardHandler$$.$getOptions$(), null);
      });
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_renderDeferredData$ = function $$dvt$$6$$$$Diagram$$$$_renderDeferredData$$($DvtDiagramDefaults$$, $dataSource$$1$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    if ($DvtDiagramDefaults$$ === this.$_renderCount$) {
      if (null != $DvtDiagramKeyboardHandler$$) {
        if ($DvtDiagramDataAnimationHandler$$.nodes = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramKeyboardHandler$$.nodes), Array.isArray($DvtDiagramKeyboardHandler$$.links) && (this.$getOptions$().links = this.$getOptions$().links.concat($DvtDiagramKeyboardHandler$$.links)), this.$_findUnresolvedLinks$($DvtDiagramKeyboardHandler$$), Array.isArray($DvtDiagramDataAnimationHandler$$.nodes)) {
          for (this.$_nodesToResolve$ = this.$_nodesToResolve$.concat($DvtDiagramDataAnimationHandler$$.nodes);0 < this.$_nodesToResolve$.length;) {
            this.$_resolveDeferredData$($dataSource$$1$$, this.$_nodesToResolve$.shift());
          }
        }
      } else {
        $DvtDiagramDataAnimationHandler$$.nodes = null;
      }
      this.$_deferredObjCount$--;
      0 === this.$_deferredObjCount$ && this.$RenderComponentInternal$();
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_findUnresolvedLinks$ = function $$dvt$$6$$$$Diagram$$$$_findUnresolvedLinks$$($dvt$$6$$) {
    if ("none" !== this.$getOptions$().promotedLinkBehavior) {
      if (Array.isArray($dvt$$6$$.nodes)) {
        for (var $DvtDiagramDefaults$$ = 0;$DvtDiagramDefaults$$ < $dvt$$6$$.nodes.length;$DvtDiagramDefaults$$++) {
          this.$_allNodeIdsMap$[$dvt$$6$$.nodes[$DvtDiagramDefaults$$].id] = !0;
        }
      }
      for ($DvtDiagramDefaults$$ = this.$_unresolvedNodeIds$.length - 1;0 <= $DvtDiagramDefaults$$;$DvtDiagramDefaults$$--) {
        this.$_allNodeIdsMap$[this.$_unresolvedNodeIds$[$DvtDiagramDefaults$$]] && this.$_unresolvedNodeIds$.splice($DvtDiagramDefaults$$, 1);
      }
      if (Array.isArray($dvt$$6$$.links)) {
        for ($DvtDiagramDefaults$$ = 0;$DvtDiagramDefaults$$ < $dvt$$6$$.links.length;$DvtDiagramDefaults$$++) {
          var $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.links[$DvtDiagramDefaults$$];
          this.$_allNodeIdsMap$[$DvtDiagramDataAnimationHandler$$.startNode] || this.$_unresolvedNodeIds$.push($DvtDiagramDataAnimationHandler$$.startNode);
          this.$_allNodeIdsMap$[$DvtDiagramDataAnimationHandler$$.endNode] || this.$_unresolvedNodeIds$.push($DvtDiagramDataAnimationHandler$$.endNode);
        }
      }
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_discoverLinks$ = function $$dvt$$6$$$$Diagram$$$$_discoverLinks$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getOptions$().promotedLinkBehavior;
    return "none" === $DvtDiagramDataAnimationHandler$$ || 0 == this.$_unresolvedNodeIds$.length || "lazy" == $DvtDiagramDataAnimationHandler$$ && 0 >= $dvt$$6$$.getChildCount($DvtDiagramDefaults$$) ? !1 : "disjoint" != $dvt$$6$$.getDescendantsConnectivity($DvtDiagramDefaults$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$handleDataSourceEvent$ = function $$dvt$$6$$$$Diagram$$$$handleDataSourceEvent$$() {
    this.$render$(this.$getOptions$(), this.$Width$, this.$Height$);
  };
  $dvt$$6$$.$Diagram$.prototype.$_setDataSourceListeners$ = function $$dvt$$6$$$$Diagram$$$$_setDataSourceListeners$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    $dvt$$6$$ && (this.$_dataSourceEventHandler$ || (this.$_dataSourceEventHandler$ = this.$handleDataSourceEvent$.bind(this)), $DvtDiagramDefaults$$ ? ($dvt$$6$$.on("ADD", this.$_dataSourceEventHandler$), $dvt$$6$$.on("REMOVE", this.$_dataSourceEventHandler$), $dvt$$6$$.on("CHANGE", this.$_dataSourceEventHandler$)) : ($dvt$$6$$.off("ADD", this.$_dataSourceEventHandler$), $dvt$$6$$.off("REMOVE", this.$_dataSourceEventHandler$), $dvt$$6$$.off("CHANGE", this.$_dataSourceEventHandler$)));
  };
  $dvt$$6$$.$Diagram$.prototype.$Render$ = function $$dvt$$6$$$$Diagram$$$$Render$$() {
    $dvt$$6$$.$Diagram$.$superclass$.$Render$.call(this);
    this.$InitComponentInternal$();
    this.$_deferredObjCount$ = 0;
    this.$_nodesToResolve$ = [];
    if (this.$_bRendered$ || this.$_isResize$) {
      0 === this.$_deferredObjCount$ && this.$RenderComponentInternal$();
    } else {
      this.$_renderCount$++;
      var $DvtDiagramDefaults$$ = this.$getOptions$().data;
      $DvtDiagramDefaults$$ ? (this.$_setDataSourceListeners$($DvtDiagramDefaults$$, !1), this.$_resolveDeferredData$($DvtDiagramDefaults$$, null)) : this.$RenderComponentInternal$();
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$RenderComponentInternal$ = function $$dvt$$6$$$$Diagram$$$$RenderComponentInternal$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = !1;
    if (!this.$_bRendered$ && !this.$_isResize$) {
      this.$_setDataSourceListeners$(this.$getOptions$().data, !0);
      this.$prepareNodes$();
      this.$renderLinks$();
      var $DvtDiagramDataAnimationHandler$$ = [], $DvtDiagramKeyboardHandler$$;
      for ($DvtDiagramKeyboardHandler$$ in this.$_nodes$) {
        $DvtDiagramDataAnimationHandler$$.push($DvtDiagramKeyboardHandler$$);
      }
      $DvtDiagramDefaults$$ = 0 === $DvtDiagramDataAnimationHandler$$.length;
      this.$getCtx$().$setKeyboardFocusArray$([this]);
    }
    if ($DvtDiagramDefaults$$) {
      this.$_processContent$($dvt$$6$$, $DvtDiagramDefaults$$);
    } else {
      this.contains(this.$_oldPanZoomCanvas$) || this.$addChild$(this.$_oldPanZoomCanvas$);
      var $DvtDiagramDataAnimationHandler$$ = this.$layout$($dvt$$6$$), $DvtDiagramCategoryRolloverHandler$$ = this, $DvtDiagramEventManager$$ = this.$_renderCount$;
      $DvtDiagramDataAnimationHandler$$.then(function() {
        $DvtDiagramEventManager$$ === $DvtDiagramCategoryRolloverHandler$$.$_renderCount$ && $DvtDiagramCategoryRolloverHandler$$.$_processContent$($dvt$$6$$, $DvtDiagramDefaults$$);
      }, function() {
        $DvtDiagramEventManager$$ === $DvtDiagramCategoryRolloverHandler$$.$_renderCount$ && ($DvtDiagramCategoryRolloverHandler$$.removeChild($DvtDiagramCategoryRolloverHandler$$.$_oldPanZoomCanvas$), $DvtDiagramCategoryRolloverHandler$$.$_oldPanZoomCanvas$ = null, $DvtDiagramCategoryRolloverHandler$$.$_bRendered$ = !0, this.$_currentViewport$ = null);
      });
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_processContent$ = function $$dvt$$6$$$$Diagram$$$$_processContent$$($DvtDiagramDefaults$$, $bEmptyDiagram$$) {
    var $DvtDiagramKeyboardHandler$$;
    if (!$bEmptyDiagram$$) {
      this.removeChild(this.$_oldPanZoomCanvas$);
      this.$_processHighlighting$();
      this.$_processInitialSelections$();
      this.$_updateKeyboardFocusEffect$();
      if ($DvtDiagramKeyboardHandler$$ = null == this.$_cachedViewBounds$) {
        this.$_cachedViewBounds$ = this.$GetViewBounds$($DvtDiagramDefaults$$);
      }
      this.$_fitContent$($DvtDiagramDefaults$$);
    }
    this.$_oldPanZoomCanvas$ = null;
    if (!this.$_bRendered$) {
      this.$StopAnimation$(!0);
      if ($dvt$$6$$.$Agent$.$isEnvironmentBrowser$() && this.$_initAnim$ && !this.$_oldDataAnimState$) {
        this.$Animation$ = $dvt$$6$$.$BlackBoxAnimationHandler$.$getInAnimation$(this.$getCtx$(), this.$_initAnim$, this, null, this.$getAnimationDuration$());
      } else {
        if ("none" != this.$_dataChangeAnim$ && this.$_oldDataAnimState$) {
          this.$_deleteContainer$ = new $dvt$$6$$.$Container$(this.$getCtx$(), "Delete Container");
          this.$addChild$(this.$_deleteContainer$);
          var $DvtDiagramCategoryRolloverHandler$$ = new $DvtDiagramDataAnimationHandler$$(this.$getCtx$(), this.$_deleteContainer$, this.$_oldDataAnimState$, this);
          $DvtDiagramCategoryRolloverHandler$$.$constructAnimation$([this.$_oldDataAnimState$], [this]);
          this.$Animation$ = $DvtDiagramCategoryRolloverHandler$$.$getAnimation$();
        }
      }
      this.$Animation$ ? (this.$getEventManager$().$hideTooltip$(), this.$getEventManager$().$removeListeners$(this), this.$Animation$.$setOnEnd$(this.$_onAnimationEnd$, this), this.$Animation$.play()) : this.$_onAnimationEnd$();
    }
    this.$_bRendered$ = !0;
    this.$_currentViewport$ = null;
    this.$RefreshEmptyText$($bEmptyDiagram$$);
    if (this.$_panningEnabled$ && ($DvtDiagramCategoryRolloverHandler$$ = this.$_cachedViewBounds$, null != $DvtDiagramCategoryRolloverHandler$$)) {
      var $DvtDiagramEventManager$$ = this.$_panZoomCanvas$.$getZoom$($DvtDiagramDefaults$$);
      this.$ConstrainPanning$($DvtDiagramCategoryRolloverHandler$$.x, $DvtDiagramCategoryRolloverHandler$$.y, $DvtDiagramCategoryRolloverHandler$$.$w$, $DvtDiagramCategoryRolloverHandler$$.$h$, $DvtDiagramEventManager$$);
    }
    this.$ClearLayoutViewport$();
    $DvtDiagramKeyboardHandler$$ && (this.$_cachedViewBounds$ = null);
  };
  $dvt$$6$$.$Diagram$.prototype.$_fitContent$ = function $$dvt$$6$$$$Diagram$$$$_fitContent$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$_panZoomCanvas$;
    if (this.$_bRendered$) {
      this.$_isResize$ && ($dvt$$6$$ = this.$AdjustMinZoom$($dvt$$6$$, this.$_cachedViewBounds$), $DvtDiagramDataAnimationHandler$$ = this.$IsLayoutViewport$() ? this.$GetLayoutViewport$() : $dvt$$6$$ ? $dvt$$6$$ : this.$_cachedViewBounds$, $DvtDiagramDefaults$$.$setZoomToFitEnabled$(!0), $DvtDiagramDefaults$$.$zoomToFit$(null, $DvtDiagramDataAnimationHandler$$), $DvtDiagramDefaults$$.$setZoomToFitEnabled$(this.$_zoomingEnabled$));
    } else {
      this.$AdjustMinZoom$($dvt$$6$$, this.$_cachedViewBounds$);
      if (!this.$_isResize$) {
        var $DvtDiagramDataAnimationHandler$$ = ($dvt$$6$$ = this.$IsLayoutViewport$()) ? this.$GetLayoutViewport$() : this.$_cachedViewBounds$;
        $dvt$$6$$ && $DvtDiagramDefaults$$.$setZoomToFitPadding$();
        $DvtDiagramDefaults$$.$zoomToFit$(null, $DvtDiagramDataAnimationHandler$$);
      }
      $DvtDiagramDefaults$$.$setPanningEnabled$(this.$_panningEnabled$);
      $DvtDiagramDefaults$$.$setPanDirection$(this.$getPanDirection$());
      $DvtDiagramDefaults$$.$setZoomingEnabled$(this.$_zoomingEnabled$);
      $DvtDiagramDefaults$$.$setZoomToFitEnabled$(this.$_zoomingEnabled$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$SetOptions$ = function $$dvt$$6$$$$Diagram$$$$SetOptions$$($DvtDiagramDefaults$$) {
    $dvt$$6$$.$Diagram$.$superclass$.$SetOptions$.call(this, $DvtDiagramDefaults$$);
    this.$Options$.nodes = [];
    this.$Options$.links = [];
    this.$parseComponentJson$(this.$Options$);
    this.$SetPanningEnabled$("none" != this.$Options$.panning);
    this.$SetZoomingEnabled$("none" != this.$Options$.zooming);
    this.$setControlPanelBehavior$("hidden");
    this.$setDataChangeAnim$(this.$Options$.animationOnDataChange);
    this.$setInitAnim$("auto" == this.$Options$.animationOnDisplay ? $dvt$$6$$.$BlackBoxAnimationHandler$.$ALPHA_FADE$ : null);
    this.$setSelectionMode$(this.$Options$.selectionMode);
    this.$setEmptyText$(this.$Options$.emptyText ? this.$Options$.emptyText : $dvt$$6$$.$Bundle$.$getTranslation$(this.$Options$, "labelNoData", $dvt$$6$$.$Bundle$.$UTIL_PREFIX$, "NO_DATA"));
  };
  $dvt$$6$$.$Diagram$.$getDefaults$ = function $$dvt$$6$$$$Diagram$$$getDefaults$$($dvt$$6$$) {
    return (new $DvtDiagramDefaults$$).$getDefaults$($dvt$$6$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$getMaxZoom$ = function $$dvt$$6$$$$Diagram$$$$getMaxZoom$$() {
    var $dvt$$6$$ = this.$getOptions$().maxZoom, $dvt$$6$$ = parseFloat($dvt$$6$$);
    return 0 < $dvt$$6$$ ? $dvt$$6$$ : 1;
  };
  $dvt$$6$$.$Diagram$.prototype.$getMinZoom$ = function $$dvt$$6$$$$Diagram$$$$getMinZoom$$() {
    var $dvt$$6$$ = this.$getOptions$().minZoom;
    if ($dvt$$6$$) {
      var $DvtDiagramDefaults$$ = parseFloat($dvt$$6$$);
      0 < $DvtDiagramDefaults$$ && ($dvt$$6$$ = Math.min($DvtDiagramDefaults$$, this.$getMaxZoom$()));
      return $dvt$$6$$;
    }
    return 0;
  };
  $dvt$$6$$.$Diagram$.prototype.$getPanDirection$ = function $$dvt$$6$$$$Diagram$$$$getPanDirection$$() {
    return this.$getOptions$().panDirection;
  };
  $dvt$$6$$.$Diagram$.prototype.$getAnimationDuration$ = function $$dvt$$6$$$$Diagram$$$$getAnimationDuration$$() {
    return $dvt$$6$$.$StyleUtils$.$getTimeMilliseconds$(this.$getOptions$().styleDefaults.animationDuration) / 1E3;
  };
  $dvt$$6$$.$Diagram$.prototype.$processEvent$ = function $$dvt$$6$$$$Diagram$$$$processEvent$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = $dvt$$6$$.type;
    "categoryHighlight" == $DvtDiagramDefaults$$ ? this.$_processHighlighting$(!0) : "selection" == $DvtDiagramDefaults$$ && (this.$getOptions$().selection = $dvt$$6$$.selection);
    $dvt$$6$$ && this.dispatchEvent($dvt$$6$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$prepareNodes$ = function $$dvt$$6$$$$Diagram$$$$prepareNodes$$() {
    var $dvt$$6$$ = this.$getOptions$().nodes;
    $dvt$$6$$ && (this.$_prepareNodes$(null, $dvt$$6$$), this.$DisclosedNodes$ || (this.$DisclosedNodes$ = ($dvt$$6$$ = this.$getOptions$().expanded) ? "all" === $dvt$$6$$ ? this.$_arNodeIds$ : $dvt$$6$$ : []));
  };
  $dvt$$6$$.$Diagram$.prototype.$renderLinks$ = function $$dvt$$6$$$$Diagram$$$$renderLinks$$() {
    var $DvtDiagramDefaults$$ = this.$getOptions$().links;
    if ($DvtDiagramDefaults$$) {
      var $linkDefaults$$ = this.$getOptions$().styleDefaults.linkDefaults;
      this.$_prepareLinkStyle$($linkDefaults$$);
      $linkDefaults$$.style = $dvt$$6$$.$JsonUtils$.$merge$($linkDefaults$$.style, $linkDefaults$$._style);
      for (var $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $DvtDiagramDefaults$$.length;$DvtDiagramDataAnimationHandler$$++) {
        var $DvtDiagramKeyboardHandler$$ = $DvtDiagramDefaults$$[$DvtDiagramDataAnimationHandler$$];
        if (!this.$_isLinkPromoted$($DvtDiagramKeyboardHandler$$)) {
          var $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramLink$$.$ConvertLinkData$($DvtDiagramKeyboardHandler$$);
          this.$getOptions$().linkProperties && ($DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$JsonUtils$.clone(this.$getOptions$().linkProperties($DvtDiagramKeyboardHandler$$)), this.$_prepareLinkStyle$($DvtDiagramKeyboardHandler$$), $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramKeyboardHandler$$));
          $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramCategoryRolloverHandler$$, $linkDefaults$$);
          $DvtDiagramKeyboardHandler$$ = $DvtDiagramLink$$.newInstance(this, $DvtDiagramKeyboardHandler$$, !1);
          $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$.getId();
          this.$_arLinkIds$.push($DvtDiagramCategoryRolloverHandler$$);
          if (!$DvtDiagramKeyboardHandler$$.$isHidden$()) {
            var $DvtDiagramEventManager$$ = this.$getNodeById$($DvtDiagramKeyboardHandler$$.$getStartId$()), $endNode$$2$$ = this.$getNodeById$($DvtDiagramKeyboardHandler$$.$getEndId$());
            $DvtDiagramEventManager$$.$addOutLinkId$($DvtDiagramCategoryRolloverHandler$$);
            $endNode$$2$$.$addInLinkId$($DvtDiagramCategoryRolloverHandler$$);
            $DvtDiagramKeyboardHandler$$.$render$();
            this.$_links$[$DvtDiagramCategoryRolloverHandler$$] = $DvtDiagramKeyboardHandler$$;
          }
        }
      }
      if (this.$_promotedLinksMap$) {
        $DvtDiagramDefaults$$ = this.$getOptions$().styleDefaults.promotedLink;
        this.$_prepareLinkStyle$($DvtDiagramDefaults$$);
        $DvtDiagramDefaults$$.style = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramDefaults$$.style, $DvtDiagramDefaults$$._style);
        for (var $promotedLinkId$$ in this.$_promotedLinksMap$) {
          $DvtDiagramKeyboardHandler$$ = this.$_promotedLinksMap$[$promotedLinkId$$], $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramKeyboardHandler$$, $DvtDiagramDefaults$$), $DvtDiagramKeyboardHandler$$ = $DvtDiagramLink$$.newInstance(this, $DvtDiagramKeyboardHandler$$, !0), $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$.getId(), $DvtDiagramEventManager$$ = this.$getNodeById$($DvtDiagramKeyboardHandler$$.$getStartId$()), $endNode$$2$$ = this.$getNodeById$($DvtDiagramKeyboardHandler$$.$getEndId$()), 
          $DvtDiagramEventManager$$.$addOutLinkId$($DvtDiagramCategoryRolloverHandler$$), $endNode$$2$$.$addInLinkId$($DvtDiagramCategoryRolloverHandler$$), $DvtDiagramKeyboardHandler$$.$render$(), this.$_arLinkIds$.push($DvtDiagramCategoryRolloverHandler$$), this.$_links$[$DvtDiagramCategoryRolloverHandler$$] = $DvtDiagramKeyboardHandler$$;
        }
      }
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_prepareLinkStyle$ = function $$dvt$$6$$$$Diagram$$$$_prepareLinkStyle$$($DvtDiagramDefaults$$) {
    $DvtDiagramDefaults$$ && null != $DvtDiagramDefaults$$.style && ($DvtDiagramDefaults$$.style instanceof Object ? null == $DvtDiagramDefaults$$.style._type && ($DvtDiagramDefaults$$.style._type = $DvtDiagramLink$$.$CUSTOM_STYLE$) : $DvtDiagramDefaults$$.style = $dvt$$6$$.$DiagramLinkUtils$.$getStrokeObject$($DvtDiagramDefaults$$.style));
  };
  $dvt$$6$$.$Diagram$.prototype.$layout$ = function $$dvt$$6$$$$Diagram$$$$layout$$($DvtDiagramDefaults$$) {
    for (var $layoutFunc_promise$$ = this.$getOptions$().layout, $DvtDiagramDataAnimationHandler$$ = this.$CreateEmptyLayoutContext$(), $DvtDiagramKeyboardHandler$$ = {}, $DvtDiagramCategoryRolloverHandler$$ = 0;$DvtDiagramCategoryRolloverHandler$$ < this.$_arRootIds$.length;$DvtDiagramCategoryRolloverHandler$$++) {
      var $DvtDiagramEventManager$$ = this.$_arRootIds$[$DvtDiagramCategoryRolloverHandler$$];
      if (this.$getNodeById$($DvtDiagramEventManager$$)) {
        $DvtDiagramKeyboardHandler$$[$DvtDiagramEventManager$$] = !0;
        var $endId$$6_lcRootNode$$1$$ = this.$CreateLayoutContextNode$(this.$getNodeById$($DvtDiagramEventManager$$), null, this.$_bRendered$ ? !1 : !0, $DvtDiagramDataAnimationHandler$$);
        this.$_addChildLayoutContext$(this.$getNodeById$($DvtDiagramEventManager$$), $endId$$6_lcRootNode$$1$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$);
        $DvtDiagramDataAnimationHandler$$.$addNode$($endId$$6_lcRootNode$$1$$);
      }
    }
    for (var $linkId$$27_point$$39$$ in this.$_links$) {
      if ($DvtDiagramCategoryRolloverHandler$$ = this.$getLinkById$($linkId$$27_point$$39$$)) {
        $DvtDiagramEventManager$$ = $DvtDiagramCategoryRolloverHandler$$.getData().startNode, $endId$$6_lcRootNode$$1$$ = $DvtDiagramCategoryRolloverHandler$$.getData().endNode, $DvtDiagramKeyboardHandler$$[$DvtDiagramEventManager$$] && $DvtDiagramKeyboardHandler$$[$endId$$6_lcRootNode$$1$$] && $DvtDiagramDataAnimationHandler$$.$addLink$(this.$CreateLayoutContextLink$($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramEventManager$$, $endId$$6_lcRootNode$$1$$, null, $DvtDiagramDataAnimationHandler$$))
        ;
      }
    }
    this.$_currentViewport$ && ($DvtDiagramKeyboardHandler$$ = this.$_currentViewport$, $linkId$$27_point$$39$$ = this.$getLayoutOffset$(), $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$DiagramRectangle$($DvtDiagramKeyboardHandler$$.x - $linkId$$27_point$$39$$.x, $DvtDiagramKeyboardHandler$$.y - $linkId$$27_point$$39$$.y, $DvtDiagramKeyboardHandler$$.$w$, $DvtDiagramKeyboardHandler$$.$h$), $DvtDiagramDataAnimationHandler$$.$setCurrentViewport$($DvtDiagramKeyboardHandler$$));
    if ($layoutFunc_promise$$ && "function" == typeof $layoutFunc_promise$$) {
      var $thisRef$$28$$ = this;
      ($layoutFunc_promise$$ = $layoutFunc_promise$$($DvtDiagramDataAnimationHandler$$)) || ($layoutFunc_promise$$ = {then:function $$layoutFunc_promise$$$then$($dvt$$6$$) {
        $dvt$$6$$();
      }});
      this.$setAlphas$(0);
      var $renderCount$$3$$ = this.$_renderCount$;
      $layoutFunc_promise$$.then(function() {
        if ($thisRef$$28$$.$_renderCount$ === $renderCount$$3$$ || $thisRef$$28$$.$_isResize$) {
          $thisRef$$28$$.$setAlphas$(1);
          for (var $dvt$$6$$ = $DvtDiagramDataAnimationHandler$$.$getNodeCount$(), $layoutFunc_promise$$ = 0;$layoutFunc_promise$$ < $dvt$$6$$;$layoutFunc_promise$$++) {
            $thisRef$$28$$.$renderNodeFromContext$($DvtDiagramDataAnimationHandler$$.$getNodeByIndex$($layoutFunc_promise$$));
          }
          $thisRef$$28$$.$ApplyLayoutContext$($DvtDiagramDataAnimationHandler$$, $DvtDiagramDefaults$$, !0);
        }
      }, function() {
      });
      return $layoutFunc_promise$$;
    }
    this.$Log$("dvt.Diagram: Layout function is not defined", 1);
  };
  $dvt$$6$$.$Diagram$.prototype.$setAlphas$ = function $$dvt$$6$$$$Diagram$$$$setAlphas$$($dvt$$6$$) {
    this.$_bRendered$ || (this.$_linksPane$.$setAlpha$($dvt$$6$$), this.$_nodesPane$.$setAlpha$($dvt$$6$$));
  };
  $dvt$$6$$.$Diagram$.prototype.$getNodeById$ = function $$dvt$$6$$$$Diagram$$$$getNodeById$$($dvt$$6$$) {
    return this.$_nodes$[$dvt$$6$$];
  };
  $dvt$$6$$.$Diagram$.prototype.$getLinkById$ = function $$dvt$$6$$$$Diagram$$$$getLinkById$$($dvt$$6$$) {
    return this.$_links$[$dvt$$6$$];
  };
  $dvt$$6$$.$Diagram$.prototype.$GetAllLinks$ = function $$dvt$$6$$$$Diagram$$$$GetAllLinks$$() {
    return this.$_arLinkIds$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetAllLinkObjects$ = function $$dvt$$6$$$$Diagram$$$$GetAllLinkObjects$$() {
    var $dvt$$6$$ = [], $DvtDiagramDefaults$$;
    for ($DvtDiagramDefaults$$ in this.$_links$) {
      $dvt$$6$$.push(this.$_links$[$DvtDiagramDefaults$$]);
    }
    return $dvt$$6$$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetAllNodes$ = function $$dvt$$6$$$$Diagram$$$$GetAllNodes$$() {
    return this.$_arNodeIds$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetAllNodesMap$ = function $$dvt$$6$$$$Diagram$$$$GetAllNodesMap$$() {
    var $dvt$$6$$ = {}, $DvtDiagramDefaults$$;
    for ($DvtDiagramDefaults$$ in this.$_nodes$) {
      $dvt$$6$$[$DvtDiagramDefaults$$] = this.$_nodes$[$DvtDiagramDefaults$$];
    }
    return $dvt$$6$$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetAllNodeObjects$ = function $$dvt$$6$$$$Diagram$$$$GetAllNodeObjects$$() {
    var $dvt$$6$$ = [], $DvtDiagramDefaults$$;
    for ($DvtDiagramDefaults$$ in this.$_nodes$) {
      $dvt$$6$$.push(this.$_nodes$[$DvtDiagramDefaults$$]);
    }
    return $dvt$$6$$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetRootNodeObjects$ = function $$dvt$$6$$$$Diagram$$$$GetRootNodeObjects$$() {
    for (var $dvt$$6$$ = [], $DvtDiagramDefaults$$ = 0;$DvtDiagramDefaults$$ < this.$_arRootIds$.length;$DvtDiagramDefaults$$++) {
      var $DvtDiagramDataAnimationHandler$$ = this.$_nodes$[this.$_arRootIds$[$DvtDiagramDefaults$$]];
      $DvtDiagramDataAnimationHandler$$ && $dvt$$6$$.push($DvtDiagramDataAnimationHandler$$);
    }
    return $dvt$$6$$;
  };
  $dvt$$6$$.$Diagram$.prototype.$HandleZoomEvent$ = function $$dvt$$6$$$$Diagram$$$$HandleZoomEvent$$($DvtDiagramDefaults$$) {
    $dvt$$6$$.$Diagram$.$superclass$.$HandleZoomEvent$.call(this, $DvtDiagramDefaults$$);
    switch($DvtDiagramDefaults$$.$getSubType$()) {
      case $dvt$$6$$.$ZoomEvent$.$SUBTYPE_ADJUST_PAN_CONSTRAINTS$:
        if (this.$_panningEnabled$) {
          var $nodeId$$87_zoom$$9$$ = $DvtDiagramDefaults$$.$_newZoom$, $DvtDiagramDataAnimationHandler$$ = this.$_cachedViewBounds$ ? this.$_cachedViewBounds$ : this.$GetViewBounds$($DvtDiagramDefaults$$.$_animator$);
          this.$ConstrainPanning$($DvtDiagramDataAnimationHandler$$.x, $DvtDiagramDataAnimationHandler$$.y, $DvtDiagramDataAnimationHandler$$.$w$, $DvtDiagramDataAnimationHandler$$.$h$, $nodeId$$87_zoom$$9$$);
        }
        break;
      case $dvt$$6$$.$ZoomEvent$.$SUBTYPE_ZOOM_TO_FIT_CALC_BOUNDS$:
        this.$IsLayoutViewport$() || ($DvtDiagramDataAnimationHandler$$ = this.$_cachedViewBounds$ ? this.$_cachedViewBounds$ : this.$GetViewBounds$($DvtDiagramDefaults$$.$_animator$), $DvtDiagramDefaults$$.$setZoomToFitBounds$($DvtDiagramDataAnimationHandler$$));
        break;
      case $dvt$$6$$.$ZoomEvent$.$SUBTYPE_ZOOMED$:
        if (this.$getOptions$().zoomRenderer && $DvtDiagramDefaults$$.$_oldZoom$ !== $DvtDiagramDefaults$$.$_newZoom$) {
          for ($nodeId$$87_zoom$$9$$ in this.$_nodes$) {
            this.$getNodeById$($nodeId$$87_zoom$$9$$).$rerenderOnZoom$($DvtDiagramDefaults$$);
          }
        }
      ;
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$getNavigableLinksForNodeId$ = function $$dvt$$6$$$$Diagram$$$$getNavigableLinksForNodeId$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = [], $DvtDiagramDataAnimationHandler$$;
    for ($DvtDiagramDataAnimationHandler$$ in this.$_links$) {
      var $DvtDiagramKeyboardHandler$$ = this.$getLinkById$($DvtDiagramDataAnimationHandler$$), $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$.$getStartId$(), $DvtDiagramEventManager$$ = $DvtDiagramKeyboardHandler$$.$getEndId$();
      $DvtDiagramCategoryRolloverHandler$$ != $dvt$$6$$ && $DvtDiagramEventManager$$ != $dvt$$6$$ || !$DvtDiagramKeyboardHandler$$.$_bVisible$ || $DvtDiagramDefaults$$.push($DvtDiagramKeyboardHandler$$);
    }
    return $DvtDiagramDefaults$$;
  };
  $dvt$$6$$.$Diagram$.prototype.$GetComponentDescription$ = function $$dvt$$6$$$$Diagram$$$$GetComponentDescription$$() {
    return $dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$UTIL_PREFIX$, "DIAGRAM");
  };
  $dvt$$6$$.$Diagram$.prototype.$_processInitialSelections$ = function $$dvt$$6$$$$Diagram$$$$_processInitialSelections$$() {
    if (this.$Options$.selection && this.$isSelectionSupported$()) {
      var $dvt$$6$$ = [], $DvtDiagramDefaults$$;
      for ($DvtDiagramDefaults$$ in this.$_nodes$) {
        $dvt$$6$$.push(this.$getNodeById$($DvtDiagramDefaults$$));
      }
      for (var $DvtDiagramDataAnimationHandler$$ in this.$_links$) {
        $dvt$$6$$.push(this.$getLinkById$($DvtDiagramDataAnimationHandler$$));
      }
      this.$getSelectionHandler$().$processInitialSelections$(this.$Options$.selection, $dvt$$6$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_processHighlighting$ = function $$dvt$$6$$$$Diagram$$$$_processHighlighting$$($DvtDiagramDefaults$$) {
    $DvtDiagramDefaults$$ && this.$EventManager$.$removeListeners$(this, !0);
    this.$_highlightedObjects$ && (this.$_updateAlphas$(!1, this.$_highlightedObjects$), this.$_highlightedObjects$ = null);
    var $categories$$8$$ = this.$Options$.highlightedCategories;
    if ($categories$$8$$ && 0 !== $categories$$8$$.length) {
      var $DvtDiagramDataAnimationHandler$$ = "any" == this.$Options$.highlightMatch;
      this.$_highlightedObjects$ = {};
      var $DvtDiagramKeyboardHandler$$ = [], $DvtDiagramCategoryRolloverHandler$$;
      for ($DvtDiagramCategoryRolloverHandler$$ in this.$_nodes$) {
        var $DvtDiagramEventManager$$ = this.$getNodeById$($DvtDiagramCategoryRolloverHandler$$), $match$$3$$ = $DvtDiagramDataAnimationHandler$$ ? $dvt$$6$$.$ArrayUtils$.$hasAnyItem$($DvtDiagramEventManager$$.$getCategories$(), $categories$$8$$) : $dvt$$6$$.$ArrayUtils$.$hasAllItems$($DvtDiagramEventManager$$.$getCategories$(), $categories$$8$$);
        $match$$3$$ && (this.$_highlightedObjects$[$DvtDiagramEventManager$$.getId()] = $DvtDiagramEventManager$$, $DvtDiagramKeyboardHandler$$.push($DvtDiagramEventManager$$));
      }
      this.$_processNodeConnections$($DvtDiagramKeyboardHandler$$);
      var $DvtDiagramKeyboardHandler$$ = [], $linkId$$31$$;
      for ($linkId$$31$$ in this.$_links$) {
        if ($DvtDiagramCategoryRolloverHandler$$ = this.$getLinkById$($linkId$$31$$), $match$$3$$ = $DvtDiagramDataAnimationHandler$$ ? $dvt$$6$$.$ArrayUtils$.$hasAnyItem$($DvtDiagramCategoryRolloverHandler$$.$getCategories$(), $categories$$8$$) : $dvt$$6$$.$ArrayUtils$.$hasAllItems$($DvtDiagramCategoryRolloverHandler$$.$getCategories$(), $categories$$8$$)) {
          this.$_highlightedObjects$[$DvtDiagramCategoryRolloverHandler$$.getId()] = $DvtDiagramCategoryRolloverHandler$$, $DvtDiagramKeyboardHandler$$.push($DvtDiagramCategoryRolloverHandler$$);
        }
      }
      "linkAndNodes" == this.$Options$.linkHighlightMode && this.$_processLinkConnections$($DvtDiagramKeyboardHandler$$);
      this.$_updateAlphas$(!0, this.$_highlightedObjects$);
      if ($DvtDiagramDefaults$$) {
        var $thisRef$$29$$ = this;
        setTimeout(function() {
          $thisRef$$29$$.$getEventManager$().$addListeners$($thisRef$$29$$);
        }, 0);
      }
    } else {
      $DvtDiagramDefaults$$ && this.$EventManager$.$addListeners$(this);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_processNodeConnections$ = function $$dvt$$6$$$$Diagram$$$$_processNodeConnections$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$Options$.nodeHighlightMode;
    if ("node" != $DvtDiagramDefaults$$) {
      for (var $DvtDiagramDataAnimationHandler$$ = "nodeAndIncomingLinks" == $DvtDiagramDefaults$$ || "nodeAndLinks" == $DvtDiagramDefaults$$, $DvtDiagramDefaults$$ = "nodeAndOutgoingLinks" == $DvtDiagramDefaults$$ || "nodeAndLinks" == $DvtDiagramDefaults$$, $DvtDiagramKeyboardHandler$$ = [], $DvtDiagramCategoryRolloverHandler$$ = 0;$DvtDiagramCategoryRolloverHandler$$ < $dvt$$6$$.length;$DvtDiagramCategoryRolloverHandler$$++) {
        for (var $DvtDiagramEventManager$$ = $dvt$$6$$[$DvtDiagramCategoryRolloverHandler$$], $links$$6$$ = $DvtDiagramDataAnimationHandler$$ && $DvtDiagramEventManager$$.$_inLinkIds$ ? $DvtDiagramEventManager$$.$_inLinkIds$ : [], $links$$6$$ = $DvtDiagramDefaults$$ && $DvtDiagramEventManager$$.$_outLinkIds$ ? $links$$6$$.concat($DvtDiagramEventManager$$.$_outLinkIds$) : $links$$6$$, $DvtDiagramEventManager$$ = 0;$DvtDiagramEventManager$$ < $links$$6$$.length;$DvtDiagramEventManager$$++) {
          var $linkId$$32$$ = $links$$6$$[$DvtDiagramEventManager$$];
          this.$_highlightedObjects$[$linkId$$32$$] = this.$getLinkById$($linkId$$32$$);
          $DvtDiagramKeyboardHandler$$.push(this.$getLinkById$($linkId$$32$$));
        }
      }
      this.$_processLinkConnections$($DvtDiagramKeyboardHandler$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_processLinkConnections$ = function $$dvt$$6$$$$Diagram$$$$_processLinkConnections$$($dvt$$6$$) {
    for (var $DvtDiagramDefaults$$ = 0;$DvtDiagramDefaults$$ < $dvt$$6$$.length;$DvtDiagramDefaults$$++) {
      var $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$[$DvtDiagramDefaults$$], $DvtDiagramKeyboardHandler$$ = $DvtDiagramDataAnimationHandler$$.$getStartId$(), $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDataAnimationHandler$$.$getEndId$();
      this.$_highlightedObjects$[$DvtDiagramKeyboardHandler$$] = this.$getNodeById$($DvtDiagramKeyboardHandler$$);
      this.$_highlightedObjects$[$DvtDiagramDataAnimationHandler$$] = this.$getNodeById$($DvtDiagramDataAnimationHandler$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_updateAlphas$ = function $$dvt$$6$$$$Diagram$$$$_updateAlphas$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$;
    if (this.$_arNodeIds$.length == this.$_arRootIds$.length) {
      $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$ ? this.$Options$.styleDefaults._highlightAlpha : 1;
      this.$_linksPane$.$setAlpha$($DvtDiagramDataAnimationHandler$$);
      this.$_nodesPane$.$setAlpha$($DvtDiagramDataAnimationHandler$$);
      for (var $DvtDiagramKeyboardHandler$$ in $DvtDiagramDefaults$$) {
        $dvt$$6$$ ? this.$moveToDiagramFront$($DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$]) : $DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$] instanceof $DvtDiagramLink$$ ? this.$moveToLinks$($DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$]) : $DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$] instanceof $DvtDiagramNode$$ && this.$moveToNodes$($DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$]);
      }
    } else {
      if ($dvt$$6$$) {
        $DvtDiagramDataAnimationHandler$$ = this.$Options$.styleDefaults._highlightAlpha;
        var $DvtDiagramCategoryRolloverHandler$$ = {};
        for ($DvtDiagramKeyboardHandler$$ in $DvtDiagramDefaults$$) {
          $DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$].$setAlpha$(1), $DvtDiagramCategoryRolloverHandler$$[$DvtDiagramKeyboardHandler$$] = !0;
        }
        for (var $DvtDiagramEventManager$$ in this.$_nodes$) {
          $DvtDiagramCategoryRolloverHandler$$[$DvtDiagramEventManager$$] || this.$getNodeById$($DvtDiagramEventManager$$).$setAlpha$($DvtDiagramDataAnimationHandler$$);
        }
        for (var $linkId$$33$$ in this.$_links$) {
          $DvtDiagramCategoryRolloverHandler$$[$linkId$$33$$] || this.$getLinkById$($linkId$$33$$).$setAlpha$($DvtDiagramDataAnimationHandler$$);
        }
      } else {
        for ($DvtDiagramEventManager$$ in this.$_nodes$) {
          this.$getNodeById$($DvtDiagramEventManager$$).$setAlpha$(1);
        }
        for ($linkId$$33$$ in this.$_links$) {
          this.$getLinkById$($linkId$$33$$).$setAlpha$(1);
        }
      }
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$highlight$ = function $$dvt$$6$$$$Diagram$$$$highlight$$($DvtDiagramDefaults$$) {
    this.$Options$.highlightedCategories = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramDefaults$$);
    this.$_processHighlighting$();
  };
  $dvt$$6$$.$Diagram$.prototype.select = function $$dvt$$6$$$$Diagram$$$select$($DvtDiagramDefaults$$) {
    this.$Options$.selection = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramDefaults$$);
    this.$_processInitialSelections$();
  };
  $dvt$$6$$.$Diagram$.prototype.$getAutomation$ = function $$dvt$$6$$$$Diagram$$$$getAutomation$$() {
    this.$Automation$ || (this.$Automation$ = new $DvtDiagramAutomation$$(this));
    return this.$Automation$;
  };
  $dvt$$6$$.$Diagram$.prototype.$Log$ = function $$dvt$$6$$$$Diagram$$$$Log$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getOptions$()._logger;
    if ($DvtDiagramDataAnimationHandler$$) {
      switch($DvtDiagramDefaults$$) {
        case 1:
          $DvtDiagramDataAnimationHandler$$.error && $DvtDiagramDataAnimationHandler$$.error($dvt$$6$$);
          break;
        case 2:
          $DvtDiagramDataAnimationHandler$$.warn && $DvtDiagramDataAnimationHandler$$.warn($dvt$$6$$);
          break;
        case 3:
          $DvtDiagramDataAnimationHandler$$.info && $DvtDiagramDataAnimationHandler$$.info($dvt$$6$$);
          break;
        default:
          $DvtDiagramDataAnimationHandler$$.log && $DvtDiagramDataAnimationHandler$$.log($dvt$$6$$);
      }
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$processDefaultHoverEffect$ = function $$dvt$$6$$$$Diagram$$$$processDefaultHoverEffect$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getNodeById$($dvt$$6$$);
    $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$.$processDefaultHoverEffect$($DvtDiagramDefaults$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$processDefaultSelectionEffect$ = function $$dvt$$6$$$$Diagram$$$$processDefaultSelectionEffect$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getNodeById$($dvt$$6$$);
    $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$.$processDefaultSelectionEffect$($DvtDiagramDefaults$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$processDefaultFocusEffect$ = function $$dvt$$6$$$$Diagram$$$$processDefaultFocusEffect$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getNodeById$($dvt$$6$$);
    $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$.$processDefaultFocusEffect$($DvtDiagramDefaults$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$renderNodeFromContext$ = function $$dvt$$6$$$$Diagram$$$$renderNodeFromContext$$($dvt$$6$$) {
    if (!$dvt$$6$$.$IsRendered$) {
      var $DvtDiagramDefaults$$ = this.$getNodeById$($dvt$$6$$.getId());
      if ($DvtDiagramDefaults$$.$isDisclosed$()) {
        for (var $DvtDiagramDataAnimationHandler$$ = this.$CreateEmptyLayoutContext$(), $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$getChildNodes$(), $DvtDiagramCategoryRolloverHandler$$ = 0;$DvtDiagramCategoryRolloverHandler$$ < $DvtDiagramKeyboardHandler$$.length;$DvtDiagramCategoryRolloverHandler$$++) {
          var $DvtDiagramEventManager$$ = $DvtDiagramKeyboardHandler$$[$DvtDiagramCategoryRolloverHandler$$];
          this.$renderNodeFromContext$($DvtDiagramEventManager$$);
          $DvtDiagramDataAnimationHandler$$.$addNode$($DvtDiagramEventManager$$);
        }
        this.$ApplyLayoutContext$($DvtDiagramDataAnimationHandler$$);
      }
      $DvtDiagramDefaults$$.$render$();
      this.$UpdateNodeLayoutContext$($dvt$$6$$, $DvtDiagramDefaults$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_prepareNodes$ = function $$dvt$$6$$$$Diagram$$$$_prepareNodes$$($DvtDiagramDefaults$$, $nodesData$$1$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$getOptions$().styleDefaults.nodeDefaults;
    this.$_prepareNodeStyle$($DvtDiagramDataAnimationHandler$$, "backgroundStyle");
    this.$_prepareNodeStyle$($DvtDiagramDataAnimationHandler$$, "containerStyle");
    for (var $DvtDiagramKeyboardHandler$$ = 0;$DvtDiagramKeyboardHandler$$ < $nodesData$$1$$.length;$DvtDiagramKeyboardHandler$$++) {
      var $DvtDiagramCategoryRolloverHandler$$ = $nodesData$$1$$[$DvtDiagramKeyboardHandler$$], $DvtDiagramEventManager$$ = $DvtDiagramNode$$.$ConvertNodeData$($DvtDiagramCategoryRolloverHandler$$);
      this.$getOptions$().nodeProperties && ($DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$JsonUtils$.clone(this.$getOptions$().nodeProperties($DvtDiagramCategoryRolloverHandler$$)), this.$_prepareNodeStyle$($DvtDiagramCategoryRolloverHandler$$, "backgroundStyle"), this.$_prepareNodeStyle$($DvtDiagramCategoryRolloverHandler$$, "containerStyle"), $DvtDiagramEventManager$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramEventManager$$, $DvtDiagramCategoryRolloverHandler$$));
      var $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramEventManager$$, $DvtDiagramDataAnimationHandler$$), $DvtDiagramEventManager$$ = $DvtDiagramNode$$.newInstance(this, $DvtDiagramCategoryRolloverHandler$$), $nodeId$$95$$ = $DvtDiagramEventManager$$.getId();
      $DvtDiagramDefaults$$ ? ($DvtDiagramDefaults$$.$addChildNodeId$($nodeId$$95$$), $DvtDiagramEventManager$$.$setGroupId$($DvtDiagramDefaults$$.getId())) : this.$_arRootIds$.push($nodeId$$95$$);
      this.$_arNodeIds$.push($nodeId$$95$$);
      $DvtDiagramCategoryRolloverHandler$$.nodes && (this.$_isNodeDisclosed$($nodeId$$95$$) ? ($DvtDiagramEventManager$$.$setDisclosed$(!0), this.$_prepareNodes$($DvtDiagramEventManager$$, $DvtDiagramCategoryRolloverHandler$$.nodes)) : this.$_addToCollapsedArray$($DvtDiagramEventManager$$));
      $DvtDiagramEventManager$$.$isHidden$() || ($DvtDiagramDefaults$$ && $DvtDiagramDefaults$$.$GetChildNodePane$() ? $DvtDiagramDefaults$$.$GetChildNodePane$().$addChild$($DvtDiagramEventManager$$) : this.$_nodesPane$.$addChild$($DvtDiagramEventManager$$), this.$_nodes$[$nodeId$$95$$] = $DvtDiagramEventManager$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_prepareNodeStyle$ = function $$dvt$$6$$$$Diagram$$$$_prepareNodeStyle$$($DvtDiagramDefaults$$, $attribute$$2$$) {
    !$DvtDiagramDefaults$$ || null == $DvtDiagramDefaults$$[$attribute$$2$$] || $DvtDiagramDefaults$$[$attribute$$2$$] instanceof Object || ($DvtDiagramDefaults$$[$attribute$$2$$] = $dvt$$6$$.$CSSStyle$.$cssStringToObject$($DvtDiagramDefaults$$[$attribute$$2$$]));
  };
  $dvt$$6$$.$Diagram$.prototype.$setNodeDisclosed$ = function $$dvt$$6$$$$Diagram$$$$setNodeDisclosed$$($DvtDiagramDefaults$$, $disclosed$$) {
    var $DvtDiagramDataAnimationHandler$$ = -1;
    this.$DisclosedNodes$ && ($DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$ArrayUtils$.$getIndex$(this.$DisclosedNodes$, $DvtDiagramDefaults$$));
    (!$disclosed$$ && -1 < $DvtDiagramDataAnimationHandler$$ || $disclosed$$ && 0 > $DvtDiagramDataAnimationHandler$$) && this.dispatchEvent(new $dvt$$6$$.$EventFactory$.$newEvent$($disclosed$$ ? "beforeExpand" : "beforeCollapse", $DvtDiagramDefaults$$));
  };
  $dvt$$6$$.$Diagram$.prototype.expand = function $$dvt$$6$$$$Diagram$$$expand$($DvtDiagramDefaults$$) {
    this.$DisclosedNodes$ || (this.$DisclosedNodes$ = []);
    0 > $dvt$$6$$.$ArrayUtils$.$getIndex$(this.$DisclosedNodes$, $DvtDiagramDefaults$$) && (this.$DisclosedNodes$.push($DvtDiagramDefaults$$), this.$render$(this.$getOptions$(), this.$Width$, this.$Height$), this.dispatchEvent(new $dvt$$6$$.$EventFactory$.$newEvent$("expand", $DvtDiagramDefaults$$)));
  };
  $dvt$$6$$.$Diagram$.prototype.collapse = function $$dvt$$6$$$$Diagram$$$collapse$($DvtDiagramDefaults$$) {
    var $index$$142$$ = -1;
    this.$DisclosedNodes$ && ($index$$142$$ = $dvt$$6$$.$ArrayUtils$.$getIndex$(this.$DisclosedNodes$, $DvtDiagramDefaults$$));
    -1 < $index$$142$$ && (this.$DisclosedNodes$.splice($index$$142$$, 1), this.$render$(this.$getOptions$(), this.$Width$, this.$Height$), this.dispatchEvent(new $dvt$$6$$.$EventFactory$.$newEvent$("collapse", $DvtDiagramDefaults$$)));
  };
  $dvt$$6$$.$Diagram$.prototype.$_addChildLayoutContext$ = function $$dvt$$6$$$$Diagram$$$$_addChildLayoutContext$$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    if ($dvt$$6$$.$isDisclosed$()) {
      $dvt$$6$$ = $dvt$$6$$.$_childNodeIds$;
      for (var $DvtDiagramCategoryRolloverHandler$$ = [], $DvtDiagramEventManager$$ = 0;$DvtDiagramEventManager$$ < $dvt$$6$$.length;$DvtDiagramEventManager$$++) {
        var $childNode$$9$$ = this.$getNodeById$($dvt$$6$$[$DvtDiagramEventManager$$]);
        if ($childNode$$9$$.$_bVisible$) {
          $DvtDiagramKeyboardHandler$$[$childNode$$9$$.getId()] = !0;
          var $lcChildNode$$1$$ = this.$CreateLayoutContextNode$($childNode$$9$$, null, this.$_bRendered$ ? !1 : !0, $DvtDiagramDataAnimationHandler$$);
          $DvtDiagramDataAnimationHandler$$.$addNodeToMap$($lcChildNode$$1$$);
          $lcChildNode$$1$$.$setParentNode$($DvtDiagramDefaults$$);
          $DvtDiagramCategoryRolloverHandler$$.push($lcChildNode$$1$$);
          this.$_addChildLayoutContext$($childNode$$9$$, $lcChildNode$$1$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$);
        }
      }
      $DvtDiagramDefaults$$.$setChildNodes$($DvtDiagramCategoryRolloverHandler$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$_isNodeDisclosed$ = function $$dvt$$6$$$$Diagram$$$$_isNodeDisclosed$$($DvtDiagramDefaults$$) {
    var $disclosedNodes$$1$$ = this.$DisclosedNodes$ ? this.$DisclosedNodes$ : this.$getOptions$().expanded;
    return $disclosedNodes$$1$$ && -1 < $dvt$$6$$.$ArrayUtils$.$getIndex$($disclosedNodes$$1$$, $DvtDiagramDefaults$$) || $disclosedNodes$$1$$ && -1 < $dvt$$6$$.$ArrayUtils$.$getIndex$($disclosedNodes$$1$$, "all");
  };
  $dvt$$6$$.$Diagram$.prototype.$_isLinkPromoted$ = function $$dvt$$6$$$$Diagram$$$$_isLinkPromoted$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$getNodeById$($dvt$$6$$.startNode), $DvtDiagramDataAnimationHandler$$ = this.$getNodeById$($dvt$$6$$.endNode);
    if ($DvtDiagramDefaults$$ && $DvtDiagramDataAnimationHandler$$ || !this.$_collapsedNodes$) {
      return !1;
    }
    if ("none" === this.$getOptions$().promotedLinkBehavior) {
      return !0;
    }
    $DvtDiagramDefaults$$ = $DvtDiagramDefaults$$ ? $DvtDiagramDefaults$$.getId() : this.$_findFirstVisibleAncestor$($dvt$$6$$.startNode);
    $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDataAnimationHandler$$ ? $DvtDiagramDataAnimationHandler$$.getId() : this.$_findFirstVisibleAncestor$($dvt$$6$$.endNode);
    if (!$DvtDiagramDefaults$$ || !$DvtDiagramDataAnimationHandler$$ || $DvtDiagramDefaults$$ === $DvtDiagramDataAnimationHandler$$) {
      return !1;
    }
    var $DvtDiagramKeyboardHandler$$ = $DvtDiagramLink$$.$GetPromotedLinkId$($DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$);
    this.$_promotedLinksMap$ || (this.$_promotedLinksMap$ = {});
    this.$_promotedLinksMap$[$DvtDiagramKeyboardHandler$$] ? this.$_promotedLinksMap$[$DvtDiagramKeyboardHandler$$]._links.push($dvt$$6$$) : this.$_promotedLinksMap$[$DvtDiagramKeyboardHandler$$] = {id:$DvtDiagramKeyboardHandler$$, startNode:$DvtDiagramDefaults$$, endNode:$DvtDiagramDataAnimationHandler$$, _links:[$dvt$$6$$]};
    return !0;
  };
  $dvt$$6$$.$Diagram$.prototype.$_addToCollapsedArray$ = function $$dvt$$6$$$$Diagram$$$$_addToCollapsedArray$$($dvt$$6$$) {
    this.$_collapsedNodes$ || (this.$_collapsedNodes$ = []);
    this.$_collapsedNodes$.push($dvt$$6$$);
  };
  $dvt$$6$$.$Diagram$.prototype.$_findFirstVisibleAncestor$ = function $$dvt$$6$$$$Diagram$$$$_findFirstVisibleAncestor$$($dvt$$6$$) {
    function $DvtDiagramDefaults$$($dvt$$6$$, $childId$$12$$) {
      if ($dvt$$6$$) {
        for (var $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $dvt$$6$$.length;$DvtDiagramDataAnimationHandler$$++) {
          if ($dvt$$6$$[$DvtDiagramDataAnimationHandler$$].id === $childId$$12$$ || $DvtDiagramDefaults$$($dvt$$6$$[$DvtDiagramDataAnimationHandler$$].nodes, $childId$$12$$)) {
            return !0;
          }
        }
      }
      return !1;
    }
    for (var $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < this.$_collapsedNodes$.length;$DvtDiagramDataAnimationHandler$$++) {
      var $DvtDiagramKeyboardHandler$$ = this.$_collapsedNodes$[$DvtDiagramDataAnimationHandler$$];
      if ($DvtDiagramDefaults$$($DvtDiagramKeyboardHandler$$.getData().nodes, $dvt$$6$$)) {
        return $DvtDiagramKeyboardHandler$$.getId();
      }
    }
    return null;
  };
  $dvt$$6$$.$Diagram$.prototype.$_updateKeyboardFocusEffect$ = function $$dvt$$6$$$$Diagram$$$$_updateKeyboardFocusEffect$$() {
    var $dvt$$6$$ = this.$getEventManager$().$getFocus$(), $DvtDiagramDefaults$$ = !1;
    if ($dvt$$6$$) {
      var $DvtDiagramDataAnimationHandler$$;
      $dvt$$6$$ instanceof $DvtDiagramNode$$ ? $DvtDiagramDataAnimationHandler$$ = this.$getNodeById$($dvt$$6$$.getId()) : $dvt$$6$$ instanceof $DvtDiagramLink$$ && ($DvtDiagramDataAnimationHandler$$ = this.$getLinkById$($dvt$$6$$.getId()));
      $DvtDiagramDefaults$$ = $dvt$$6$$.$isShowingKeyboardFocusEffect$();
      $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDefaults$$ && $DvtDiagramDataAnimationHandler$$.$showKeyboardFocusEffect$();
      this.$getEventManager$().$setFocus$($DvtDiagramDataAnimationHandler$$);
    }
  };
  $dvt$$6$$.$Diagram$.prototype.$clearDisclosedState$ = function $$dvt$$6$$$$Diagram$$$$clearDisclosedState$$() {
    this.$DisclosedNodes$ = null;
  };
  $dvt$$6$$.$Bundle$.$addDefaultStrings$($dvt$$6$$.$Bundle$.$DIAGRAM_PREFIX$, {PROMOTED_LINK:"{0} link", PROMOTED_LINKS:"{0} links", PROMOTED_LINK_ARIA_DESC:"Indirect"});
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramCategoryRolloverHandler$$, $dvt$$6$$.$CategoryRolloverHandler$, "DvtDiagramCategoryRolloverHandler");
  $DvtDiagramCategoryRolloverHandler$$.$_HOVER_DELAY$ = 100;
  $DvtDiagramCategoryRolloverHandler$$.prototype.$GetRolloverCallback$ = function $$DvtDiagramCategoryRolloverHandler$$$$$GetRolloverCallback$$($DvtDiagramDefaults$$) {
    return $dvt$$6$$.$Obj$.$createCallback$(this, function() {
      this.$SetHighlightMode$(!0);
      this.$_diagram$.$processEvent$($DvtDiagramDefaults$$);
    });
  };
  $DvtDiagramCategoryRolloverHandler$$.prototype.$GetRolloutCallback$ = function $$DvtDiagramCategoryRolloverHandler$$$$$GetRolloutCallback$$($DvtDiagramDefaults$$) {
    return $dvt$$6$$.$Obj$.$createCallback$(this, function() {
      this.$SetHighlightModeTimeout$();
      this.$_diagram$.$processEvent$($DvtDiagramDefaults$$);
    });
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramDefaults$$, $dvt$$6$$.$BaseComponentDefaults$, "DvtDiagramDefaults");
  $DvtDiagramDefaults$$.$VERSION_1$ = {skin:$dvt$$6$$.$CSSStyle$.$SKIN_ALTA$, emptyText:null, selectionMode:"none", animationOnDataChange:"none", animationOnDisplay:"none", maxZoom:1, highlightMatch:"all", nodeHighlightMode:"node", linkHighlightMode:"link", panning:"none", touchResponse:"auto", zooming:"none", promotedLinkBehavior:"lazy", _statusMessageStyle:new $dvt$$6$$.$CSSStyle$($dvt$$6$$.$BaseComponentDefaults$.$FONT_FAMILY_ALTA$), dnd:{drag:{nodes:{}}, drop:{background:{}, nodes:{}, links:{}}}, 
  styleDefaults:{animationDuration:500, hoverBehaviorDelay:200, _highlightAlpha:.1, nodeDefaults:{_containerStyle:new $dvt$$6$$.$CSSStyle$("border-color:#abb3ba;background-color:#f9f9f9;border-width:.5px;border-radius:1px;padding-top:20px;padding-left:20px;padding-bottom:20px;padding-right:20px;"), labelStyle:$dvt$$6$$.$BaseComponentDefaults$.$FONT_FAMILY_ALTA_BOLD_12$ + "color:#383A47", hoverInnerColor:"rgb(255,255,255)", hoverOuterColor:"rgba(0,0,0, .3)", selectionColor:"rgb(0,0,0)", icon:{width:10, 
  height:10, fillPattern:"none", shape:"circle"}}, linkDefaults:{startConnectorType:"none", endConnectorType:"none", width:1, _style:{_type:"solid"}, hoverInnerColor:"rgb(255,255,255)", hoverOuterColor:"rgba(0,0,0, .3)", selectionColor:"rgb(0,0,0)", labelStyle:$dvt$$6$$.$BaseComponentDefaults$.$FONT_FAMILY_ALTA_BOLD_12$ + "color:#383A47", _hitDetectionOffset:4}, promotedLink:{startConnectorType:"none", endConnectorType:"none", width:1, _style:{_type:"dot", strokeDasharray:"2,3"}, color:"#778999", 
  hoverInnerColor:"rgb(255,255,255)", hoverOuterColor:"rgba(0,0,0, .3)", selectionColor:"rgb(0,0,0)", _hitDetectionOffset:4}}};
  $DvtDiagramDefaults$$.$SKIN_ALTA$ = {};
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramDataAnimationHandler$$, $dvt$$6$$.$DataAnimationHandler$, "DvtDiagramDataAnimationHandler");
  $DvtDiagramDataAnimationHandler$$.$DELETE$ = 0;
  $DvtDiagramDataAnimationHandler$$.$UPDATE$ = 1;
  $DvtDiagramDataAnimationHandler$$.$INSERT$ = 2;
  $DvtDiagramDataAnimationHandler$$.prototype.Init = function $$DvtDiagramDataAnimationHandler$$$$Init$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$) {
    $DvtDiagramDataAnimationHandler$$.$superclass$.Init.call(this, $dvt$$6$$, $DvtDiagramDefaults$$);
    this.$_oldDiagram$ = $DvtDiagramKeyboardHandler$$;
    this.$_newDiagram$ = $DvtDiagramCategoryRolloverHandler$$;
  };
  $DvtDiagramDataAnimationHandler$$.prototype.$getAnimationDuration$ = function $$DvtDiagramDataAnimationHandler$$$$$getAnimationDuration$$() {
    return $dvt$$6$$.$StyleUtils$.$getTimeMilliseconds$(this.$_oldDiagram$.$getOptions$().styleDefaults.animationDuration) / 1E3;
  };
  $DvtDiagramDataAnimationHandler$$.prototype.$constructAnimation$ = function $$DvtDiagramDataAnimationHandler$$$$$constructAnimation$$($DvtDiagramDefaults$$, $newList$$) {
    var $DvtDiagramKeyboardHandler$$ = !1;
    $newList$$ && 0 < $newList$$.length && ($DvtDiagramKeyboardHandler$$ = $newList$$[0] instanceof $DvtDiagramLink$$);
    if ($DvtDiagramKeyboardHandler$$ && !this.$getCtx$().$isOffscreen$()) {
      var $DvtDiagramKeyboardHandler$$ = $DvtDiagramDataAnimationHandler$$.$_expandLinksArrayToMap$($DvtDiagramDefaults$$), $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramDataAnimationHandler$$.$_expandLinksArrayToMap$($newList$$), $DvtDiagramEventManager$$, $newLink$$4$$, $skip$$1$$ = {}, $id$$112$$;
      for ($id$$112$$ in $DvtDiagramKeyboardHandler$$) {
        if ($DvtDiagramEventManager$$ = $DvtDiagramKeyboardHandler$$[$id$$112$$], $newLink$$4$$ = $DvtDiagramCategoryRolloverHandler$$[$id$$112$$]) {
          if (!$DvtDiagramEventManager$$.$_bPromoted$ && !$newLink$$4$$.$_bPromoted$ || $DvtDiagramEventManager$$.$_bPromoted$ && $newLink$$4$$.$_bPromoted$ && $DvtDiagramEventManager$$.getId() == $newLink$$4$$.getId()) {
            $newLink$$4$$.$animateUpdate$(this, $DvtDiagramEventManager$$);
          } else {
            var $oldLinksCount$$ = $DvtDiagramEventManager$$.$_bPromoted$ ? $DvtDiagramEventManager$$.getData()._links.length : 1, $newLinksCount$$ = $newLink$$4$$.$_bPromoted$ ? $newLink$$4$$.getData()._links.length : 1;
            $oldLinksCount$$ > $newLinksCount$$ && !$skip$$1$$[$DvtDiagramEventManager$$.getId()] ? this.$_constructExpandCollapseAnimation$($DvtDiagramEventManager$$, $DvtDiagramCategoryRolloverHandler$$, $skip$$1$$, !0) : $oldLinksCount$$ < $newLinksCount$$ && !$skip$$1$$[$newLink$$4$$.getId()] && this.$_constructExpandCollapseAnimation$($newLink$$4$$, $DvtDiagramKeyboardHandler$$, $skip$$1$$, !1);
          }
        } else {
          -1 == $dvt$$6$$.$ArrayUtils$.$getIndex$(this.$_newDiagram$.$GetAllLinks$(), $DvtDiagramEventManager$$.getId()) && $DvtDiagramEventManager$$.$animateDelete$(this);
        }
      }
      for ($id$$112$$ in $DvtDiagramCategoryRolloverHandler$$) {
        $DvtDiagramEventManager$$ = $DvtDiagramKeyboardHandler$$[$id$$112$$], $newLink$$4$$ = $DvtDiagramCategoryRolloverHandler$$[$id$$112$$], $DvtDiagramEventManager$$ || -1 != $dvt$$6$$.$ArrayUtils$.$getIndex$(this.$_oldDiagram$.$getLinkIds$(), $newLink$$4$$.getId()) || $newLink$$4$$.$animateInsert$(this);
      }
    } else {
      $DvtDiagramDataAnimationHandler$$.$superclass$.$constructAnimation$.call(this, $DvtDiagramDefaults$$, $newList$$);
    }
  };
  $DvtDiagramDataAnimationHandler$$.prototype.$_constructExpandCollapseAnimation$ = function $$DvtDiagramDataAnimationHandler$$$$$_constructExpandCollapseAnimation$$($DvtDiagramDefaults$$, $testLinksMap$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    for (var $DvtDiagramCategoryRolloverHandler$$ = [], $DvtDiagramEventManager$$ = $DvtDiagramDefaults$$.getData()._links, $li$$2$$ = 0;$li$$2$$ < $DvtDiagramEventManager$$.length;$li$$2$$++) {
      var $testLink$$ = $testLinksMap$$[$DvtDiagramEventManager$$[$li$$2$$].id];
      $testLink$$ && -1 === $dvt$$6$$.$ArrayUtils$.$getIndex$($DvtDiagramCategoryRolloverHandler$$, $testLink$$) && $DvtDiagramCategoryRolloverHandler$$.push($testLink$$);
    }
    0 < $DvtDiagramCategoryRolloverHandler$$.length && ($DvtDiagramKeyboardHandler$$ ? $DvtDiagramDefaults$$.$animateExpand$(this, $DvtDiagramCategoryRolloverHandler$$) : $DvtDiagramDefaults$$.$animateCollapse$(this, $DvtDiagramCategoryRolloverHandler$$), $DvtDiagramDataAnimationHandler$$[$DvtDiagramDefaults$$.getId()] = !0);
  };
  $DvtDiagramDataAnimationHandler$$.$_expandLinksArrayToMap$ = function $$DvtDiagramDataAnimationHandler$$$$_expandLinksArrayToMap$$($dvt$$6$$) {
    for (var $DvtDiagramDefaults$$ = {}, $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $dvt$$6$$.length;$DvtDiagramDataAnimationHandler$$++) {
      var $DvtDiagramKeyboardHandler$$ = $dvt$$6$$[$DvtDiagramDataAnimationHandler$$];
      if ($DvtDiagramKeyboardHandler$$.$_bPromoted$) {
        for (var $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$.getData()._links, $DvtDiagramEventManager$$ = 0;$DvtDiagramEventManager$$ < $DvtDiagramCategoryRolloverHandler$$.length;$DvtDiagramEventManager$$++) {
          $DvtDiagramDefaults$$[$DvtDiagramCategoryRolloverHandler$$[$DvtDiagramEventManager$$].id] = $DvtDiagramKeyboardHandler$$;
        }
      } else {
        $DvtDiagramDefaults$$[$DvtDiagramKeyboardHandler$$.getId()] = $DvtDiagramKeyboardHandler$$;
      }
    }
    return $DvtDiagramDefaults$$;
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramEventManager$$, $dvt$$6$$.$EventManager$, "DvtDiagramEventManager");
  $DvtDiagramEventManager$$.prototype.$ProcessRolloverEvent$ = function $$DvtDiagramEventManager$$$$$ProcessRolloverEvent$$($DvtDiagramDefaults$$, $categories$$10_hoverBehaviorDelay$$1_obj$$141$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramDefaults$$ = this.$_diagram$.$getOptions$();
    "dim" == $DvtDiagramDefaults$$.hoverBehavior && ($categories$$10_hoverBehaviorDelay$$1_obj$$141$$ = $categories$$10_hoverBehaviorDelay$$1_obj$$141$$.$getCategories$ ? $categories$$10_hoverBehaviorDelay$$1_obj$$141$$.$getCategories$() : [], $DvtDiagramDefaults$$.highlightedCategories = $DvtDiagramDataAnimationHandler$$ ? $categories$$10_hoverBehaviorDelay$$1_obj$$141$$.slice() : null, $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$EventFactory$.$newCategoryHighlightEvent$($DvtDiagramDefaults$$.highlightedCategories, 
    $DvtDiagramDataAnimationHandler$$), $categories$$10_hoverBehaviorDelay$$1_obj$$141$$ = $dvt$$6$$.$StyleUtils$.$getTimeMilliseconds$($DvtDiagramDefaults$$.styleDefaults.hoverBehaviorDelay), this.$RolloverHandler$.$processEvent$($DvtDiagramDataAnimationHandler$$, this.$_diagram$.$GetAllNodeObjects$(), $categories$$10_hoverBehaviorDelay$$1_obj$$141$$, "any" == $DvtDiagramDefaults$$.highlightMatch));
  };
  $DvtDiagramEventManager$$.prototype.$CreateCategoryRolloverHandler$ = function $$DvtDiagramEventManager$$$$$CreateCategoryRolloverHandler$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    return new $DvtDiagramCategoryRolloverHandler$$($dvt$$6$$, $DvtDiagramDefaults$$);
  };
  $DvtDiagramEventManager$$.prototype.$ProcessKeyboardEvent$ = function $$DvtDiagramEventManager$$$$$ProcessKeyboardEvent$$($DvtDiagramDefaults$$) {
    var $eventConsumed$$1$$ = !0, $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDefaults$$.keyCode, $DvtDiagramKeyboardHandler$$ = this.$getFocus$(), $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$ instanceof $DvtDiagramNode$$ ? $DvtDiagramKeyboardHandler$$.$_customNodeContent$ : null;
    $DvtDiagramDataAnimationHandler$$ != $dvt$$6$$.KeyboardEvent.$TAB$ && this.$_bPassOnEvent$ ? ($DvtDiagramCategoryRolloverHandler$$.$fireKeyboardListener$($DvtDiagramDefaults$$), $DvtDiagramDefaults$$.preventDefault()) : $DvtDiagramDataAnimationHandler$$ == $dvt$$6$$.KeyboardEvent.$TAB$ && $DvtDiagramCategoryRolloverHandler$$ instanceof $dvt$$6$$.$BaseComponent$ ? !$DvtDiagramDefaults$$.shiftKey && $DvtDiagramKeyboardHandler$$.$isShowingKeyboardFocusEffect$() ? ($DvtDiagramKeyboardHandler$$.$hideKeyboardFocusEffect$(), 
    $DvtDiagramCategoryRolloverHandler$$.$fireKeyboardListener$($DvtDiagramDefaults$$), $DvtDiagramDefaults$$.preventDefault(), this.$_bPassOnEvent$ = !0) : ($DvtDiagramDefaults$$.shiftKey && this.$_bPassOnEvent$ ? (this.$ShowFocusEffect$($DvtDiagramDefaults$$, $DvtDiagramKeyboardHandler$$), $DvtDiagramDefaults$$.preventDefault()) : (this.$_bPassOnEvent$ && $DvtDiagramKeyboardHandler$$.$showKeyboardFocusEffect$(), $eventConsumed$$1$$ = $DvtDiagramEventManager$$.$superclass$.$ProcessKeyboardEvent$.call(this, 
    $DvtDiagramDefaults$$)), this.$_bPassOnEvent$ = !1) : $DvtDiagramDataAnimationHandler$$ == $dvt$$6$$.KeyboardEvent.$SPACE$ && $DvtDiagramDefaults$$.ctrlKey && $DvtDiagramDefaults$$.shiftKey ? $DvtDiagramKeyboardHandler$$ && $DvtDiagramKeyboardHandler$$.$HandleKeyboardEvent$ && $DvtDiagramKeyboardHandler$$.$HandleKeyboardEvent$($DvtDiagramDefaults$$) : $eventConsumed$$1$$ = $DvtDiagramEventManager$$.$superclass$.$ProcessKeyboardEvent$.call(this, $DvtDiagramDefaults$$);
    return $eventConsumed$$1$$;
  };
  $DvtDiagramEventManager$$.prototype.$GetTouchResponse$ = function $$DvtDiagramEventManager$$$$$GetTouchResponse$$() {
    var $DvtDiagramDefaults$$ = this.$_diagram$.$getOptions$();
    return "none" !== $DvtDiagramDefaults$$.panning || "none" !== $DvtDiagramDefaults$$.zooming ? $dvt$$6$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_HOLD$ : $DvtDiagramDefaults$$.touchResponse === $dvt$$6$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_START$ ? $dvt$$6$$.$EventManager$.$TOUCH_RESPONSE_TOUCH_START$ : $dvt$$6$$.$EventManager$.$TOUCH_RESPONSE_AUTO$;
  };
  $DvtDiagramEventManager$$.prototype.$HandleTouchClickInternal$ = function $$DvtDiagramEventManager$$$$$HandleTouchClickInternal$$($DvtDiagramDefaults$$) {
    return this.$GetEventInfo$($DvtDiagramDefaults$$, $dvt$$6$$.$PanZoomCanvasEventManager$.$EVENT_INFO_PANNED_KEY$);
  };
  $DvtDiagramEventManager$$.prototype.$StoreInfoByEventType$ = function $$DvtDiagramEventManager$$$$$StoreInfoByEventType$$($DvtDiagramDefaults$$) {
    return $DvtDiagramDefaults$$ == $dvt$$6$$.$PanZoomCanvasEventManager$.$EVENT_INFO_PANNED_KEY$ ? !1 : $DvtDiagramEventManager$$.$superclass$.$StoreInfoByEventType$.call(this, $DvtDiagramDefaults$$);
  };
  $DvtDiagramEventManager$$.prototype.$getComponent$ = function $$DvtDiagramEventManager$$$$$getComponent$$() {
    return this.$_diagram$;
  };
  $DvtDiagramEventManager$$.prototype.$isDndSupported$ = function $$DvtDiagramEventManager$$$$$isDndSupported$$() {
    return !0;
  };
  $DvtDiagramEventManager$$.prototype.$GetDragSourceType$ = function $$DvtDiagramEventManager$$$$$GetDragSourceType$$() {
    return this.$DragSource$.$_dragObj$ instanceof $DvtDiagramNode$$ ? "nodes" : null;
  };
  $DvtDiagramEventManager$$.prototype.$GetDragDataContexts$ = function $$DvtDiagramEventManager$$$$$GetDragDataContexts$$() {
    var $dvt$$6$$ = this.$DragSource$.$_dragObj$;
    if (this.$_diagram$.$isSelectionSupported$() && 1 < this.$_diagram$.$getSelectionHandler$().$_selection$.length) {
      for (var $dvt$$6$$ = this.$_diagram$.$getSelectionHandler$().getSelection(), $DvtDiagramDefaults$$ = [], $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $dvt$$6$$.length;$DvtDiagramDataAnimationHandler$$++) {
        $dvt$$6$$[$DvtDiagramDataAnimationHandler$$] instanceof $DvtDiagramNode$$ && $DvtDiagramDefaults$$.push($dvt$$6$$[$DvtDiagramDataAnimationHandler$$].$getDataContext$());
      }
      return $DvtDiagramDefaults$$;
    }
    return $dvt$$6$$ instanceof $DvtDiagramNode$$ ? [$dvt$$6$$.$getDataContext$()] : [];
  };
  $DvtDiagramEventManager$$.prototype.$GetDropOffset$ = function $$DvtDiagramEventManager$$$$$GetDropOffset$$($DvtDiagramDefaults$$) {
    var $bounds$$43_obj$$144$$ = this.$DragSource$.$_dragObj$;
    return $bounds$$43_obj$$144$$ instanceof $DvtDiagramNode$$ && ($bounds$$43_obj$$144$$ = $bounds$$43_obj$$144$$.$getDimensions$(this.$_context$.$_stage$)) ? ($DvtDiagramDefaults$$ = this.$_context$.$pageToStageCoords$($DvtDiagramDefaults$$.pageX, $DvtDiagramDefaults$$.pageY), new $dvt$$6$$.$Point$($bounds$$43_obj$$144$$.x - $DvtDiagramDefaults$$.x, $bounds$$43_obj$$144$$.y - $DvtDiagramDefaults$$.y)) : null;
  };
  $DvtDiagramEventManager$$.prototype.$OnDndDragEnd$ = function $$DvtDiagramEventManager$$$$$OnDndDragEnd$$($dvt$$6$$) {
    $DvtDiagramEventManager$$.$superclass$.$OnDndDragEnd$.call(this, $dvt$$6$$);
    this.$_diagram$.$_panZoomCanvas$.$panZoomEnd$();
    this.$_setPanningEnabled$(!0);
  };
  $DvtDiagramEventManager$$.prototype.$_setPanningEnabled$ = function $$DvtDiagramEventManager$$$$$_setPanningEnabled$$($dvt$$6$$) {
    this.$_diagram$.$_panningEnabled$ && this.$_diagram$.$_panZoomCanvas$.$setPanningEnabled$($dvt$$6$$);
  };
  $DvtDiagramEventManager$$.prototype.$IsDragSupported$ = function $$DvtDiagramEventManager$$$$$IsDragSupported$$() {
    if (!this.$_isDragSupported$) {
      var $dvt$$6$$ = this.$_diagram$.$getOptions$();
      this.$_isDragSupported$ = this.$isDndSupported$() && $dvt$$6$$.dnd.drag.nodes.dataTypes;
    }
    return this.$_isDragSupported$;
  };
  $DvtDiagramEventManager$$.prototype.$OnMouseDown$ = function $$DvtDiagramEventManager$$$$$OnMouseDown$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$6$$));
    this.$IsDragSupported$() && $DvtDiagramDefaults$$ instanceof $DvtDiagramNode$$ && this.$_setPanningEnabled$(!1);
    $DvtDiagramEventManager$$.$superclass$.$OnMouseDown$.call(this, $dvt$$6$$);
  };
  $DvtDiagramEventManager$$.prototype.$OnMouseUp$ = function $$DvtDiagramEventManager$$$$$OnMouseUp$$($dvt$$6$$) {
    $DvtDiagramEventManager$$.$superclass$.$OnMouseUp$.call(this, $dvt$$6$$);
    this.$_setPanningEnabled$(!0);
  };
  $DvtDiagramEventManager$$.prototype.$HandleImmediateTouchStartInternal$ = function $$DvtDiagramEventManager$$$$$HandleImmediateTouchStartInternal$$($dvt$$6$$) {
    this.$IsDragSupported$() && 1 == $dvt$$6$$.targetTouches.length && this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$6$$)) instanceof $DvtDiagramNode$$ && this.$_setPanningEnabled$(!1);
  };
  $DvtDiagramEventManager$$.prototype.$HandleImmediateTouchEndInternal$ = function $$DvtDiagramEventManager$$$$$HandleImmediateTouchEndInternal$$() {
    this.$IsDragSupported$() && this.$_setPanningEnabled$(!0);
  };
  $DvtDiagramEventManager$$.prototype.$GetDropTargetType$ = function $$DvtDiagramEventManager$$$$$GetDropTargetType$$($dvt$$6$$) {
    $dvt$$6$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($dvt$$6$$));
    this.$_diagram$.$_cache$.$putToCache$("dropTarget", $dvt$$6$$);
    return null === $dvt$$6$$ ? "background" : $dvt$$6$$ instanceof $DvtDiagramNode$$ ? "nodes" : $dvt$$6$$ instanceof $DvtDiagramLink$$ ? "links" : null;
  };
  $DvtDiagramEventManager$$.prototype.$GetDropEventPayload$ = function $$DvtDiagramEventManager$$$$$GetDropEventPayload$$($DvtDiagramDefaults$$) {
    var $dataTransfer$$1_relPos$$44$$ = $DvtDiagramDefaults$$.$getNativeEvent$().dataTransfer, $DvtDiagramDataAnimationHandler$$ = Number($dataTransfer$$1_relPos$$44$$.getData($dvt$$6$$.$EventManager$.$DROP_OFFSET_X_DATA_TYPE$)) || 0, $DvtDiagramKeyboardHandler$$ = Number($dataTransfer$$1_relPos$$44$$.getData($dvt$$6$$.$EventManager$.$DROP_OFFSET_Y_DATA_TYPE$)) || 0, $dataTransfer$$1_relPos$$44$$ = this.$_diagram$.$_panZoomCanvas$.$_contentPane$.$stageToLocal$(this.$getCtx$().$pageToStageCoords$($DvtDiagramDefaults$$.pageX, 
    $DvtDiagramDefaults$$.pageY)), $DvtDiagramCategoryRolloverHandler$$ = this.$_diagram$.$getLayoutOffset$(), $DvtDiagramDataAnimationHandler$$ = {x:$dataTransfer$$1_relPos$$44$$.x - $DvtDiagramCategoryRolloverHandler$$.x + $DvtDiagramDataAnimationHandler$$, y:$dataTransfer$$1_relPos$$44$$.y - $DvtDiagramCategoryRolloverHandler$$.y + $DvtDiagramKeyboardHandler$$};
    $DvtDiagramDefaults$$ = this.$GetLogicalObject$(this.$GetCurrentTargetForEvent$($DvtDiagramDefaults$$));
    $DvtDiagramDefaults$$ instanceof $DvtDiagramNode$$ ? ($DvtDiagramDataAnimationHandler$$.nodeContext = $DvtDiagramDefaults$$.$getDataContext$(), $DvtDiagramDefaults$$ = ($DvtDiagramDefaults$$ = $DvtDiagramDefaults$$.$getDimensions$(this.$_context$.$_stage$)) ? this.$_diagram$.$_panZoomCanvas$.$_contentPane$.$stageToLocal$({x:$DvtDiagramDefaults$$.x, y:$DvtDiagramDefaults$$.y}) : null, $DvtDiagramDataAnimationHandler$$.nodeX = $DvtDiagramDefaults$$ ? $dataTransfer$$1_relPos$$44$$.x - $DvtDiagramDefaults$$.x : 
    null, $DvtDiagramDataAnimationHandler$$.nodeY = $DvtDiagramDefaults$$ ? $dataTransfer$$1_relPos$$44$$.y - $DvtDiagramDefaults$$.y : null) : $DvtDiagramDefaults$$ instanceof $DvtDiagramLink$$ && ($DvtDiagramDataAnimationHandler$$.linkContext = $DvtDiagramDefaults$$.$getDataContext$());
    return $DvtDiagramDataAnimationHandler$$;
  };
  $DvtDiagramEventManager$$.prototype.$ShowDropEffect$ = function $$DvtDiagramEventManager$$$$$ShowDropEffect$$($dvt$$6$$) {
    $dvt$$6$$ = this.$GetDropTargetType$($dvt$$6$$);
    "background" === $dvt$$6$$ ? this.$_diagram$.$_panZoomCanvas$.$_backgroundPane$.$setClassName$("oj-active-drop") : ("nodes" === $dvt$$6$$ || "links" === $dvt$$6$$) && ($dvt$$6$$ = this.$_diagram$.$_cache$.$getFromCache$("dropTarget")) && $dvt$$6$$.$ShowDropEffect$ && $dvt$$6$$.$ShowDropEffect$();
  };
  $DvtDiagramEventManager$$.prototype.$ShowRejectedDropEffect$ = function $$DvtDiagramEventManager$$$$$ShowRejectedDropEffect$$($dvt$$6$$) {
    $dvt$$6$$ = this.$GetDropTargetType$($dvt$$6$$);
    "background" === $dvt$$6$$ ? this.$_diagram$.$_panZoomCanvas$.$_backgroundPane$.$setClassName$("oj-invalid-drop") : ("nodes" === $dvt$$6$$ || "links" === $dvt$$6$$) && ($dvt$$6$$ = this.$_diagram$.$_cache$.$getFromCache$("dropTarget")) && $dvt$$6$$.$ShowRejectedDropEffect$ && $dvt$$6$$.$ShowRejectedDropEffect$();
  };
  $DvtDiagramEventManager$$.prototype.$ClearDropEffect$ = function $$DvtDiagramEventManager$$$$$ClearDropEffect$$() {
    this.$_diagram$.$_panZoomCanvas$.$_backgroundPane$.$setClassName$(null);
    var $dvt$$6$$ = this.$_diagram$.$_cache$.$getFromCache$("dropTarget");
    $dvt$$6$$ && $dvt$$6$$.$ClearDropEffect$ && $dvt$$6$$.$ClearDropEffect$();
    this.$_diagram$.$_cache$.$putToCache$("dropTarget", null);
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramKeyboardHandler$$, $dvt$$6$$.$BaseDiagramKeyboardHandler$, "DvtDiagramKeyboardHandler");
  $DvtDiagramKeyboardHandler$$.prototype.$isNavigationEvent$ = function $$DvtDiagramKeyboardHandler$$$$$isNavigationEvent$$($DvtDiagramDefaults$$) {
    var $retVal$$1$$ = !1;
    switch($DvtDiagramDefaults$$.keyCode) {
      case $dvt$$6$$.KeyboardEvent.$OPEN_BRACKET$:
      ;
      case $dvt$$6$$.KeyboardEvent.$CLOSE_BRACKET$:
        $retVal$$1$$ = !0;
        break;
      case $dvt$$6$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$:
      ;
      case $dvt$$6$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$:
        $retVal$$1$$ = $DvtDiagramDefaults$$.altKey ? !0 : !1;
        break;
      default:
        $retVal$$1$$ = $DvtDiagramKeyboardHandler$$.$superclass$.$isNavigationEvent$.call(this, $DvtDiagramDefaults$$);
    }
    return $retVal$$1$$;
  };
  $DvtDiagramKeyboardHandler$$.prototype.$processKeyDown$ = function $$DvtDiagramKeyboardHandler$$$$$processKeyDown$$($DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$TAB$) {
      var $arNodes$$13_currentNavigable$$5$$ = this.$_eventManager$.$getFocus$();
      if ($arNodes$$13_currentNavigable$$5$$) {
        return $dvt$$6$$.$EventManager$.$consumeEvent$($DvtDiagramDefaults$$), $arNodes$$13_currentNavigable$$5$$;
      }
      $arNodes$$13_currentNavigable$$5$$ = this.$GetDiagram$().$GetRootNodeObjects$();
      if (0 < $arNodes$$13_currentNavigable$$5$$.length) {
        return $dvt$$6$$.$EventManager$.$consumeEvent$($DvtDiagramDefaults$$), this.$getDefaultNavigable$($arNodes$$13_currentNavigable$$5$$);
      }
    }
    return $DvtDiagramKeyboardHandler$$.$superclass$.$processKeyDown$.call(this, $DvtDiagramDefaults$$);
  };
  $DvtDiagramKeyboardHandler$$.prototype.$GetVisibleNode$ = function $$DvtDiagramKeyboardHandler$$$$$GetVisibleNode$$($dvt$$6$$) {
    return this.$GetDiagram$().$getNodeById$($dvt$$6$$);
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramLink$$, $dvt$$6$$.$BaseDiagramLink$, "DvtDiagramLink");
  $DvtDiagramLink$$.$CUSTOM_STYLE$ = "customStyle";
  $DvtDiagramLink$$.newInstance = function $$DvtDiagramLink$$$newInstance$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$) {
    return new $DvtDiagramLink$$($dvt$$6$$.$getCtx$(), $dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$);
  };
  $DvtDiagramLink$$.prototype.Init = function $$DvtDiagramLink$$$$Init$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$) {
    $DvtDiagramLink$$.$superclass$.Init.call(this, $dvt$$6$$, $DvtDiagramDataAnimationHandler$$.id, $DvtDiagramDefaults$$);
    this.$_data$ = $DvtDiagramDataAnimationHandler$$;
    this.$setPromoted$($DvtDiagramKeyboardHandler$$);
    this.$_diagram$.$isSelectionSupported$() && this.setCursor("pointer");
    this.$setGroupId$($DvtDiagramLink$$.$_getCommonAncestorId$(this, $DvtDiagramDefaults$$));
  };
  $DvtDiagramLink$$.prototype.getData = function $$DvtDiagramLink$$$$getData$() {
    return this.$_data$;
  };
  $DvtDiagramLink$$.prototype.getId = function $$DvtDiagramLink$$$$getId$() {
    return this.getData().id;
  };
  $DvtDiagramLink$$.prototype.$getActiveElementId$ = function $$DvtDiagramLink$$$$$getActiveElementId$$() {
    this.$_activeElementId$ || (this.$_activeElementId$ = this.getId() + Math.floor(1E9 * Math.random()));
    return this.$_activeElementId$;
  };
  $DvtDiagramLink$$.prototype.$getStartId$ = function $$DvtDiagramLink$$$$$getStartId$$() {
    return this.getData().startNode;
  };
  $DvtDiagramLink$$.prototype.$getEndId$ = function $$DvtDiagramLink$$$$$getEndId$$() {
    return this.getData().endNode;
  };
  $DvtDiagramLink$$.prototype.$getLabelBounds$ = function $$DvtDiagramLink$$$$$getLabelBounds$$() {
    var $dvt$$6$$ = null;
    this.$_labelObj$ && ($dvt$$6$$ = this.$_labelObj$.$getDimensions$());
    return $dvt$$6$$;
  };
  $DvtDiagramLink$$.prototype.$getLinkStyle$ = function $$DvtDiagramLink$$$$$getLinkStyle$$() {
    return this.getData().svgStyle || this.getData().style;
  };
  $DvtDiagramLink$$.prototype.$getLinkWidth$ = function $$DvtDiagramLink$$$$$getLinkWidth$$() {
    return this.getData().width;
  };
  $DvtDiagramLink$$.prototype.$getLinkColor$ = function $$DvtDiagramLink$$$$$getLinkColor$$() {
    return this.getData().color;
  };
  $DvtDiagramLink$$.prototype.$getStartConnectorType$ = function $$DvtDiagramLink$$$$$getStartConnectorType$$() {
    return this.getData().startConnectorType;
  };
  $DvtDiagramLink$$.prototype.$getEndConnectorType$ = function $$DvtDiagramLink$$$$$getEndConnectorType$$() {
    return this.getData().endConnectorType;
  };
  $DvtDiagramLink$$.prototype.$getStartConnectorOffset$ = function $$DvtDiagramLink$$$$$getStartConnectorOffset$$() {
    return this.$getStartConnectorType$() ? $dvt$$6$$.$DiagramLinkConnectorUtils$.$getStandardConnectorOffset$(this.$getStartConnectorType$(), this.$GetAppliedLinkWidth$(), this.$GetAppliedLinkWidth$()) : 0;
  };
  $DvtDiagramLink$$.prototype.$getEndConnectorOffset$ = function $$DvtDiagramLink$$$$$getEndConnectorOffset$$() {
    return this.$getEndConnectorType$() ? $dvt$$6$$.$DiagramLinkConnectorUtils$.$getStandardConnectorOffset$(this.$getEndConnectorType$(), this.$GetAppliedLinkWidth$(), this.$GetAppliedLinkWidth$()) : 0;
  };
  $DvtDiagramLink$$.prototype.$render$ = function $$DvtDiagramLink$$$$$render$$() {
    var $dvt$$6$$ = this.$GetDiagram$(), $DvtDiagramDefaults$$ = this.$getGroupId$(), $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$getNodeById$(this.$getStartId$()).$getGroupId$(), $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$getNodeById$(this.$getEndId$()).$getGroupId$();
    if ($DvtDiagramDefaults$$) {
      var $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$getNodeById$($DvtDiagramDefaults$$).$GetChildNodePane$();
      $DvtDiagramDefaults$$ == $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDefaults$$ == $DvtDiagramKeyboardHandler$$ ? $DvtDiagramCategoryRolloverHandler$$.$addChildAt$(this, 0) : $DvtDiagramCategoryRolloverHandler$$.$addChild$(this);
    } else {
      $DvtDiagramDataAnimationHandler$$ || $DvtDiagramKeyboardHandler$$ ? $dvt$$6$$.$_nodesPane$.$addChild$(this) : $dvt$$6$$.$_linksPane$.$addChild$(this);
    }
    $DvtDiagramLink$$.$_renderLinkLabels$($dvt$$6$$, this.getData(), this);
    this.$setAriaRole$("img");
    this.$UpdateAriaLabel$();
    this.$_diagram$.$getEventManager$().$associate$(this, this);
  };
  $DvtDiagramLink$$.prototype.$setPoints$ = function $$DvtDiagramLink$$$$$setPoints$$($dvt$$6$$) {
    !this.$_pathCmds$ && $dvt$$6$$ && $DvtDiagramLink$$.$_renderLinkShape$(this.$GetDiagram$(), this.getData(), this);
    $DvtDiagramLink$$.$superclass$.$setPoints$.call(this, $dvt$$6$$);
  };
  $DvtDiagramLink$$.$_renderLinkShape$ = function $$DvtDiagramLink$$$$_renderLinkShape$$($DvtDiagramDefaults$$, $className$$15_linkData$$19_strokeType$$5$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = $DvtDiagramDataAnimationHandler$$.$_pathCmds$;
    $DvtDiagramKeyboardHandler$$ || ($DvtDiagramKeyboardHandler$$ = ["M", 0, 0, "L", 0, 0]);
    var $DvtDiagramCategoryRolloverHandler$$ = $className$$15_linkData$$19_strokeType$$5$$.id, $DvtDiagramEventManager$$ = $className$$15_linkData$$19_strokeType$$5$$.color, $linkWidth$$11$$ = $className$$15_linkData$$19_strokeType$$5$$.width;
    $DvtDiagramDefaults$$ = $className$$15_linkData$$19_strokeType$$5$$.svgStyle || $className$$15_linkData$$19_strokeType$$5$$.style;
    $DvtDiagramDataAnimationHandler$$.$_hitDetectionUnderlay$ = $DvtDiagramDataAnimationHandler$$.$CreateUnderlay$("#000000", 0, $className$$15_linkData$$19_strokeType$$5$$._hitDetectionOffset);
    $DvtDiagramDataAnimationHandler$$.$addChildAt$($DvtDiagramDataAnimationHandler$$.$_hitDetectionUnderlay$, 0);
    $DvtDiagramEventManager$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramEventManager$$, 1, $linkWidth$$11$$);
    $dvt$$6$$.$Agent$.$isTouchDevice$() && $dvt$$6$$.$Agent$.$isBrowserSafari$() && 1 == $dvt$$6$$.$Agent$.$getDevicePixelRatio$() && $DvtDiagramEventManager$$.$setFixedWidth$(!0);
    $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$Path$($DvtDiagramDataAnimationHandler$$.$getCtx$(), $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$);
    $className$$15_linkData$$19_strokeType$$5$$ = $className$$15_linkData$$19_strokeType$$5$$.svgClassName || $className$$15_linkData$$19_strokeType$$5$$.className;
    $DvtDiagramKeyboardHandler$$.$setFill$(null);
    $DvtDiagramKeyboardHandler$$.$setClassName$($className$$15_linkData$$19_strokeType$$5$$);
    if ($DvtDiagramDefaults$$ && $DvtDiagramDefaults$$ instanceof Object) {
      $className$$15_linkData$$19_strokeType$$5$$ = $dvt$$6$$.$Stroke$.$SOLID$;
      $DvtDiagramDefaults$$._type == $DvtDiagramLink$$.$CUSTOM_STYLE$ ? $DvtDiagramDefaults$$.strokeDasharray && ($className$$15_linkData$$19_strokeType$$5$$ = $dvt$$6$$.$Stroke$.$DASHED$, $DvtDiagramDefaults$$.strokeDasharray = $dvt$$6$$.$DiagramLinkUtils$.$processStrokeDashArray$($DvtDiagramDefaults$$.strokeDasharray)) : $className$$15_linkData$$19_strokeType$$5$$ = $dvt$$6$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$($DvtDiagramDefaults$$._type);
      $DvtDiagramEventManager$$.$setType$($className$$15_linkData$$19_strokeType$$5$$, $DvtDiagramDefaults$$.strokeDasharray, $DvtDiagramDefaults$$.strokeDashoffset);
      var $styleObj$$ = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramDefaults$$);
      $dvt$$6$$.$ArrayUtils$.forEach(["_type", "strokeDasharray", "strokeDashoffset"], function($dvt$$6$$) {
        delete $styleObj$$[$dvt$$6$$];
      });
      $DvtDiagramKeyboardHandler$$.$setStyle$($styleObj$$);
    } else {
      $className$$15_linkData$$19_strokeType$$5$$ = $dvt$$6$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$($DvtDiagramDefaults$$), $DvtDiagramEventManager$$.$setType$($className$$15_linkData$$19_strokeType$$5$$, $dvt$$6$$.$DiagramLinkUtils$.$GetStrokeDash$($className$$15_linkData$$19_strokeType$$5$$), $dvt$$6$$.$DiagramLinkUtils$.$GetStrokeDashOffset$($className$$15_linkData$$19_strokeType$$5$$));
    }
    $DvtDiagramKeyboardHandler$$.$setStroke$($DvtDiagramEventManager$$);
    $DvtDiagramDataAnimationHandler$$.$setShape$($DvtDiagramKeyboardHandler$$);
    $DvtDiagramDataAnimationHandler$$.$addChildAt$($DvtDiagramKeyboardHandler$$, 1);
  };
  $DvtDiagramLink$$.$_renderLinkLabels$ = function $$DvtDiagramLink$$$$_renderLinkLabels$$($DvtDiagramDefaults$$, $labelWidth$$3_linkData$$20$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$Agent$.$isRightToLeft$($DvtDiagramDefaults$$.$getCtx$()) ? $dvt$$6$$.$OutputText$.$H_ALIGN_RIGHT$ : $dvt$$6$$.$OutputText$.$H_ALIGN_LEFT$;
    $labelWidth$$3_linkData$$20$$.label && ($DvtDiagramDefaults$$ = $DvtDiagramLink$$.$createText$($DvtDiagramDefaults$$.$getCtx$(), $labelWidth$$3_linkData$$20$$.label, $labelWidth$$3_linkData$$20$$.labelStyle, $DvtDiagramKeyboardHandler$$, $dvt$$6$$.$OutputText$.$V_ALIGN_TOP$), $labelWidth$$3_linkData$$20$$ = $dvt$$6$$.$CSSStyle$.$toNumber$((new $dvt$$6$$.$CSSStyle$($labelWidth$$3_linkData$$20$$.labelStyle)).getWidth()), 0 < $labelWidth$$3_linkData$$20$$ && $dvt$$6$$.$TextUtils$.$fitText$($DvtDiagramDefaults$$, 
    $labelWidth$$3_linkData$$20$$, Infinity, $DvtDiagramDataAnimationHandler$$) || $DvtDiagramDataAnimationHandler$$.$addChild$($DvtDiagramDefaults$$), $DvtDiagramDataAnimationHandler$$.$_labelObj$ = $DvtDiagramDefaults$$);
  };
  $DvtDiagramLink$$.$createText$ = function $$DvtDiagramLink$$$$createText$$($DvtDiagramDefaults$$, $strText$$1$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$) {
    $DvtDiagramDefaults$$ = new $dvt$$6$$.$OutputText$($DvtDiagramDefaults$$, $strText$$1$$, 0, 0);
    $DvtDiagramDefaults$$.$setCSSStyle$(new $dvt$$6$$.$CSSStyle$($DvtDiagramDataAnimationHandler$$));
    $DvtDiagramDefaults$$.$setHorizAlignment$($DvtDiagramKeyboardHandler$$);
    $DvtDiagramDefaults$$.$setVertAlignment$($DvtDiagramCategoryRolloverHandler$$);
    return $DvtDiagramDefaults$$;
  };
  $DvtDiagramLink$$.prototype.$setSelected$ = function $$DvtDiagramLink$$$$$setSelected$$($dvt$$6$$) {
    $DvtDiagramLink$$.$superclass$.$setSelected$.call(this, $dvt$$6$$);
    $dvt$$6$$ ? this.$_showFeedback$(this.$_isShowingHoverEffect$, !0) : this.$_hideFeedback$();
    this.$UpdateAriaLabel$();
  };
  $DvtDiagramLink$$.prototype.$isSelectable$ = function $$DvtDiagramLink$$$$$isSelectable$$() {
    return this.$GetDiagram$().$isSelectionSupported$() && "off" != this.getData().selectable;
  };
  $DvtDiagramLink$$.prototype.$_showFeedback$ = function $$DvtDiagramLink$$$$$_showFeedback$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    if ($dvt$$6$$) {
      this.$_savedStroke$ || (this.$_savedStroke$ = this.$getShape$().$getStroke$());
      var $DvtDiagramDataAnimationHandler$$ = this.$getShape$().$getStroke$().clone();
      $DvtDiagramDataAnimationHandler$$.$setColor$ && $DvtDiagramDataAnimationHandler$$.$setColor$(this.getData().hoverInnerColor);
      this.$getShape$().$setStroke$($DvtDiagramDataAnimationHandler$$);
      this.$ReplaceConnectorColor$(this.$_startConnector$, $DvtDiagramDataAnimationHandler$$);
      this.$ReplaceConnectorColor$(this.$_endConnector$, $DvtDiagramDataAnimationHandler$$);
    } else {
      this.$_savedStroke$ && (this.$getShape$().$setStroke$(this.$_savedStroke$), this.$ReplaceConnectorColor$(this.$_startConnector$, this.$_savedStroke$), this.$ReplaceConnectorColor$(this.$_endConnector$, this.$_savedStroke$), this.$_savedStroke$ = null);
    }
    this.$_linkUnderlay$ || (this.$_linkUnderlay$ = this.$CreateFeedbackUnderlay$("#000000", 1, 0), this.$addChildAt$(this.$_linkUnderlay$, 0));
    var $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDefaults$$ ? this.getData().selectionColor : this.getData().hoverOuterColor, $DvtDiagramKeyboardHandler$$ = this.$_linkUnderlay$.$getStroke$().clone();
    $DvtDiagramKeyboardHandler$$.$setColor$($DvtDiagramDataAnimationHandler$$);
    $DvtDiagramKeyboardHandler$$.$setWidth$(2 + this.$GetAppliedLinkWidth$());
    this.$ApplyLinkStyle$($DvtDiagramKeyboardHandler$$, !0);
    this.$_linkUnderlay$.$setStroke$($DvtDiagramKeyboardHandler$$, 2);
  };
  $DvtDiagramLink$$.prototype.$_hideFeedback$ = function $$DvtDiagramLink$$$$$_hideFeedback$$() {
    this.$_savedStroke$ && (this.$getShape$().$setStroke$(this.$_savedStroke$), this.$ReplaceConnectorColor$(this.$_startConnector$, this.$_savedStroke$), this.$ReplaceConnectorColor$(this.$_endConnector$, this.$_savedStroke$), this.$_savedStroke$ = null);
    this.$_linkUnderlay$ && (this.removeChild(this.$_linkUnderlay$), this.$_linkUnderlay$.$destroy$ && this.$_linkUnderlay$.$destroy$(), this.$_linkUnderlay$ = null);
  };
  $DvtDiagramLink$$.prototype.$ApplyLinkStyle$ = function $$DvtDiagramLink$$$$$ApplyLinkStyle$$($DvtDiagramDefaults$$, $bUnderlay$$4$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$GetAppliedLinkStyle$();
    if ($DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$ instanceof Object) {
      if ($DvtDiagramDataAnimationHandler$$._type == $DvtDiagramLink$$.$CUSTOM_STYLE$) {
        var $DvtDiagramKeyboardHandler$$ = null != $DvtDiagramDataAnimationHandler$$.strokeDashoffset ? $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramDataAnimationHandler$$.strokeDashoffset) + 1 : 1;
        $DvtDiagramDefaults$$.$setType$($dvt$$6$$.$Stroke$.$DASHED$, $dvt$$6$$.$DiagramLinkUtils$.$getCustomUnderlay$($DvtDiagramDataAnimationHandler$$.strokeDasharray), $DvtDiagramKeyboardHandler$$);
      } else {
        $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$DiagramLinkUtils$.$ConvertLinkStyleToStrokeType$($DvtDiagramDataAnimationHandler$$._type), $DvtDiagramDefaults$$.$setType$($DvtDiagramDataAnimationHandler$$, $dvt$$6$$.$DiagramLinkUtils$.$GetStrokeDash$($DvtDiagramDataAnimationHandler$$, $bUnderlay$$4$$), $dvt$$6$$.$DiagramLinkUtils$.$GetStrokeDashOffset$($DvtDiagramDataAnimationHandler$$, $bUnderlay$$4$$));
      }
    } else {
      $DvtDiagramLink$$.$superclass$.$ApplyLinkStyle$.call(this, $DvtDiagramDefaults$$, $bUnderlay$$4$$);
    }
  };
  $DvtDiagramLink$$.prototype.$showHoverEffect$ = function $$DvtDiagramLink$$$$$showHoverEffect$$() {
    this.$_isShowingHoverEffect$ || (this.$_isShowingHoverEffect$ = !0, this.$_showFeedback$(!0, this.$isSelected$()));
  };
  $DvtDiagramLink$$.prototype.$hideHoverEffect$ = function $$DvtDiagramLink$$$$$hideHoverEffect$$() {
    this.$isSelected$() ? this.$_showFeedback$(!1, !0) : this.$_hideFeedback$();
    this.$_isShowingHoverEffect$ = !1;
  };
  $DvtDiagramLink$$.prototype.$getDatatip$ = function $$DvtDiagramLink$$$$$getDatatip$$() {
    var $dvt$$6$$ = this.$GetDiagram$().$getOptions$().tooltip;
    return ($dvt$$6$$ = $dvt$$6$$ ? $dvt$$6$$.renderer : null) ? this.$GetDiagram$().$getCtx$().$getTooltipManager$().$getCustomTooltip$($dvt$$6$$, this.$getDataContext$()) : this.$getShortDesc$();
  };
  $DvtDiagramLink$$.prototype.$getShortDesc$ = function $$DvtDiagramLink$$$$$getShortDesc$$() {
    return this.$_bPromoted$ ? 1 < this.getData()._links.length ? $dvt$$6$$.$Bundle$.$getTranslation$(this.$GetDiagram$().$getOptions$(), "promotedLinks", $dvt$$6$$.$Bundle$.$DIAGRAM_PREFIX$, "PROMOTED_LINKS", this.getData()._links.length) : $dvt$$6$$.$Bundle$.$getTranslation$(this.$GetDiagram$().$getOptions$(), "promotedLink", $dvt$$6$$.$Bundle$.$DIAGRAM_PREFIX$, "PROMOTED_LINK", this.getData()._links.length) : this.getData().shortDesc;
  };
  $DvtDiagramLink$$.prototype.$getDataContext$ = function $$DvtDiagramLink$$$$$getDataContext$$() {
    return {id:this.getId(), type:this.$_bPromoted$ ? "promotedLink" : "link", label:this.getData().label, data:this.$_bPromoted$ ? this.getData()._links : this.getData()._origData, component:this.$GetDiagram$().$getOptions$()._widgetConstructor};
  };
  $DvtDiagramLink$$.prototype.$getAriaLabel$ = function $$DvtDiagramLink$$$$$getAriaLabel$$() {
    var $DvtDiagramDefaults$$ = [];
    this.$isSelectable$() && $DvtDiagramDefaults$$.push($dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$UTIL_PREFIX$, this.$isSelected$() ? "STATE_SELECTED" : "STATE_UNSELECTED"));
    this.$_bPromoted$ && $DvtDiagramDefaults$$.push($dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$DIAGRAM_PREFIX$, "PROMOTED_LINK_ARIA_DESC"));
    return $dvt$$6$$.$Displayable$.$generateAriaLabel$(this.$getShortDesc$(), $DvtDiagramDefaults$$);
  };
  $DvtDiagramLink$$.prototype.$UpdateAriaLabel$ = function $$DvtDiagramLink$$$$$UpdateAriaLabel$$() {
    if (!$dvt$$6$$.$Agent$.$deferAriaCreation$()) {
      var $DvtDiagramDefaults$$ = this.$getAriaLabel$();
      $DvtDiagramDefaults$$ && this.$setAriaProperty$("label", $DvtDiagramDefaults$$);
    }
  };
  $DvtDiagramLink$$.prototype.$getNextNavigable$ = function $$DvtDiagramLink$$$$$getNextNavigable$$($DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$SPACE$ && $DvtDiagramDefaults$$.ctrlKey) {
      return this;
    }
    if ($DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$UP_ARROW$ || $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$DOWN_ARROW$) {
      var $node$$190$$ = this.$_keyboardNavNode$;
      $node$$190$$ || ($node$$190$$ = this.$GetDiagram$().$getNodeById$(this.$GetDiagram$().$getLinkStartId$(this)));
      var $DvtDiagramDataAnimationHandler$$ = this, $DvtDiagramKeyboardHandler$$ = this.$GetDiagram$().$getNavigableLinksForNodeId$($node$$190$$.getId()), $DvtDiagramCategoryRolloverHandler$$ = this.$GetDiagram$().$getEventManager$().$KeyboardHandler$;
      $DvtDiagramCategoryRolloverHandler$$ && $DvtDiagramCategoryRolloverHandler$$.$getNextNavigableLink$ && ($DvtDiagramDataAnimationHandler$$ = $DvtDiagramCategoryRolloverHandler$$.$getNextNavigableLink$($node$$190$$, this, $DvtDiagramDefaults$$, $DvtDiagramKeyboardHandler$$));
      $DvtDiagramDataAnimationHandler$$.$setKeyboardFocusNode$($node$$190$$);
      return $DvtDiagramDataAnimationHandler$$;
    }
    return $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$RIGHT_ARROW$ || $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$LEFT_ARROW$ ? ($DvtDiagramDefaults$$ = this.$_movingToStart$($DvtDiagramDefaults$$.keyCode) ? this.$getStartId$() : this.$getEndId$(), this.$GetDiagram$().$getNodeById$($DvtDiagramDefaults$$)) : $DvtDiagramDefaults$$.type == $dvt$$6$$.MouseEvent.$CLICK$ ? this : null;
  };
  $DvtDiagramLink$$.prototype.$_movingToStart$ = function $$DvtDiagramLink$$$$$_movingToStart$$($DvtDiagramDefaults$$) {
    var $linkDirectionL2R$$1_start$$34$$ = this.$getLinkStart$(), $DvtDiagramDataAnimationHandler$$ = this.$getLinkEnd$(), $linkDirectionL2R$$1_start$$34$$ = $linkDirectionL2R$$1_start$$34$$.x < $DvtDiagramDataAnimationHandler$$.x ? !0 : !1;
    return $DvtDiagramDefaults$$ == $dvt$$6$$.KeyboardEvent.$RIGHT_ARROW$ && $linkDirectionL2R$$1_start$$34$$ || $DvtDiagramDefaults$$ == $dvt$$6$$.KeyboardEvent.$LEFT_ARROW$ && !$linkDirectionL2R$$1_start$$34$$ ? !1 : !0;
  };
  $DvtDiagramLink$$.prototype.$showKeyboardFocusEffect$ = function $$DvtDiagramLink$$$$$showKeyboardFocusEffect$$() {
    this.$_isShowingKeyboardFocusEffect$ = !0;
    this.$showHoverEffect$();
  };
  $DvtDiagramLink$$.prototype.$hideKeyboardFocusEffect$ = function $$DvtDiagramLink$$$$$hideKeyboardFocusEffect$$() {
    this.$_isShowingKeyboardFocusEffect$ = !1;
    this.$hideHoverEffect$();
  };
  $DvtDiagramLink$$.prototype.$isShowingKeyboardFocusEffect$ = function $$DvtDiagramLink$$$$$isShowingKeyboardFocusEffect$$() {
    return this.$_isShowingKeyboardFocusEffect$;
  };
  $DvtDiagramLink$$.prototype.$getCategories$ = function $$DvtDiagramLink$$$$$getCategories$$() {
    return this.getData().categories ? this.getData().categories : [this.getId()];
  };
  $DvtDiagramLink$$.prototype.$isHidden$ = function $$DvtDiagramLink$$$$$isHidden$$() {
    var $DvtDiagramDefaults$$ = this.$GetDiagram$().$getOptions$().hiddenCategories;
    return $DvtDiagramDefaults$$ && $dvt$$6$$.$ArrayUtils$.$hasAnyItem$($DvtDiagramDefaults$$, this.$getCategories$()) || !this.$GetDiagram$().$getNodeById$(this.$getStartId$()) || !this.$GetDiagram$().$getNodeById$(this.$getEndId$()) ? !0 : !1;
  };
  $DvtDiagramLink$$.prototype.$animateUpdate$ = function $$DvtDiagramLink$$$$$animateUpdate$$($DvtDiagramDefaults$$, $oldLink$$3_oldStroke$$4$$, $DvtDiagramKeyboardHandler$$) {
    var $DvtDiagramCategoryRolloverHandler$$ = $oldLink$$3_oldStroke$$4$$.$getPoints$(), $DvtDiagramEventManager$$ = this.$getPoints$(), $playable$$17$$ = new $dvt$$6$$.$CustomAnimation$(this.$getCtx$(), null, $DvtDiagramDefaults$$.$getAnimationDuration$());
    $dvt$$6$$.$ArrayUtils$.$equals$($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramEventManager$$) || (this.$setPoints$($DvtDiagramCategoryRolloverHandler$$), $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$Animator$.$TYPE_POLYLINE$, 0 < $DvtDiagramEventManager$$.length && isNaN($DvtDiagramEventManager$$[0]) && ($DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$Animator$.$TYPE_PATH$), $playable$$17$$.$_animator$.$addProp$($DvtDiagramCategoryRolloverHandler$$, this, this.$getPoints$, this.$setPoints$, 
    $DvtDiagramEventManager$$));
    $oldLink$$3_oldStroke$$4$$.$_labelObj$ && this.$_labelObj$ && ($DvtDiagramEventManager$$ = $oldLink$$3_oldStroke$$4$$.$_labelObj$.$getMatrix$(), $DvtDiagramCategoryRolloverHandler$$ = this.$_labelObj$.$getMatrix$(), $DvtDiagramEventManager$$.$equals$($DvtDiagramCategoryRolloverHandler$$) || (this.$_labelObj$.$setMatrix$($DvtDiagramEventManager$$), $playable$$17$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_MATRIX$, this.$_labelObj$, this.$_labelObj$.$getMatrix$, this.$_labelObj$.$setMatrix$, 
    $DvtDiagramCategoryRolloverHandler$$)));
    $oldLink$$3_oldStroke$$4$$.$getShape$() && this.$getShape$() && ($oldLink$$3_oldStroke$$4$$ = $oldLink$$3_oldStroke$$4$$.$getShape$().$getStroke$(), $DvtDiagramEventManager$$ = this.$getShape$().$getStroke$(), $oldLink$$3_oldStroke$$4$$ && $DvtDiagramEventManager$$ && $oldLink$$3_oldStroke$$4$$ instanceof $dvt$$6$$.$SolidStroke$ && $DvtDiagramEventManager$$ instanceof $dvt$$6$$.$SolidStroke$ && ($oldLink$$3_oldStroke$$4$$.$getColor$() != $DvtDiagramEventManager$$.$getColor$() || $oldLink$$3_oldStroke$$4$$.getWidth() != 
    $DvtDiagramEventManager$$.getWidth()) && (this.$getShape$().$setStroke$($oldLink$$3_oldStroke$$4$$), $playable$$17$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_STROKE$, this.$getShape$(), this.$getShape$().$getStroke$, this.$getShape$().$setStroke$, $DvtDiagramEventManager$$)));
    if ($DvtDiagramKeyboardHandler$$) {
      var $thisRef$$30$$ = this;
      $dvt$$6$$.$Playable$.$appendOnEnd$($playable$$17$$, function() {
        $thisRef$$30$$.getParent().removeChild($thisRef$$30$$);
      });
    }
    $DvtDiagramDefaults$$.add($playable$$17$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
  };
  $DvtDiagramLink$$.prototype.$animateDelete$ = function $$DvtDiagramLink$$$$$animateDelete$$($DvtDiagramDefaults$$) {
    this.$GetDiagram$().$_linksPane$.$addChild$(this);
    var $thisRef$$31$$ = this, $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$AnimFadeOut$(this.$getCtx$(), this, $DvtDiagramDefaults$$.$getAnimationDuration$());
    $dvt$$6$$.$Playable$.$appendOnEnd$($DvtDiagramKeyboardHandler$$, function() {
      $thisRef$$31$$.getParent().removeChild($thisRef$$31$$);
      $thisRef$$31$$.$destroy$();
    });
    $DvtDiagramDefaults$$.add($DvtDiagramKeyboardHandler$$, $DvtDiagramDataAnimationHandler$$.$DELETE$);
  };
  $DvtDiagramLink$$.prototype.$animateInsert$ = function $$DvtDiagramLink$$$$$animateInsert$$($DvtDiagramDefaults$$) {
    this.$setAlpha$(0);
    $DvtDiagramDefaults$$.add(new $dvt$$6$$.$AnimFadeIn$(this.$getCtx$(), this, $DvtDiagramDefaults$$.$getAnimationDuration$()), $DvtDiagramDataAnimationHandler$$.$INSERT$);
  };
  $DvtDiagramLink$$.prototype.$animateCollapse$ = function $$DvtDiagramLink$$$$$animateCollapse$$($DvtDiagramDefaults$$, $oldLinksArray$$) {
    if ($oldLinksArray$$ && 0 != $oldLinksArray$$.length) {
      var $DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$ArrayUtils$.copy(this.$getPoints$());
      this.$animateUpdate$($DvtDiagramDefaults$$, $oldLinksArray$$[0]);
      for (var $DvtDiagramKeyboardHandler$$ = 1;$DvtDiagramKeyboardHandler$$ < $oldLinksArray$$.length;$DvtDiagramKeyboardHandler$$++) {
        var $DvtDiagramCategoryRolloverHandler$$ = {id:"_fakeLink" + $DvtDiagramKeyboardHandler$$ + this.getId()}, $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$JsonUtils$.$merge$($DvtDiagramCategoryRolloverHandler$$, this.getData()), $DvtDiagramCategoryRolloverHandler$$ = new $DvtDiagramLink$$(this.$GetDiagram$().$getCtx$(), this.$GetDiagram$(), $DvtDiagramCategoryRolloverHandler$$, !0);
        $DvtDiagramCategoryRolloverHandler$$.$render$();
        $DvtDiagramCategoryRolloverHandler$$.$setPoints$($DvtDiagramDataAnimationHandler$$);
        $DvtDiagramCategoryRolloverHandler$$.$animateUpdate$($DvtDiagramDefaults$$, $oldLinksArray$$[$DvtDiagramKeyboardHandler$$], !0);
      }
    }
  };
  $DvtDiagramLink$$.prototype.$animateExpand$ = function $$DvtDiagramLink$$$$$animateExpand$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$ && 0 != $DvtDiagramDefaults$$.length) {
      for (var $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $DvtDiagramDefaults$$.length;$DvtDiagramDataAnimationHandler$$++) {
        $DvtDiagramDefaults$$[$DvtDiagramDataAnimationHandler$$].$animateUpdate$($dvt$$6$$, this);
      }
    }
  };
  $DvtDiagramLink$$.prototype.$setLabelAlignments$ = function $$DvtDiagramLink$$$$$setLabelAlignments$$($DvtDiagramDefaults$$, $valign$$5$$) {
    $DvtDiagramDefaults$$ && ($DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_LEFT$ ? this.$_labelObj$.$alignLeft$() : $DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_CENTER$ ? this.$_labelObj$.$alignCenter$() : $DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_RIGHT$ && this.$_labelObj$.$alignRight$());
    $valign$$5$$ && ($valign$$5$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_TOP$ ? this.$_labelObj$.$alignTop$() : $valign$$5$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_MIDDLE$ ? this.$_labelObj$.$alignMiddle$() : $valign$$5$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_BOTTOM$ ? this.$_labelObj$.$alignBottom$() : "baseline" == $valign$$5$$ && this.$_labelObj$.$alignAuto$());
  };
  $DvtDiagramLink$$.prototype.$setGroupId$ = function $$DvtDiagramLink$$$$$setGroupId$$($dvt$$6$$) {
    this.$_groupId$ = $dvt$$6$$;
  };
  $DvtDiagramLink$$.prototype.$getGroupId$ = function $$DvtDiagramLink$$$$$getGroupId$$() {
    return this.$_groupId$;
  };
  $DvtDiagramLink$$.$_getCommonAncestorId$ = function $$DvtDiagramLink$$$$_getCommonAncestorId$$($DvtDiagramDefaults$$, $diagram$$88$$) {
    function $DvtDiagramDataAnimationHandler$$($dvt$$6$$, $DvtDiagramDefaults$$) {
      for (var $link$$66$$ = [], $diagram$$88$$ = $DvtDiagramDefaults$$.$getNodeById$($dvt$$6$$) ? $DvtDiagramDefaults$$.$getNodeById$($dvt$$6$$).$getGroupId$() : null;$diagram$$88$$;) {
        $link$$66$$.push($diagram$$88$$), $diagram$$88$$ = $DvtDiagramDefaults$$.$getNodeById$($diagram$$88$$) ? $DvtDiagramDefaults$$.$getNodeById$($diagram$$88$$).$getGroupId$() : null;
      }
      return $link$$66$$;
    }
    for (var $DvtDiagramKeyboardHandler$$ = $DvtDiagramDataAnimationHandler$$($DvtDiagramDefaults$$.$getStartId$(), $diagram$$88$$), $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramDataAnimationHandler$$($DvtDiagramDefaults$$.$getEndId$(), $diagram$$88$$), $DvtDiagramEventManager$$ = 0;$DvtDiagramEventManager$$ < $DvtDiagramKeyboardHandler$$.length;$DvtDiagramEventManager$$++) {
      if (-1 < $dvt$$6$$.$ArrayUtils$.$getIndex$($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramKeyboardHandler$$[$DvtDiagramEventManager$$])) {
        return $DvtDiagramKeyboardHandler$$[$DvtDiagramEventManager$$];
      }
    }
    return null;
  };
  $DvtDiagramLink$$.$GetPromotedLinkId$ = function $$DvtDiagramLink$$$$GetPromotedLinkId$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    return "_plL" + $dvt$$6$$ + "_L" + $DvtDiagramDefaults$$;
  };
  $DvtDiagramLink$$.prototype.$ShowDropEffect$ = function $$DvtDiagramLink$$$$$ShowDropEffect$$() {
    this.$_dropEffect$ || this.$_createDropEffect$("oj-diagram-link oj-active-drop");
  };
  $DvtDiagramLink$$.prototype.$ShowRejectedDropEffect$ = function $$DvtDiagramLink$$$$$ShowRejectedDropEffect$$() {
    this.$_dropEffect$ || this.$_createDropEffect$("oj-diagram-link oj-invalid-drop");
  };
  $DvtDiagramLink$$.prototype.$ClearDropEffect$ = function $$DvtDiagramLink$$$$$ClearDropEffect$$() {
    this.$_dropEffect$ && (this.removeChild(this.$_dropEffect$), this.$_dropEffect$ = null);
  };
  $DvtDiagramLink$$.prototype.$_createDropEffect$ = function $$DvtDiagramLink$$$$$_createDropEffect$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.getData()._hitDetectionOffset;
    this.$_dropEffect$ = this.$CreateFeedbackUnderlay$("#000000", 0, $DvtDiagramDefaults$$, $dvt$$6$$);
    this.$_dropEffect$.$setMouseEnabled$(!1);
    this.$addChild$(this.$_dropEffect$);
  };
  $DvtDiagramLink$$.$ConvertLinkData$ = function $$DvtDiagramLink$$$$ConvertLinkData$$($dvt$$6$$) {
    return {id:$dvt$$6$$.id, startNode:$dvt$$6$$.startNode, endNode:$dvt$$6$$.endNode, label:$dvt$$6$$.label, selectable:$dvt$$6$$.selectable, shortDesc:$dvt$$6$$.shortDesc, categories:$dvt$$6$$.categories, _origData:$dvt$$6$$};
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramNode$$, $dvt$$6$$.$BaseDiagramNode$, "DvtDiagramNode");
  $DvtDiagramNode$$.newInstance = function $$DvtDiagramNode$$$newInstance$($dvt$$6$$, $DvtDiagramDefaults$$) {
    return new $DvtDiagramNode$$($dvt$$6$$.$getCtx$(), $dvt$$6$$, $DvtDiagramDefaults$$);
  };
  $DvtDiagramNode$$.prototype.Init = function $$DvtDiagramNode$$$$Init$($dvt$$6$$, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramNode$$.$superclass$.Init.call(this, $dvt$$6$$, $DvtDiagramDataAnimationHandler$$.id, $DvtDiagramDefaults$$);
    this.$_data$ = $DvtDiagramDataAnimationHandler$$;
    this.$_diagram$.$isSelectionSupported$() && this.setCursor("pointer");
  };
  $DvtDiagramNode$$.prototype.getData = function $$DvtDiagramNode$$$$getData$() {
    return this.$_data$;
  };
  $DvtDiagramNode$$.prototype.getId = function $$DvtDiagramNode$$$$getId$() {
    return this.$_data$.id;
  };
  $DvtDiagramNode$$.prototype.$getActiveElementId$ = function $$DvtDiagramNode$$$$$getActiveElementId$$() {
    this.$_activeElementId$ || (this.$_activeElementId$ = this.getId() + Math.floor(1E9 * Math.random()));
    return this.$_activeElementId$;
  };
  $DvtDiagramNode$$.prototype.$getContentBounds$ = function $$DvtDiagramNode$$$$$getContentBounds$$() {
    return this.$_contentDims$;
  };
  $DvtDiagramNode$$.prototype.$getLabelBounds$ = function $$DvtDiagramNode$$$$$getLabelBounds$$() {
    var $dvt$$6$$ = null;
    this.$_labelObj$ && ($dvt$$6$$ = this.$_labelDims$ ? this.$_labelDims$ : this.$_labelObj$.$getDimensions$());
    return $dvt$$6$$;
  };
  $DvtDiagramNode$$.prototype.$setSelected$ = function $$DvtDiagramNode$$$$$setSelected$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$_getState$();
    $DvtDiagramNode$$.$superclass$.$setSelected$.call(this, $dvt$$6$$);
    this.$_diagram$.$getOptions$().selectionRenderer ? this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().selectionRenderer, this.$_getState$(), $DvtDiagramDefaults$$) : this.$processDefaultSelectionEffect$($dvt$$6$$);
    this.$UpdateAriaLabel$();
  };
  $DvtDiagramNode$$.prototype.$processDefaultSelectionEffect$ = function $$DvtDiagramNode$$$$$processDefaultSelectionEffect$$($dvt$$6$$) {
    this.$getSelectionShape$() && this.$getSelectionShape$().$setSelected$($dvt$$6$$);
  };
  $DvtDiagramNode$$.prototype.$isSelectable$ = function $$DvtDiagramNode$$$$$isSelectable$$() {
    return this.$GetDiagram$().$isSelectionSupported$() && "off" != this.getData().selectable;
  };
  $DvtDiagramNode$$.prototype.$GetIcon$ = function $$DvtDiagramNode$$$$$GetIcon$$() {
    return this.$_shape$;
  };
  $DvtDiagramNode$$.prototype.$render$ = function $$DvtDiagramNode$$$$$render$$() {
    var $dvt$$6$$ = this.getData();
    if (this.$_diagram$.$getOptions$().renderer) {
      if (this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().renderer, this.$_getState$(), null), this.$isDisclosed$()) {
        var $DvtDiagramDefaults$$ = this.$getElem$().getBoundingClientRect(), $DvtDiagramDataAnimationHandler$$ = this.$_childNodePane$ ? this.$_childNodePane$.$getElem$().getBoundingClientRect() : null;
        this.$_containerPadding$ = {left:$DvtDiagramDataAnimationHandler$$.left - $DvtDiagramDefaults$$.left, right:$DvtDiagramDefaults$$.right - $DvtDiagramDataAnimationHandler$$.right, top:$DvtDiagramDataAnimationHandler$$.top - $DvtDiagramDefaults$$.top, bottom:$DvtDiagramDefaults$$.bottom - $DvtDiagramDataAnimationHandler$$.bottom};
      }
    } else {
      this.$isDisclosed$() ? $DvtDiagramNode$$.$_renderContainer$(this.$_diagram$, $dvt$$6$$, this) : ($DvtDiagramNode$$.$_renderNodeBackground$(this.$_diagram$, $dvt$$6$$, this), $DvtDiagramNode$$.$_renderNodeIcon$(this.$_diagram$, $dvt$$6$$, this)), $DvtDiagramNode$$.$_addHoverSelectionStrokes$(this.$getSelectionShape$(), $dvt$$6$$);
    }
    $DvtDiagramNode$$.$_renderNodeLabels$(this.$_diagram$, $dvt$$6$$, this);
    this.$_setDraggableStyleClass$();
    this.$_contentDims$ = this.$_calcContentDims$();
    $DvtDiagramNode$$.$_renderContainerButton$(this.$_diagram$, $dvt$$6$$, this);
    this.$setAriaRole$("img");
    this.$UpdateAriaLabel$();
    this.$_diagram$.$getEventManager$().$associate$(this, this);
  };
  $DvtDiagramNode$$.prototype.$_applyCustomNodeContent$ = function $$DvtDiagramNode$$$$$_applyCustomNodeContent$$($DvtDiagramDefaults$$, $context$$171_state$$28$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = this.$_diagram$.$getOptions$()._contextHandler;
    if ($DvtDiagramKeyboardHandler$$) {
      var $DvtDiagramCategoryRolloverHandler$$ = this.getData()._origData, $DvtDiagramEventManager$$ = null;
      if (this.$isDisclosed$()) {
        var $DvtDiagramEventManager$$ = this.$GetChildNodePane$(), $bbox$$12$$ = $DvtDiagramEventManager$$.$getDimensions$(), $DvtDiagramEventManager$$ = {element:$DvtDiagramEventManager$$.$getElem$(), w:$bbox$$12$$ ? $bbox$$12$$.$w$ - $bbox$$12$$.x : null, h:$bbox$$12$$ ? $bbox$$12$$.$h$ - $bbox$$12$$.y : null}
      }
      $context$$171_state$$28$$ = $DvtDiagramKeyboardHandler$$(this.$getElem$(), this.$_customNodeContent$, $DvtDiagramEventManager$$, $DvtDiagramCategoryRolloverHandler$$, $context$$171_state$$28$$, $DvtDiagramDataAnimationHandler$$);
      $DvtDiagramDefaults$$ = $DvtDiagramDefaults$$($context$$171_state$$28$$);
      this.$_customNodeContent$ && $DvtDiagramDefaults$$ != this.$_customNodeContent$ && (this.$_customNodeContent$.namespaceURI === $dvt$$6$$.$ToolkitUtils$.$SVG_NS$ ? this.$getContainerElem$().removeChild(this.$_customNodeContent$) : this.removeChild($DvtDiagramDefaults$$), this.$_customNodeContent$ = null);
      $DvtDiagramDefaults$$ && $DvtDiagramDefaults$$.namespaceURI === $dvt$$6$$.$ToolkitUtils$.$SVG_NS$ ? this.$_customNodeContent$ || ($dvt$$6$$.$ToolkitUtils$.$appendChildElem$(this.$getContainerElem$(), $DvtDiagramDefaults$$), this.$_customNodeContent$ = $DvtDiagramDefaults$$) : $DvtDiagramDefaults$$ instanceof $dvt$$6$$.$BaseComponent$ ? this.$_customNodeContent$ || (this.$addChild$($DvtDiagramDefaults$$), this.$_customNodeContent$ = $DvtDiagramDefaults$$) : $DvtDiagramDefaults$$ && this.$_diagram$.$Log$("dvt.Diagram: could not add custom node content for the node " + 
      this.getId() + $DvtDiagramDefaults$$, 1);
    } else {
      this.$_diagram$.$Log$("dvt.Diagram: could not add custom node content - context handler is undefined", 1);
    }
  };
  $DvtDiagramNode$$.$_renderNodeBackground$ = function $$DvtDiagramNode$$$$_renderNodeBackground$$($DvtDiagramDefaults$$, $nodeData$$27$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = $nodeData$$27$$.backgroundSvgStyle || $nodeData$$27$$.backgroundStyle, $DvtDiagramCategoryRolloverHandler$$ = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramKeyboardHandler$$), $DvtDiagramEventManager$$ = [$dvt$$6$$.$CSSStyle$.$WIDTH$, $dvt$$6$$.$CSSStyle$.$HEIGHT$, $dvt$$6$$.$CSSStyle$.$BACKGROUND_COLOR$, $dvt$$6$$.$CSSStyle$.$BORDER_COLOR$, $dvt$$6$$.$CSSStyle$.$BORDER_WIDTH$, $dvt$$6$$.$CSSStyle$.$BORDER_RADIUS$], $DvtDiagramKeyboardHandler$$ = $DvtDiagramNode$$.$_getNodeCSSStyle$($DvtDiagramCategoryRolloverHandler$$, 
    $nodeData$$27$$._backgroundStyle, $DvtDiagramEventManager$$);
    if (!$DvtDiagramKeyboardHandler$$.$isEmpty$()) {
      var $width$$47$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$WIDTH$)), $height$$39$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$HEIGHT$)), $fillColor$$4$$ = $DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BACKGROUND_COLOR$), $borderColor$$21$$ = $DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_COLOR$), $borderWidth$$9$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_WIDTH$)), 
      $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramKeyboardHandler$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_RADIUS$));
      $DvtDiagramDefaults$$ = new $dvt$$6$$.Rect($DvtDiagramDefaults$$.$getCtx$(), 0, 0, $width$$47$$, $height$$39$$);
      $DvtDiagramDefaults$$.$setSolidFill$($fillColor$$4$$);
      $DvtDiagramKeyboardHandler$$ && ($DvtDiagramDefaults$$.$setRx$($DvtDiagramKeyboardHandler$$), $DvtDiagramDefaults$$.$setRy$($DvtDiagramKeyboardHandler$$));
      $borderColor$$21$$ && $DvtDiagramDefaults$$.$setStroke$(new $dvt$$6$$.$SolidStroke$($borderColor$$21$$, 1, $borderWidth$$9$$));
      $DvtDiagramCategoryRolloverHandler$$ && $dvt$$6$$.$ArrayUtils$.forEach($DvtDiagramEventManager$$, function($DvtDiagramDefaults$$) {
        delete $DvtDiagramCategoryRolloverHandler$$[$dvt$$6$$.$CSSStyle$.$cssStringToObjectProperty$($DvtDiagramDefaults$$)];
      });
      $DvtDiagramDefaults$$.$setStyle$($DvtDiagramCategoryRolloverHandler$$).$setClassName$($nodeData$$27$$.backgroundClassName);
      $DvtDiagramDataAnimationHandler$$.$addChild$($DvtDiagramDefaults$$);
      $DvtDiagramDataAnimationHandler$$.$setSelectionShape$($DvtDiagramDefaults$$);
      $DvtDiagramDataAnimationHandler$$.$_background$ = $DvtDiagramDefaults$$;
    }
  };
  $DvtDiagramNode$$.$_renderNodeIcon$ = function $$DvtDiagramNode$$$$_renderNodeIcon$$($DvtDiagramDefaults$$, $nodeData$$28$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = $nodeData$$28$$.icon;
    if ($DvtDiagramKeyboardHandler$$) {
      var $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramKeyboardHandler$$.width, $DvtDiagramEventManager$$ = $DvtDiagramKeyboardHandler$$.height, $className$$16_iconColor$$ = $DvtDiagramKeyboardHandler$$.color, $iconBorderRadius$$ = $DvtDiagramKeyboardHandler$$.borderRadius;
      $DvtDiagramDefaults$$ = $DvtDiagramKeyboardHandler$$.source ? new $dvt$$6$$.$ImageMarker$($DvtDiagramDefaults$$.$getCtx$(), $DvtDiagramCategoryRolloverHandler$$ / 2, $DvtDiagramEventManager$$ / 2, $DvtDiagramCategoryRolloverHandler$$, $DvtDiagramEventManager$$, $iconBorderRadius$$, $DvtDiagramKeyboardHandler$$.source, $DvtDiagramKeyboardHandler$$.sourceSelected, $DvtDiagramKeyboardHandler$$.sourceHover, $DvtDiagramKeyboardHandler$$.sourceHoverSelected) : new $dvt$$6$$.$SimpleMarker$($DvtDiagramDefaults$$.$getCtx$(), 
      $DvtDiagramKeyboardHandler$$.shape, $dvt$$6$$.$CSSStyle$.$SKIN_ALTA$, $DvtDiagramCategoryRolloverHandler$$ / 2, $DvtDiagramEventManager$$ / 2, $DvtDiagramCategoryRolloverHandler$$, $DvtDiagramEventManager$$, $iconBorderRadius$$);
      "none" != $DvtDiagramKeyboardHandler$$.fillPattern ? $DvtDiagramDefaults$$.$setFill$(new $dvt$$6$$.$PatternFill$($DvtDiagramKeyboardHandler$$.fillPattern, $className$$16_iconColor$$, $className$$16_iconColor$$)) : $DvtDiagramDefaults$$.$setSolidFill$($className$$16_iconColor$$);
      null != $DvtDiagramKeyboardHandler$$.opacity && $DvtDiagramDefaults$$.$setAlpha$($DvtDiagramKeyboardHandler$$.opacity);
      $DvtDiagramKeyboardHandler$$.borderColor && $DvtDiagramDefaults$$.$setStroke$(new $dvt$$6$$.$SolidStroke$($DvtDiagramKeyboardHandler$$.borderColor, $DvtDiagramKeyboardHandler$$.borderWidth));
      $className$$16_iconColor$$ = $DvtDiagramKeyboardHandler$$.svgClassName || $DvtDiagramKeyboardHandler$$.className;
      $DvtDiagramDefaults$$.$setStyle$($DvtDiagramKeyboardHandler$$.svgStyle || $DvtDiagramKeyboardHandler$$.style).$setClassName$($className$$16_iconColor$$);
      $DvtDiagramDataAnimationHandler$$.$addChild$($DvtDiagramDefaults$$);
      $DvtDiagramDataAnimationHandler$$.$_shape$ = $DvtDiagramDefaults$$;
      $DvtDiagramNode$$.$_setIconPosition$($nodeData$$28$$, $DvtDiagramDataAnimationHandler$$);
      $DvtDiagramDataAnimationHandler$$.$_background$ || $DvtDiagramDataAnimationHandler$$.$setSelectionShape$($DvtDiagramDefaults$$);
    }
  };
  $DvtDiagramNode$$.$_setIconPosition$ = function $$DvtDiagramNode$$$$_setIconPosition$$($DvtDiagramDefaults$$, $container$$80$$) {
    if ($container$$80$$.$_background$) {
      var $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDefaults$$.icon, $DvtDiagramKeyboardHandler$$ = $container$$80$$.$_background$.getWidth(), $DvtDiagramCategoryRolloverHandler$$ = $container$$80$$.$_background$.getHeight(), $DvtDiagramEventManager$$ = $DvtDiagramDataAnimationHandler$$.width, $iconHeight$$4$$ = $DvtDiagramDataAnimationHandler$$.height, $positionX$$ = .5 * ($DvtDiagramKeyboardHandler$$ - $DvtDiagramEventManager$$), $positionY$$ = .5 * ($DvtDiagramCategoryRolloverHandler$$ - 
      $iconHeight$$4$$);
      if (void 0 !== $DvtDiagramDataAnimationHandler$$.positionX) {
        $positionX$$ = parseFloat($DvtDiagramDataAnimationHandler$$.positionX), $dvt$$6$$.$Agent$.$isRightToLeft$($container$$80$$.$getCtx$()) && ($positionX$$ = $DvtDiagramKeyboardHandler$$ - $positionX$$ - $DvtDiagramEventManager$$);
      } else {
        var $resolvedHalign$$ = $DvtDiagramDataAnimationHandler$$.halign;
        "start" == $resolvedHalign$$ ? $resolvedHalign$$ = $dvt$$6$$.$Agent$.$isRightToLeft$($container$$80$$.$getCtx$()) ? "right" : "left" : "end" == $resolvedHalign$$ && ($resolvedHalign$$ = $dvt$$6$$.$Agent$.$isRightToLeft$($container$$80$$.$getCtx$()) ? "left" : "right");
        $positionX$$ = "left" == $resolvedHalign$$ ? 0 : "right" == $resolvedHalign$$ ? $DvtDiagramKeyboardHandler$$ - $DvtDiagramEventManager$$ : $positionX$$;
      }
      void 0 !== $DvtDiagramDataAnimationHandler$$.positionY ? $positionY$$ = parseFloat($DvtDiagramDataAnimationHandler$$.positionY) : "top" == $DvtDiagramDataAnimationHandler$$.valign ? $positionY$$ = 0 : "bottom" == $DvtDiagramDataAnimationHandler$$.valign && ($positionY$$ = $DvtDiagramCategoryRolloverHandler$$ - $iconHeight$$4$$);
      $container$$80$$.$_shape$.$setTranslate$($positionX$$, $positionY$$);
    }
  };
  $DvtDiagramNode$$.$_renderNodeLabels$ = function $$DvtDiagramNode$$$$_renderNodeLabels$$($DvtDiagramDefaults$$, $labelWidth$$4_nodeData$$30$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramDataAnimationHandler$$.$_labelObj$ && ($DvtDiagramDataAnimationHandler$$.removeChild($DvtDiagramDataAnimationHandler$$.$_labelObj$), $DvtDiagramDataAnimationHandler$$.$_labelObj$ = null);
    var $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$Agent$.$isRightToLeft$($DvtDiagramDefaults$$.$getCtx$()) ? $dvt$$6$$.$OutputText$.$H_ALIGN_RIGHT$ : $dvt$$6$$.$OutputText$.$H_ALIGN_LEFT$;
    $labelWidth$$4_nodeData$$30$$.label && ($DvtDiagramDefaults$$ = $DvtDiagramNode$$.$createText$($DvtDiagramDefaults$$.$getCtx$(), $labelWidth$$4_nodeData$$30$$.label, $labelWidth$$4_nodeData$$30$$.labelStyle, $DvtDiagramKeyboardHandler$$, $dvt$$6$$.$OutputText$.$V_ALIGN_TOP$), $labelWidth$$4_nodeData$$30$$ = $dvt$$6$$.$CSSStyle$.$toNumber$((new $dvt$$6$$.$CSSStyle$($labelWidth$$4_nodeData$$30$$.labelStyle)).getWidth()), 0 < $labelWidth$$4_nodeData$$30$$ && $dvt$$6$$.$TextUtils$.$fitText$($DvtDiagramDefaults$$, 
    $labelWidth$$4_nodeData$$30$$, Infinity, $DvtDiagramDataAnimationHandler$$) || $DvtDiagramDataAnimationHandler$$.$addChild$($DvtDiagramDefaults$$), $DvtDiagramDataAnimationHandler$$.$_labelObj$ = $DvtDiagramDefaults$$);
  };
  $DvtDiagramNode$$.$createText$ = function $$DvtDiagramNode$$$$createText$$($DvtDiagramDefaults$$, $strText$$2$$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$) {
    $DvtDiagramDefaults$$ = new $dvt$$6$$.$OutputText$($DvtDiagramDefaults$$, $strText$$2$$, 0, 0);
    $DvtDiagramDefaults$$.$setCSSStyle$(new $dvt$$6$$.$CSSStyle$($DvtDiagramDataAnimationHandler$$));
    $DvtDiagramDefaults$$.$setHorizAlignment$($DvtDiagramKeyboardHandler$$);
    $DvtDiagramDefaults$$.$setVertAlignment$($DvtDiagramCategoryRolloverHandler$$);
    return $DvtDiagramDefaults$$;
  };
  $DvtDiagramNode$$.$_addHoverSelectionStrokes$ = function $$DvtDiagramNode$$$$_addHoverSelectionStrokes$$($DvtDiagramDefaults$$, $nodeData$$31$$) {
    var $DvtDiagramDataAnimationHandler$$ = $nodeData$$31$$.hoverInnerColor, $DvtDiagramKeyboardHandler$$ = $nodeData$$31$$.hoverOuterColor, $DvtDiagramCategoryRolloverHandler$$ = $nodeData$$31$$.selectionColor, $DvtDiagramEventManager$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramDataAnimationHandler$$, 1, 4);
    $DvtDiagramEventManager$$.$setFixedWidth$(!0);
    $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramKeyboardHandler$$, 1, 8);
    $DvtDiagramKeyboardHandler$$.$setFixedWidth$(!0);
    var $sis$$1$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramCategoryRolloverHandler$$, 1, 2);
    $sis$$1$$.$setFixedWidth$(!0);
    var $sos$$1$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramCategoryRolloverHandler$$, 1, 4);
    $sos$$1$$.$setFixedWidth$(!0);
    $DvtDiagramDataAnimationHandler$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramDataAnimationHandler$$, 1, 4);
    $DvtDiagramDataAnimationHandler$$.$setFixedWidth$(!0);
    $DvtDiagramCategoryRolloverHandler$$ = new $dvt$$6$$.$SolidStroke$($DvtDiagramCategoryRolloverHandler$$, 1, 8);
    $DvtDiagramCategoryRolloverHandler$$.$setFixedWidth$(!0);
    $DvtDiagramDefaults$$.$setHoverStroke$($DvtDiagramEventManager$$, $DvtDiagramKeyboardHandler$$).$setSelectedStroke$($sis$$1$$, $sos$$1$$).$setSelectedHoverStroke$($DvtDiagramDataAnimationHandler$$, $DvtDiagramCategoryRolloverHandler$$);
  };
  $DvtDiagramNode$$.prototype.$setSelectionShape$ = function $$DvtDiagramNode$$$$$setSelectionShape$$($dvt$$6$$) {
    this.$_selectionShape$ = $dvt$$6$$;
  };
  $DvtDiagramNode$$.prototype.$getSelectionShape$ = function $$DvtDiagramNode$$$$$getSelectionShape$$() {
    if (!this.$_selectionShape$ && this.$_contentDims$) {
      var $DvtDiagramDefaults$$ = new $dvt$$6$$.Rect(this.$_diagram$.$getCtx$(), this.$_contentDims$.x, this.$_contentDims$.y, this.$_contentDims$.$w$, this.$_contentDims$.$h$);
      $DvtDiagramDefaults$$.$setInvisibleFill$();
      this.$setSelectionShape$($DvtDiagramDefaults$$);
      this.$addChildAt$($DvtDiagramDefaults$$, 0);
      $DvtDiagramNode$$.$_addHoverSelectionStrokes$($DvtDiagramDefaults$$, this.getData());
      this.$_selectionShape$ = $DvtDiagramDefaults$$;
    }
    return this.$_selectionShape$;
  };
  $DvtDiagramNode$$.prototype.$showHoverEffect$ = function $$DvtDiagramNode$$$$$showHoverEffect$$() {
    if (!this.$_isShowingHoverEffect$) {
      var $dvt$$6$$ = this.$_getState$();
      this.$_isShowingHoverEffect$ = !0;
      this.$_diagram$.$getOptions$().hoverRenderer ? this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().hoverRenderer, this.$_getState$(), $dvt$$6$$) : this.$processDefaultHoverEffect$(!0);
    }
  };
  $DvtDiagramNode$$.prototype.$hideHoverEffect$ = function $$DvtDiagramNode$$$$$hideHoverEffect$$() {
    if (this.$_isShowingHoverEffect$) {
      var $dvt$$6$$ = this.$_getState$();
      this.$_isShowingHoverEffect$ = !1;
      this.$_diagram$.$getOptions$().hoverRenderer ? this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().hoverRenderer, this.$_getState$(), $dvt$$6$$) : this.$processDefaultHoverEffect$(!1);
    }
  };
  $DvtDiagramNode$$.prototype.$processDefaultHoverEffect$ = function $$DvtDiagramNode$$$$$processDefaultHoverEffect$$($dvt$$6$$) {
    this.$getSelectionShape$() && ($dvt$$6$$ ? this.$getSelectionShape$().$showHoverEffect$() : this.$getSelectionShape$().$hideHoverEffect$());
  };
  $DvtDiagramNode$$.prototype.$getDatatip$ = function $$DvtDiagramNode$$$$$getDatatip$$() {
    var $dvt$$6$$ = this.$GetDiagram$().$getOptions$().tooltip;
    return ($dvt$$6$$ = $dvt$$6$$ ? $dvt$$6$$.renderer : null) ? this.$GetDiagram$().$getCtx$().$getTooltipManager$().$getCustomTooltip$($dvt$$6$$, this.$getDataContext$()) : this.$getShortDesc$();
  };
  $DvtDiagramNode$$.prototype.$getShortDesc$ = function $$DvtDiagramNode$$$$$getShortDesc$$() {
    return this.getData().shortDesc;
  };
  $DvtDiagramNode$$.prototype.$getDataContext$ = function $$DvtDiagramNode$$$$$getDataContext$$() {
    return {id:this.getId(), type:"node", label:this.getData().label, data:this.getData()._origData, component:this.$GetDiagram$().$getOptions$()._widgetConstructor};
  };
  $DvtDiagramNode$$.prototype.$getAriaLabel$ = function $$DvtDiagramNode$$$$$getAriaLabel$$() {
    var $DvtDiagramDefaults$$ = [];
    this.$isSelectable$() && $DvtDiagramDefaults$$.push($dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$UTIL_PREFIX$, this.$isSelected$() ? "STATE_SELECTED" : "STATE_UNSELECTED"));
    this.$isContainer$() && $DvtDiagramDefaults$$.push(this.$isDisclosed$() ? $dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$UTIL_PREFIX$, "STATE_EXPANDED") : $dvt$$6$$.$Bundle$.$getTranslatedString$($dvt$$6$$.$Bundle$.$UTIL_PREFIX$, "STATE_COLLAPSED"));
    return $dvt$$6$$.$Displayable$.$generateAriaLabel$(this.$getShortDesc$(), $DvtDiagramDefaults$$);
  };
  $DvtDiagramNode$$.prototype.$UpdateAriaLabel$ = function $$DvtDiagramNode$$$$$UpdateAriaLabel$$() {
    if (!$dvt$$6$$.$Agent$.$deferAriaCreation$()) {
      var $DvtDiagramDefaults$$ = this.$getAriaLabel$();
      $DvtDiagramDefaults$$ && this.$setAriaProperty$("label", $DvtDiagramDefaults$$);
    }
  };
  $DvtDiagramNode$$.prototype.$getNextNavigable$ = function $$DvtDiagramNode$$$$$getNextNavigable$$($DvtDiagramDefaults$$) {
    var $next$$5_parentNode$$4_siblings$$ = null;
    if ($DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$SPACE$ && $DvtDiagramDefaults$$.ctrlKey) {
      $next$$5_parentNode$$4_siblings$$ = this;
    } else {
      if (($DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$OPEN_ANGLED_BRACKET$ || $dvt$$6$$.KeyboardEvent.$CLOSE_ANGLED_BRACKET$) && $DvtDiagramDefaults$$.altKey) {
        var $DvtDiagramDataAnimationHandler$$ = this.$GetDiagram$().$getNavigableLinksForNodeId$(this.getId()), $DvtDiagramKeyboardHandler$$ = this.$GetDiagram$().$getEventManager$().$KeyboardHandler$;
        $DvtDiagramKeyboardHandler$$ && $DvtDiagramKeyboardHandler$$.$getFirstNavigableLink$ && ($next$$5_parentNode$$4_siblings$$ = $DvtDiagramKeyboardHandler$$.$getFirstNavigableLink$(this, $DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$));
        $next$$5_parentNode$$4_siblings$$ ? $next$$5_parentNode$$4_siblings$$.$setKeyboardFocusNode$(this) : $next$$5_parentNode$$4_siblings$$ = this;
      } else {
        $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$OPEN_BRACKET$ ? $next$$5_parentNode$$4_siblings$$ = this.$isDisclosed$() ? this.$getChildNodes$()[0] : this : $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$CLOSE_BRACKET$ ? $next$$5_parentNode$$4_siblings$$ = ($next$$5_parentNode$$4_siblings$$ = this.$getGroupId$() ? this.$GetDiagram$().$getNodeById$(this.$getGroupId$()) : null) ? $next$$5_parentNode$$4_siblings$$ : this : $DvtDiagramDefaults$$.type == $dvt$$6$$.MouseEvent.$CLICK$ ? 
        $next$$5_parentNode$$4_siblings$$ = this : ($next$$5_parentNode$$4_siblings$$ = ($next$$5_parentNode$$4_siblings$$ = this.$getGroupId$() ? this.$GetDiagram$().$getNodeById$(this.$getGroupId$()) : null) ? $next$$5_parentNode$$4_siblings$$.$getChildNodes$() : this.$GetDiagram$().$GetRootNodeObjects$(), $next$$5_parentNode$$4_siblings$$ = $dvt$$6$$.$KeyboardHandler$.$getNextAdjacentNavigable$(this, $DvtDiagramDefaults$$, $next$$5_parentNode$$4_siblings$$));
      }
    }
    return $next$$5_parentNode$$4_siblings$$;
  };
  $DvtDiagramNode$$.prototype.$HandleKeyboardEvent$ = function $$DvtDiagramNode$$$$$HandleKeyboardEvent$$($DvtDiagramDefaults$$) {
    $DvtDiagramDefaults$$.keyCode == $dvt$$6$$.KeyboardEvent.$SPACE$ && $DvtDiagramDefaults$$.ctrlKey && $DvtDiagramDefaults$$.shiftKey && this.$isContainer$() && this.$GetDiagram$().$setNodeDisclosed$(this.getId(), !this.$isDisclosed$());
  };
  $DvtDiagramNode$$.prototype.$isContainer$ = function $$DvtDiagramNode$$$$$isContainer$$() {
    return 0 == this.$GetDiagram$().$getOptions$().data.getChildCount(this.getData()) ? !1 : !0;
  };
  $DvtDiagramNode$$.prototype.$showKeyboardFocusEffect$ = function $$DvtDiagramNode$$$$$showKeyboardFocusEffect$$() {
    if (!this.$isShowingKeyboardFocusEffect$()) {
      var $dvt$$6$$ = this.$_getState$();
      this.$_isShowingKeyboardFocusEffect$ = !0;
      this.$_diagram$.$getOptions$().focusRenderer ? this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().focusRenderer, this.$_getState$(), $dvt$$6$$) : this.$processDefaultFocusEffect$(!0);
    }
  };
  $DvtDiagramNode$$.prototype.$hideKeyboardFocusEffect$ = function $$DvtDiagramNode$$$$$hideKeyboardFocusEffect$$() {
    this.$isShowingKeyboardFocusEffect$() && (this.$_getState$(), this.$_isShowingKeyboardFocusEffect$ = !1, this.$_diagram$.$getOptions$().focusRenderer ? this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().focusRenderer, this.getData(), this.$_getState$()) : this.$processDefaultFocusEffect$(!1));
  };
  $DvtDiagramNode$$.prototype.$processDefaultFocusEffect$ = function $$DvtDiagramNode$$$$$processDefaultFocusEffect$$($dvt$$6$$) {
    this.$processDefaultHoverEffect$($dvt$$6$$);
  };
  $DvtDiagramNode$$.prototype.$isShowingKeyboardFocusEffect$ = function $$DvtDiagramNode$$$$$isShowingKeyboardFocusEffect$$() {
    return this.$_isShowingKeyboardFocusEffect$;
  };
  $DvtDiagramNode$$.prototype.$getCategories$ = function $$DvtDiagramNode$$$$$getCategories$$() {
    return this.getData().categories ? this.getData().categories : [this.getId()];
  };
  $DvtDiagramNode$$.prototype.$isHidden$ = function $$DvtDiagramNode$$$$$isHidden$$() {
    var $DvtDiagramDefaults$$ = this.$GetDiagram$().$getOptions$().hiddenCategories;
    return $DvtDiagramDefaults$$ && $dvt$$6$$.$ArrayUtils$.$hasAnyItem$($DvtDiagramDefaults$$, this.$getCategories$()) ? !0 : !1;
  };
  $DvtDiagramNode$$.prototype.$_calcContentDims$ = function $$DvtDiagramNode$$$$$_calcContentDims$$() {
    var $DvtDiagramDefaults$$ = null;
    if (this.$_customNodeContent$) {
      var $bbox$$13$$;
      this.$_customNodeContent$ instanceof $dvt$$6$$.$BaseComponent$ ? ($bbox$$13$$ = this.$_customNodeContent$.$getDimensions$()) && ($DvtDiagramDefaults$$ = new $dvt$$6$$.$Rectangle$($bbox$$13$$.x, $bbox$$13$$.y, $bbox$$13$$.$w$, $bbox$$13$$.$h$)) : ($bbox$$13$$ = this.$_customNodeContent$.getBBox()) && ($DvtDiagramDefaults$$ = new $dvt$$6$$.$Rectangle$($bbox$$13$$.x, $bbox$$13$$.y, $bbox$$13$$.width, $bbox$$13$$.height));
    } else {
      this.$isDisclosed$() ? $DvtDiagramDefaults$$ = this.$_containerShape$.$GetDimensionsWithStroke$(this) : ($DvtDiagramDefaults$$ = this.$_background$ ? this.$_background$.$GetDimensionsWithStroke$(this) : null) && this.$_shape$ ? $DvtDiagramDefaults$$ = $DvtDiagramDefaults$$.$getUnion$(this.$_shape$.$GetDimensionsWithStroke$(this)) : !$DvtDiagramDefaults$$ && this.$_shape$ && ($DvtDiagramDefaults$$ = this.$_shape$.$GetDimensionsWithStroke$(this));
    }
    return $DvtDiagramDefaults$$;
  };
  $DvtDiagramNode$$.prototype.$animateUpdate$ = function $$DvtDiagramNode$$$$$animateUpdate$$($DvtDiagramDefaults$$, $oldNode$$9$$) {
    var $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$CustomAnimation$(this.$getCtx$(), null, $DvtDiagramDefaults$$.$getAnimationDuration$());
    if (this.$isDisclosed$() || $oldNode$$9$$.$isDisclosed$()) {
      if (this.$isDisclosed$() && $oldNode$$9$$.$isDisclosed$()) {
        if (this.$_diagram$.$getOptions$().renderer) {
          this.$_animateCustomUpdate$($DvtDiagramDefaults$$, $oldNode$$9$$);
        } else {
          $DvtDiagramNode$$.$_animatePosition$($DvtDiagramKeyboardHandler$$, $oldNode$$9$$, this);
          $DvtDiagramNode$$.$_animateContainer$($DvtDiagramKeyboardHandler$$, $oldNode$$9$$.$_containerShape$, this.$_containerShape$);
          if ($dvt$$6$$.$Agent$.$isRightToLeft$(this.$getCtx$()) && $oldNode$$9$$.$_containerButton$ && this.$_containerButton$) {
            var $DvtDiagramCategoryRolloverHandler$$ = $oldNode$$9$$.$_containerButton$.$getTranslateX$(), $DvtDiagramEventManager$$ = this.$_containerButton$.$getTranslateX$();
            $DvtDiagramCategoryRolloverHandler$$ != $DvtDiagramEventManager$$ && (this.$_containerButton$.$setTranslateX$($DvtDiagramCategoryRolloverHandler$$), $DvtDiagramKeyboardHandler$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, this.$_containerButton$, this.$_containerButton$.$getTranslateX$, this.$_containerButton$.$setTranslateX$, $DvtDiagramEventManager$$));
          }
          for (var $DvtDiagramCategoryRolloverHandler$$ = [], $DvtDiagramEventManager$$ = [], $newChildIds_oldChildIds$$ = this.$_childNodeIds$, $i$$390$$ = 0;$i$$390$$ < $newChildIds_oldChildIds$$.length;$i$$390$$++) {
            $DvtDiagramCategoryRolloverHandler$$.push(this.$GetDiagram$().$getNodeById$($newChildIds_oldChildIds$$[$i$$390$$]));
          }
          for (var $newChildIds_oldChildIds$$ = $oldNode$$9$$.$_childNodeIds$, $oldNodes$$4$$ = $DvtDiagramDefaults$$.$_oldDiagram$.$getNodes$(), $i$$390$$ = 0;$i$$390$$ < $newChildIds_oldChildIds$$.length;$i$$390$$++) {
            $DvtDiagramEventManager$$.push($oldNodes$$4$$[$newChildIds_oldChildIds$$[$i$$390$$]]);
          }
          $DvtDiagramDefaults$$.$constructAnimation$($DvtDiagramEventManager$$, $DvtDiagramCategoryRolloverHandler$$);
        }
      } else {
        this.$_animateCustomUpdate$($DvtDiagramDefaults$$, $oldNode$$9$$);
      }
    } else {
      $DvtDiagramNode$$.$_animatePosition$($DvtDiagramKeyboardHandler$$, $oldNode$$9$$, this), $oldNode$$9$$.$_shape$ && this.$_shape$ && ($DvtDiagramKeyboardHandler$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_RECTANGLE$, this.$_shape$, this.$_shape$.$getCenterDimensions$, this.$_shape$.$setCenterDimensions$, this.$_shape$.$getCenterDimensions$()), this.$_shape$.$setCenterDimensions$($oldNode$$9$$.$_shape$.$getCenterDimensions$())), $oldNode$$9$$.$_labelObj$ && this.$_labelObj$ && ($DvtDiagramCategoryRolloverHandler$$ = 
      $oldNode$$9$$.$_labelObj$.$getMatrix$(), $DvtDiagramEventManager$$ = this.$_labelObj$.$getMatrix$(), $DvtDiagramCategoryRolloverHandler$$.$equals$($DvtDiagramEventManager$$) || (this.$_labelObj$.$setMatrix$($DvtDiagramCategoryRolloverHandler$$), $DvtDiagramKeyboardHandler$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_MATRIX$, this.$_labelObj$, this.$_labelObj$.$getMatrix$, this.$_labelObj$.$setMatrix$, $DvtDiagramEventManager$$))), $DvtDiagramNode$$.$_animateFill$($DvtDiagramKeyboardHandler$$, 
      $oldNode$$9$$.$_background$, this.$_background$), $DvtDiagramNode$$.$_animateFill$($DvtDiagramKeyboardHandler$$, $oldNode$$9$$.$_shape$, this.$_shape$);
    }
    $DvtDiagramDefaults$$.add($DvtDiagramKeyboardHandler$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
  };
  $DvtDiagramNode$$.prototype.$_animateCustomUpdate$ = function $$DvtDiagramNode$$$$$_animateCustomUpdate$$($DvtDiagramDefaults$$, $oldNode$$10$$) {
    var $DvtDiagramKeyboardHandler$$ = $oldNode$$10$$.$getContentBounds$(), $DvtDiagramCategoryRolloverHandler$$ = this.$getContentBounds$();
    if ($DvtDiagramKeyboardHandler$$.$equals$($DvtDiagramCategoryRolloverHandler$$)) {
      var $DvtDiagramEventManager$$ = new $dvt$$6$$.$CustomAnimation$(this.$getCtx$(), null, $DvtDiagramDefaults$$.$getAnimationDuration$());
      $DvtDiagramNode$$.$_animatePosition$($DvtDiagramEventManager$$, $oldNode$$10$$, this);
      $DvtDiagramDefaults$$.add($DvtDiagramEventManager$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
    } else {
      this.getParent().$addChild$($oldNode$$10$$);
      var $scaleTo$$ = $DvtDiagramCategoryRolloverHandler$$.$w$ / $DvtDiagramKeyboardHandler$$.$w$, $fadeIn_scaleFrom_scaleNewToOld$$ = $DvtDiagramKeyboardHandler$$.$w$ / $DvtDiagramCategoryRolloverHandler$$.$w$, $DvtDiagramEventManager$$ = new $dvt$$6$$.$CustomAnimation$(this.$getCtx$(), null, $DvtDiagramDefaults$$.$getAnimationDuration$()), $newNodeCenter_newTx$$3$$ = new $dvt$$6$$.$Point$(this.$getTranslateX$() + .5 * $DvtDiagramCategoryRolloverHandler$$.$w$, this.$getTranslateY$() + .5 * $DvtDiagramCategoryRolloverHandler$$.$h$);
      $DvtDiagramEventManager$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $oldNode$$10$$, $oldNode$$10$$.$getTranslateX$, $oldNode$$10$$.$setTranslateX$, $newNodeCenter_newTx$$3$$.x - $DvtDiagramKeyboardHandler$$.$w$ * $scaleTo$$ * .5);
      $DvtDiagramEventManager$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $oldNode$$10$$, $oldNode$$10$$.$getTranslateY$, $oldNode$$10$$.$setTranslateY$, $newNodeCenter_newTx$$3$$.y - $DvtDiagramKeyboardHandler$$.$h$ * $scaleTo$$ * .5);
      var $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$Point$($oldNode$$10$$.$getTranslateX$() + .5 * $DvtDiagramKeyboardHandler$$.$w$, $oldNode$$10$$.$getTranslateY$() + .5 * $DvtDiagramKeyboardHandler$$.$h$), $newNodeCenter_newTx$$3$$ = this.$getTranslateX$(), $newTy$$3$$ = this.$getTranslateY$();
      this.$setTranslateX$($DvtDiagramKeyboardHandler$$.x - $DvtDiagramCategoryRolloverHandler$$.$w$ * $fadeIn_scaleFrom_scaleNewToOld$$ * .5);
      this.$setTranslateY$($DvtDiagramKeyboardHandler$$.y - $DvtDiagramCategoryRolloverHandler$$.$w$ * $fadeIn_scaleFrom_scaleNewToOld$$ * .5);
      $DvtDiagramEventManager$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateX$, this.$setTranslateX$, $newNodeCenter_newTx$$3$$);
      $DvtDiagramEventManager$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, this, this.$getTranslateY$, this.$setTranslateY$, $newTy$$3$$);
      $DvtDiagramDefaults$$.add($DvtDiagramEventManager$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
      $DvtDiagramCategoryRolloverHandler$$ = new $dvt$$6$$.$AnimScaleTo$(this.$getCtx$(), $oldNode$$10$$, new $dvt$$6$$.$Point$($scaleTo$$, $scaleTo$$), $DvtDiagramDefaults$$.$getAnimationDuration$());
      $DvtDiagramDefaults$$.add($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
      $DvtDiagramCategoryRolloverHandler$$ = new $dvt$$6$$.$AnimFadeOut$(this.$getCtx$(), $oldNode$$10$$, $DvtDiagramDefaults$$.$getAnimationDuration$());
      $DvtDiagramDefaults$$.add($DvtDiagramCategoryRolloverHandler$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
      var $thisRef$$32$$ = this;
      $dvt$$6$$.$Playable$.$appendOnEnd$($DvtDiagramCategoryRolloverHandler$$, function() {
        $thisRef$$32$$.getParent().removeChild($oldNode$$10$$);
      });
      this.$setScaleX$($fadeIn_scaleFrom_scaleNewToOld$$);
      this.$setScaleY$($fadeIn_scaleFrom_scaleNewToOld$$);
      $fadeIn_scaleFrom_scaleNewToOld$$ = new $dvt$$6$$.$AnimScaleTo$(this.$getCtx$(), this, new $dvt$$6$$.$Point$(1, 1), $DvtDiagramDefaults$$.$getAnimationDuration$());
      $DvtDiagramDefaults$$.add($fadeIn_scaleFrom_scaleNewToOld$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
      this.$setAlpha$(0);
      $fadeIn_scaleFrom_scaleNewToOld$$ = new $dvt$$6$$.$AnimFadeIn$(this.$getCtx$(), this, $DvtDiagramDefaults$$.$getAnimationDuration$());
      $DvtDiagramDefaults$$.add($fadeIn_scaleFrom_scaleNewToOld$$, $DvtDiagramDataAnimationHandler$$.$UPDATE$);
    }
  };
  $DvtDiagramNode$$.$_animatePosition$ = function $$DvtDiagramNode$$$$_animatePosition$$($DvtDiagramDefaults$$, $oldNode$$11_oldTy$$2$$, $DvtDiagramDataAnimationHandler$$) {
    if ($DvtDiagramDataAnimationHandler$$ && $oldNode$$11_oldTy$$2$$) {
      var $DvtDiagramKeyboardHandler$$ = $oldNode$$11_oldTy$$2$$.$getTranslateX$();
      $oldNode$$11_oldTy$$2$$ = $oldNode$$11_oldTy$$2$$.$getTranslateY$();
      var $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramDataAnimationHandler$$.$getTranslateX$(), $DvtDiagramEventManager$$ = $DvtDiagramDataAnimationHandler$$.$getTranslateY$();
      $DvtDiagramKeyboardHandler$$ != $DvtDiagramCategoryRolloverHandler$$ && ($DvtDiagramDataAnimationHandler$$.$setTranslateX$($DvtDiagramKeyboardHandler$$), $DvtDiagramDefaults$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramDataAnimationHandler$$.$getTranslateX$, $DvtDiagramDataAnimationHandler$$.$setTranslateX$, $DvtDiagramCategoryRolloverHandler$$));
      $oldNode$$11_oldTy$$2$$ != $DvtDiagramEventManager$$ && ($DvtDiagramDataAnimationHandler$$.$setTranslateY$($oldNode$$11_oldTy$$2$$), $DvtDiagramDefaults$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramDataAnimationHandler$$.$getTranslateY$, $DvtDiagramDataAnimationHandler$$.$setTranslateY$, $DvtDiagramEventManager$$));
    }
  };
  $DvtDiagramNode$$.$_animateContainer$ = function $$DvtDiagramNode$$$$_animateContainer$$($DvtDiagramDefaults$$, $oldDisplayable$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramDataAnimationHandler$$ && $oldDisplayable$$ && ($DvtDiagramNode$$.$_animateFill$($DvtDiagramDefaults$$, $oldDisplayable$$, $DvtDiagramDataAnimationHandler$$), $DvtDiagramDefaults$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramDataAnimationHandler$$.getWidth, $DvtDiagramDataAnimationHandler$$.$setWidth$, $DvtDiagramDataAnimationHandler$$.getWidth()), $DvtDiagramDataAnimationHandler$$.$setWidth$($oldDisplayable$$.getWidth()), 
    $DvtDiagramDefaults$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_NUMBER$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramDataAnimationHandler$$.getHeight, $DvtDiagramDataAnimationHandler$$.$setHeight$, $DvtDiagramDataAnimationHandler$$.getHeight()), $DvtDiagramDataAnimationHandler$$.$setHeight$($oldDisplayable$$.getHeight()));
  };
  $DvtDiagramNode$$.$_animateFill$ = function $$DvtDiagramNode$$$$_animateFill$$($DvtDiagramDefaults$$, $oldDisplayable$$1$$, $DvtDiagramDataAnimationHandler$$) {
    $oldDisplayable$$1$$ && $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$.$getFill$() instanceof $dvt$$6$$.$SolidFill$ && !$DvtDiagramDataAnimationHandler$$.$getFill$().$equals$($oldDisplayable$$1$$.$getFill$()) && ($DvtDiagramDefaults$$.$_animator$.$addProp$($dvt$$6$$.$Animator$.$TYPE_FILL$, $DvtDiagramDataAnimationHandler$$, $DvtDiagramDataAnimationHandler$$.$getFill$, $DvtDiagramDataAnimationHandler$$.$setFill$, $DvtDiagramDataAnimationHandler$$.$getFill$()), $DvtDiagramDataAnimationHandler$$.$setFill$($oldDisplayable$$1$$.$getFill$()));
  };
  $DvtDiagramNode$$.prototype.$animateDelete$ = function $$DvtDiagramNode$$$$$animateDelete$$($DvtDiagramDefaults$$) {
    this.$GetDiagram$().$_nodesPane$.$addChild$(this);
    var $thisRef$$33$$ = this, $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$AnimFadeOut$(this.$getCtx$(), this, $DvtDiagramDefaults$$.$getAnimationDuration$());
    $dvt$$6$$.$Playable$.$appendOnEnd$($DvtDiagramKeyboardHandler$$, function() {
      $thisRef$$33$$.getParent().removeChild($thisRef$$33$$);
      $thisRef$$33$$.$destroy$();
    });
    $DvtDiagramDefaults$$.add($DvtDiagramKeyboardHandler$$, $DvtDiagramDataAnimationHandler$$.$DELETE$);
  };
  $DvtDiagramNode$$.prototype.$animateInsert$ = function $$DvtDiagramNode$$$$$animateInsert$$($DvtDiagramDefaults$$) {
    this.$setAlpha$(0);
    $DvtDiagramDefaults$$.add(new $dvt$$6$$.$AnimFadeIn$(this.$getCtx$(), this, $DvtDiagramDefaults$$.$getAnimationDuration$()), $DvtDiagramDataAnimationHandler$$.$INSERT$);
  };
  $DvtDiagramNode$$.prototype.$_getState$ = function $$DvtDiagramNode$$$$$_getState$$($dvt$$6$$) {
    return {hovered:this.$_isShowingHoverEffect$, selected:this.$isSelected$(), focused:this.$_isShowingKeyboardFocusEffect$, zoom:$dvt$$6$$ ? $dvt$$6$$ : this.$GetDiagram$().$_panZoomCanvas$.$getZoom$(), expanded:this.$isDisclosed$()};
  };
  $DvtDiagramNode$$.prototype.$rerenderOnZoom$ = function $$DvtDiagramNode$$$$$rerenderOnZoom$$($dvt$$6$$) {
    if (this.$_diagram$.$getOptions$().zoomRenderer) {
      var $DvtDiagramDefaults$$ = this.$_getState$($dvt$$6$$.$_oldZoom$);
      $dvt$$6$$ = this.$_getState$($dvt$$6$$.$_newZoom$);
      this.$_applyCustomNodeContent$(this.$_diagram$.$getOptions$().zoomRenderer, $dvt$$6$$, $DvtDiagramDefaults$$);
    }
  };
  $DvtDiagramNode$$.prototype.$setLabelAlignments$ = function $$DvtDiagramNode$$$$$setLabelAlignments$$($DvtDiagramDefaults$$, $valign$$7$$) {
    $DvtDiagramDefaults$$ && ($DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_LEFT$ ? this.$_labelObj$.$alignLeft$() : $DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_CENTER$ ? this.$_labelObj$.$alignCenter$() : $DvtDiagramDefaults$$ == $dvt$$6$$.$OutputText$.$H_ALIGN_RIGHT$ && this.$_labelObj$.$alignRight$());
    $valign$$7$$ && ($valign$$7$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_TOP$ ? this.$_labelObj$.$alignTop$() : $valign$$7$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_MIDDLE$ ? this.$_labelObj$.$alignMiddle$() : $valign$$7$$ == $dvt$$6$$.$OutputText$.$V_ALIGN_BOTTOM$ ? this.$_labelObj$.$alignBottom$() : "baseline" == $valign$$7$$ && this.$_labelObj$.$alignAuto$());
  };
  $DvtDiagramNode$$.prototype.$getContainerPadding$ = function $$DvtDiagramNode$$$$$getContainerPadding$$() {
    if (!this.$_containerPadding$ && this.$_diagram$.$getOptions$().renderer) {
      var $dvt$$6$$ = this.$getElem$().getBoundingClientRect(), $DvtDiagramDefaults$$ = this.$_childNodePane$ ? this.$_childNodePane$.$getElem$().getBoundingClientRect() : null;
      this.$_containerPadding$ = {left:$DvtDiagramDefaults$$.left - $dvt$$6$$.left, right:$dvt$$6$$.right - $DvtDiagramDefaults$$.right, top:$DvtDiagramDefaults$$.top - $dvt$$6$$.top, bottom:$dvt$$6$$.bottom - $DvtDiagramDefaults$$.bottom};
    } else {
      this.$_containerPadding$ || ($dvt$$6$$ = $DvtDiagramNode$$.$_getNodeCSSStyle$(this.$_data$.containerSvgStyle || this.$_data$.containerStyle, this.$_data$._containerStyle, ["padding-left", "padding-right", "padding-top", "padding-bottom"]), this.$_containerPadding$ = {left:$dvt$$6$$.$getPadding$("padding-left"), right:$dvt$$6$$.$getPadding$("padding-right"), top:$dvt$$6$$.$getPadding$("padding-top"), bottom:$dvt$$6$$.$getPadding$("padding-bottom")});
    }
    return this.$_containerPadding$;
  };
  $DvtDiagramNode$$.prototype.$addChildNodeId$ = function $$DvtDiagramNode$$$$$addChildNodeId$$($dvt$$6$$) {
    this.$_childNodeIds$ || (this.$_childNodeIds$ = []);
    this.$_childNodeIds$.push($dvt$$6$$);
  };
  $DvtDiagramNode$$.prototype.$getChildNodes$ = function $$DvtDiagramNode$$$$$getChildNodes$$() {
    for (var $dvt$$6$$ = [], $DvtDiagramDefaults$$ = this.$_childNodeIds$ ? this.$_childNodeIds$.length : -1, $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $DvtDiagramDefaults$$;$DvtDiagramDataAnimationHandler$$++) {
      var $DvtDiagramKeyboardHandler$$ = this.$GetDiagram$().$getNodeById$(this.$_childNodeIds$[$DvtDiagramDataAnimationHandler$$]);
      $DvtDiagramKeyboardHandler$$ && $dvt$$6$$.push($DvtDiagramKeyboardHandler$$);
    }
    return $dvt$$6$$;
  };
  $DvtDiagramNode$$.prototype.$setGroupId$ = function $$DvtDiagramNode$$$$$setGroupId$$($dvt$$6$$) {
    this.$_groupId$ = $dvt$$6$$;
  };
  $DvtDiagramNode$$.prototype.$getGroupId$ = function $$DvtDiagramNode$$$$$getGroupId$$() {
    return this.$_groupId$;
  };
  $DvtDiagramNode$$.prototype.$GetChildNodePane$ = function $$DvtDiagramNode$$$$$GetChildNodePane$$() {
    this.$_childNodePane$ || (this.$_childNodePane$ = new $dvt$$6$$.$Container$(this.$getCtx$()), this.$addChild$(this.$_childNodePane$));
    return this.$_childNodePane$;
  };
  $DvtDiagramNode$$.prototype.$handleDisclosure$ = function $$DvtDiagramNode$$$$$handleDisclosure$$($DvtDiagramDefaults$$) {
    $dvt$$6$$.$EventManager$.$consumeEvent$($DvtDiagramDefaults$$);
    this.$_diagram$.$setNodeDisclosed$(this.getId(), !this.$isDisclosed$());
  };
  $DvtDiagramNode$$.$_renderContainer$ = function $$DvtDiagramNode$$$$_renderContainer$$($DvtDiagramDefaults$$, $nodeData$$32$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramDataAnimationHandler$$.$_containerShape$ && ($DvtDiagramDataAnimationHandler$$.removeChild($DvtDiagramDataAnimationHandler$$.$_containerShape$), $DvtDiagramDataAnimationHandler$$.$_containerShape$ = null);
    var $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.$JsonUtils$.clone($nodeData$$32$$.containerSvgStyle || $nodeData$$32$$.containerStyle), $DvtDiagramCategoryRolloverHandler$$ = [$dvt$$6$$.$CSSStyle$.$BACKGROUND_COLOR$, $dvt$$6$$.$CSSStyle$.$BORDER_COLOR$, $dvt$$6$$.$CSSStyle$.$BORDER_WIDTH$, $dvt$$6$$.$CSSStyle$.$BORDER_RADIUS$], $DvtDiagramEventManager$$ = $DvtDiagramNode$$.$_getNodeCSSStyle$($DvtDiagramKeyboardHandler$$, $nodeData$$32$$._containerStyle, $DvtDiagramCategoryRolloverHandler$$), $fillColor$$5$$ = 
    $DvtDiagramEventManager$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BACKGROUND_COLOR$), $borderColor$$22$$ = $DvtDiagramEventManager$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_COLOR$), $borderWidth$$10$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramEventManager$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_WIDTH$)), $DvtDiagramEventManager$$ = $dvt$$6$$.$CSSStyle$.$toNumber$($DvtDiagramEventManager$$.$getStyle$($dvt$$6$$.$CSSStyle$.$BORDER_RADIUS$)), $childBounds$$1_childNodePane$$1$$ = $DvtDiagramDataAnimationHandler$$.$GetChildNodePane$(), 
    $padding$$19$$ = $DvtDiagramDataAnimationHandler$$.$getContainerPadding$();
    $childBounds$$1_childNodePane$$1$$.$setTranslate$($padding$$19$$.left, $padding$$19$$.top);
    $childBounds$$1_childNodePane$$1$$ = $childBounds$$1_childNodePane$$1$$.$getDimensionsWithStroke$();
    $DvtDiagramDefaults$$ = new $dvt$$6$$.Rect($DvtDiagramDefaults$$.$getCtx$(), 0, 0, $childBounds$$1_childNodePane$$1$$.$w$ + $padding$$19$$.left + $padding$$19$$.right, $childBounds$$1_childNodePane$$1$$.$h$ + $padding$$19$$.top + $padding$$19$$.bottom);
    $DvtDiagramDefaults$$.$setSolidFill$($fillColor$$5$$);
    $DvtDiagramEventManager$$ && ($DvtDiagramDefaults$$.$setRx$($DvtDiagramEventManager$$), $DvtDiagramDefaults$$.$setRy$($DvtDiagramEventManager$$));
    $borderColor$$22$$ && $DvtDiagramDefaults$$.$setStroke$(new $dvt$$6$$.$SolidStroke$($borderColor$$22$$, 1, $borderWidth$$10$$));
    $DvtDiagramKeyboardHandler$$ && $dvt$$6$$.$ArrayUtils$.forEach($DvtDiagramCategoryRolloverHandler$$, function($DvtDiagramDefaults$$) {
      delete $DvtDiagramKeyboardHandler$$[$dvt$$6$$.$CSSStyle$.$cssStringToObjectProperty$($DvtDiagramDefaults$$)];
    });
    $DvtDiagramDefaults$$.$setStyle$($DvtDiagramKeyboardHandler$$).$setClassName$($nodeData$$32$$.containerClassName);
    $DvtDiagramDataAnimationHandler$$.$addChildAt$($DvtDiagramDefaults$$, 0);
    $DvtDiagramDataAnimationHandler$$.$setSelectionShape$($DvtDiagramDefaults$$);
    $DvtDiagramDataAnimationHandler$$.$_containerShape$ = $DvtDiagramDefaults$$;
  };
  $DvtDiagramNode$$.$_getNodeCSSStyle$ = function $$DvtDiagramNode$$$$_getNodeCSSStyle$$($DvtDiagramDefaults$$, $styleCSS$$, $DvtDiagramDataAnimationHandler$$) {
    var $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.$CSSStyle$;
    $dvt$$6$$.$ArrayUtils$.forEach($DvtDiagramDataAnimationHandler$$, function($DvtDiagramDataAnimationHandler$$) {
      var $DvtDiagramCategoryRolloverHandler$$ = null, $DvtDiagramEventManager$$ = $dvt$$6$$.$CSSStyle$.$cssStringToObjectProperty$($DvtDiagramDataAnimationHandler$$);
      $DvtDiagramDefaults$$ && null != $DvtDiagramDefaults$$[$DvtDiagramEventManager$$] ? $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramDefaults$$[$DvtDiagramEventManager$$] : $styleCSS$$ && ($DvtDiagramCategoryRolloverHandler$$ = $styleCSS$$.$getStyle$($DvtDiagramDataAnimationHandler$$));
      $DvtDiagramKeyboardHandler$$.$setStyle$($DvtDiagramDataAnimationHandler$$, $DvtDiagramCategoryRolloverHandler$$);
    });
    return $DvtDiagramKeyboardHandler$$;
  };
  $DvtDiagramNode$$.$_renderContainerButton$ = function $$DvtDiagramNode$$$$_renderContainerButton$$($DvtDiagramDefaults$$, $iconEna$$8_nodeData$$33$$, $DvtDiagramDataAnimationHandler$$) {
    $DvtDiagramDataAnimationHandler$$.$_containerButton$ && ($DvtDiagramDataAnimationHandler$$.removeChild($DvtDiagramDataAnimationHandler$$.$_containerButton$), $DvtDiagramDataAnimationHandler$$.$_containerButton$ = null);
    if ($DvtDiagramDataAnimationHandler$$.$isContainer$() && "off" != $iconEna$$8_nodeData$$33$$.showDisclosure) {
      var $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$, $DvtDiagramEventManager$$ = $DvtDiagramDefaults$$.$getOptions$();
      $DvtDiagramDataAnimationHandler$$.$isDisclosed$() ? ($iconEna$$8_nodeData$$33$$ = $DvtDiagramEventManager$$._resources.collapse_ena, $DvtDiagramKeyboardHandler$$ = $DvtDiagramEventManager$$._resources.collapse_ovr, $DvtDiagramCategoryRolloverHandler$$ = $DvtDiagramEventManager$$._resources.collapse_dwn) : ($iconEna$$8_nodeData$$33$$ = $DvtDiagramEventManager$$._resources.expand_ena, $DvtDiagramKeyboardHandler$$ = $DvtDiagramEventManager$$._resources.expand_ovr, $DvtDiagramCategoryRolloverHandler$$ = 
      $DvtDiagramEventManager$$._resources.expand_dwn);
      $DvtDiagramEventManager$$ = new $dvt$$6$$.Image($DvtDiagramDefaults$$.$getCtx$(), $iconEna$$8_nodeData$$33$$.src, 0, 0, $iconEna$$8_nodeData$$33$$.width, $iconEna$$8_nodeData$$33$$.height);
      $DvtDiagramKeyboardHandler$$ = new $dvt$$6$$.Image($DvtDiagramDefaults$$.$getCtx$(), $DvtDiagramKeyboardHandler$$.src, 0, 0, $DvtDiagramKeyboardHandler$$.width, $DvtDiagramKeyboardHandler$$.height);
      $DvtDiagramCategoryRolloverHandler$$ = new $dvt$$6$$.Image($DvtDiagramDefaults$$.$getCtx$(), $DvtDiagramCategoryRolloverHandler$$.src, 0, 0, $DvtDiagramCategoryRolloverHandler$$.width, $DvtDiagramCategoryRolloverHandler$$.height);
      $DvtDiagramEventManager$$ = new $dvt$$6$$.$Button$($DvtDiagramDefaults$$.$getCtx$(), $DvtDiagramEventManager$$, $DvtDiagramKeyboardHandler$$, $DvtDiagramCategoryRolloverHandler$$, null, null, $DvtDiagramDataAnimationHandler$$.$handleDisclosure$, $DvtDiagramDataAnimationHandler$$);
      $DvtDiagramDataAnimationHandler$$.$addChild$($DvtDiagramEventManager$$);
      $DvtDiagramDataAnimationHandler$$.$_contentDims$ && ($DvtDiagramDefaults$$ = $dvt$$6$$.$Agent$.$isRightToLeft$($DvtDiagramDefaults$$.$getCtx$()) ? $DvtDiagramDataAnimationHandler$$.$_contentDims$.x + $DvtDiagramDataAnimationHandler$$.$_contentDims$.$w$ - $iconEna$$8_nodeData$$33$$.width : $DvtDiagramDataAnimationHandler$$.$_contentDims$.x, $DvtDiagramEventManager$$.$setTranslate$($DvtDiagramDefaults$$, $DvtDiagramDataAnimationHandler$$.$_contentDims$.y));
      $DvtDiagramDataAnimationHandler$$.$_containerButton$ = $DvtDiagramEventManager$$;
    }
  };
  $DvtDiagramNode$$.prototype.$isDragAvailable$ = function $$DvtDiagramNode$$$$$isDragAvailable$$() {
    return !0;
  };
  $DvtDiagramNode$$.prototype.$getDragTransferable$ = function $$DvtDiagramNode$$$$$getDragTransferable$$() {
    return "off" === this.getData().draggable ? null : [this.getId()];
  };
  $DvtDiagramNode$$.prototype.$getDragFeedback$ = function $$DvtDiagramNode$$$$$getDragFeedback$$() {
    if (this.$_diagram$.$isSelectionSupported$() && 1 < this.$_diagram$.$getSelectionHandler$().$_selection$.length) {
      for (var $dvt$$6$$ = this.$_diagram$.$getSelectionHandler$().getSelection(), $DvtDiagramDefaults$$ = [], $DvtDiagramDataAnimationHandler$$ = 0;$DvtDiagramDataAnimationHandler$$ < $dvt$$6$$.length;$DvtDiagramDataAnimationHandler$$++) {
        $DvtDiagramDefaults$$.push($dvt$$6$$[$DvtDiagramDataAnimationHandler$$]);
      }
      return $DvtDiagramDefaults$$;
    }
    return this;
  };
  $DvtDiagramNode$$.prototype.$ShowDropEffect$ = function $$DvtDiagramNode$$$$$ShowDropEffect$$() {
    this.$_dropEffect$ || this.$_createDropEffect$("oj-diagram-node oj-active-drop");
  };
  $DvtDiagramNode$$.prototype.$ShowRejectedDropEffect$ = function $$DvtDiagramNode$$$$$ShowRejectedDropEffect$$() {
    this.$_dropEffect$ || this.$_createDropEffect$("oj-diagram-node oj-invalid-drop");
  };
  $DvtDiagramNode$$.prototype.$ClearDropEffect$ = function $$DvtDiagramNode$$$$$ClearDropEffect$$() {
    this.$_dropEffect$ && (this.removeChild(this.$_dropEffect$), this.$_dropEffect$ = null);
  };
  $DvtDiagramNode$$.prototype.$_createDropEffect$ = function $$DvtDiagramNode$$$$$_createDropEffect$$($DvtDiagramDefaults$$) {
    var $dropEffectShape$$;
    if (this.$_customNodeContent$ || this.$isDisclosed$() || this.$_background$ || this.$_shape$ && this.$_shape$ instanceof $dvt$$6$$.$ImageMarker$) {
      $dropEffectShape$$ = new $dvt$$6$$.Rect(this.$_diagram$.$getCtx$(), this.$_contentDims$.x, this.$_contentDims$.y, this.$_contentDims$.$w$, this.$_contentDims$.$h$);
      var $DvtDiagramDataAnimationHandler$$ = this.$isDisclosed$() ? this.$_containerShape$.$getRx$() : this.$_background$ ? this.$_background$.$getRx$() : null;
      $DvtDiagramDataAnimationHandler$$ && ($dropEffectShape$$.$setRx$($DvtDiagramDataAnimationHandler$$), $dropEffectShape$$.$setRy$($DvtDiagramDataAnimationHandler$$));
    } else {
      this.$_shape$ && this.$_shape$ instanceof $dvt$$6$$.$SimpleMarker$ && ($dropEffectShape$$ = this.$_shape$.$copyShape$());
    }
    $dropEffectShape$$.$setInvisibleFill$();
    $dropEffectShape$$.$setClassName$($DvtDiagramDefaults$$);
    $dropEffectShape$$.$setMouseEnabled$(!1);
    this.$addChild$($dropEffectShape$$);
    this.$_dropEffect$ = $dropEffectShape$$;
  };
  $DvtDiagramNode$$.prototype.$_setDraggableStyleClass$ = function $$DvtDiagramNode$$$$$_setDraggableStyleClass$$() {
    this.$_diagram$.$getEventManager$().$IsDragSupported$() && "off" != this.getData().draggable && (this.$_customNodeContent$ ? this : this.$isDisclosed$() ? this.$_containerShape$ : this.$_background$ ? this.$_background$ : this.$_shape$).$setClassName$("oj-diagram-node oj-draggable");
  };
  $DvtDiagramNode$$.$ConvertNodeData$ = function $$DvtDiagramNode$$$$ConvertNodeData$$($dvt$$6$$) {
    return {id:$dvt$$6$$.id, label:$dvt$$6$$.label, selectable:$dvt$$6$$.selectable, shortDesc:$dvt$$6$$.shortDesc, categories:$dvt$$6$$.categories, nodes:$dvt$$6$$.nodes, _origData:$dvt$$6$$};
  };
  $dvt$$6$$.$Obj$.$createSubclass$($DvtDiagramAutomation$$, $dvt$$6$$.$Automation$, "DvtDiagramAutomation");
  $DvtDiagramAutomation$$.prototype.Init = function $$DvtDiagramAutomation$$$$Init$($dvt$$6$$) {
    this.$_diagram$ = $dvt$$6$$;
  };
  $DvtDiagramAutomation$$.prototype.$GetSubIdForDomElement$ = function $$DvtDiagramAutomation$$$$$GetSubIdForDomElement$$($dvt$$6$$) {
    return ($dvt$$6$$ = this.$_diagram$.$getEventManager$().$GetLogicalObject$($dvt$$6$$)) && $dvt$$6$$ instanceof $DvtDiagramNode$$ ? "node[" + this.$_diagram$.$GetAllNodes$().indexOf($dvt$$6$$.getId()) + "]" : $dvt$$6$$ && $dvt$$6$$ instanceof $DvtDiagramLink$$ ? "link[" + this.$_diagram$.$GetAllLinks$().indexOf($dvt$$6$$.getId()) + "]" : null;
  };
  $DvtDiagramAutomation$$.prototype.$getDomElementForSubId$ = function $$DvtDiagramAutomation$$$$$getDomElementForSubId$$($DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$ == $dvt$$6$$.$Automation$.$TOOLTIP_SUBID$) {
      return this.$GetTooltipElement$(this.$_diagram$);
    }
    var $index$$143_parsedSubId$$1$$ = this.$_parseSubId$($DvtDiagramDefaults$$);
    $DvtDiagramDefaults$$ = $index$$143_parsedSubId$$1$$.component;
    var $index$$143_parsedSubId$$1$$ = $index$$143_parsedSubId$$1$$.index, $DvtDiagramDataAnimationHandler$$ = null;
    "node" == $DvtDiagramDefaults$$ ? $DvtDiagramDataAnimationHandler$$ = this.$_getNode$($index$$143_parsedSubId$$1$$) : "link" == $DvtDiagramDefaults$$ && ($DvtDiagramDataAnimationHandler$$ = this.$_getLink$($index$$143_parsedSubId$$1$$));
    return $DvtDiagramDataAnimationHandler$$ ? $DvtDiagramDataAnimationHandler$$.$getElem$() : null;
  };
  $DvtDiagramAutomation$$.prototype.$_parseSubId$ = function $$DvtDiagramAutomation$$$$$_parseSubId$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = $dvt$$6$$, $DvtDiagramDataAnimationHandler$$ = -1, $DvtDiagramKeyboardHandler$$ = $dvt$$6$$.substring(0, $dvt$$6$$.indexOf("["));
    $DvtDiagramKeyboardHandler$$ && ($DvtDiagramDefaults$$ = "node" == $DvtDiagramKeyboardHandler$$ || "link" == $DvtDiagramKeyboardHandler$$ ? $DvtDiagramKeyboardHandler$$ : null, $DvtDiagramDataAnimationHandler$$ = parseInt($dvt$$6$$.substring($dvt$$6$$.indexOf("[") + 1, $dvt$$6$$.indexOf("]"))));
    return {component:$DvtDiagramDefaults$$, index:$DvtDiagramDataAnimationHandler$$};
  };
  $DvtDiagramAutomation$$.prototype.$getNodeCount$ = function $$DvtDiagramAutomation$$$$$getNodeCount$$() {
    return this.$_diagram$.$getNodeCount$();
  };
  $DvtDiagramAutomation$$.prototype.$getLinkCount$ = function $$DvtDiagramAutomation$$$$$getLinkCount$$() {
    return this.$_diagram$.$getLinkCount$();
  };
  $DvtDiagramAutomation$$.prototype.$getNode$ = function $$DvtDiagramAutomation$$$$$getNode$$($DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$ = this.$_getNode$($DvtDiagramDefaults$$)) {
      var $data$$69$$ = {};
      $data$$69$$.id = $DvtDiagramDefaults$$.getId();
      $data$$69$$.selected = $DvtDiagramDefaults$$.$isSelected$();
      $data$$69$$.tooltip = $DvtDiagramDefaults$$.$getShortDesc$();
      $data$$69$$.label = $DvtDiagramDefaults$$.getData().label;
      var $DvtDiagramDataAnimationHandler$$ = $DvtDiagramDefaults$$.getData().backgroundStyle;
      $DvtDiagramDataAnimationHandler$$ && $DvtDiagramDataAnimationHandler$$ instanceof Object && ($DvtDiagramDataAnimationHandler$$ = $dvt$$6$$.$CSSStyle$.$cssObjectToString$($DvtDiagramDataAnimationHandler$$));
      $data$$69$$.background = $DvtDiagramDataAnimationHandler$$;
      $data$$69$$.icon = this.$_getMarkerData$($DvtDiagramDefaults$$.$GetIcon$());
      $data$$69$$.expanded = $DvtDiagramDefaults$$.$isDisclosed$();
      return $data$$69$$;
    }
    return null;
  };
  $DvtDiagramAutomation$$.prototype.$getLink$ = function $$DvtDiagramAutomation$$$$$getLink$$($dvt$$6$$) {
    if ($dvt$$6$$ = this.$_getLink$($dvt$$6$$)) {
      var $DvtDiagramDefaults$$ = {};
      $DvtDiagramDefaults$$.id = $dvt$$6$$.getId();
      $DvtDiagramDefaults$$.selected = $dvt$$6$$.$isSelected$();
      $DvtDiagramDefaults$$.tooltip = $dvt$$6$$.$getShortDesc$();
      $DvtDiagramDefaults$$.label = $dvt$$6$$.getData().label;
      $DvtDiagramDefaults$$.color = $dvt$$6$$.$getLinkColor$();
      $DvtDiagramDefaults$$.width = $dvt$$6$$.$getLinkWidth$();
      $DvtDiagramDefaults$$.style = this.$_getLinkStyleFromObject$($dvt$$6$$.$getLinkStyle$());
      $DvtDiagramDefaults$$.startNode = $dvt$$6$$.$getStartId$();
      $DvtDiagramDefaults$$.endNode = $dvt$$6$$.$getEndId$();
      $DvtDiagramDefaults$$.startConnectorType = $dvt$$6$$.$getStartConnectorType$();
      $DvtDiagramDefaults$$.endConnectorType = $dvt$$6$$.$getEndConnectorType$();
      return $DvtDiagramDefaults$$;
    }
    return null;
  };
  $DvtDiagramAutomation$$.prototype.$getPromotedLink$ = function $$DvtDiagramAutomation$$$$$getPromotedLink$$($dvt$$6$$, $DvtDiagramDefaults$$) {
    var $DvtDiagramDataAnimationHandler$$ = this.$_getNode$($dvt$$6$$), $DvtDiagramKeyboardHandler$$ = this.$_getNode$($DvtDiagramDefaults$$);
    if (!$DvtDiagramDataAnimationHandler$$ || !$DvtDiagramKeyboardHandler$$) {
      return null;
    }
    $DvtDiagramDataAnimationHandler$$ = $DvtDiagramLink$$.$GetPromotedLinkId$($DvtDiagramDataAnimationHandler$$.getId(), $DvtDiagramKeyboardHandler$$.getId());
    return ($DvtDiagramDataAnimationHandler$$ = this.$_diagram$.$getLinkById$($DvtDiagramDataAnimationHandler$$)) ? ($DvtDiagramKeyboardHandler$$ = {}, $DvtDiagramKeyboardHandler$$.id = $DvtDiagramDataAnimationHandler$$.getId(), $DvtDiagramKeyboardHandler$$.selected = $DvtDiagramDataAnimationHandler$$.$isSelected$(), $DvtDiagramKeyboardHandler$$.tooltip = $DvtDiagramDataAnimationHandler$$.$getShortDesc$(), $DvtDiagramKeyboardHandler$$.color = $DvtDiagramDataAnimationHandler$$.$getLinkColor$(), $DvtDiagramKeyboardHandler$$.width = 
    $DvtDiagramDataAnimationHandler$$.$getLinkWidth$(), $DvtDiagramKeyboardHandler$$.style = this.$_getLinkStyleFromObject$($DvtDiagramDataAnimationHandler$$.$getLinkStyle$()), $DvtDiagramKeyboardHandler$$.startNode = $DvtDiagramDataAnimationHandler$$.$getStartId$(), $DvtDiagramKeyboardHandler$$.endNode = $DvtDiagramDataAnimationHandler$$.$getEndId$(), $DvtDiagramKeyboardHandler$$.startConnectorType = $DvtDiagramDataAnimationHandler$$.$getStartConnectorType$(), $DvtDiagramKeyboardHandler$$.endConnectorType = 
    $DvtDiagramDataAnimationHandler$$.$getEndConnectorType$(), $DvtDiagramKeyboardHandler$$.count = $DvtDiagramDataAnimationHandler$$.getData()._links.length, $DvtDiagramKeyboardHandler$$) : null;
  };
  $DvtDiagramAutomation$$.prototype.$_getLinkStyleFromObject$ = function $$DvtDiagramAutomation$$$$$_getLinkStyleFromObject$$($DvtDiagramDefaults$$) {
    return $DvtDiagramDefaults$$ && $DvtDiagramDefaults$$ instanceof Object ? $DvtDiagramDefaults$$._type == $DvtDiagramLink$$.$CUSTOM_STYLE$ ? ($DvtDiagramDefaults$$ = $dvt$$6$$.$JsonUtils$.clone($DvtDiagramDefaults$$), delete $DvtDiagramDefaults$$._type, $dvt$$6$$.$CSSStyle$.$cssObjectToString$($DvtDiagramDefaults$$)) : $DvtDiagramDefaults$$._type : $DvtDiagramDefaults$$;
  };
  $DvtDiagramAutomation$$.prototype.$getExpanded$ = function $$DvtDiagramAutomation$$$$$getExpanded$$() {
    return this.$_diagram$.$DisclosedNodes$;
  };
  $DvtDiagramAutomation$$.prototype.$_getMarkerData$ = function $$DvtDiagramAutomation$$$$$_getMarkerData$$($DvtDiagramDefaults$$) {
    if ($DvtDiagramDefaults$$) {
      var $data$$72$$ = {};
      $data$$72$$.shape = $DvtDiagramDefaults$$ instanceof $dvt$$6$$.$SimpleMarker$ ? $DvtDiagramDefaults$$.$getType$() : "none";
      $DvtDiagramDefaults$$.$getFill$() && ($data$$72$$.color = $DvtDiagramDefaults$$.$getFill$().$getColor$());
      return $data$$72$$;
    }
    return null;
  };
  $DvtDiagramAutomation$$.prototype.$_getNode$ = function $$DvtDiagramAutomation$$$$$_getNode$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$_diagram$.$GetAllNodes$();
    return 0 <= $dvt$$6$$ && $dvt$$6$$ < $DvtDiagramDefaults$$.length ? this.$_diagram$.$getNodeById$($DvtDiagramDefaults$$[$dvt$$6$$]) : null;
  };
  $DvtDiagramAutomation$$.prototype.$_getLink$ = function $$DvtDiagramAutomation$$$$$_getLink$$($dvt$$6$$) {
    var $DvtDiagramDefaults$$ = this.$_diagram$.$GetAllLinks$();
    return 0 <= $dvt$$6$$ && $dvt$$6$$ < $DvtDiagramDefaults$$.length ? this.$_diagram$.$getLinkById$($DvtDiagramDefaults$$[$dvt$$6$$]) : null;
  };
  $dvt$$6$$.$exportProperty$($dvt$$6$$, "Diagram", $dvt$$6$$.$Diagram$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$, "newInstance", $dvt$$6$$.$Diagram$.newInstance);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "highlight", $dvt$$6$$.$Diagram$.prototype.$highlight$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "select", $dvt$$6$$.$Diagram$.prototype.select);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "getAutomation", $dvt$$6$$.$Diagram$.prototype.$getAutomation$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "processDefaultHoverEffect", $dvt$$6$$.$Diagram$.prototype.$processDefaultHoverEffect$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "processDefaultSelectionEffect", $dvt$$6$$.$Diagram$.prototype.$processDefaultSelectionEffect$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "processDefaultFocusEffect", $dvt$$6$$.$Diagram$.prototype.$processDefaultFocusEffect$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "clearDisclosedState", $dvt$$6$$.$Diagram$.prototype.$clearDisclosedState$);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "expand", $dvt$$6$$.$Diagram$.prototype.expand);
  $dvt$$6$$.$exportProperty$($dvt$$6$$.$Diagram$.prototype, "collapse", $dvt$$6$$.$Diagram$.prototype.collapse);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getDomElementForSubId", $DvtDiagramAutomation$$.prototype.$getDomElementForSubId$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getNodeCount", $DvtDiagramAutomation$$.prototype.$getNodeCount$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getLinkCount", $DvtDiagramAutomation$$.prototype.$getLinkCount$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getNode", $DvtDiagramAutomation$$.prototype.$getNode$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getLink", $DvtDiagramAutomation$$.prototype.$getLink$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getPromotedLink", $DvtDiagramAutomation$$.prototype.$getPromotedLink$);
  $dvt$$6$$.$exportProperty$($DvtDiagramAutomation$$.prototype, "getExpanded", $DvtDiagramAutomation$$.prototype.$getExpanded$);
})(dvt);
