Built motion from commit 5ae821c.|0.0.127
[motion.git] / public / assets / plugins / jscripty / js / Sidebar.js
index e744c4c..5d67857 100644 (file)
@@ -1,787 +1 @@
-'use strict';
-
-/**
- * Construcs a new sidebar for the given editor.
- */
-function Sidebar(editorUi, container) {
-       this.editorUi = editorUi;
-       this.container = container;
-       this.palettes = new Object();
-       this.showTooltips = true;
-       this.graph = new Graph(document.createElement('div'), null, null, this.editorUi
-               .editor.graph.getStylesheet());
-       this.graph.resetViewOnRootChange = false;
-       this.graph.foldingEnabled = false;
-       this.graph.setConnectable(false);
-       this.graph.autoScroll = false;
-       this.graph.setTooltips(false);
-       this.graph.setEnabled(false);
-
-       // Container must be in the DOM for correct HTML rendering
-       this.graph.container.style.visibility = 'hidden';
-       this.graph.container.style.position = 'absolute';
-       document.body.appendChild(this.graph.container);
-
-       if (!mxClient.IS_TOUCH) {
-               mxEvent.addListener(document, 'mouseup', mxUtils.bind(this, function() {
-                       this.showTooltips = true;
-               }));
-
-               // Enables tooltips after scroll
-               mxEvent.addListener(container, 'scroll', mxUtils.bind(this, function() {
-                       this.showTooltips = true;
-               }));
-
-               mxEvent.addListener(document, 'mousedown', mxUtils.bind(this, function() {
-                       this.showTooltips = false;
-                       this.hideTooltip();
-               }));
-
-               mxEvent.addListener(document, 'mousemove', mxUtils.bind(this, function(evt) {
-                       var src = mxEvent.getSource(evt);
-
-                       while (src != null) {
-                               if (src == this.currentElt) {
-                                       return;
-                               }
-
-                               src = src.parentNode;
-                       }
-
-                       this.hideTooltip();
-               }));
-
-               // Handles mouse leaving the window
-               mxEvent.addListener(document, 'mouseout', mxUtils.bind(this, function(evt) {
-                       if (evt.toElement == null && evt.relatedTarget == null) {
-                               this.hideTooltip();
-                       }
-               }));
-       }
-
-       this.init();
-
-       // Pre-fetches tooltip image
-       new Image().src = IMAGE_PATH + '/tooltip.png';
-};
-
-/**
- * Adds all palettes to the sidebar.
- */
-Sidebar.prototype.init = function() {
-       var dir = STENCIL_PATH;
-       console.log(dir);
-
-       this.addImagePalette('entry', mxResources.get('application'), dir + '/',
-               '_128x128.png', ['start', 'question', 'input', 'end', 'email'], [mxResources.get('start'),
-                       mxResources.get('question'), mxResources.get('input'), mxResources.get('end'), mxResources.get('email')
-               ]);
-
-       // this.addBpmnPalette(dir, false);
-
-};
-
-/**
- * Specifies if tooltips should be visible. Default is true.
- */
-Sidebar.prototype.enableTooltips = !mxClient.IS_TOUCH;
-
-/**
- * Specifies the delay for the tooltip. Default is 16 px.
- */
-Sidebar.prototype.tooltipBorder = 16;
-
-/**
- * Specifies the delay for the tooltip. Default is 3 px.
- */
-Sidebar.prototype.thumbBorder = 3;
-
-/**
- * Specifies the delay for the tooltip. Default is 300 ms.
- */
-Sidebar.prototype.tooltipDelay = 300;
-
-/**
- * Specifies if edges should be used as templates if clicked. Default is true.
- */
-Sidebar.prototype.installEdges = true;
-
-/**
- * Specifies the URL of the gear image.
- */
-Sidebar.prototype.gearImage = STENCIL_PATH + '/clipart/Gear_128x128.png';
-
-/**
- * Specifies the width of the thumbnails.
- */
-Sidebar.prototype.thumbWidth = 34;
-
-/**
- * Specifies the height of the thumbnails.
- */
-Sidebar.prototype.thumbHeight = 34;
-
-/**
- * Specifies the padding for the thumbnails. Default is 3.
- */
-Sidebar.prototype.thumbPadding = 2;
-
-/**
- * Specifies the size of the sidebar titles.
- */
-Sidebar.prototype.sidebarTitleSize = 9;
-
-/**
- * Specifies if titles in the sidebar should be enabled.
- */
-Sidebar.prototype.sidebarTitles = false;
-
-/**
- * Specifies if titles in the tooltips should be enabled.
- */
-Sidebar.prototype.tooltipTitles = false;
-
-/**
- * Adds all palettes to the sidebar.
- */
-Sidebar.prototype.showTooltip = function(elt, cells, title, showLabel) {
-       if (this.enableTooltips && this.showTooltips) {
-               if (this.currentElt != elt) {
-                       if (this.thread != null) {
-                               window.clearTimeout(this.thread);
-                               this.thread = null;
-                       }
-
-                       var show = mxUtils.bind(this, function() {
-                               // Lazy creation of the DOM nodes and graph instance
-                               if (this.tooltip == null) {
-                                       this.tooltip = document.createElement('div');
-                                       this.tooltip.className = 'geSidebarTooltip';
-                                       document.body.appendChild(this.tooltip);
-
-                                       this.graph2 = new Graph(this.tooltip, null, null, this.editorUi.editor.graph
-                                               .getStylesheet());
-                                       this.graph2.view.setTranslate(this.tooltipBorder, this.tooltipBorder);
-                                       this.graph2.resetViewOnRootChange = false;
-                                       this.graph2.foldingEnabled = false;
-                                       this.graph2.autoScroll = false;
-                                       this.graph2.setTooltips(false);
-                                       this.graph2.setConnectable(false);
-                                       this.graph2.setEnabled(false);
-
-                                       if (!mxClient.IS_SVG) {
-                                               this.graph2.view.canvas.style.position = 'relative';
-                                       }
-
-                                       this.tooltipImage = mxUtils.createImage(IMAGE_PATH + '/tooltip.png');
-                                       this.tooltipImage.style.position = 'absolute';
-                                       this.tooltipImage.style.width = '14px';
-                                       this.tooltipImage.style.height = '27px';
-
-                                       document.body.appendChild(this.tooltipImage);
-                               }
-
-                               this.tooltip.style.display = 'block';
-                               this.graph2.labelsVisible = (showLabel == null || showLabel);
-                               this.graph2.model.clear();
-                               this.graph2.addCells(cells);
-
-                               var bounds = this.graph2.getGraphBounds();
-                               var width = bounds.width + 2 * this.tooltipBorder;
-                               var height = bounds.height + 2 * this.tooltipBorder;
-
-                               if (mxClient.IS_QUIRKS) {
-                                       width += 4;
-                                       height += 4;
-                                       this.tooltip.style.overflow = 'hidden';
-                               } else {
-                                       this.tooltip.style.overflow = 'visible';
-                               }
-
-                               this.tooltipImage.style.visibility = 'visible';
-                               this.tooltip.style.width = width + 'px';
-
-                               // Adds title for entry
-                               if (this.tooltipTitles && title != null && title.length > 0) {
-                                       if (this.tooltipTitle == null) {
-                                               this.tooltipTitle = document.createElement('div');
-                                               this.tooltipTitle.style.borderTop = '1px solid gray';
-                                               this.tooltipTitle.style.textAlign = 'center';
-                                               this.tooltipTitle.style.width = '100%';
-
-                                               // Oversize titles are cut-off currently. Should make tooltip wider later.
-                                               this.tooltipTitle.style.overflow = 'hidden';
-
-                                               if (mxClient.IS_SVG) {
-                                                       this.tooltipTitle.style.paddingTop = '2px';
-                                               } else {
-                                                       this.tooltipTitle.style.position = 'absolute';
-                                                       this.tooltipTitle.style.paddingTop = '6px';
-                                               }
-
-                                               this.tooltip.appendChild(this.tooltipTitle);
-                                       } else {
-                                               this.tooltipTitle.innerHTML = '';
-                                       }
-
-                                       this.tooltipTitle.style.display = '';
-                                       mxUtils.write(this.tooltipTitle, title);
-
-                                       var dy = this.tooltipTitle.offsetHeight + 10;
-                                       height += dy;
-
-                                       if (mxClient.IS_SVG) {
-                                               this.tooltipTitle.style.marginTop = (-dy) + 'px';
-                                       } else {
-                                               height -= 6;
-                                               this.tooltipTitle.style.top = (height - dy) + 'px';
-                                       }
-                               } else if (this.tooltipTitle != null && this.tooltipTitle.parentNode !=
-                                       null) {
-                                       this.tooltipTitle.style.display = 'none';
-                               }
-
-                               this.tooltip.style.height = height + 'px';
-                               var x0 = -Math.min(0, bounds.x - this.tooltipBorder);
-                               var y0 = -Math.min(0, bounds.y - this.tooltipBorder);
-
-                               var left = this.container.clientWidth + this.editorUi.splitSize + 3;
-                               var top = Math.max(0, (this.container.offsetTop + elt.offsetTop - this.container
-                                       .scrollTop - height / 2 + 16));
-
-                               if (mxClient.IS_SVG) {
-                                       this.graph2.view.canvas.setAttribute('transform', 'translate(' + x0 +
-                                               ',' + y0 + ')');
-                               } else {
-                                       this.graph2.view.drawPane.style.left = x0 + 'px';
-                                       this.graph2.view.drawPane.style.top = y0 + 'px';
-                               }
-
-                               // Workaround for ignored position CSS style in IE9
-                               // (changes to relative without the following line)
-                               // Added width of the page-sidebar
-                               //              left += document.getElementById('page-sidebar').offsetWidth;
-                               // Added static height of the page-navbar
-                               top += 90;
-
-                               this.tooltip.style.position = 'absolute';
-                               this.tooltip.style.left = left + 'px';
-                               this.tooltip.style.top = top + 'px';
-                               this.tooltipImage.style.left = (left - 13) + 'px';
-                               this.tooltipImage.style.top = (top + height / 2 - 13) + 'px';
-                       });
-
-                       if (this.tooltip != null && this.tooltip.style.display != 'none') {
-                               show();
-                       } else {
-                               this.thread = window.setTimeout(show, this.tooltipDelay);
-                       }
-
-                       this.currentElt = elt;
-               }
-       }
-};
-
-/**
- * Hides the current tooltip.
- */
-Sidebar.prototype.hideTooltip = function() {
-       if (this.thread != null) {
-               window.clearTimeout(this.thread);
-               this.thread = null;
-       }
-
-       if (this.tooltip != null) {
-               this.tooltip.style.display = 'none';
-               this.tooltipImage.style.visibility = 'hidden';
-               this.currentElt = null;
-       }
-};
-
-/**
- * Creates and returns the given title element.
- */
-Sidebar.prototype.createTitle = function(label) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geTitle';
-       mxUtils.write(elt, label);
-
-       return elt;
-};
-
-/**
- * Creates a thumbnail for the given cells.
- */
-Sidebar.prototype.createThumb = function(cells, width, height, parent, title,
-       showLabel) {
-       this.graph.labelsVisible = (showLabel == null || showLabel);
-       this.graph.view.scaleAndTranslate(1, 0, 0);
-       this.graph.addCells(cells);
-       var bounds = this.graph.getGraphBounds();
-       var corr = this.thumbBorder;
-       var s = Math.min((width - 2) / (bounds.width - bounds.x + corr), (height - 2) /
-               (bounds.height - bounds.y + corr));
-       var x0 = -Math.min(bounds.x, 0);
-       var y0 = -Math.min(bounds.y, 0);
-       this.graph.view.scaleAndTranslate(s, x0, y0);
-
-       bounds = this.graph.getGraphBounds();
-       var dx = Math.max(0, Math.floor((width - bounds.width - bounds.x) / 2));
-       var dy = Math.max(0, Math.floor((height - bounds.height - bounds.y) / 2));
-
-       var node = null;
-
-       // For supporting HTML labels in IE9 standards mode the container is cloned instead
-       if (this.graph.dialect == mxConstants.DIALECT_SVG && !mxClient.NO_FO) {
-               node = this.graph.view.getCanvas().ownerSVGElement.cloneNode(true);
-       }
-       // LATER: Check if deep clone can be used for quirks if container in DOM
-       else {
-               node = this.graph.container.cloneNode(false);
-               node.innerHTML = this.graph.container.innerHTML;
-       }
-
-       this.graph.getModel().clear();
-
-       // Catch-all event handling
-       if (mxClient.IS_IE6) {
-               parent.style.backgroundImage = 'url(' + this.editorUi.editor.transparentImage +
-                       ')';
-       }
-
-       var dd = 3;
-       node.style.position = 'relative';
-       node.style.overflow = 'hidden';
-       node.style.cursor = 'pointer';
-       node.style.left = (dx + dd) + 'px';
-       node.style.top = (dy + dd) + 'px';
-       node.style.width = width + 'px';
-       node.style.height = height + 'px';
-       node.style.visibility = '';
-       node.style.minWidth = '';
-       node.style.minHeight = '';
-
-       parent.appendChild(node);
-
-       // Adds title for sidebar entries
-       if (this.sidebarTitles && title != null) {
-               var border = (mxClient.IS_QUIRKS) ? 2 * this.thumbPadding + 2 : 0;
-               parent.style.height = (this.thumbHeight + border + this.sidebarTitleSize + 8) +
-                       'px';
-
-               var div = document.createElement('div');
-               div.style.fontSize = this.sidebarTitleSize + 'px';
-               div.style.textAlign = 'center';
-               div.style.whiteSpace = 'nowrap';
-
-               if (mxClient.IS_IE) {
-                       div.style.height = (this.sidebarTitleSize + 12) + 'px';
-               }
-
-               div.style.paddingTop = '4px';
-               mxUtils.write(div, title);
-               parent.appendChild(div);
-       }
-};
-
-/**
- * Creates and returns a new palette item for the given image.
- */
-Sidebar.prototype.createItem = function(cells, title, showLabel) {
-       var elt = document.createElement('a');
-       elt.setAttribute('href', 'javascript:void(0);');
-       elt.className = 'geItem';
-       elt.style.overflow = 'hidden';
-       var border = (mxClient.IS_QUIRKS) ? 8 + 2 * this.thumbPadding : 6;
-       elt.style.width = (this.thumbWidth + border) + 'px';
-       elt.style.height = (this.thumbHeight + border) + 'px';
-       elt.style.padding = this.thumbPadding + 'px';
-
-       // Blocks default click action
-       mxEvent.addListener(elt, 'click', function(evt) {
-               mxEvent.consume(evt);
-       });
-
-       this.createThumb(cells, this.thumbWidth, this.thumbHeight, elt, title,
-               showLabel);
-
-       return elt;
-};
-
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createDropHandler = function(cells, allowSplit) {
-       return function(graph, evt, target, x, y) {
-               if (graph.isEnabled()) {
-                       cells = graph.getImportableCells(cells);
-
-                       if (cells.length > 0) {
-                               var validDropTarget = (target != null) ?
-                                       graph.isValidDropTarget(target, cells, evt) : false;
-                               var select = null;
-
-                               if (target != null && !validDropTarget) {
-                                       target = null;
-                               }
-
-                               // Splits the target edge or inserts into target group
-                               if (allowSplit && graph.isSplitEnabled() && graph.isSplitTarget(target,
-                                               cells, evt)) {
-                                       graph.splitEdge(target, cells, null, x, y);
-                                       select = cells;
-                               } else if (cells.length > 0) {
-                                       select = graph.importCells(cells, x, y, target);
-                               }
-
-                               if (select != null && select.length > 0) {
-                                       graph.scrollCellToVisible(select[0]);
-                                       graph.setSelectionCells(select);
-                               }
-                       }
-               }
-       };
-};
-
-/**
- * Creates and returns a preview element for the given width and height.
- */
-Sidebar.prototype.createDragPreview = function(width, height) {
-       var elt = document.createElement('div');
-       elt.style.border = '1px dashed black';
-       elt.style.width = width + 'px';
-       elt.style.height = height + 'px';
-
-       return elt;
-};
-
-/**
- * Creates a drag source for the given element.
- */
-Sidebar.prototype.createDragSource = function(elt, dropHandler, preview) {
-       var dragSource = mxUtils.makeDraggable(elt, this.editorUi.editor.graph,
-               dropHandler,
-               preview, 0, 0, this.editorUi.editor.graph.autoscroll, true, true);
-
-
-
-       // Allows drop into cell only if target is a valid root
-       dragSource.getDropTarget = function(graph, x, y) {
-               var target = mxDragSource.prototype.getDropTarget.apply(this, arguments);
-               if (!graph.isValidRoot(target)) {
-                       target = null;
-               }
-
-               return target;
-       };
-
-       return dragSource;
-};
-
-
-
-/**
- * Adds a handler for inserting the cell with a single click.
- */
-Sidebar.prototype.addClickHandler = function(elt, ds) {
-       var graph = this.editorUi.editor.graph;
-       var first = null;
-
-       mxEvent.addGestureListeners(elt, function(evt) {
-               first = new mxPoint(mxEvent.getClientX(evt), mxEvent.getClientY(evt));
-       });
-
-       var oldMouseUp = ds.mouseUp;
-       ds.mouseUp = function(evt) {
-               if (!mxEvent.isPopupTrigger(evt) && this.currentGraph == null && first !=
-                       null) {
-                       var tol = graph.tolerance;
-
-                       if (Math.abs(first.x - mxEvent.getClientX(evt)) <= tol &&
-                               Math.abs(first.y - mxEvent.getClientY(evt)) <= tol) {
-                               var gs = graph.getGridSize();
-                               ds.drop(graph, evt, null, gs, gs);
-                       }
-               }
-
-               oldMouseUp.apply(this, arguments);
-               first = null;
-       };
-};
-
-/**
- * Giuseppe Careri
- * Create xml document vertex
- */
-Sidebar.prototype.createXmlDocument = function(element, label, variables,
-       values) {
-       var doc = mxUtils.createXmlDocument();
-       var node = doc.createElement(element)
-       node.setAttribute('label', label);
-
-       variables.forEach(function(variable, index) {
-               node.setAttribute(variable, values[index] ? values[index] : '');
-       });
-
-       return node;
-}
-
-/**
- * Giuseppe Careri
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createVertexTemplate = function(style, width, height, value,
-       title, showLabel) {
-       var variables = [];
-       var values = [];
-
-       switch (value) {
-
-               // case 'start':
-               //      variables = ['Text'];
-               //      values = [];
-               //      break;
-               case 'question':
-                       variables = ['question', 'other'];
-                       values = ['', 'false'];
-                       break;
-               case 'input':
-                       variables = ['question', 'Type'];
-                       values = [''];
-                       break;
-                       // case 'end':
-                       //      variables = ['Text', 'Zendesk', 'Summary'];
-                       //      values = [];
-                       //      break;
-               case 'email':
-                       variables = ["Host", "Username", "Password", "To", "Subject", "Body"];
-                       values = [''];
-                       break;
-               default:
-                       variables = [];
-                       values = [];
-                       break;
-       }
-
-       var node = this.createXmlDocument(value, title, variables, values);
-
-       //var cells = [new mxCell((value != null) ? value : '', new mxGeometry(0, 0, width, height), style)];
-       var cells = [new mxCell(node, new mxGeometry(0, 0, width, height), style)];
-       cells[0].vertex = true;
-
-       return this.createVertexTemplateFromCells(cells, width, height, title,
-               showLabel);
-};
-
-
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createVertexTemplateFromCells = function(cells, width, height,
-       title, showLabel) {
-       var elt = this.createItem(cells, title, showLabel);
-       var ds = this.createDragSource(elt, this.createDropHandler(cells, true), this
-               .createDragPreview(width, height));
-       this.addClickHandler(elt, ds);
-
-       // Uses guides for vertices only if enabled in graph
-       ds.isGuidesEnabled = mxUtils.bind(this, function() {
-               return this.editorUi.editor.graph.graphHandler.guidesEnabled;
-       });
-
-       // Shows a tooltip with the rendered cell
-       if (!touchStyle) {
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       this.showTooltip(elt, cells, title, showLabel);
-               }));
-       }
-
-       return elt;
-};
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createEdgeTemplate = function(style, width, height, value,
-       title, showLabel) {
-       var cells = [new mxCell((value != null) ? value : '', new mxGeometry(0, 0,
-               width, height), style)];
-       cells[0].geometry.setTerminalPoint(new mxPoint(0, height), true);
-       cells[0].geometry.setTerminalPoint(new mxPoint(width, 0), false);
-       cells[0].geometry.relative = true;
-       cells[0].edge = true;
-
-       return this.createEdgeTemplateFromCells(cells, width, height, title,
-               showLabel);
-};
-
-/**
- * Creates a drop handler for inserting the given cells.
- */
-Sidebar.prototype.createEdgeTemplateFromCells = function(cells, width, height,
-       title, showLabel) {
-       var elt = this.createItem(cells, title, showLabel);
-       this.createDragSource(elt, this.createDropHandler(cells, false), this.createDragPreview(
-               width, height));
-
-       // Installs the default edge
-       var graph = this.editorUi.editor.graph;
-       mxEvent.addListener(elt, 'click', mxUtils.bind(this, function(evt) {
-               if (this.installEdges) {
-                       graph.setDefaultEdge(cells[0]);
-               }
-
-               // Highlights the entry for 200ms
-               elt.style.backgroundColor = '#ffffff';
-
-               window.setTimeout(function() {
-                       elt.style.backgroundColor = '';
-               }, 300);
-
-               mxEvent.consume(evt);
-       }));
-
-       // Shows a tooltip with the rendered cell
-       touchStyle = false;
-       if (!touchStyle) {
-               mxEvent.addListener(elt, 'mousemove', mxUtils.bind(this, function(evt) {
-                       this.showTooltip(elt, cells, title, showLabel);
-               }));
-       }
-
-       return elt;
-};
-
-/**
- * Adds the given palette.
- */
-Sidebar.prototype.addPalette = function(id, title, expanded, onInit) {
-       var elt = this.createTitle(title);
-       this.container.appendChild(elt);
-
-       var div = document.createElement('div');
-       div.className = 'geSidebar';
-
-       if (expanded) {
-               onInit(div);
-               onInit = null;
-       } else {
-               div.style.display = 'none';
-       }
-
-       this.addFoldingHandler(elt, div, onInit);
-
-       var outer = document.createElement('div');
-       outer.appendChild(div);
-       this.container.appendChild(outer);
-
-       // Keeps references to the DOM nodes
-       if (id != null) {
-               this.palettes[id] = [elt, outer];
-       }
-};
-
-/**
- * Create the given title element.
- */
-Sidebar.prototype.addFoldingHandler = function(title, content, funct) {
-       var initialized = false;
-
-       title.style.backgroundImage = (content.style.display == 'none') ?
-               'url(' + IMAGE_PATH + '/collapsed.gif)' : 'url(' + IMAGE_PATH +
-               '/expanded.gif)';
-       title.style.backgroundRepeat = 'no-repeat';
-       title.style.backgroundPosition = '100% 50%';
-
-       mxEvent.addListener(title, 'click', function(evt) {
-               if (content.style.display == 'none') {
-                       if (!initialized) {
-                               initialized = true;
-
-                               if (funct != null) {
-                                       title.style.cursor = 'wait';
-                                       window.setTimeout(function() {
-                                               funct(content);
-                                               title.style.cursor = '';
-                                       }, 0);
-                               }
-                       }
-
-                       title.style.backgroundImage = 'url(' + IMAGE_PATH + '/expanded.gif)';
-                       content.style.display = 'block';
-               } else {
-                       title.style.backgroundImage = 'url(' + IMAGE_PATH + '/collapsed.gif)';
-                       content.style.display = 'none';
-               }
-
-               mxEvent.consume(evt);
-       });
-};
-
-/**
- * Removes the palette for the given ID.
- */
-Sidebar.prototype.removePalette = function(id) {
-       var elts = this.palettes[id];
-
-       if (elts != null) {
-               this.palettes[id] = null;
-
-               for (var i = 0; i < elts.length; i++) {
-                       this.container.removeChild(elts[i]);
-               }
-
-               return true;
-       }
-
-       return false;
-};
-
-/**
- * Adds the given image palette.
- */
-Sidebar.prototype.addImagePalette = function(id, title, prefix, postfix, items,
-       titles) {
-       // Giuseppe Careri
-       // Expanded Sidebar only entry
-       this.addPalette(id, title, (id === 'entry'), mxUtils.bind(this, function(
-               content) {
-               var showTitles = titles != null;
-
-               for (var i = 0; i < items.length; i++) {
-                       var icon = prefix + items[i] + postfix;
-                       content.appendChild(this.createVertexTemplate('image;image=' + icon, 80,
-                               80, items[i], (showTitles) ? titles[i] : null, showTitles));
-               }
-       }));
-};
-// ***********modified***************
-// Sidebar.prototype.addBpmnPalette = function(dir, expand) {
-//     //Abigael Dawit
-//
-//     var fns = [
-//             this.createVertexTemplate(
-//                     'text;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
-//                     40, 20, 'Text', 'Text', null),
-//             //this.createVertexTemplate('shape=ext;rounded=1;whiteSpace=wrap;dashed=1;dashPattern=1 4;', 120, 80, 'Event\nSub-Process', 'Event Sub-Process', null),
-//             this.createVertexTemplate('shape=swimlane;whiteSpace=wrap;startSize=60;',
-//                     120, 160, 'Container', 'Container', null),
-//             //      this.createVertexTemplate('shape=ellipse;', 120, 160, 'Ellips', 'Ellipse', null)
-//             this.createVertexTemplate(
-//                     'shape=swimlane;html=1;horizontal=0;swimlaneFillColor=white;swimlaneLine=0;fillColor=none;rounded=1;verticalAlign=middle',
-//                     300, 120, 'Lane', 'Lane', null)
-//
-//     ]
-//
-//     this.addPalette('utility', 'Utility ', false, mxUtils.bind(this, function(
-//             content) {
-//             //var showTitles = titles != null;
-//             for (var i = 0; i < fns.length; i++) {
-//                     content.appendChild(fns[i]);
-//             }
-//     }));
-//
-// };
+var _0x4afb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x64\x69\x74\x6F\x72\x55\x69","\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72","\x70\x61\x6C\x65\x74\x74\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x67\x72\x61\x70\x68","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x53\x74\x79\x6C\x65\x73\x68\x65\x65\x74","\x65\x64\x69\x74\x6F\x72","\x72\x65\x73\x65\x74\x56\x69\x65\x77\x4F\x6E\x52\x6F\x6F\x74\x43\x68\x61\x6E\x67\x65","\x66\x6F\x6C\x64\x69\x6E\x67\x45\x6E\x61\x62\x6C\x65\x64","\x73\x65\x74\x43\x6F\x6E\x6E\x65\x63\x74\x61\x62\x6C\x65","\x61\x75\x74\x6F\x53\x63\x72\x6F\x6C\x6C","\x73\x65\x74\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x73\x65\x74\x45\x6E\x61\x62\x6C\x65\x64","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x68\x69\x64\x64\x65\x6E","\x70\x6F\x73\x69\x74\x69\x6F\x6E","\x61\x62\x73\x6F\x6C\x75\x74\x65","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x49\x53\x5F\x54\x4F\x55\x43\x48","\x6D\x6F\x75\x73\x65\x75\x70","\x62\x69\x6E\x64","\x61\x64\x64\x4C\x69\x73\x74\x65\x6E\x65\x72","\x73\x63\x72\x6F\x6C\x6C","\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x68\x69\x64\x65\x54\x6F\x6F\x6C\x74\x69\x70","\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x67\x65\x74\x53\x6F\x75\x72\x63\x65","\x63\x75\x72\x72\x65\x6E\x74\x45\x6C\x74","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x6D\x6F\x75\x73\x65\x6F\x75\x74","\x74\x6F\x45\x6C\x65\x6D\x65\x6E\x74","\x72\x65\x6C\x61\x74\x65\x64\x54\x61\x72\x67\x65\x74","\x69\x6E\x69\x74","\x73\x72\x63","\x2F\x74\x6F\x6F\x6C\x74\x69\x70\x2E\x70\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6C\x6F\x67","\x65\x6E\x74\x72\x79","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x67\x65\x74","\x2F","\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x73\x74\x61\x72\x74","\x71\x75\x65\x73\x74\x69\x6F\x6E","\x69\x6E\x70\x75\x74","\x65\x6E\x64","\x61\x64\x64\x49\x6D\x61\x67\x65\x50\x61\x6C\x65\x74\x74\x65","\x65\x6E\x61\x62\x6C\x65\x54\x6F\x6F\x6C\x74\x69\x70\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x42\x6F\x72\x64\x65\x72","\x74\x68\x75\x6D\x62\x42\x6F\x72\x64\x65\x72","\x74\x6F\x6F\x6C\x74\x69\x70\x44\x65\x6C\x61\x79","\x69\x6E\x73\x74\x61\x6C\x6C\x45\x64\x67\x65\x73","\x67\x65\x61\x72\x49\x6D\x61\x67\x65","\x2F\x63\x6C\x69\x70\x61\x72\x74\x2F\x47\x65\x61\x72\x5F\x31\x32\x38\x78\x31\x32\x38\x2E\x70\x6E\x67","\x74\x68\x75\x6D\x62\x57\x69\x64\x74\x68","\x74\x68\x75\x6D\x62\x48\x65\x69\x67\x68\x74","\x74\x68\x75\x6D\x62\x50\x61\x64\x64\x69\x6E\x67","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x53\x69\x7A\x65","\x73\x69\x64\x65\x62\x61\x72\x54\x69\x74\x6C\x65\x73","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65\x73","\x73\x68\x6F\x77\x54\x6F\x6F\x6C\x74\x69\x70","\x74\x68\x72\x65\x61\x64","\x63\x6C\x65\x61\x72\x54\x69\x6D\x65\x6F\x75\x74","\x74\x6F\x6F\x6C\x74\x69\x70","\x63\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72\x54\x6F\x6F\x6C\x74\x69\x70","\x67\x72\x61\x70\x68\x32","\x73\x65\x74\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x76\x69\x65\x77","\x49\x53\x5F\x53\x56\x47","\x63\x61\x6E\x76\x61\x73","\x72\x65\x6C\x61\x74\x69\x76\x65","\x74\x6F\x6F\x6C\x74\x69\x70\x49\x6D\x61\x67\x65","\x63\x72\x65\x61\x74\x65\x49\x6D\x61\x67\x65","\x77\x69\x64\x74\x68","\x31\x34\x70\x78","\x68\x65\x69\x67\x68\x74","\x32\x37\x70\x78","\x64\x69\x73\x70\x6C\x61\x79","\x62\x6C\x6F\x63\x6B","\x6C\x61\x62\x65\x6C\x73\x56\x69\x73\x69\x62\x6C\x65","\x63\x6C\x65\x61\x72","\x6D\x6F\x64\x65\x6C","\x61\x64\x64\x43\x65\x6C\x6C\x73","\x67\x65\x74\x47\x72\x61\x70\x68\x42\x6F\x75\x6E\x64\x73","\x49\x53\x5F\x51\x55\x49\x52\x4B\x53","\x6F\x76\x65\x72\x66\x6C\x6F\x77","\x76\x69\x73\x69\x62\x6C\x65","\x70\x78","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x6F\x6C\x74\x69\x70\x54\x69\x74\x6C\x65","\x62\x6F\x72\x64\x65\x72\x54\x6F\x70","\x31\x70\x78\x20\x73\x6F\x6C\x69\x64\x20\x67\x72\x61\x79","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x63\x65\x6E\x74\x65\x72","\x31\x30\x30\x25","\x70\x61\x64\x64\x69\x6E\x67\x54\x6F\x70","\x32\x70\x78","\x36\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","","\x77\x72\x69\x74\x65","\x6F\x66\x66\x73\x65\x74\x48\x65\x69\x67\x68\x74","\x6D\x61\x72\x67\x69\x6E\x54\x6F\x70","\x74\x6F\x70","\x6E\x6F\x6E\x65","\x78","\x6D\x69\x6E","\x79","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x73\x70\x6C\x69\x74\x53\x69\x7A\x65","\x6F\x66\x66\x73\x65\x74\x54\x6F\x70","\x73\x63\x72\x6F\x6C\x6C\x54\x6F\x70","\x6D\x61\x78","\x74\x72\x61\x6E\x73\x66\x6F\x72\x6D","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x28","\x2C","\x29","\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x6C\x65\x66\x74","\x64\x72\x61\x77\x50\x61\x6E\x65","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74","\x63\x72\x65\x61\x74\x65\x54\x69\x74\x6C\x65","\x61","\x68\x72\x65\x66","\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3A\x76\x6F\x69\x64\x28\x30\x29\x3B","\x67\x65\x54\x69\x74\x6C\x65","\x63\x72\x65\x61\x74\x65\x54\x68\x75\x6D\x62","\x73\x63\x61\x6C\x65\x41\x6E\x64\x54\x72\x61\x6E\x73\x6C\x61\x74\x65","\x66\x6C\x6F\x6F\x72","\x64\x69\x61\x6C\x65\x63\x74","\x44\x49\x41\x4C\x45\x43\x54\x5F\x53\x56\x47","\x4E\x4F\x5F\x46\x4F","\x63\x6C\x6F\x6E\x65\x4E\x6F\x64\x65","\x6F\x77\x6E\x65\x72\x53\x56\x47\x45\x6C\x65\x6D\x65\x6E\x74","\x67\x65\x74\x43\x61\x6E\x76\x61\x73","\x67\x65\x74\x4D\x6F\x64\x65\x6C","\x49\x53\x5F\x49\x45\x36","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x49\x6D\x61\x67\x65","\x75\x72\x6C\x28","\x74\x72\x61\x6E\x73\x70\x61\x72\x65\x6E\x74\x49\x6D\x61\x67\x65","\x63\x75\x72\x73\x6F\x72","\x70\x6F\x69\x6E\x74\x65\x72","\x6D\x69\x6E\x57\x69\x64\x74\x68","\x6D\x69\x6E\x48\x65\x69\x67\x68\x74","\x66\x6F\x6E\x74\x53\x69\x7A\x65","\x77\x68\x69\x74\x65\x53\x70\x61\x63\x65","\x6E\x6F\x77\x72\x61\x70","\x49\x53\x5F\x49\x45","\x34\x70\x78","\x63\x72\x65\x61\x74\x65\x49\x74\x65\x6D","\x67\x65\x49\x74\x65\x6D","\x70\x61\x64\x64\x69\x6E\x67","\x63\x6C\x69\x63\x6B","\x63\x6F\x6E\x73\x75\x6D\x65","\x63\x72\x65\x61\x74\x65\x44\x72\x6F\x70\x48\x61\x6E\x64\x6C\x65\x72","\x69\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x65\x74\x49\x6D\x70\x6F\x72\x74\x61\x62\x6C\x65\x43\x65\x6C\x6C\x73","\x69\x73\x56\x61\x6C\x69\x64\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x69\x73\x53\x70\x6C\x69\x74\x45\x6E\x61\x62\x6C\x65\x64","\x69\x73\x53\x70\x6C\x69\x74\x54\x61\x72\x67\x65\x74","\x73\x70\x6C\x69\x74\x45\x64\x67\x65","\x69\x6D\x70\x6F\x72\x74\x43\x65\x6C\x6C\x73","\x73\x63\x72\x6F\x6C\x6C\x43\x65\x6C\x6C\x54\x6F\x56\x69\x73\x69\x62\x6C\x65","\x73\x65\x74\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E\x43\x65\x6C\x6C\x73","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x50\x72\x65\x76\x69\x65\x77","\x62\x6F\x72\x64\x65\x72","\x31\x70\x78\x20\x64\x61\x73\x68\x65\x64\x20\x62\x6C\x61\x63\x6B","\x63\x72\x65\x61\x74\x65\x44\x72\x61\x67\x53\x6F\x75\x72\x63\x65","\x61\x75\x74\x6F\x73\x63\x72\x6F\x6C\x6C","\x6D\x61\x6B\x65\x44\x72\x61\x67\x67\x61\x62\x6C\x65","\x67\x65\x74\x44\x72\x6F\x70\x54\x61\x72\x67\x65\x74","\x61\x70\x70\x6C\x79","\x69\x73\x56\x61\x6C\x69\x64\x52\x6F\x6F\x74","\x61\x64\x64\x43\x6C\x69\x63\x6B\x48\x61\x6E\x64\x6C\x65\x72","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x58","\x67\x65\x74\x43\x6C\x69\x65\x6E\x74\x59","\x61\x64\x64\x47\x65\x73\x74\x75\x72\x65\x4C\x69\x73\x74\x65\x6E\x65\x72\x73","\x6D\x6F\x75\x73\x65\x55\x70","\x69\x73\x50\x6F\x70\x75\x70\x54\x72\x69\x67\x67\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x47\x72\x61\x70\x68","\x74\x6F\x6C\x65\x72\x61\x6E\x63\x65","\x61\x62\x73","\x67\x65\x74\x47\x72\x69\x64\x53\x69\x7A\x65","\x64\x72\x6F\x70","\x63\x72\x65\x61\x74\x65\x58\x6D\x6C\x44\x6F\x63\x75\x6D\x65\x6E\x74","\x6C\x61\x62\x65\x6C","\x66\x6F\x72\x45\x61\x63\x68","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65","\x69\x64","\x74\x65\x78\x74","\x73\x74\x61\x74\x65","\x30","\x4F\x46\x46","\x6F\x74\x68\x65\x72","\x61\x64\x64","\x76\x65\x72\x74\x65\x78","\x63\x72\x65\x61\x74\x65\x56\x65\x72\x74\x65\x78\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x69\x73\x47\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x75\x69\x64\x65\x73\x45\x6E\x61\x62\x6C\x65\x64","\x67\x72\x61\x70\x68\x48\x61\x6E\x64\x6C\x65\x72","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x73\x65\x74\x54\x65\x72\x6D\x69\x6E\x61\x6C\x50\x6F\x69\x6E\x74","\x67\x65\x6F\x6D\x65\x74\x72\x79","\x65\x64\x67\x65","\x63\x72\x65\x61\x74\x65\x45\x64\x67\x65\x54\x65\x6D\x70\x6C\x61\x74\x65\x46\x72\x6F\x6D\x43\x65\x6C\x6C\x73","\x73\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x45\x64\x67\x65","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x23\x66\x66\x66\x66\x66\x66","\x61\x64\x64\x50\x61\x6C\x65\x74\x74\x65","\x67\x65\x53\x69\x64\x65\x62\x61\x72","\x61\x64\x64\x46\x6F\x6C\x64\x69\x6E\x67\x48\x61\x6E\x64\x6C\x65\x72","\x2F\x63\x6F\x6C\x6C\x61\x70\x73\x65\x64\x2E\x67\x69\x66\x29","\x2F\x65\x78\x70\x61\x6E\x64\x65\x64\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","\x31\x30\x30\x25\x20\x35\x30\x25","\x77\x61\x69\x74","\x72\x65\x6D\x6F\x76\x65\x50\x61\x6C\x65\x74\x74\x65","\x72\x65\x6D\x6F\x76\x65\x43\x68\x69\x6C\x64","\x69\x6D\x61\x67\x65\x3B\x69\x6D\x61\x67\x65\x3D"];_0x4afb[0];function Sidebar(_0xd9edx2,_0xd9edx3){this[_0x4afb[1]]= _0xd9edx2;this[_0x4afb[2]]= _0xd9edx3;this[_0x4afb[3]]=  new Object();this[_0x4afb[4]]= true;this[_0x4afb[5]]=  new Graph(document[_0x4afb[7]](_0x4afb[6]),null,null,this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]][_0x4afb[8]]());this[_0x4afb[5]][_0x4afb[10]]= false;this[_0x4afb[5]][_0x4afb[11]]= false;this[_0x4afb[5]][_0x4afb[12]](false);this[_0x4afb[5]][_0x4afb[13]]= false;this[_0x4afb[5]][_0x4afb[14]](false);this[_0x4afb[5]][_0x4afb[15]](false);this[_0x4afb[5]][_0x4afb[2]][_0x4afb[17]][_0x4afb[16]]= _0x4afb[18];this[_0x4afb[5]][_0x4afb[2]][_0x4afb[17]][_0x4afb[19]]= _0x4afb[20];document[_0x4afb[22]][_0x4afb[21]](this[_0x4afb[5]][_0x4afb[2]]);if(!mxClient[_0x4afb[23]]){mxEvent[_0x4afb[26]](document,_0x4afb[24],mxUtils[_0x4afb[25]](this,function(){this[_0x4afb[4]]= true}));mxEvent[_0x4afb[26]](_0xd9edx3,_0x4afb[27],mxUtils[_0x4afb[25]](this,function(){this[_0x4afb[4]]= true}));mxEvent[_0x4afb[26]](document,_0x4afb[28],mxUtils[_0x4afb[25]](this,function(){this[_0x4afb[4]]= false;this[_0x4afb[29]]()}));mxEvent[_0x4afb[26]](document,_0x4afb[30],mxUtils[_0x4afb[25]](this,function(_0xd9edx4){var _0xd9edx5=mxEvent[_0x4afb[31]](_0xd9edx4);while(_0xd9edx5!= null){if(_0xd9edx5== this[_0x4afb[32]]){return};_0xd9edx5= _0xd9edx5[_0x4afb[33]]};this[_0x4afb[29]]()}));mxEvent[_0x4afb[26]](document,_0x4afb[34],mxUtils[_0x4afb[25]](this,function(_0xd9edx4){if(_0xd9edx4[_0x4afb[35]]== null&& _0xd9edx4[_0x4afb[36]]== null){this[_0x4afb[29]]()}}))};this[_0x4afb[37]](); new Image()[_0x4afb[38]]= IMAGE_PATH+ _0x4afb[39]}Sidebar[_0x4afb[40]][_0x4afb[37]]= function(){var _0xd9edx6=STENCIL_PATH;console[_0x4afb[41]](_0xd9edx6);this[_0x4afb[51]](_0x4afb[42],mxResources[_0x4afb[44]](_0x4afb[43]),_0xd9edx6+ _0x4afb[45],_0x4afb[46],[_0x4afb[47],_0x4afb[48],_0x4afb[49],_0x4afb[50]],[mxResources[_0x4afb[44]](_0x4afb[47]),mxResources[_0x4afb[44]](_0x4afb[48]),mxResources[_0x4afb[44]](_0x4afb[49]),mxResources[_0x4afb[44]](_0x4afb[50])])};Sidebar[_0x4afb[40]][_0x4afb[52]]= !mxClient[_0x4afb[23]];Sidebar[_0x4afb[40]][_0x4afb[53]]= 16;Sidebar[_0x4afb[40]][_0x4afb[54]]= 3;Sidebar[_0x4afb[40]][_0x4afb[55]]= 300;Sidebar[_0x4afb[40]][_0x4afb[56]]= true;Sidebar[_0x4afb[40]][_0x4afb[57]]= STENCIL_PATH+ _0x4afb[58];Sidebar[_0x4afb[40]][_0x4afb[59]]= 34;Sidebar[_0x4afb[40]][_0x4afb[60]]= 34;Sidebar[_0x4afb[40]][_0x4afb[61]]= 2;Sidebar[_0x4afb[40]][_0x4afb[62]]= 9;Sidebar[_0x4afb[40]][_0x4afb[63]]= false;Sidebar[_0x4afb[40]][_0x4afb[64]]= false;Sidebar[_0x4afb[40]][_0x4afb[65]]= function(_0xd9edx7,_0xd9edx8,_0xd9edx9,_0xd9edxa){if(this[_0x4afb[52]]&& this[_0x4afb[4]]){if(this[_0x4afb[32]]!= _0xd9edx7){if(this[_0x4afb[66]]!= null){window[_0x4afb[67]](this[_0x4afb[66]]);this[_0x4afb[66]]= null};var _0xd9edxb=mxUtils[_0x4afb[25]](this,function(){if(this[_0x4afb[68]]== null){this[_0x4afb[68]]= document[_0x4afb[7]](_0x4afb[6]);this[_0x4afb[68]][_0x4afb[69]]= _0x4afb[70];document[_0x4afb[22]][_0x4afb[21]](this[_0x4afb[68]]);this[_0x4afb[71]]=  new Graph(this[_0x4afb[68]],null,null,this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]][_0x4afb[8]]());this[_0x4afb[71]][_0x4afb[73]][_0x4afb[72]](this[_0x4afb[53]],this[_0x4afb[53]]);this[_0x4afb[71]][_0x4afb[10]]= false;this[_0x4afb[71]][_0x4afb[11]]= false;this[_0x4afb[71]][_0x4afb[13]]= false;this[_0x4afb[71]][_0x4afb[14]](false);this[_0x4afb[71]][_0x4afb[12]](false);this[_0x4afb[71]][_0x4afb[15]](false);if(!mxClient[_0x4afb[74]]){this[_0x4afb[71]][_0x4afb[73]][_0x4afb[75]][_0x4afb[17]][_0x4afb[19]]= _0x4afb[76]};this[_0x4afb[77]]= mxUtils[_0x4afb[78]](IMAGE_PATH+ _0x4afb[39]);this[_0x4afb[77]][_0x4afb[17]][_0x4afb[19]]= _0x4afb[20];this[_0x4afb[77]][_0x4afb[17]][_0x4afb[79]]= _0x4afb[80];this[_0x4afb[77]][_0x4afb[17]][_0x4afb[81]]= _0x4afb[82];document[_0x4afb[22]][_0x4afb[21]](this[_0x4afb[77]])};this[_0x4afb[68]][_0x4afb[17]][_0x4afb[83]]= _0x4afb[84];this[_0x4afb[71]][_0x4afb[85]]= (_0xd9edxa== null|| _0xd9edxa);this[_0x4afb[71]][_0x4afb[87]][_0x4afb[86]]();this[_0x4afb[71]][_0x4afb[88]](_0xd9edx8);var _0xd9edxc=this[_0x4afb[71]][_0x4afb[89]]();var _0xd9edxd=_0xd9edxc[_0x4afb[79]]+ 2* this[_0x4afb[53]];var _0xd9edxe=_0xd9edxc[_0x4afb[81]]+ 2* this[_0x4afb[53]];if(mxClient[_0x4afb[90]]){_0xd9edxd+= 4;_0xd9edxe+= 4;this[_0x4afb[68]][_0x4afb[17]][_0x4afb[91]]= _0x4afb[18]}else {this[_0x4afb[68]][_0x4afb[17]][_0x4afb[91]]= _0x4afb[92]};this[_0x4afb[77]][_0x4afb[17]][_0x4afb[16]]= _0x4afb[92];this[_0x4afb[68]][_0x4afb[17]][_0x4afb[79]]= _0xd9edxd+ _0x4afb[93];if(this[_0x4afb[64]]&& _0xd9edx9!= null&& _0xd9edx9[_0x4afb[94]]> 0){if(this[_0x4afb[95]]== null){this[_0x4afb[95]]= document[_0x4afb[7]](_0x4afb[6]);this[_0x4afb[95]][_0x4afb[17]][_0x4afb[96]]= _0x4afb[97];this[_0x4afb[95]][_0x4afb[17]][_0x4afb[98]]= _0x4afb[99];this[_0x4afb[95]][_0x4afb[17]][_0x4afb[79]]= _0x4afb[100];this[_0x4afb[95]][_0x4afb[17]][_0x4afb[91]]= _0x4afb[18];if(mxClient[_0x4afb[74]]){this[_0x4afb[95]][_0x4afb[17]][_0x4afb[101]]= _0x4afb[102]}else {this[_0x4afb[95]][_0x4afb[17]][_0x4afb[19]]= _0x4afb[20];this[_0x4afb[95]][_0x4afb[17]][_0x4afb[101]]= _0x4afb[103]};this[_0x4afb[68]][_0x4afb[21]](this[_0x4afb[95]])}else {this[_0x4afb[95]][_0x4afb[104]]= _0x4afb[105]};this[_0x4afb[95]][_0x4afb[17]][_0x4afb[83]]= _0x4afb[105];mxUtils[_0x4afb[106]](this[_0x4afb[95]],_0xd9edx9);var _0xd9edxf=this[_0x4afb[95]][_0x4afb[107]]+ 10;_0xd9edxe+= _0xd9edxf;if(mxClient[_0x4afb[74]]){this[_0x4afb[95]][_0x4afb[17]][_0x4afb[108]]= (-_0xd9edxf) + _0x4afb[93]}else {_0xd9edxe-= 6;this[_0x4afb[95]][_0x4afb[17]][_0x4afb[109]]= (_0xd9edxe- _0xd9edxf)+ _0x4afb[93]}}else {if(this[_0x4afb[95]]!= null&& this[_0x4afb[95]][_0x4afb[33]]!= null){this[_0x4afb[95]][_0x4afb[17]][_0x4afb[83]]= _0x4afb[110]}};this[_0x4afb[68]][_0x4afb[17]][_0x4afb[81]]= _0xd9edxe+ _0x4afb[93];var _0xd9edx10=-Math[_0x4afb[112]](0,_0xd9edxc[_0x4afb[111]]- this[_0x4afb[53]]);var _0xd9edx11=-Math[_0x4afb[112]](0,_0xd9edxc[_0x4afb[113]]- this[_0x4afb[53]]);var _0xd9edx12=this[_0x4afb[2]][_0x4afb[114]]+ this[_0x4afb[1]][_0x4afb[115]]+ 3;var _0xd9edx13=Math[_0x4afb[118]](0,(this[_0x4afb[2]][_0x4afb[116]]+ _0xd9edx7[_0x4afb[116]]- this[_0x4afb[2]][_0x4afb[117]]- _0xd9edxe/ 2+ 16));if(mxClient[_0x4afb[74]]){this[_0x4afb[71]][_0x4afb[73]][_0x4afb[75]][_0x4afb[123]](_0x4afb[119],_0x4afb[120]+ _0xd9edx10+ _0x4afb[121]+ _0xd9edx11+ _0x4afb[122])}else {this[_0x4afb[71]][_0x4afb[73]][_0x4afb[125]][_0x4afb[17]][_0x4afb[124]]= _0xd9edx10+ _0x4afb[93];this[_0x4afb[71]][_0x4afb[73]][_0x4afb[125]][_0x4afb[17]][_0x4afb[109]]= _0xd9edx11+ _0x4afb[93]};_0xd9edx13+= 90;this[_0x4afb[68]][_0x4afb[17]][_0x4afb[19]]= _0x4afb[20];this[_0x4afb[68]][_0x4afb[17]][_0x4afb[124]]= _0xd9edx12+ _0x4afb[93];this[_0x4afb[68]][_0x4afb[17]][_0x4afb[109]]= _0xd9edx13+ _0x4afb[93];this[_0x4afb[77]][_0x4afb[17]][_0x4afb[124]]= (_0xd9edx12- 13)+ _0x4afb[93];this[_0x4afb[77]][_0x4afb[17]][_0x4afb[109]]= (_0xd9edx13+ _0xd9edxe/ 2- 13)+ _0x4afb[93]});if(this[_0x4afb[68]]!= null&& this[_0x4afb[68]][_0x4afb[17]][_0x4afb[83]]!= _0x4afb[110]){_0xd9edxb()}else {this[_0x4afb[66]]= window[_0x4afb[126]](_0xd9edxb,this[_0x4afb[55]])};this[_0x4afb[32]]= _0xd9edx7}}};Sidebar[_0x4afb[40]][_0x4afb[29]]= function(){if(this[_0x4afb[66]]!= null){window[_0x4afb[67]](this[_0x4afb[66]]);this[_0x4afb[66]]= null};if(this[_0x4afb[68]]!= null){this[_0x4afb[68]][_0x4afb[17]][_0x4afb[83]]= _0x4afb[110];this[_0x4afb[77]][_0x4afb[17]][_0x4afb[16]]= _0x4afb[18];this[_0x4afb[32]]= null}};Sidebar[_0x4afb[40]][_0x4afb[127]]= function(_0xd9edx14){var _0xd9edx7=document[_0x4afb[7]](_0x4afb[128]);_0xd9edx7[_0x4afb[123]](_0x4afb[129],_0x4afb[130]);_0xd9edx7[_0x4afb[69]]= _0x4afb[131];mxUtils[_0x4afb[106]](_0xd9edx7,_0xd9edx14);return _0xd9edx7};Sidebar[_0x4afb[40]][_0x4afb[132]]= function(_0xd9edx8,_0xd9edxd,_0xd9edxe,_0xd9edx15,_0xd9edx9,_0xd9edxa){this[_0x4afb[5]][_0x4afb[85]]= (_0xd9edxa== null|| _0xd9edxa);this[_0x4afb[5]][_0x4afb[73]][_0x4afb[133]](1,0,0);this[_0x4afb[5]][_0x4afb[88]](_0xd9edx8);var _0xd9edxc=this[_0x4afb[5]][_0x4afb[89]]();var _0xd9edx16=this[_0x4afb[54]];var _0xd9edx17=Math[_0x4afb[112]]((_0xd9edxd- 2)/ (_0xd9edxc[_0x4afb[79]]- _0xd9edxc[_0x4afb[111]]+ _0xd9edx16),(_0xd9edxe- 2)/ (_0xd9edxc[_0x4afb[81]]- _0xd9edxc[_0x4afb[113]]+ _0xd9edx16));var _0xd9edx10=-Math[_0x4afb[112]](_0xd9edxc[_0x4afb[111]],0);var _0xd9edx11=-Math[_0x4afb[112]](_0xd9edxc[_0x4afb[113]],0);this[_0x4afb[5]][_0x4afb[73]][_0x4afb[133]](_0xd9edx17,_0xd9edx10,_0xd9edx11);_0xd9edxc= this[_0x4afb[5]][_0x4afb[89]]();var _0xd9edx18=Math[_0x4afb[118]](0,Math[_0x4afb[134]]((_0xd9edxd- _0xd9edxc[_0x4afb[79]]- _0xd9edxc[_0x4afb[111]])/ 2));var _0xd9edxf=Math[_0x4afb[118]](0,Math[_0x4afb[134]]((_0xd9edxe- _0xd9edxc[_0x4afb[81]]- _0xd9edxc[_0x4afb[113]])/ 2));var _0xd9edx19=null;if(this[_0x4afb[5]][_0x4afb[135]]== mxConstants[_0x4afb[136]]&& !mxClient[_0x4afb[137]]){_0xd9edx19= this[_0x4afb[5]][_0x4afb[73]][_0x4afb[140]]()[_0x4afb[139]][_0x4afb[138]](true)}else {_0xd9edx19= this[_0x4afb[5]][_0x4afb[2]][_0x4afb[138]](false);_0xd9edx19[_0x4afb[104]]= this[_0x4afb[5]][_0x4afb[2]][_0x4afb[104]]};this[_0x4afb[5]][_0x4afb[141]]()[_0x4afb[86]]();if(mxClient[_0x4afb[142]]){_0xd9edx15[_0x4afb[17]][_0x4afb[143]]= _0x4afb[144]+ this[_0x4afb[1]][_0x4afb[9]][_0x4afb[145]]+ _0x4afb[122]};var _0xd9edx1a=3;_0xd9edx19[_0x4afb[17]][_0x4afb[19]]= _0x4afb[76];_0xd9edx19[_0x4afb[17]][_0x4afb[91]]= _0x4afb[18];_0xd9edx19[_0x4afb[17]][_0x4afb[146]]= _0x4afb[147];_0xd9edx19[_0x4afb[17]][_0x4afb[124]]= (_0xd9edx18+ _0xd9edx1a)+ _0x4afb[93];_0xd9edx19[_0x4afb[17]][_0x4afb[109]]= (_0xd9edxf+ _0xd9edx1a)+ _0x4afb[93];_0xd9edx19[_0x4afb[17]][_0x4afb[79]]= _0xd9edxd+ _0x4afb[93];_0xd9edx19[_0x4afb[17]][_0x4afb[81]]= _0xd9edxe+ _0x4afb[93];_0xd9edx19[_0x4afb[17]][_0x4afb[16]]= _0x4afb[105];_0xd9edx19[_0x4afb[17]][_0x4afb[148]]= _0x4afb[105];_0xd9edx19[_0x4afb[17]][_0x4afb[149]]= _0x4afb[105];_0xd9edx15[_0x4afb[21]](_0xd9edx19);if(this[_0x4afb[63]]&& _0xd9edx9!= null){var _0xd9edx1b=(mxClient[_0x4afb[90]])?2* this[_0x4afb[61]]+ 2:0;_0xd9edx15[_0x4afb[17]][_0x4afb[81]]= (this[_0x4afb[60]]+ _0xd9edx1b+ this[_0x4afb[62]]+ 8)+ _0x4afb[93];var _0xd9edx1c=document[_0x4afb[7]](_0x4afb[6]);_0xd9edx1c[_0x4afb[17]][_0x4afb[150]]= this[_0x4afb[62]]+ _0x4afb[93];_0xd9edx1c[_0x4afb[17]][_0x4afb[98]]= _0x4afb[99];_0xd9edx1c[_0x4afb[17]][_0x4afb[151]]= _0x4afb[152];if(mxClient[_0x4afb[153]]){_0xd9edx1c[_0x4afb[17]][_0x4afb[81]]= (this[_0x4afb[62]]+ 12)+ _0x4afb[93]};_0xd9edx1c[_0x4afb[17]][_0x4afb[101]]= _0x4afb[154];mxUtils[_0x4afb[106]](_0xd9edx1c,_0xd9edx9);_0xd9edx15[_0x4afb[21]](_0xd9edx1c)}};Sidebar[_0x4afb[40]][_0x4afb[155]]= function(_0xd9edx8,_0xd9edx9,_0xd9edxa){var _0xd9edx7=document[_0x4afb[7]](_0x4afb[128]);_0xd9edx7[_0x4afb[123]](_0x4afb[129],_0x4afb[130]);_0xd9edx7[_0x4afb[69]]= _0x4afb[156];_0xd9edx7[_0x4afb[17]][_0x4afb[91]]= _0x4afb[18];var _0xd9edx1b=(mxClient[_0x4afb[90]])?8+ 2* this[_0x4afb[61]]:6;_0xd9edx7[_0x4afb[17]][_0x4afb[79]]= (this[_0x4afb[59]]+ _0xd9edx1b)+ _0x4afb[93];_0xd9edx7[_0x4afb[17]][_0x4afb[81]]= (this[_0x4afb[60]]+ _0xd9edx1b)+ _0x4afb[93];_0xd9edx7[_0x4afb[17]][_0x4afb[157]]= this[_0x4afb[61]]+ _0x4afb[93];mxEvent[_0x4afb[26]](_0xd9edx7,_0x4afb[158],function(_0xd9edx4){mxEvent[_0x4afb[159]](_0xd9edx4)});this[_0x4afb[132]](_0xd9edx8,this[_0x4afb[59]],this[_0x4afb[60]],_0xd9edx7,_0xd9edx9,_0xd9edxa);return _0xd9edx7};Sidebar[_0x4afb[40]][_0x4afb[160]]= function(_0xd9edx8,_0xd9edx1d){return function(_0xd9edx1e,_0xd9edx4,_0xd9edx1f,_0xd9edx20,_0xd9edx21){if(_0xd9edx1e[_0x4afb[161]]()){_0xd9edx8= _0xd9edx1e[_0x4afb[162]](_0xd9edx8);if(_0xd9edx8[_0x4afb[94]]> 0){var _0xd9edx22=(_0xd9edx1f!= null)?_0xd9edx1e[_0x4afb[163]](_0xd9edx1f,_0xd9edx8,_0xd9edx4):false;var _0xd9edx23=null;if(_0xd9edx1f!= null&&  !_0xd9edx22){_0xd9edx1f= null};if(_0xd9edx1d&& _0xd9edx1e[_0x4afb[164]]()&& _0xd9edx1e[_0x4afb[165]](_0xd9edx1f,_0xd9edx8,_0xd9edx4)){_0xd9edx1e[_0x4afb[166]](_0xd9edx1f,_0xd9edx8,null,_0xd9edx20,_0xd9edx21);_0xd9edx23= _0xd9edx8}else {if(_0xd9edx8[_0x4afb[94]]> 0){_0xd9edx23= _0xd9edx1e[_0x4afb[167]](_0xd9edx8,_0xd9edx20,_0xd9edx21,_0xd9edx1f)}};if(_0xd9edx23!= null&& _0xd9edx23[_0x4afb[94]]> 0){_0xd9edx1e[_0x4afb[168]](_0xd9edx23[0]);_0xd9edx1e[_0x4afb[169]](_0xd9edx23)}}}}};Sidebar[_0x4afb[40]][_0x4afb[170]]= function(_0xd9edxd,_0xd9edxe){var _0xd9edx7=document[_0x4afb[7]](_0x4afb[6]);_0xd9edx7[_0x4afb[17]][_0x4afb[171]]= _0x4afb[172];_0xd9edx7[_0x4afb[17]][_0x4afb[79]]= _0xd9edxd+ _0x4afb[93];_0xd9edx7[_0x4afb[17]][_0x4afb[81]]= _0xd9edxe+ _0x4afb[93];return _0xd9edx7};Sidebar[_0x4afb[40]][_0x4afb[173]]= function(_0xd9edx7,_0xd9edx24,_0xd9edx25){var _0xd9edx26=mxUtils[_0x4afb[175]](_0xd9edx7,this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]],_0xd9edx24,_0xd9edx25,0,0,this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]][_0x4afb[174]],true,true);_0xd9edx26[_0x4afb[176]]= function(_0xd9edx1e,_0xd9edx20,_0xd9edx21){var _0xd9edx1f=mxDragSource[_0x4afb[40]][_0x4afb[176]][_0x4afb[177]](this,arguments);if(!_0xd9edx1e[_0x4afb[178]](_0xd9edx1f)){_0xd9edx1f= null};return _0xd9edx1f};return _0xd9edx26};Sidebar[_0x4afb[40]][_0x4afb[179]]= function(_0xd9edx7,_0xd9edx27){var _0xd9edx1e=this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]];var _0xd9edx28=null;mxEvent[_0x4afb[182]](_0xd9edx7,function(_0xd9edx4){_0xd9edx28=  new mxPoint(mxEvent[_0x4afb[180]](_0xd9edx4),mxEvent[_0x4afb[181]](_0xd9edx4))});var _0xd9edx29=_0xd9edx27[_0x4afb[183]];_0xd9edx27[_0x4afb[183]]= function(_0xd9edx4){if(!mxEvent[_0x4afb[184]](_0xd9edx4)&& this[_0x4afb[185]]== null&& _0xd9edx28!= null){var _0xd9edx2a=_0xd9edx1e[_0x4afb[186]];if(Math[_0x4afb[187]](_0xd9edx28[_0x4afb[111]]- mxEvent[_0x4afb[180]](_0xd9edx4))<= _0xd9edx2a&& Math[_0x4afb[187]](_0xd9edx28[_0x4afb[113]]- mxEvent[_0x4afb[181]](_0xd9edx4))<= _0xd9edx2a){var _0xd9edx2b=_0xd9edx1e[_0x4afb[188]]();_0xd9edx27[_0x4afb[189]](_0xd9edx1e,_0xd9edx4,null,_0xd9edx2b,_0xd9edx2b)}};_0xd9edx29[_0x4afb[177]](this,arguments);_0xd9edx28= null}};Sidebar[_0x4afb[40]][_0x4afb[190]]= function(_0xd9edx2c,_0xd9edx14,_0xd9edx2d,_0xd9edx2e){var _0xd9edx2f=mxUtils[_0x4afb[190]]();var _0xd9edx19=_0xd9edx2f[_0x4afb[7]](_0xd9edx2c);_0xd9edx19[_0x4afb[123]](_0x4afb[191],_0xd9edx14);_0xd9edx2d[_0x4afb[192]](function(_0xd9edx30,_0xd9edx31){_0xd9edx19[_0x4afb[123]](_0xd9edx30,_0xd9edx2e[_0xd9edx31]?_0xd9edx2e[_0xd9edx31]:_0x4afb[105])});return _0xd9edx19};Sidebar[_0x4afb[40]][_0x4afb[193]]= function(_0xd9edx32,_0xd9edxd,_0xd9edxe,_0xd9edx33,_0xd9edx9,_0xd9edxa){var _0xd9edx2d=[];var _0xd9edx2e=[];switch(_0xd9edx33){case _0x4afb[47]:_0xd9edx2d= [_0x4afb[194],_0x4afb[195],_0x4afb[196]];_0xd9edx2e= [_0x4afb[197],_0x4afb[105],_0x4afb[198]];break;case _0x4afb[50]:_0xd9edx2d= [_0x4afb[194],_0x4afb[195]];_0xd9edx2e= [_0x4afb[197],_0x4afb[105]];break;case _0x4afb[48]:_0xd9edx2d= [_0x4afb[194],_0x4afb[48],_0x4afb[199]];_0xd9edx2e= [_0x4afb[197],_0x4afb[105]];break;case _0x4afb[49]:_0xd9edx2d= [_0x4afb[194],_0x4afb[48],_0x4afb[200]];_0xd9edx2e= [_0x4afb[197],_0x4afb[105]];break;default:_0xd9edx2d= [];_0xd9edx2e= [];break};var _0xd9edx19=this[_0x4afb[190]](_0xd9edx33,_0xd9edx9,_0xd9edx2d,_0xd9edx2e);var _0xd9edx8=[ new mxCell(_0xd9edx19, new mxGeometry(0,0,_0xd9edxd,_0xd9edxe),_0xd9edx32)];_0xd9edx8[0][_0x4afb[201]]= true;return this[_0x4afb[202]](_0xd9edx8,_0xd9edxd,_0xd9edxe,_0xd9edx9,_0xd9edxa)};Sidebar[_0x4afb[40]][_0x4afb[202]]= function(_0xd9edx8,_0xd9edxd,_0xd9edxe,_0xd9edx9,_0xd9edxa){var _0xd9edx7=this[_0x4afb[155]](_0xd9edx8,_0xd9edx9,_0xd9edxa);var _0xd9edx27=this[_0x4afb[173]](_0xd9edx7,this[_0x4afb[160]](_0xd9edx8,true),this[_0x4afb[170]](_0xd9edxd,_0xd9edxe));this[_0x4afb[179]](_0xd9edx7,_0xd9edx27);_0xd9edx27[_0x4afb[203]]= mxUtils[_0x4afb[25]](this,function(){return this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]][_0x4afb[205]][_0x4afb[204]]});if(!touchStyle){mxEvent[_0x4afb[26]](_0xd9edx7,_0x4afb[30],mxUtils[_0x4afb[25]](this,function(_0xd9edx4){this[_0x4afb[65]](_0xd9edx7,_0xd9edx8,_0xd9edx9,_0xd9edxa)}))};return _0xd9edx7};Sidebar[_0x4afb[40]][_0x4afb[206]]= function(_0xd9edx32,_0xd9edxd,_0xd9edxe,_0xd9edx33,_0xd9edx9,_0xd9edxa){var _0xd9edx8=[ new mxCell((_0xd9edx33!= null)?_0xd9edx33:_0x4afb[105], new mxGeometry(0,0,_0xd9edxd,_0xd9edxe),_0xd9edx32)];_0xd9edx8[0][_0x4afb[208]][_0x4afb[207]]( new mxPoint(0,_0xd9edxe),true);_0xd9edx8[0][_0x4afb[208]][_0x4afb[207]]( new mxPoint(_0xd9edxd,0),false);_0xd9edx8[0][_0x4afb[208]][_0x4afb[76]]= true;_0xd9edx8[0][_0x4afb[209]]= true;return this[_0x4afb[210]](_0xd9edx8,_0xd9edxd,_0xd9edxe,_0xd9edx9,_0xd9edxa)};Sidebar[_0x4afb[40]][_0x4afb[210]]= function(_0xd9edx8,_0xd9edxd,_0xd9edxe,_0xd9edx9,_0xd9edxa){var _0xd9edx7=this[_0x4afb[155]](_0xd9edx8,_0xd9edx9,_0xd9edxa);this[_0x4afb[173]](_0xd9edx7,this[_0x4afb[160]](_0xd9edx8,false),this[_0x4afb[170]](_0xd9edxd,_0xd9edxe));var _0xd9edx1e=this[_0x4afb[1]][_0x4afb[9]][_0x4afb[5]];mxEvent[_0x4afb[26]](_0xd9edx7,_0x4afb[158],mxUtils[_0x4afb[25]](this,function(_0xd9edx4){if(this[_0x4afb[56]]){_0xd9edx1e[_0x4afb[211]](_0xd9edx8[0])};_0xd9edx7[_0x4afb[17]][_0x4afb[212]]= _0x4afb[213];window[_0x4afb[126]](function(){_0xd9edx7[_0x4afb[17]][_0x4afb[212]]= _0x4afb[105]},300);mxEvent[_0x4afb[159]](_0xd9edx4)}));touchStyle= false;if(!touchStyle){mxEvent[_0x4afb[26]](_0xd9edx7,_0x4afb[30],mxUtils[_0x4afb[25]](this,function(_0xd9edx4){this[_0x4afb[65]](_0xd9edx7,_0xd9edx8,_0xd9edx9,_0xd9edxa)}))};return _0xd9edx7};Sidebar[_0x4afb[40]][_0x4afb[214]]= function(_0xd9edx34,_0xd9edx9,_0xd9edx35,_0xd9edx36){var _0xd9edx7=this[_0x4afb[127]](_0xd9edx9);this[_0x4afb[2]][_0x4afb[21]](_0xd9edx7);var _0xd9edx1c=document[_0x4afb[7]](_0x4afb[6]);_0xd9edx1c[_0x4afb[69]]= _0x4afb[215];if(_0xd9edx35){_0xd9edx36(_0xd9edx1c);_0xd9edx36= null}else {_0xd9edx1c[_0x4afb[17]][_0x4afb[83]]= _0x4afb[110]};this[_0x4afb[216]](_0xd9edx7,_0xd9edx1c,_0xd9edx36);var _0xd9edx37=document[_0x4afb[7]](_0x4afb[6]);_0xd9edx37[_0x4afb[21]](_0xd9edx1c);this[_0x4afb[2]][_0x4afb[21]](_0xd9edx37);if(_0xd9edx34!= null){this[_0x4afb[3]][_0xd9edx34]= [_0xd9edx7,_0xd9edx37]}};Sidebar[_0x4afb[40]][_0x4afb[216]]= function(_0xd9edx9,_0xd9edx38,_0xd9edx39){var _0xd9edx3a=false;_0xd9edx9[_0x4afb[17]][_0x4afb[143]]= (_0xd9edx38[_0x4afb[17]][_0x4afb[83]]== _0x4afb[110])?_0x4afb[144]+ IMAGE_PATH+ _0x4afb[217]:_0x4afb[144]+ IMAGE_PATH+ _0x4afb[218];_0xd9edx9[_0x4afb[17]][_0x4afb[219]]= _0x4afb[220];_0xd9edx9[_0x4afb[17]][_0x4afb[221]]= _0x4afb[222];mxEvent[_0x4afb[26]](_0xd9edx9,_0x4afb[158],function(_0xd9edx4){if(_0xd9edx38[_0x4afb[17]][_0x4afb[83]]== _0x4afb[110]){if(!_0xd9edx3a){_0xd9edx3a= true;if(_0xd9edx39!= null){_0xd9edx9[_0x4afb[17]][_0x4afb[146]]= _0x4afb[223];window[_0x4afb[126]](function(){_0xd9edx39(_0xd9edx38);_0xd9edx9[_0x4afb[17]][_0x4afb[146]]= _0x4afb[105]},0)}};_0xd9edx9[_0x4afb[17]][_0x4afb[143]]= _0x4afb[144]+ IMAGE_PATH+ _0x4afb[218];_0xd9edx38[_0x4afb[17]][_0x4afb[83]]= _0x4afb[84]}else {_0xd9edx9[_0x4afb[17]][_0x4afb[143]]= _0x4afb[144]+ IMAGE_PATH+ _0x4afb[217];_0xd9edx38[_0x4afb[17]][_0x4afb[83]]= _0x4afb[110]};mxEvent[_0x4afb[159]](_0xd9edx4)})};Sidebar[_0x4afb[40]][_0x4afb[224]]= function(_0xd9edx34){var _0xd9edx3b=this[_0x4afb[3]][_0xd9edx34];if(_0xd9edx3b!= null){this[_0x4afb[3]][_0xd9edx34]= null;for(var _0xd9edx3c=0;_0xd9edx3c< _0xd9edx3b[_0x4afb[94]];_0xd9edx3c++){this[_0x4afb[2]][_0x4afb[225]](_0xd9edx3b[_0xd9edx3c])};return true};return false};Sidebar[_0x4afb[40]][_0x4afb[51]]= function(_0xd9edx34,_0xd9edx9,_0xd9edx3d,_0xd9edx3e,_0xd9edx3f,_0xd9edx40){this[_0x4afb[214]](_0xd9edx34,_0xd9edx9,(_0xd9edx34=== _0x4afb[42]),mxUtils[_0x4afb[25]](this,function(_0xd9edx38){var _0xd9edx41=_0xd9edx40!= null;for(var _0xd9edx3c=0;_0xd9edx3c< _0xd9edx3f[_0x4afb[94]];_0xd9edx3c++){var _0xd9edx42=_0xd9edx3d+ _0xd9edx3f[_0xd9edx3c]+ _0xd9edx3e;_0xd9edx38[_0x4afb[21]](this[_0x4afb[193]](_0x4afb[226]+ _0xd9edx42,80,80,_0xd9edx3f[_0xd9edx3c],(_0xd9edx41)?_0xd9edx40[_0xd9edx3c]:null,_0xd9edx41))}}))}
\ No newline at end of file