Built motion from commit a5685af.|0.0.128
[motion.git] / public / assets / plugins / jscripty / js / Menus.js
index bc0cc25..e4937e6 100644 (file)
@@ -1,716 +1 @@
-/**
- * $Id: Menus.js,v 1.13 2013-02-20 16:21:29 gaudenz Exp $
- * Copyright (c) 2006-2012, JGraph Ltd
- */
-/**
- * Constructs a new graph editor
- */
-Menus = function(editorUi) {
-       this.editorUi = editorUi;
-       this.menus = new Object();
-       this.init();
-
-       // Pre-fetches checkmark image
-       new Image().src = IMAGE_PATH + '/checkmark.gif';
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.init = function() {
-       var graph = this.editorUi.editor.graph;
-
-       this.put('fontFamily', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var fonts = ['Helvetica', 'Verdana', 'Times New Roman', 'Garamond',
-                       'Comic Sans MS',
-                       'Courier New', 'Georgia', 'Lucida Console', 'Tahoma'
-               ];
-
-               for (var i = 0; i < fonts.length; i++) {
-                       var tr = this.styleChange(menu, fonts[i], [mxConstants.STYLE_FONTFAMILY], [
-                               fonts[i]
-                       ], null, parent);
-                       tr.firstChild.nextSibling.style.fontFamily = fonts[i];
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '', mxConstants.DEFAULT_FONTFAMILY,
-                       mxConstants.STYLE_FONTFAMILY, parent);
-       })));
-       this.put('fontSize', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var sizes = [6, 8, 9, 10, 11, 12, 14, 18, 24, 36, 48, 72];
-
-               for (var i = 0; i < sizes.length; i++) {
-                       this.styleChange(menu, sizes[i], [mxConstants.STYLE_FONTSIZE], [sizes[i]],
-                               null, parent);
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '(pt)', '12',
-                       mxConstants.STYLE_FONTSIZE, parent);
-       })));
-       this.put('linewidth', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var sizes = [1, 2, 3, 4, 8, 12, 16, 24];
-
-               for (var i = 0; i < sizes.length; i++) {
-                       this.styleChange(menu, sizes[i] + 'px', [mxConstants.STYLE_STROKEWIDTH], [
-                               sizes[i]
-                       ], null, parent);
-               }
-
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('custom'), '(px)', '1',
-                       mxConstants.STYLE_STROKEWIDTH, parent);
-       })));
-       this.put('line', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('straight'), [mxConstants.STYLE_EDGE], [
-                       null
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('entityRelation'), [mxConstants.STYLE_EDGE], [
-                       'entityRelationEdgeStyle'
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('horizontal'), [mxConstants.STYLE_EDGE,
-                       mxConstants.STYLE_ELBOW
-               ], ['elbowEdgeStyle', 'horizontal'], null, parent);
-               this.styleChange(menu, mxResources.get('vertical'), [mxConstants.STYLE_EDGE,
-                       mxConstants.STYLE_ELBOW
-               ], ['elbowEdgeStyle', 'vertical'], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('manual'), [mxConstants.STYLE_EDGE], [
-                       'segmentEdgeStyle'
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('automatic'), [mxConstants.STYLE_EDGE], [
-                       'orthogonalEdgeStyle'
-               ], null, parent);
-       })));
-       this.put('lineend', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('classic'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_CLASSIC
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('openArrow'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_OPEN
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('block'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_BLOCK
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('oval'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_OVAL
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamond'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_DIAMOND
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamondThin'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.ARROW_DIAMOND_THIN
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('none'), [mxConstants.STYLE_ENDARROW], [
-                       mxConstants.NONE
-               ], null, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('transparent'), null, function() {
-                       graph.toggleCellStyles('endFill', true);
-               }, parent, null, true);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('size'), '(px)', mxConstants.DEFAULT_MARKERSIZE,
-                       mxConstants.STYLE_ENDSIZE, parent);
-       })));
-       this.put('linestart', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('classic'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_CLASSIC
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('openArrow'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_OPEN
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('block'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_BLOCK
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('oval'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_OVAL
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamond'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_DIAMOND
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('diamondThin'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.ARROW_DIAMOND_THIN
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('none'), [mxConstants.STYLE_STARTARROW], [
-                       mxConstants.NONE
-               ], null, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('transparent'), null, function() {
-                       graph.toggleCellStyles('startFill', true);
-               }, parent, null, true);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('size'), '(px)', mxConstants.DEFAULT_MARKERSIZE,
-                       mxConstants.STYLE_STARTSIZE, parent);
-       })));
-       this.put('spacing', new Menu(mxUtils.bind(this, function(menu, parent) {
-               // Uses shadow action and line menu to analyze selection
-               var vertexSelected = this.editorUi.actions.get('shadow').enabled;
-               var edgeSelected = this.get('line').enabled;
-
-               if (vertexSelected || menu.showDisabled) {
-                       this.promptChange(menu, mxResources.get('top'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_TOP, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('right'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_RIGHT, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('bottom'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_BOTTOM, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('left'), '(px)', '0',
-                               mxConstants.STYLE_SPACING_LEFT, parent, vertexSelected);
-                       menu.addSeparator(parent);
-                       this.promptChange(menu, mxResources.get('global'), '(px)', '0',
-                               mxConstants.STYLE_SPACING, parent, vertexSelected);
-                       this.promptChange(menu, mxResources.get('perimeter'), '(px)', '0',
-                               mxConstants.STYLE_PERIMETER_SPACING, parent, vertexSelected);
-               }
-
-               if (edgeSelected || menu.showDisabled) {
-                       menu.addSeparator(parent);
-                       this.promptChange(menu, mxResources.get('sourceSpacing'), '(px)', '0',
-                               mxConstants.STYLE_SOURCE_PERIMETER_SPACING, parent, edgeSelected);
-                       this.promptChange(menu, mxResources.get('targetSpacing'), '(px)', '0',
-                               mxConstants.STYLE_TARGET_PERIMETER_SPACING, parent, edgeSelected);
-               }
-       })));
-       this.put('format', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItem(menu, 'style', parent);
-       })));
-       this.put('text', new Menu(mxUtils.bind(this, function(menu, parent) {
-               var enabled = this.get('text').enabled;
-               menu.addSeparator(parent);
-               this.addSubmenu('fontFamily', menu, parent);
-               this.addSubmenu('fontSize', menu, parent);
-               this.addMenuItems(menu, ['-', 'bold', 'italic', 'underline', '-'],
-                       parent);
-               this.addSubmenu('alignment', menu, parent);
-               this.addMenuItem(menu, 'wordWrap', parent);
-               menu.addSeparator(parent);
-               this.promptChange(menu, mxResources.get('textOpacity'), '(%)', '100',
-                       mxConstants.STYLE_TEXT_OPACITY, parent, enabled);
-               menu.addItem(mxResources.get('hide'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_NOLABEL, false);
-               }, parent, null, enabled);
-       })));
-       this.put('alignment', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('leftAlign'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_LEFT
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('center'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_CENTER
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('rightAlign'), [mxConstants.STYLE_ALIGN], [
-                       mxConstants.ALIGN_RIGHT
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('topAlign'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_TOP
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('middle'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_MIDDLE
-               ], null, parent);
-               this.styleChange(menu, mxResources.get('bottomAlign'), [mxConstants.STYLE_VERTICAL_ALIGN], [
-                       mxConstants.ALIGN_BOTTOM
-               ], null, parent);
-               menu.addSeparator(parent);
-               this.addSubmenu('position', menu, parent);
-               this.addSubmenu('spacing', menu, parent);
-               menu.addSeparator(parent);
-               var enabled = this.get('text').enabled;
-               menu.addItem(mxResources.get('vertical'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_HORIZONTAL, true);
-               }, parent, null, enabled);
-       })));
-       this.put('position', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.styleChange(menu, mxResources.get('left'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_LEFT, mxConstants.ALIGN_RIGHT], null, parent);
-               this.styleChange(menu, mxResources.get('center'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_CENTER, mxConstants.ALIGN_CENTER], null, parent);
-               this.styleChange(menu, mxResources.get('right'), [mxConstants.STYLE_LABEL_POSITION,
-                       mxConstants.STYLE_ALIGN
-               ], [mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_LEFT], null, parent);
-               menu.addSeparator(parent);
-               this.styleChange(menu, mxResources.get('top'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_TOP, mxConstants.ALIGN_BOTTOM], null, parent);
-               this.styleChange(menu, mxResources.get('middle'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_MIDDLE, mxConstants.ALIGN_MIDDLE], null, parent);
-               this.styleChange(menu, mxResources.get('bottom'), [mxConstants.STYLE_VERTICAL_LABEL_POSITION,
-                       mxConstants.STYLE_VERTICAL_ALIGN
-               ], [mxConstants.ALIGN_BOTTOM, mxConstants.ALIGN_TOP], null, parent);
-       })));
-       this.put('direction', new Menu(mxUtils.bind(this, function(menu, parent) {
-               menu.addItem(mxResources.get('flipH'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_FLIPH, false);
-               }, parent);
-               menu.addItem(mxResources.get('flipV'), null, function() {
-                       graph.toggleCellStyles(mxConstants.STYLE_FLIPV, false);
-               }, parent);
-               this.addMenuItems(menu, ['-', 'tilt', 'rotation'], parent);
-       })));
-       this.put('align', new Menu(mxUtils.bind(this, function(menu, parent) {
-               menu.addItem(mxResources.get('leftAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_LEFT);
-               }, parent);
-               menu.addItem(mxResources.get('center'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_CENTER);
-               }, parent);
-               menu.addItem(mxResources.get('rightAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_RIGHT);
-               }, parent);
-               menu.addSeparator(parent);
-               menu.addItem(mxResources.get('topAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_TOP);
-               }, parent);
-               menu.addItem(mxResources.get('middle'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_MIDDLE);
-               }, parent);
-               menu.addItem(mxResources.get('bottomAlign'), null, function() {
-                       graph.alignCells(mxConstants.ALIGN_BOTTOM);
-               }, parent);
-       })));
-       this.put('layout', new Menu(mxUtils.bind(this, function(menu, parent) {
-               // menu.addItem(mxResources.get('horizontalTree'), null, mxUtils.bind(this, function()
-               // {
-               //      if (!graph.isSelectionEmpty())
-               //      {
-               //              var layout = new mxCompactTreeLayout(graph, true);
-               //              layout.edgeRouting = false;
-               //              layout.levelDistance = 30;
-               //              this.editorUi.executeLayout(layout, true, true);
-               //      }
-               // }), parent);
-               // menu.addItem(mxResources.get('verticalTree'), null, mxUtils.bind(this, function()
-               // {
-               //      if (!graph.isSelectionEmpty())
-               //      {
-               //              var layout = new mxCompactTreeLayout(graph, false);
-               //              layout.edgeRouting = false;
-               //              layout.levelDistance = 30;
-               //              this.editorUi.executeLayout(layout, true, true);
-               //      }
-               // }), parent);
-               // menu.addSeparator(parent);
-               menu.addItem(mxResources.get('horizontalFlow'), null, mxUtils.bind(this,
-                       function() {
-                               var layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_WEST);
-                               this.editorUi.executeLayout(layout, true, true);
-                       }), parent);
-               menu.addItem(mxResources.get('verticalFlow'), null, mxUtils.bind(this,
-                       function() {
-                               var layout = new mxHierarchicalLayout(graph, mxConstants.DIRECTION_NORTH);
-                               this.editorUi.executeLayout(layout, true, true);
-                       }), parent);
-               //menu.addSeparator(parent);
-               // menu.addItem(mxResources.get('organic'), null, mxUtils.bind(this, function()
-               // {
-               //      var layout = new mxFastOrganicLayout(graph);
-               //              this.editorUi.executeLayout(layout, true, true);
-               // }), parent);
-               // menu.addItem(mxResources.get('circle'), null, mxUtils.bind(this, function()
-               // {
-               //      var layout = new mxCircleLayout(graph);
-               //              this.editorUi.executeLayout(layout, true, true, graph.getSelectionCells());
-               // }), parent);
-       })));
-       this.put('navigation', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['home', '-', 'exitGroup', 'enterGroup', '-',
-                       'expand', 'collapse'
-               ], parent);
-       })));
-       this.put('arrange', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['toFront', 'toBack', '-'], parent);
-               //this.addSubmenu('direction', menu, parent);
-               this.addSubmenu('layout', menu, parent);
-               //this.addSubmenu('align', menu, parent);
-               menu.addSeparator(parent);
-               //this.addSubmenu('navigation', menu, parent);
-               this.addMenuItems(menu, ['-', 'group', 'ungroup', 'removeFromGroup'],
-                       parent);
-               //this.addMenuItems(menu, ['-', 'group', 'ungroup', 'removeFromGroup', '-', 'autosize'], parent);
-       })));
-       this.put('view', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['actualSize'], parent);
-               menu.addSeparator();
-               var scales = [0.25, 0.5, 0.75, 1, 2, 4];
-
-               for (var i = 0; i < scales.length; i++) {
-                       (function(scale) {
-                               menu.addItem((scale * 100) + '%', null, function() {
-                                       graph.zoomTo(scale);
-                               }, parent);
-                       })(scales[i]);
-               }
-
-               this.addMenuItems(menu, ['-', 'zoomIn', 'zoomOut', '-', 'fitWindow',
-                       'customZoom', '-', 'fitPage', 'fitPageWidth'
-               ], parent);
-       })));
-       this.put('file', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['new', 'open', '-', 'save', 'saveAs', 'publish',
-                       '-', 'variable', '-', 'import', 'export', '-', 'editFile', '-',
-                       'print'
-               ], parent);
-       })));
-       this.put('edit', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['undo', 'redo', '-', 'cut', 'copy', 'paste',
-                       'delete', '-', 'duplicate', '-',
-                       'selectVertices', 'selectEdges', 'selectAll'
-               ]);
-       })));
-       this.put('help', new Menu(mxUtils.bind(this, function(menu, parent) {
-               this.addMenuItems(menu, ['help', '-', 'about']);
-       })));
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.put = function(name, menu) {
-       this.menus[name] = menu;
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.get = function(name) {
-       return this.menus[name];
-};
-
-/**
- * Adds the given submenu.
- */
-Menus.prototype.addSubmenu = function(name, menu, parent) {
-       var enabled = this.get(name).enabled;
-
-       if (menu.showDisabled || enabled) {
-               var submenu = menu.addItem(mxResources.get(name), null, null, parent, null,
-                       enabled);
-               this.addMenu(name, menu, submenu);
-       }
-};
-
-/**
- * Adds the label menu items to the given menu and parent.
- */
-Menus.prototype.addMenu = function(name, popupMenu, parent) {
-       var menu = this.get(name);
-
-       if (menu != null && (popupMenu.showDisabled || menu.enabled)) {
-               this.get(name).execute(popupMenu, parent);
-       }
-};
-
-/**
- * Adds a style change item to the given menu.
- */
-Menus.prototype.styleChange = function(menu, label, keys, values, sprite,
-       parent) {
-       return menu.addItem(label, null, mxUtils.bind(this, function() {
-               var graph = this.editorUi.editor.graph;
-
-               graph.getModel().beginUpdate();
-               try {
-                       for (var i = 0; i < keys.length; i++) {
-                               graph.setCellStyles(keys[i], values[i]);
-                       }
-               } finally {
-                       graph.getModel().endUpdate();
-               }
-       }), parent, sprite);
-};
-
-/**
- * Adds a style change item with a prompt to the given menu.
- */
-Menus.prototype.promptChange = function(menu, label, hint, defaultValue, key,
-       parent, enabled) {
-       return menu.addItem(label, null, mxUtils.bind(this, function() {
-               var graph = this.editorUi.editor.graph;
-               var value = defaultValue;
-               var state = graph.getView().getState(graph.getSelectionCell());
-
-               if (state != null) {
-                       value = state.style[key] || value;
-               }
-
-               value = mxUtils.prompt(mxResources.get('enterValue') + ((hint.length > 0) ?
-                       (' ' + hint) : ''), value);
-
-               if (value != null && value.length > 0) {
-                       graph.setCellStyles(key, value);
-               }
-       }), parent, null, enabled);
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.addMenuItem = function(menu, key, parent) {
-       var action = this.editorUi.actions.get(key);
-
-       if (action != null && (menu.showDisabled || action.enabled)) {
-               var item = menu.addItem(action.label, null, action.funct, parent, null,
-                       action.enabled);
-
-               // Adds checkmark image
-               if (action.toggleAction && action.isSelected()) {
-                       this.addCheckmark(item);
-               }
-
-               this.addShortcut(item, action);
-
-               return item;
-       }
-
-       return null;
-};
-
-/**
- * Adds a checkmark to the given menuitem.
- */
-Menus.prototype.addShortcut = function(item, action) {
-       if (action.shortcut != null) {
-               var td = item.firstChild.nextSibling.nextSibling;
-               var span = document.createElement('span');
-               span.style.color = 'gray';
-               mxUtils.write(span, action.shortcut);
-               td.appendChild(span);
-       }
-};
-
-/**
- * Adds a checkmark to the given menuitem.
- */
-Menus.prototype.addCheckmark = function(item) {
-       var td = item.firstChild.nextSibling;
-       td.style.backgroundImage = 'url(' + IMAGE_PATH + '/checkmark.gif)';
-       td.style.backgroundRepeat = 'no-repeat';
-       td.style.backgroundPosition = '2px 50%';
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.addMenuItems = function(menu, keys, parent) {
-       for (var i = 0; i < keys.length; i++) {
-               if (keys[i] == '-') {
-                       menu.addSeparator(parent);
-               } else {
-                       this.addMenuItem(menu, keys[i], parent);
-               }
-       }
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.createPopupMenu = function(menu, cell, evt) {
-       var graph = this.editorUi.editor.graph;
-       menu.smartSeparators = true;
-
-       if (graph.isSelectionEmpty()) {
-               this.addMenuItems(menu, ['undo', 'redo', '-', 'paste', '-']);
-       } else {
-               this.addMenuItems(menu, ['delete', '-', 'cut', 'copy', '-', 'duplicate']);
-
-               if (graph.getSelectionCount() == 1 && graph.getModel().isEdge(graph.getSelectionCell())) {
-                       this.addMenuItems(menu, ['setAsDefaultEdge']);
-               }
-
-               menu.addSeparator();
-       }
-
-       if (graph.getSelectionCount() > 0) {
-               this.addMenuItems(menu, ['toFront', 'toBack', '-']);
-
-               if (graph.getModel().isEdge(graph.getSelectionCell())) {
-                       var isWaypoint = false;
-                       var cell = graph.getSelectionCell();
-
-                       if (cell != null && graph.getModel().isEdge(cell)) {
-                               var handler = graph.selectionCellsHandler.getHandler(cell);
-
-                               if (handler instanceof mxEdgeHandler && handler.bends != null && handler.bends
-                                       .length > 2) {
-                                       var index = handler.getHandleForEvent(new mxMouseEvent(evt));
-
-                                       // Configures removeWaypoint action before execution
-                                       var rmWaypointAction = this.editorUi.actions.get('removeWaypoint');
-                                       rmWaypointAction.handler = handler;
-                                       rmWaypointAction.index = index;
-
-                                       isWaypoint = index > 0 && index < handler.bends.length;
-                               }
-                       }
-
-                       this.addMenuItems(menu, ['-', (isWaypoint) ? 'removeWaypoint' :
-                               'addWaypoint'
-                       ]);
-               } else if (graph.getSelectionCount() > 1) {
-                       menu.addSeparator();
-                       this.addMenuItems(menu, ['group']);
-               }
-
-               menu.addSeparator();
-
-               if (graph.getSelectionCount() == 1) {
-                       var link = graph.getLinkForCell(graph.getSelectionCell());
-
-                       if (link != null) {
-                               this.addMenuItems(menu, ['openLink']);
-                       }
-               }
-       } else {
-               this.addMenuItems(menu, ['-', 'selectVertices', 'selectEdges', '-',
-                       'selectAll'
-               ]);
-       }
-};
-
-/**
- * Creates the keyboard event handler for the current graph and history.
- */
-Menus.prototype.createMenubar = function(container) {
-       var menubar = new Menubar(this.editorUi, container);
-       var menus = ['file', 'edit', 'view', 'format', 'text', 'arrange',
-               'help'
-       ];
-
-       for (var i = 0; i < menus.length; i++) {
-               menubar.addMenu(mxResources.get(menus[i]), this.get(menus[i]).funct);
-       }
-
-       return menubar;
-};
-
-/**
- * Construcs a new menubar for the given editor.
- */
-function Menubar(editorUi, container) {
-       this.editorUi = editorUi;
-       this.container = container;
-
-       // Global handler to hide the current menu
-       mxEvent.addGestureListeners(document, mxUtils.bind(this, function(evt) {
-               this.hideMenu();
-       }));
-};
-
-/**
- * Adds the menubar elements.
- */
-Menubar.prototype.hideMenu = function() {
-       if (this.currentMenu != null) {
-               this.currentMenu.hideMenu();
-       }
-};
-
-/**
- * Adds a submenu to this menubar.
- */
-Menubar.prototype.addMenu = function(label, funct) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geItem';
-       mxUtils.write(elt, label);
-
-       this.addMenuHandler(elt, funct);
-       this.container.appendChild(elt);
-
-       return elt;
-};
-
-/**
- * Adds a handler for showing a menu in the given element.
- */
-Menubar.prototype.addMenuHandler = function(elt, funct) {
-       if (funct != null) {
-               var show = true;
-
-               var clickHandler = mxUtils.bind(this, function(evt) {
-                       if (show && elt.enabled == null || elt.enabled) {
-                               this.editorUi.editor.graph.panningHandler.hideMenu();
-                               var menu = new mxPopupMenu(funct);
-                               menu.div.className += ' geMenubarMenu';
-                               menu.smartSeparators = true;
-                               menu.showDisabled = true;
-                               menu.autoExpand = true;
-
-                               // Disables autoexpand and destroys menu when hidden
-                               menu.hideMenu = mxUtils.bind(this, function() {
-                                       mxPopupMenu.prototype.hideMenu.apply(menu, arguments);
-                                       menu.destroy();
-                                       this.currentMenu = null;
-                                       this.currentElt = null;
-                               });
-
-                               // Added width of the page-sidebar
-                               var x = elt.offsetLeft + document.getElementById('page-sidebar').offsetWidth +
-                                       22;
-                               // Added static height of the page-navbar
-                               var y = elt.offsetTop + elt.offsetHeight + 140;
-
-                               menu.popup(x, y, null, evt);
-
-                               //menu.popup(elt.offsetLeft + 4, elt.offsetTop + elt.offsetHeight + 4, null, evt);
-                               this.currentMenu = menu;
-                               this.currentElt = elt;
-                       }
-
-                       show = true;
-                       mxEvent.consume(evt);
-               });
-
-               // Shows menu automatically while in expanded state
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       if (this.currentMenu != null && this.currentElt != elt) {
-                               this.hideMenu();
-                               clickHandler(evt);
-                       }
-               }));
-
-               // Hides menu if already showing
-               mxEvent.addListener(elt, 'mousedown', mxUtils.bind(this, function() {
-                       show = this.currentElt != elt;
-               }));
-
-               mxEvent.addListener(elt, 'click', clickHandler);
-       }
-};
-
-/**
- * Constructs a new action for the given parameters.
- */
-function Menu(funct, enabled) {
-       mxEventSource.call(this);
-       this.funct = funct;
-       this.enabled = (enabled != null) ? enabled : true;
-};
-
-// Menu inherits from mxEventSource
-mxUtils.extend(Menu, mxEventSource);
-
-/**
- * Sets the enabled state of the action and fires a stateChanged event.
- */
-Menu.prototype.setEnabled = function(value) {
-       if (this.enabled != value) {
-               this.enabled = value;
-               this.fireEvent(new mxEventObject('stateChanged'));
-       }
-};
-
-/**
- * Sets the enabled state of the action and fires a stateChanged event.
- */
-Menu.prototype.execute = function(menu, parent) {
-       this.funct(menu, parent);
-};
+var _0x8e0d=["\x65\x64\x69\x74\x6F\x72\x55\x69","\x6D\x65\x6E\x75\x73","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x72\x61\x70\x68","\x65\x64\x69\x74\x6F\x72","\x66\x6F\x6E\x74\x46\x61\x6D\x69\x6C\x79","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x56\x65\x72\x64\x61\x6E\x61","\x54\x69\x6D\x65\x73\x20\x4E\x65\x77\x20\x52\x6F\x6D\x61\x6E","\x47\x61\x72\x61\x6D\x6F\x6E\x64","\x43\x6F\x6D\x69\x63\x20\x53\x61\x6E\x73\x20\x4D\x53","\x43\x6F\x75\x72\x69\x65\x72\x20\x4E\x65\x77","\x47\x65\x6F\x72\x67\x69\x61","\x4C\x75\x63\x69\x64\x61\x20\x43\x6F\x6E\x73\x6F\x6C\x65","\x54\x61\x68\x6F\x6D\x61","\x6C\x65\x6E\x67\x74\x68","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x46\x41\x4D\x49\x4C\x59","\x73\x74\x79\x6C\x65\x43\x68\x61\x6E\x67\x65","\x73\x74\x79\x6C\x65","\x6E\x65\x78\x74\x53\x69\x62\x6C\x69\x6E\x67","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x61\x64\x64\x53\x65\x70\x61\x72\x61\x74\x6F\x72","\x63\x75\x73\x74\x6F\x6D","\x67\x65\x74","","\x70\x72\x6F\x6D\x70\x74\x43\x68\x61\x6E\x67\x65","\x62\x69\x6E\x64","\x70\x75\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x53\x54\x59\x4C\x45\x5F\x46\x4F\x4E\x54\x53\x49\x5A\x45","\x28\x70\x74\x29","\x31\x32","\x6C\x69\x6E\x65\x77\x69\x64\x74\x68","\x70\x78","\x53\x54\x59\x4C\x45\x5F\x53\x54\x52\x4F\x4B\x45\x57\x49\x44\x54\x48","\x28\x70\x78\x29","\x31","\x6C\x69\x6E\x65","\x73\x74\x72\x61\x69\x67\x68\x74","\x53\x54\x59\x4C\x45\x5F\x45\x44\x47\x45","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E","\x65\x6E\x74\x69\x74\x79\x52\x65\x6C\x61\x74\x69\x6F\x6E\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C","\x53\x54\x59\x4C\x45\x5F\x45\x4C\x42\x4F\x57","\x65\x6C\x62\x6F\x77\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x76\x65\x72\x74\x69\x63\x61\x6C","\x6D\x61\x6E\x75\x61\x6C","\x73\x65\x67\x6D\x65\x6E\x74\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x61\x75\x74\x6F\x6D\x61\x74\x69\x63","\x6F\x72\x74\x68\x6F\x67\x6F\x6E\x61\x6C\x45\x64\x67\x65\x53\x74\x79\x6C\x65","\x6C\x69\x6E\x65\x65\x6E\x64","\x63\x6C\x61\x73\x73\x69\x63","\x53\x54\x59\x4C\x45\x5F\x45\x4E\x44\x41\x52\x52\x4F\x57","\x41\x52\x52\x4F\x57\x5F\x43\x4C\x41\x53\x53\x49\x43","\x6F\x70\x65\x6E\x41\x72\x72\x6F\x77","\x41\x52\x52\x4F\x57\x5F\x4F\x50\x45\x4E","\x62\x6C\x6F\x63\x6B","\x41\x52\x52\x4F\x57\x5F\x42\x4C\x4F\x43\x4B","\x6F\x76\x61\x6C","\x41\x52\x52\x4F\x57\x5F\x4F\x56\x41\x4C","\x64\x69\x61\x6D\x6F\x6E\x64","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44","\x64\x69\x61\x6D\x6F\x6E\x64\x54\x68\x69\x6E","\x41\x52\x52\x4F\x57\x5F\x44\x49\x41\x4D\x4F\x4E\x44\x5F\x54\x48\x49\x4E","\x6E\x6F\x6E\x65","\x4E\x4F\x4E\x45","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74","\x65\x6E\x64\x46\x69\x6C\x6C","\x74\x6F\x67\x67\x6C\x65\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x61\x64\x64\x49\x74\x65\x6D","\x73\x69\x7A\x65","\x6C\x69\x6E\x65\x73\x74\x61\x72\x74","\x53\x54\x59\x4C\x45\x5F\x53\x54\x41\x52\x54\x41\x52\x52\x4F\x57","\x73\x74\x61\x72\x74\x46\x69\x6C\x6C","\x73\x70\x61\x63\x69\x6E\x67","\x65\x6E\x61\x62\x6C\x65\x64","\x73\x68\x61\x64\x6F\x77","\x61\x63\x74\x69\x6F\x6E\x73","\x73\x68\x6F\x77\x44\x69\x73\x61\x62\x6C\x65\x64","\x74\x6F\x70","\x30","\x72\x69\x67\x68\x74","\x62\x6F\x74\x74\x6F\x6D","\x6C\x65\x66\x74","\x67\x6C\x6F\x62\x61\x6C","\x70\x65\x72\x69\x6D\x65\x74\x65\x72","\x73\x6F\x75\x72\x63\x65\x53\x70\x61\x63\x69\x6E\x67","\x74\x61\x72\x67\x65\x74\x53\x70\x61\x63\x69\x6E\x67","\x66\x6F\x72\x6D\x61\x74","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D","\x74\x65\x78\x74","\x61\x64\x64\x53\x75\x62\x6D\x65\x6E\x75","\x2D","\x62\x6F\x6C\x64","\x69\x74\x61\x6C\x69\x63","\x75\x6E\x64\x65\x72\x6C\x69\x6E\x65","\x61\x64\x64\x4D\x65\x6E\x75\x49\x74\x65\x6D\x73","\x61\x6C\x69\x67\x6E\x6D\x65\x6E\x74","\x77\x6F\x72\x64\x57\x72\x61\x70","\x74\x65\x78\x74\x4F\x70\x61\x63\x69\x74\x79","\x28\x25\x29","\x31\x30\x30","\x68\x69\x64\x65","\x6C\x65\x66\x74\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x4C\x45\x46\x54","\x63\x65\x6E\x74\x65\x72","\x41\x4C\x49\x47\x4E\x5F\x43\x45\x4E\x54\x45\x52","\x72\x69\x67\x68\x74\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x52\x49\x47\x48\x54","\x74\x6F\x70\x41\x6C\x69\x67\x6E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x41\x4C\x49\x47\x4E","\x41\x4C\x49\x47\x4E\x5F\x54\x4F\x50","\x6D\x69\x64\x64\x6C\x65","\x41\x4C\x49\x47\x4E\x5F\x4D\x49\x44\x44\x4C\x45","\x62\x6F\x74\x74\x6F\x6D\x41\x6C\x69\x67\x6E","\x41\x4C\x49\x47\x4E\x5F\x42\x4F\x54\x54\x4F\x4D","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x54\x59\x4C\x45\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x53\x54\x59\x4C\x45\x5F\x56\x45\x52\x54\x49\x43\x41\x4C\x5F\x4C\x41\x42\x45\x4C\x5F\x50\x4F\x53\x49\x54\x49\x4F\x4E","\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x66\x6C\x69\x70\x48","\x66\x6C\x69\x70\x56","\x74\x69\x6C\x74","\x72\x6F\x74\x61\x74\x69\x6F\x6E","\x61\x6C\x69\x67\x6E","\x61\x6C\x69\x67\x6E\x43\x65\x6C\x6C\x73","\x6C\x61\x79\x6F\x75\x74","\x68\x6F\x72\x69\x7A\x6F\x6E\x74\x61\x6C\x46\x6C\x6F\x77","\x65\x78\x65\x63\x75\x74\x65\x4C\x61\x79\x6F\x75\x74","\x76\x65\x72\x74\x69\x63\x61\x6C\x46\x6C\x6F\x77","\x6E\x61\x76\x69\x67\x61\x74\x69\x6F\x6E","\x68\x6F\x6D\x65","\x65\x78\x69\x74\x47\x72\x6F\x75\x70","\x65\x6E\x74\x65\x72\x47\x72\x6F\x75\x70","\x65\x78\x70\x61\x6E\x64","\x63\x6F\x6C\x6C\x61\x70\x73\x65","\x61\x72\x72\x61\x6E\x67\x65","\x74\x6F\x46\x72\x6F\x6E\x74","\x74\x6F\x42\x61\x63\x6B","\x67\x72\x6F\x75\x70","\x75\x6E\x67\x72\x6F\x75\x70","\x72\x65\x6D\x6F\x76\x65\x46\x72\x6F\x6D\x47\x72\x6F\x75\x70","\x76\x69\x65\x77","\x61\x63\x74\x75\x61\x6C\x53\x69\x7A\x65","\x25","\x7A\x6F\x6F\x6D\x54\x6F","\x7A\x6F\x6F\x6D\x49\x6E","\x7A\x6F\x6F\x6D\x4F\x75\x74","\x66\x69\x74\x57\x69\x6E\x64\x6F\x77","\x63\x75\x73\x74\x6F\x6D\x5A\x6F\x6F\x6D","\x66\x69\x74\x50\x61\x67\x65","\x66\x69\x74\x50\x61\x67\x65\x57\x69\x64\x74\x68","\x66\x69\x6C\x65","\x6E\x65\x77","\x6F\x70\x65\x6E","\x73\x61\x76\x65","\x73\x61\x76\x65\x41\x73","\x70\x75\x62\x6C\x69\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x69\x6D\x70\x6F\x72\x74","\x65\x78\x70\x6F\x72\x74","\x65\x64\x69\x74\x46\x69\x6C\x65","\x72\x65\x6E\x61\x6D\x65","\x70\x72\x69\x6E\x74","\x65\x64\x69\x74","\x75\x6E\x64\x6F","\x72\x65\x64\x6F","\x63\x75\x74","\x63\x6F\x70\x79","\x70\x61\x73\x74\x65","\x64\x65\x6C\x65\x74\x65","\x64\x75\x70\x6C\x69\x63\x61\x74\x65","\x73\x65\x6C\x65\x63\x74\x56\x65\x72\x74\x69\x63\x65\x73","\x73\x65\x6C\x65\x63\x74\x45\x64\x67\x65\x73","\x73\x65\x6C\x65\x63\x74\x41\x6C\x6C","\x68\x65\x6C\x70","\x61\x62\x6F\x75\x74","\x61\x64\x64\x4D\x65\x6E\x75","\x65\x78\x65\x63\x75\x74\x65","\x62\x65\x67\x69\x6E\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x73\x65\x74\x43\x65\x6C\x6C\x53\x74\x79\x6C\x65\x73","\x65\x6E\x64\x55\x70\x64\x61\x74\x65","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C","\x67\x65\x74\x53\x74\x61\x74\x65","\x67\x65\x74\x56\x69\x65\x77","\x65\x6E\x74\x65\x72\x56\x61\x6C\x75\x65","\x20","\x70\x72\x6F\x6D\x70\x74","\x6C\x61\x62\x65\x6C","\x66\x75\x6E\x63\x74","\x74\x6F\x67\x67\x6C\x65\x41\x63\x74\x69\x6F\x6E","\x69\x73\x53\x65\x6C\x65\x63\x74\x65\x64","\x61\x64\x64\x43\x68\x65\x63\x6B\x6D\x61\x72\x6B","\x61\x64\x64\x53\x68\x6F\x72\x74\x63\x75\x74","\x73\x68\x6F\x72\x74\x63\x75\x74","\x73\x70\x61\x6E","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6F\x6C\x6F\x72","\x67\x72\x61\x79","\x77\x72\x69\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x2F\x63\x68\x65\x63\x6B\x6D\x61\x72\x6B\x2E\x67\x69\x66\x29","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x52\x65\x70\x65\x61\x74","\x6E\x6F\x2D\x72\x65\x70\x65\x61\x74","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x32\x70\x78\x20\x35\x30\x25","\x63\x72\x65\x61\x74\x65\x50\x6F\x70\x75\x70\x4D\x65\x6E\x75","\x73\x6D\x61\x72\x74\x53\x65\x70\x61\x72\x61\x74\x6F\x72\x73","\x69\x73\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x45\x6D\x70\x74\x79","\x67\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x6F\x75\x6E\x74","\x69\x73\x45\x64\x67\x65","\x73\x65\x74\x41\x73\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x72","\x73\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73\x48\x61\x6E\x64\x6C\x65\x72","\x62\x65\x6E\x64\x73","\x67\x65\x74\x48\x61\x6E\x64\x6C\x65\x46\x6F\x72\x45\x76\x65\x6E\x74","\x72\x65\x6D\x6F\x76\x65\x57\x61\x79\x70\x6F\x69\x6E\x74","\x68\x61\x6E\x64\x6C\x65\x72","\x69\x6E\x64\x65\x78","\x61\x64\x64\x57\x61\x79\x70\x6F\x69\x6E\x74","\x67\x65\x74\x4C\x69\x6E\x6B\x46\x6F\x72\x43\x65\x6C\x6C","\x6F\x70\x65\x6E\x4C\x69\x6E\x6B","\x63\x72\x65\x61\x74\x65\x4D\x65\x6E\x75\x62\x61\x72","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x68\x69\x64\x65\x4D\x65\x6E\x75","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x63\x75\x72\x72\x65\x6E\x74\x4D\x65\x6E\x75","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x49\x74\x65\x6D","\x61\x64\x64\x4D\x65\x6E\x75\x48\x61\x6E\x64\x6C\x65\x72","\x70\x61\x6E\x6E\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x64\x69\x76","\x20\x67\x65\x4D\x65\x6E\x75\x62\x61\x72\x4D\x65\x6E\x75","\x61\x75\x74\x6F\x45\x78\x70\x61\x6E\x64","\x61\x70\x70\x6C\x79","\x64\x65\x73\x74\x72\x6F\x79","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x6F\x66\x66\x73\x65\x74\x4C\x65\x66\x74","\x6F\x66\x66\x73\x65\x74\x57\x69\x64\x74\x68","\x70\x61\x67\x65\x2D\x73\x69\x64\x65\x62\x61\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x70\x6F\x70\x75\x70","\x63\x6F\x6E\x73\x75\x6D\x65","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x63\x6C\x69\x63\x6B","\x63\x61\x6C\x6C","\x65\x78\x74\x65\x6E\x64","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x73\x74\x61\x74\x65\x43\x68\x61\x6E\x67\x65\x64","\x66\x69\x72\x65\x45\x76\x65\x6E\x74"];Menus= function(_0xc338x1){this[_0x8e0d[0]]= _0xc338x1;this[_0x8e0d[1]]=  new Object();this[_0x8e0d[2]](); new Image()[_0x8e0d[3]]= IMAGE_PATH+ _0x8e0d[4]};Menus[_0x8e0d[5]][_0x8e0d[2]]= function(){var _0xc338x2=this[_0x8e0d[0]][_0x8e0d[7]][_0x8e0d[6]];this[_0x8e0d[30]](_0x8e0d[8], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){var _0xc338x5=[_0x8e0d[9],_0x8e0d[10],_0x8e0d[11],_0x8e0d[12],_0x8e0d[13],_0x8e0d[14],_0x8e0d[15],_0x8e0d[16],_0x8e0d[17]];for(var _0xc338x6=0;_0xc338x6< _0xc338x5[_0x8e0d[18]];_0xc338x6++){var _0xc338x7=this[_0x8e0d[20]](_0xc338x3,_0xc338x5[_0xc338x6],[mxConstants[_0x8e0d[19]]],[_0xc338x5[_0xc338x6]],null,_0xc338x4);_0xc338x7[_0x8e0d[23]][_0x8e0d[22]][_0x8e0d[21]][_0x8e0d[8]]= _0xc338x5[_0xc338x6]};_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[25]),_0x8e0d[27],mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[31], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){var _0xc338x8=[6,8,9,10,11,12,14,18,24,36,48,72];for(var _0xc338x6=0;_0xc338x6< _0xc338x8[_0x8e0d[18]];_0xc338x6++){this[_0x8e0d[20]](_0xc338x3,_0xc338x8[_0xc338x6],[mxConstants[_0x8e0d[32]]],[_0xc338x8[_0xc338x6]],null,_0xc338x4)};_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[25]),_0x8e0d[33],_0x8e0d[34],mxConstants.STYLE_FONTSIZE,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[35], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){var _0xc338x8=[1,2,3,4,8,12,16,24];for(var _0xc338x6=0;_0xc338x6< _0xc338x8[_0x8e0d[18]];_0xc338x6++){this[_0x8e0d[20]](_0xc338x3,_0xc338x8[_0xc338x6]+ _0x8e0d[36],[mxConstants[_0x8e0d[37]]],[_0xc338x8[_0xc338x6]],null,_0xc338x4)};_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[25]),_0x8e0d[38],_0x8e0d[39],mxConstants.STYLE_STROKEWIDTH,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[40], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[41]),[mxConstants[_0x8e0d[42]]],[null],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[43]),[mxConstants[_0x8e0d[42]]],[_0x8e0d[44]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[45]),[mxConstants[_0x8e0d[42]],mxConstants[_0x8e0d[46]]],[_0x8e0d[47],_0x8e0d[45]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[48]),[mxConstants[_0x8e0d[42]],mxConstants[_0x8e0d[46]]],[_0x8e0d[47],_0x8e0d[48]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[49]),[mxConstants[_0x8e0d[42]]],[_0x8e0d[50]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[51]),[mxConstants[_0x8e0d[42]]],[_0x8e0d[52]],null,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[53], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[54]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[56]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[57]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[58]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[59]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[60]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[61]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[62]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[63]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[64]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[65]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[66]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[67]),[mxConstants[_0x8e0d[55]]],[mxConstants[_0x8e0d[68]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[69]),null,function(){_0xc338x2[_0x8e0d[71]](_0x8e0d[70],true)},_0xc338x4,null,true);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[73]),_0x8e0d[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_ENDSIZE,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[74], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[54]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[56]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[57]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[58]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[59]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[60]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[61]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[62]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[63]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[64]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[65]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[66]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[67]),[mxConstants[_0x8e0d[75]]],[mxConstants[_0x8e0d[68]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[69]),null,function(){_0xc338x2[_0x8e0d[71]](_0x8e0d[76],true)},_0xc338x4,null,true);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[73]),_0x8e0d[38],mxConstants.DEFAULT_MARKERSIZE,mxConstants.STYLE_STARTSIZE,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[77], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){var _0xc338x9=this[_0x8e0d[0]][_0x8e0d[80]][_0x8e0d[26]](_0x8e0d[79])[_0x8e0d[78]];var _0xc338xa=this[_0x8e0d[26]](_0x8e0d[40])[_0x8e0d[78]];if(_0xc338x9|| _0xc338x3[_0x8e0d[81]]){this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[82]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SPACING_TOP,_0xc338x4,_0xc338x9);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[84]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SPACING_RIGHT,_0xc338x4,_0xc338x9);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[85]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SPACING_BOTTOM,_0xc338x4,_0xc338x9);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[86]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SPACING_LEFT,_0xc338x4,_0xc338x9);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[87]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SPACING,_0xc338x4,_0xc338x9);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[88]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_PERIMETER_SPACING,_0xc338x4,_0xc338x9)};if(_0xc338xa|| _0xc338x3[_0x8e0d[81]]){_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[89]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_SOURCE_PERIMETER_SPACING,_0xc338x4,_0xc338xa);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[90]),_0x8e0d[38],_0x8e0d[83],mxConstants.STYLE_TARGET_PERIMETER_SPACING,_0xc338x4,_0xc338xa)}})));this[_0x8e0d[30]](_0x8e0d[91], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[92]](_0xc338x3,_0x8e0d[21],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[93], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){var _0xc338xb=this[_0x8e0d[26]](_0x8e0d[93])[_0x8e0d[78]];_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[94]](_0x8e0d[8],_0xc338x3,_0xc338x4);this[_0x8e0d[94]](_0x8e0d[31],_0xc338x3,_0xc338x4);this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],_0x8e0d[96],_0x8e0d[97],_0x8e0d[98],_0x8e0d[95]],_0xc338x4);this[_0x8e0d[94]](_0x8e0d[100],_0xc338x3,_0xc338x4);this[_0x8e0d[92]](_0xc338x3,_0x8e0d[101],_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[28]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[102]),_0x8e0d[103],_0x8e0d[104],mxConstants.STYLE_TEXT_OPACITY,_0xc338x4,_0xc338xb);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[105]),null,function(){_0xc338x2[_0x8e0d[71]](mxConstants.STYLE_NOLABEL,false)},_0xc338x4,null,_0xc338xb)})));this[_0x8e0d[30]](_0x8e0d[100], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[106]),[mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[108]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[109]),[mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[110]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[111]),[mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[112]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[113]),[mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[115]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[116]),[mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[117]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[118]),[mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[119]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[94]](_0x8e0d[120],_0xc338x3,_0xc338x4);this[_0x8e0d[94]](_0x8e0d[77],_0xc338x3,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);var _0xc338xb=this[_0x8e0d[26]](_0x8e0d[93])[_0x8e0d[78]];_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[48]),null,function(){_0xc338x2[_0x8e0d[71]](mxConstants.STYLE_HORIZONTAL,true)},_0xc338x4,null,_0xc338xb)})));this[_0x8e0d[30]](_0x8e0d[120], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[86]),[mxConstants[_0x8e0d[121]],mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[108]],mxConstants[_0x8e0d[112]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[109]),[mxConstants[_0x8e0d[121]],mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[110]],mxConstants[_0x8e0d[110]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[84]),[mxConstants[_0x8e0d[121]],mxConstants[_0x8e0d[107]]],[mxConstants[_0x8e0d[112]],mxConstants[_0x8e0d[108]]],null,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[82]),[mxConstants[_0x8e0d[122]],mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[115]],mxConstants[_0x8e0d[119]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[116]),[mxConstants[_0x8e0d[122]],mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[117]],mxConstants[_0x8e0d[117]]],null,_0xc338x4);this[_0x8e0d[20]](_0xc338x3,mxResources[_0x8e0d[26]](_0x8e0d[85]),[mxConstants[_0x8e0d[122]],mxConstants[_0x8e0d[114]]],[mxConstants[_0x8e0d[119]],mxConstants[_0x8e0d[115]]],null,_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[123], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[124]),null,function(){_0xc338x2[_0x8e0d[71]](mxConstants.STYLE_FLIPH,false)},_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[125]),null,function(){_0xc338x2[_0x8e0d[71]](mxConstants.STYLE_FLIPV,false)},_0xc338x4);this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],_0x8e0d[126],_0x8e0d[127]],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[128], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[106]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_LEFT)},_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[109]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_CENTER)},_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[111]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_RIGHT)},_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[113]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_TOP)},_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[116]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_MIDDLE)},_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[118]),null,function(){_0xc338x2[_0x8e0d[129]](mxConstants.ALIGN_BOTTOM)},_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[130], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[131]),null,mxUtils[_0x8e0d[29]](this,function(){var _0xc338xc= new mxHierarchicalLayout(_0xc338x2,mxConstants.DIRECTION_WEST);this[_0x8e0d[0]][_0x8e0d[132]](_0xc338xc,true,true)}),_0xc338x4);_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0x8e0d[133]),null,mxUtils[_0x8e0d[29]](this,function(){var _0xc338xc= new mxHierarchicalLayout(_0xc338x2,mxConstants.DIRECTION_NORTH);this[_0x8e0d[0]][_0x8e0d[132]](_0xc338xc,true,true)}),_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[134], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[135],_0x8e0d[95],_0x8e0d[136],_0x8e0d[137],_0x8e0d[95],_0x8e0d[138],_0x8e0d[139]],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[140], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[141],_0x8e0d[142],_0x8e0d[95]],_0xc338x4);this[_0x8e0d[94]](_0x8e0d[130],_0xc338x3,_0xc338x4);_0xc338x3[_0x8e0d[24]](_0xc338x4);this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],_0x8e0d[143],_0x8e0d[144],_0x8e0d[145]],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[146], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[147]],_0xc338x4);_0xc338x3[_0x8e0d[24]]();var _0xc338xd=[0.25,0.5,0.75,1,2,4];for(var _0xc338x6=0;_0xc338x6< _0xc338xd[_0x8e0d[18]];_0xc338x6++){(function(_0xc338xe){_0xc338x3[_0x8e0d[72]]((_0xc338xe* 100)+ _0x8e0d[148],null,function(){_0xc338x2[_0x8e0d[149]](_0xc338xe)},_0xc338x4)})(_0xc338xd[_0xc338x6])};this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],_0x8e0d[150],_0x8e0d[151],_0x8e0d[95],_0x8e0d[152],_0x8e0d[153],_0x8e0d[95],_0x8e0d[154],_0x8e0d[155]],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[156], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[157],_0x8e0d[158],_0x8e0d[95],_0x8e0d[159],_0x8e0d[160],_0x8e0d[161],_0x8e0d[95],_0x8e0d[162],_0x8e0d[95],_0x8e0d[163],_0x8e0d[164],_0x8e0d[95],_0x8e0d[165],_0x8e0d[166],_0x8e0d[95],_0x8e0d[167]],_0xc338x4)})));this[_0x8e0d[30]](_0x8e0d[168], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[169],_0x8e0d[170],_0x8e0d[95],_0x8e0d[171],_0x8e0d[172],_0x8e0d[173],_0x8e0d[174],_0x8e0d[95],_0x8e0d[175],_0x8e0d[95],_0x8e0d[176],_0x8e0d[177],_0x8e0d[178]])})));this[_0x8e0d[30]](_0x8e0d[179], new Menu(mxUtils[_0x8e0d[29]](this,function(_0xc338x3,_0xc338x4){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[179],_0x8e0d[95],_0x8e0d[180]])})))};Menus[_0x8e0d[5]][_0x8e0d[30]]= function(_0xc338xf,_0xc338x3){this[_0x8e0d[1]][_0xc338xf]= _0xc338x3};Menus[_0x8e0d[5]][_0x8e0d[26]]= function(_0xc338xf){return this[_0x8e0d[1]][_0xc338xf]};Menus[_0x8e0d[5]][_0x8e0d[94]]= function(_0xc338xf,_0xc338x3,_0xc338x4){var _0xc338xb=this[_0x8e0d[26]](_0xc338xf)[_0x8e0d[78]];if(_0xc338x3[_0x8e0d[81]]|| _0xc338xb){var _0xc338x10=_0xc338x3[_0x8e0d[72]](mxResources[_0x8e0d[26]](_0xc338xf),null,null,_0xc338x4,null,_0xc338xb);this[_0x8e0d[181]](_0xc338xf,_0xc338x3,_0xc338x10)}};Menus[_0x8e0d[5]][_0x8e0d[181]]= function(_0xc338xf,_0xc338x11,_0xc338x4){var _0xc338x3=this[_0x8e0d[26]](_0xc338xf);if(_0xc338x3!= null&& (_0xc338x11[_0x8e0d[81]]|| _0xc338x3[_0x8e0d[78]])){this[_0x8e0d[26]](_0xc338xf)[_0x8e0d[182]](_0xc338x11,_0xc338x4)}};Menus[_0x8e0d[5]][_0x8e0d[20]]= function(_0xc338x3,_0xc338x12,_0xc338x13,_0xc338x14,_0xc338x15,_0xc338x4){return _0xc338x3[_0x8e0d[72]](_0xc338x12,null,mxUtils[_0x8e0d[29]](this,function(){var _0xc338x2=this[_0x8e0d[0]][_0x8e0d[7]][_0x8e0d[6]];_0xc338x2[_0x8e0d[184]]()[_0x8e0d[183]]();try{for(var _0xc338x6=0;_0xc338x6< _0xc338x13[_0x8e0d[18]];_0xc338x6++){_0xc338x2[_0x8e0d[185]](_0xc338x13[_0xc338x6],_0xc338x14[_0xc338x6])}}finally{_0xc338x2[_0x8e0d[184]]()[_0x8e0d[186]]()}}),_0xc338x4,_0xc338x15)};Menus[_0x8e0d[5]][_0x8e0d[28]]= function(_0xc338x3,_0xc338x12,_0xc338x16,_0xc338x17,_0xc338x18,_0xc338x4,_0xc338xb){return _0xc338x3[_0x8e0d[72]](_0xc338x12,null,mxUtils[_0x8e0d[29]](this,function(){var _0xc338x2=this[_0x8e0d[0]][_0x8e0d[7]][_0x8e0d[6]];var _0xc338x19=_0xc338x17;var _0xc338x1a=_0xc338x2[_0x8e0d[189]]()[_0x8e0d[188]](_0xc338x2[_0x8e0d[187]]());if(_0xc338x1a!= null){_0xc338x19= _0xc338x1a[_0x8e0d[21]][_0xc338x18]|| _0xc338x19};_0xc338x19= mxUtils[_0x8e0d[192]](mxResources[_0x8e0d[26]](_0x8e0d[190])+ ((_0xc338x16[_0x8e0d[18]]> 0)?(_0x8e0d[191]+ _0xc338x16):_0x8e0d[27]),_0xc338x19);if(_0xc338x19!= null&& _0xc338x19[_0x8e0d[18]]> 0){_0xc338x2[_0x8e0d[185]](_0xc338x18,_0xc338x19)}}),_0xc338x4,null,_0xc338xb)};Menus[_0x8e0d[5]][_0x8e0d[92]]= function(_0xc338x3,_0xc338x18,_0xc338x4){var _0xc338x1b=this[_0x8e0d[0]][_0x8e0d[80]][_0x8e0d[26]](_0xc338x18);if(_0xc338x1b!= null&& (_0xc338x3[_0x8e0d[81]]|| _0xc338x1b[_0x8e0d[78]])){var _0xc338x1c=_0xc338x3[_0x8e0d[72]](_0xc338x1b[_0x8e0d[193]],null,_0xc338x1b[_0x8e0d[194]],_0xc338x4,null,_0xc338x1b[_0x8e0d[78]]);if(_0xc338x1b[_0x8e0d[195]]&& _0xc338x1b[_0x8e0d[196]]()){this[_0x8e0d[197]](_0xc338x1c)};this[_0x8e0d[198]](_0xc338x1c,_0xc338x1b);return _0xc338x1c};return null};Menus[_0x8e0d[5]][_0x8e0d[198]]= function(_0xc338x1c,_0xc338x1b){if(_0xc338x1b[_0x8e0d[199]]!= null){var _0xc338x1d=_0xc338x1c[_0x8e0d[23]][_0x8e0d[22]][_0x8e0d[22]];var _0xc338x1e=document[_0x8e0d[201]](_0x8e0d[200]);_0xc338x1e[_0x8e0d[21]][_0x8e0d[202]]= _0x8e0d[203];mxUtils[_0x8e0d[204]](_0xc338x1e,_0xc338x1b[_0x8e0d[199]]);_0xc338x1d[_0x8e0d[205]](_0xc338x1e)}};Menus[_0x8e0d[5]][_0x8e0d[197]]= function(_0xc338x1c){var _0xc338x1d=_0xc338x1c[_0x8e0d[23]][_0x8e0d[22]];_0xc338x1d[_0x8e0d[21]][_0x8e0d[206]]= _0x8e0d[207]+ IMAGE_PATH+ _0x8e0d[208];_0xc338x1d[_0x8e0d[21]][_0x8e0d[209]]= _0x8e0d[210];_0xc338x1d[_0x8e0d[21]][_0x8e0d[211]]= _0x8e0d[212]};Menus[_0x8e0d[5]][_0x8e0d[99]]= function(_0xc338x3,_0xc338x13,_0xc338x4){for(var _0xc338x6=0;_0xc338x6< _0xc338x13[_0x8e0d[18]];_0xc338x6++){if(_0xc338x13[_0xc338x6]== _0x8e0d[95]){_0xc338x3[_0x8e0d[24]](_0xc338x4)}else {this[_0x8e0d[92]](_0xc338x3,_0xc338x13[_0xc338x6],_0xc338x4)}}};Menus[_0x8e0d[5]][_0x8e0d[213]]= function(_0xc338x3,_0xc338x1f,_0xc338x20){var _0xc338x2=this[_0x8e0d[0]][_0x8e0d[7]][_0x8e0d[6]];_0xc338x3[_0x8e0d[214]]= true;if(_0xc338x2[_0x8e0d[215]]()){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[169],_0x8e0d[170],_0x8e0d[95],_0x8e0d[173],_0x8e0d[95]])}else {this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[174],_0x8e0d[95],_0x8e0d[171],_0x8e0d[172],_0x8e0d[95],_0x8e0d[175]]);if(_0xc338x2[_0x8e0d[216]]()== 1&& _0xc338x2[_0x8e0d[184]]()[_0x8e0d[217]](_0xc338x2[_0x8e0d[187]]())){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[218]])};_0xc338x3[_0x8e0d[24]]()};if(_0xc338x2[_0x8e0d[216]]()> 0){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[141],_0x8e0d[142],_0x8e0d[95]]);if(_0xc338x2[_0x8e0d[184]]()[_0x8e0d[217]](_0xc338x2[_0x8e0d[187]]())){var _0xc338x21=false;var _0xc338x1f=_0xc338x2[_0x8e0d[187]]();if(_0xc338x1f!= null&& _0xc338x2[_0x8e0d[184]]()[_0x8e0d[217]](_0xc338x1f)){var _0xc338x22=_0xc338x2[_0x8e0d[220]][_0x8e0d[219]](_0xc338x1f);if(_0xc338x22 instanceof  mxEdgeHandler&& _0xc338x22[_0x8e0d[221]]!= null&& _0xc338x22[_0x8e0d[221]][_0x8e0d[18]]> 2){var _0xc338x23=_0xc338x22[_0x8e0d[222]]( new mxMouseEvent(_0xc338x20));var _0xc338x24=this[_0x8e0d[0]][_0x8e0d[80]][_0x8e0d[26]](_0x8e0d[223]);_0xc338x24[_0x8e0d[224]]= _0xc338x22;_0xc338x24[_0x8e0d[225]]= _0xc338x23;_0xc338x21= _0xc338x23> 0&& _0xc338x23< _0xc338x22[_0x8e0d[221]][_0x8e0d[18]]}};this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],(_0xc338x21)?_0x8e0d[223]:_0x8e0d[226]])}else {if(_0xc338x2[_0x8e0d[216]]()> 1){_0xc338x3[_0x8e0d[24]]();this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[143]])}};_0xc338x3[_0x8e0d[24]]();if(_0xc338x2[_0x8e0d[216]]()== 1){var _0xc338x25=_0xc338x2[_0x8e0d[227]](_0xc338x2[_0x8e0d[187]]());if(_0xc338x25!= null){this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[228]])}}}else {this[_0x8e0d[99]](_0xc338x3,[_0x8e0d[95],_0x8e0d[176],_0x8e0d[177],_0x8e0d[95],_0x8e0d[178]])}};Menus[_0x8e0d[5]][_0x8e0d[229]]= function(_0xc338x26){var _0xc338x27= new Menubar(this[_0x8e0d[0]],_0xc338x26);var _0xc338x28=[_0x8e0d[156],_0x8e0d[168],_0x8e0d[146],_0x8e0d[91],_0x8e0d[93],_0x8e0d[140]];for(var _0xc338x6=0;_0xc338x6< _0xc338x28[_0x8e0d[18]];_0xc338x6++){_0xc338x27[_0x8e0d[181]](mxResources[_0x8e0d[26]](_0xc338x28[_0xc338x6]),this[_0x8e0d[26]](_0xc338x28[_0xc338x6])[_0x8e0d[194]])};return _0xc338x27};function Menubar(_0xc338x1,_0xc338x26){this[_0x8e0d[0]]= _0xc338x1;this[_0x8e0d[230]]= _0xc338x26;mxEvent[_0x8e0d[232]](document,mxUtils[_0x8e0d[29]](this,function(_0xc338x20){this[_0x8e0d[231]]()}))}Menubar[_0x8e0d[5]][_0x8e0d[231]]= function(){if(this[_0x8e0d[233]]!= null){this[_0x8e0d[233]][_0x8e0d[231]]()}};Menubar[_0x8e0d[5]][_0x8e0d[181]]= function(_0xc338x12,_0xc338x2a){var _0xc338x2b=document[_0x8e0d[201]](_0x8e0d[234]);_0xc338x2b[_0x8e0d[237]](_0x8e0d[235],_0x8e0d[236]);_0xc338x2b[_0x8e0d[238]]= _0x8e0d[239];mxUtils[_0x8e0d[204]](_0xc338x2b,_0xc338x12);this[_0x8e0d[240]](_0xc338x2b,_0xc338x2a);this[_0x8e0d[230]][_0x8e0d[205]](_0xc338x2b);return _0xc338x2b};Menubar[_0x8e0d[5]][_0x8e0d[240]]= function(_0xc338x2b,_0xc338x2a){if(_0xc338x2a!= null){var _0xc338x2c=true;var _0xc338x2d=mxUtils[_0x8e0d[29]](this,function(_0xc338x20){if(_0xc338x2c&& _0xc338x2b[_0x8e0d[78]]== null|| _0xc338x2b[_0x8e0d[78]]){this[_0x8e0d[0]][_0x8e0d[7]][_0x8e0d[6]][_0x8e0d[241]][_0x8e0d[231]]();var _0xc338x3= new mxPopupMenu(_0xc338x2a);_0xc338x3[_0x8e0d[242]][_0x8e0d[238]]+= _0x8e0d[243];_0xc338x3[_0x8e0d[214]]= true;_0xc338x3[_0x8e0d[81]]= true;_0xc338x3[_0x8e0d[244]]= true;_0xc338x3[_0x8e0d[231]]= mxUtils[_0x8e0d[29]](this,function(){mxPopupMenu[_0x8e0d[5]][_0x8e0d[231]][_0x8e0d[245]](_0xc338x3,arguments);_0xc338x3[_0x8e0d[246]]();this[_0x8e0d[233]]= null;this[_0x8e0d[247]]= null});var _0xc338x2e=_0xc338x2b[_0x8e0d[248]]+ document[_0x8e0d[251]](_0x8e0d[250])[_0x8e0d[249]]+ 22;var _0xc338x2f=_0xc338x2b[_0x8e0d[252]]+ _0xc338x2b[_0x8e0d[253]]+ 140;_0xc338x3[_0x8e0d[254]](_0xc338x2e,_0xc338x2f,null,_0xc338x20);this[_0x8e0d[233]]= _0xc338x3;this[_0x8e0d[247]]= _0xc338x2b};_0xc338x2c= true;mxEvent[_0x8e0d[255]](_0xc338x20)});mxEvent[_0x8e0d[257]](_0xc338x2b,_0x8e0d[256],mxUtils[_0x8e0d[29]](this,function(_0xc338x20){if(this[_0x8e0d[233]]!= null&& this[_0x8e0d[247]]!= _0xc338x2b){this[_0x8e0d[231]]();_0xc338x2d(_0xc338x20)}}));mxEvent[_0x8e0d[257]](_0xc338x2b,_0x8e0d[258],mxUtils[_0x8e0d[29]](this,function(){_0xc338x2c= this[_0x8e0d[247]]!= _0xc338x2b}));mxEvent[_0x8e0d[257]](_0xc338x2b,_0x8e0d[259],_0xc338x2d)}};function Menu(_0xc338x2a,_0xc338xb){mxEventSource[_0x8e0d[260]](this);this[_0x8e0d[194]]= _0xc338x2a;this[_0x8e0d[78]]= (_0xc338xb!= null)?_0xc338xb:true}mxUtils[_0x8e0d[261]](Menu,mxEventSource);Menu[_0x8e0d[5]][_0x8e0d[262]]= function(_0xc338x19){if(this[_0x8e0d[78]]!= _0xc338x19){this[_0x8e0d[78]]= _0xc338x19;this[_0x8e0d[264]]( new mxEventObject(_0x8e0d[263]))}};Menu[_0x8e0d[5]][_0x8e0d[182]]= function(_0xc338x3,_0xc338x4){this[_0x8e0d[194]](_0xc338x3,_0xc338x4)}
\ No newline at end of file