Built motion from commit 36b8e3b.|0.0.111
[motion.git] / public / assets / plugins / jscripty / js / Sidebar.js
index e744c4c..f47645c 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 _0xc86b=["\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"];_0xc86b[0];function Sidebar(_0x9d6ax2,_0x9d6ax3){this[_0xc86b[1]]=_0x9d6ax2;this[_0xc86b[2]]=_0x9d6ax3;this[_0xc86b[3]]= new Object();this[_0xc86b[4]]=true;this[_0xc86b[5]]= new Graph(document[_0xc86b[7]](_0xc86b[6]),null,null,this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]][_0xc86b[8]]());this[_0xc86b[5]][_0xc86b[10]]=false;this[_0xc86b[5]][_0xc86b[11]]=false;this[_0xc86b[5]][_0xc86b[12]](false);this[_0xc86b[5]][_0xc86b[13]]=false;this[_0xc86b[5]][_0xc86b[14]](false);this[_0xc86b[5]][_0xc86b[15]](false);this[_0xc86b[5]][_0xc86b[2]][_0xc86b[17]][_0xc86b[16]]=_0xc86b[18];this[_0xc86b[5]][_0xc86b[2]][_0xc86b[17]][_0xc86b[19]]=_0xc86b[20];document[_0xc86b[22]][_0xc86b[21]](this[_0xc86b[5]][_0xc86b[2]]);if(!mxClient[_0xc86b[23]]){mxEvent[_0xc86b[26]](document,_0xc86b[24],mxUtils[_0xc86b[25]](this,function(){this[_0xc86b[4]]=true}));mxEvent[_0xc86b[26]](_0x9d6ax3,_0xc86b[27],mxUtils[_0xc86b[25]](this,function(){this[_0xc86b[4]]=true}));mxEvent[_0xc86b[26]](document,_0xc86b[28],mxUtils[_0xc86b[25]](this,function(){this[_0xc86b[4]]=false;this[_0xc86b[29]]()}));mxEvent[_0xc86b[26]](document,_0xc86b[30],mxUtils[_0xc86b[25]](this,function(_0x9d6ax4){var _0x9d6ax5=mxEvent[_0xc86b[31]](_0x9d6ax4);while(_0x9d6ax5!=null){if(_0x9d6ax5==this[_0xc86b[32]]){return};_0x9d6ax5=_0x9d6ax5[_0xc86b[33]]};this[_0xc86b[29]]()}));mxEvent[_0xc86b[26]](document,_0xc86b[34],mxUtils[_0xc86b[25]](this,function(_0x9d6ax4){if(_0x9d6ax4[_0xc86b[35]]==null&&_0x9d6ax4[_0xc86b[36]]==null){this[_0xc86b[29]]()}}))};this[_0xc86b[37]](); new Image()[_0xc86b[38]]=IMAGE_PATH+_0xc86b[39]}Sidebar[_0xc86b[40]][_0xc86b[37]]=function(){var _0x9d6ax6=STENCIL_PATH;console[_0xc86b[41]](_0x9d6ax6);this[_0xc86b[51]](_0xc86b[42],mxResources[_0xc86b[44]](_0xc86b[43]),_0x9d6ax6+_0xc86b[45],_0xc86b[46],[_0xc86b[47],_0xc86b[48],_0xc86b[49],_0xc86b[50]],[mxResources[_0xc86b[44]](_0xc86b[47]),mxResources[_0xc86b[44]](_0xc86b[48]),mxResources[_0xc86b[44]](_0xc86b[49]),mxResources[_0xc86b[44]](_0xc86b[50])])};Sidebar[_0xc86b[40]][_0xc86b[52]]=!mxClient[_0xc86b[23]];Sidebar[_0xc86b[40]][_0xc86b[53]]=16;Sidebar[_0xc86b[40]][_0xc86b[54]]=3;Sidebar[_0xc86b[40]][_0xc86b[55]]=300;Sidebar[_0xc86b[40]][_0xc86b[56]]=true;Sidebar[_0xc86b[40]][_0xc86b[57]]=STENCIL_PATH+_0xc86b[58];Sidebar[_0xc86b[40]][_0xc86b[59]]=34;Sidebar[_0xc86b[40]][_0xc86b[60]]=34;Sidebar[_0xc86b[40]][_0xc86b[61]]=2;Sidebar[_0xc86b[40]][_0xc86b[62]]=9;Sidebar[_0xc86b[40]][_0xc86b[63]]=false;Sidebar[_0xc86b[40]][_0xc86b[64]]=false;Sidebar[_0xc86b[40]][_0xc86b[65]]=function(_0x9d6ax7,_0x9d6ax8,_0x9d6ax9,_0x9d6axa){if(this[_0xc86b[52]]&&this[_0xc86b[4]]){if(this[_0xc86b[32]]!=_0x9d6ax7){if(this[_0xc86b[66]]!=null){window[_0xc86b[67]](this[_0xc86b[66]]);this[_0xc86b[66]]=null};var _0x9d6axb=mxUtils[_0xc86b[25]](this,function(){if(this[_0xc86b[68]]==null){this[_0xc86b[68]]=document[_0xc86b[7]](_0xc86b[6]);this[_0xc86b[68]][_0xc86b[69]]=_0xc86b[70];document[_0xc86b[22]][_0xc86b[21]](this[_0xc86b[68]]);this[_0xc86b[71]]= new Graph(this[_0xc86b[68]],null,null,this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]][_0xc86b[8]]());this[_0xc86b[71]][_0xc86b[73]][_0xc86b[72]](this[_0xc86b[53]],this[_0xc86b[53]]);this[_0xc86b[71]][_0xc86b[10]]=false;this[_0xc86b[71]][_0xc86b[11]]=false;this[_0xc86b[71]][_0xc86b[13]]=false;this[_0xc86b[71]][_0xc86b[14]](false);this[_0xc86b[71]][_0xc86b[12]](false);this[_0xc86b[71]][_0xc86b[15]](false);if(!mxClient[_0xc86b[74]]){this[_0xc86b[71]][_0xc86b[73]][_0xc86b[75]][_0xc86b[17]][_0xc86b[19]]=_0xc86b[76]};this[_0xc86b[77]]=mxUtils[_0xc86b[78]](IMAGE_PATH+_0xc86b[39]);this[_0xc86b[77]][_0xc86b[17]][_0xc86b[19]]=_0xc86b[20];this[_0xc86b[77]][_0xc86b[17]][_0xc86b[79]]=_0xc86b[80];this[_0xc86b[77]][_0xc86b[17]][_0xc86b[81]]=_0xc86b[82];document[_0xc86b[22]][_0xc86b[21]](this[_0xc86b[77]])};this[_0xc86b[68]][_0xc86b[17]][_0xc86b[83]]=_0xc86b[84];this[_0xc86b[71]][_0xc86b[85]]=(_0x9d6axa==null||_0x9d6axa);this[_0xc86b[71]][_0xc86b[87]][_0xc86b[86]]();this[_0xc86b[71]][_0xc86b[88]](_0x9d6ax8);var _0x9d6axc=this[_0xc86b[71]][_0xc86b[89]]();var _0x9d6axd=_0x9d6axc[_0xc86b[79]]+2*this[_0xc86b[53]];var _0x9d6axe=_0x9d6axc[_0xc86b[81]]+2*this[_0xc86b[53]];if(mxClient[_0xc86b[90]]){_0x9d6axd+=4;_0x9d6axe+=4;this[_0xc86b[68]][_0xc86b[17]][_0xc86b[91]]=_0xc86b[18]}else {this[_0xc86b[68]][_0xc86b[17]][_0xc86b[91]]=_0xc86b[92]};this[_0xc86b[77]][_0xc86b[17]][_0xc86b[16]]=_0xc86b[92];this[_0xc86b[68]][_0xc86b[17]][_0xc86b[79]]=_0x9d6axd+_0xc86b[93];if(this[_0xc86b[64]]&&_0x9d6ax9!=null&&_0x9d6ax9[_0xc86b[94]]>0){if(this[_0xc86b[95]]==null){this[_0xc86b[95]]=document[_0xc86b[7]](_0xc86b[6]);this[_0xc86b[95]][_0xc86b[17]][_0xc86b[96]]=_0xc86b[97];this[_0xc86b[95]][_0xc86b[17]][_0xc86b[98]]=_0xc86b[99];this[_0xc86b[95]][_0xc86b[17]][_0xc86b[79]]=_0xc86b[100];this[_0xc86b[95]][_0xc86b[17]][_0xc86b[91]]=_0xc86b[18];if(mxClient[_0xc86b[74]]){this[_0xc86b[95]][_0xc86b[17]][_0xc86b[101]]=_0xc86b[102]}else {this[_0xc86b[95]][_0xc86b[17]][_0xc86b[19]]=_0xc86b[20];this[_0xc86b[95]][_0xc86b[17]][_0xc86b[101]]=_0xc86b[103]};this[_0xc86b[68]][_0xc86b[21]](this[_0xc86b[95]])}else {this[_0xc86b[95]][_0xc86b[104]]=_0xc86b[105]};this[_0xc86b[95]][_0xc86b[17]][_0xc86b[83]]=_0xc86b[105];mxUtils[_0xc86b[106]](this[_0xc86b[95]],_0x9d6ax9);var _0x9d6axf=this[_0xc86b[95]][_0xc86b[107]]+10;_0x9d6axe+=_0x9d6axf;if(mxClient[_0xc86b[74]]){this[_0xc86b[95]][_0xc86b[17]][_0xc86b[108]]=(-_0x9d6axf)+_0xc86b[93]}else {_0x9d6axe-=6;this[_0xc86b[95]][_0xc86b[17]][_0xc86b[109]]=(_0x9d6axe-_0x9d6axf)+_0xc86b[93]}}else {if(this[_0xc86b[95]]!=null&&this[_0xc86b[95]][_0xc86b[33]]!=null){this[_0xc86b[95]][_0xc86b[17]][_0xc86b[83]]=_0xc86b[110]}};this[_0xc86b[68]][_0xc86b[17]][_0xc86b[81]]=_0x9d6axe+_0xc86b[93];var _0x9d6ax10=-Math[_0xc86b[112]](0,_0x9d6axc[_0xc86b[111]]-this[_0xc86b[53]]);var _0x9d6ax11=-Math[_0xc86b[112]](0,_0x9d6axc[_0xc86b[113]]-this[_0xc86b[53]]);var _0x9d6ax12=this[_0xc86b[2]][_0xc86b[114]]+this[_0xc86b[1]][_0xc86b[115]]+3;var _0x9d6ax13=Math[_0xc86b[118]](0,(this[_0xc86b[2]][_0xc86b[116]]+_0x9d6ax7[_0xc86b[116]]-this[_0xc86b[2]][_0xc86b[117]]-_0x9d6axe/2+16));if(mxClient[_0xc86b[74]]){this[_0xc86b[71]][_0xc86b[73]][_0xc86b[75]][_0xc86b[123]](_0xc86b[119],_0xc86b[120]+_0x9d6ax10+_0xc86b[121]+_0x9d6ax11+_0xc86b[122])}else {this[_0xc86b[71]][_0xc86b[73]][_0xc86b[125]][_0xc86b[17]][_0xc86b[124]]=_0x9d6ax10+_0xc86b[93];this[_0xc86b[71]][_0xc86b[73]][_0xc86b[125]][_0xc86b[17]][_0xc86b[109]]=_0x9d6ax11+_0xc86b[93]};_0x9d6ax13+=90;this[_0xc86b[68]][_0xc86b[17]][_0xc86b[19]]=_0xc86b[20];this[_0xc86b[68]][_0xc86b[17]][_0xc86b[124]]=_0x9d6ax12+_0xc86b[93];this[_0xc86b[68]][_0xc86b[17]][_0xc86b[109]]=_0x9d6ax13+_0xc86b[93];this[_0xc86b[77]][_0xc86b[17]][_0xc86b[124]]=(_0x9d6ax12-13)+_0xc86b[93];this[_0xc86b[77]][_0xc86b[17]][_0xc86b[109]]=(_0x9d6ax13+_0x9d6axe/2-13)+_0xc86b[93]});if(this[_0xc86b[68]]!=null&&this[_0xc86b[68]][_0xc86b[17]][_0xc86b[83]]!=_0xc86b[110]){_0x9d6axb()}else {this[_0xc86b[66]]=window[_0xc86b[126]](_0x9d6axb,this[_0xc86b[55]])};this[_0xc86b[32]]=_0x9d6ax7}}};Sidebar[_0xc86b[40]][_0xc86b[29]]=function(){if(this[_0xc86b[66]]!=null){window[_0xc86b[67]](this[_0xc86b[66]]);this[_0xc86b[66]]=null};if(this[_0xc86b[68]]!=null){this[_0xc86b[68]][_0xc86b[17]][_0xc86b[83]]=_0xc86b[110];this[_0xc86b[77]][_0xc86b[17]][_0xc86b[16]]=_0xc86b[18];this[_0xc86b[32]]=null}};Sidebar[_0xc86b[40]][_0xc86b[127]]=function(_0x9d6ax14){var _0x9d6ax7=document[_0xc86b[7]](_0xc86b[128]);_0x9d6ax7[_0xc86b[123]](_0xc86b[129],_0xc86b[130]);_0x9d6ax7[_0xc86b[69]]=_0xc86b[131];mxUtils[_0xc86b[106]](_0x9d6ax7,_0x9d6ax14);return _0x9d6ax7};Sidebar[_0xc86b[40]][_0xc86b[132]]=function(_0x9d6ax8,_0x9d6axd,_0x9d6axe,_0x9d6ax15,_0x9d6ax9,_0x9d6axa){this[_0xc86b[5]][_0xc86b[85]]=(_0x9d6axa==null||_0x9d6axa);this[_0xc86b[5]][_0xc86b[73]][_0xc86b[133]](1,0,0);this[_0xc86b[5]][_0xc86b[88]](_0x9d6ax8);var _0x9d6axc=this[_0xc86b[5]][_0xc86b[89]]();var _0x9d6ax16=this[_0xc86b[54]];var _0x9d6ax17=Math[_0xc86b[112]]((_0x9d6axd-2)/(_0x9d6axc[_0xc86b[79]]-_0x9d6axc[_0xc86b[111]]+_0x9d6ax16),(_0x9d6axe-2)/(_0x9d6axc[_0xc86b[81]]-_0x9d6axc[_0xc86b[113]]+_0x9d6ax16));var _0x9d6ax10=-Math[_0xc86b[112]](_0x9d6axc[_0xc86b[111]],0);var _0x9d6ax11=-Math[_0xc86b[112]](_0x9d6axc[_0xc86b[113]],0);this[_0xc86b[5]][_0xc86b[73]][_0xc86b[133]](_0x9d6ax17,_0x9d6ax10,_0x9d6ax11);_0x9d6axc=this[_0xc86b[5]][_0xc86b[89]]();var _0x9d6ax18=Math[_0xc86b[118]](0,Math[_0xc86b[134]]((_0x9d6axd-_0x9d6axc[_0xc86b[79]]-_0x9d6axc[_0xc86b[111]])/2));var _0x9d6axf=Math[_0xc86b[118]](0,Math[_0xc86b[134]]((_0x9d6axe-_0x9d6axc[_0xc86b[81]]-_0x9d6axc[_0xc86b[113]])/2));var _0x9d6ax19=null;if(this[_0xc86b[5]][_0xc86b[135]]==mxConstants[_0xc86b[136]]&&!mxClient[_0xc86b[137]]){_0x9d6ax19=this[_0xc86b[5]][_0xc86b[73]][_0xc86b[140]]()[_0xc86b[139]][_0xc86b[138]](true)}else {_0x9d6ax19=this[_0xc86b[5]][_0xc86b[2]][_0xc86b[138]](false);_0x9d6ax19[_0xc86b[104]]=this[_0xc86b[5]][_0xc86b[2]][_0xc86b[104]]};this[_0xc86b[5]][_0xc86b[141]]()[_0xc86b[86]]();if(mxClient[_0xc86b[142]]){_0x9d6ax15[_0xc86b[17]][_0xc86b[143]]=_0xc86b[144]+this[_0xc86b[1]][_0xc86b[9]][_0xc86b[145]]+_0xc86b[122]};var _0x9d6ax1a=3;_0x9d6ax19[_0xc86b[17]][_0xc86b[19]]=_0xc86b[76];_0x9d6ax19[_0xc86b[17]][_0xc86b[91]]=_0xc86b[18];_0x9d6ax19[_0xc86b[17]][_0xc86b[146]]=_0xc86b[147];_0x9d6ax19[_0xc86b[17]][_0xc86b[124]]=(_0x9d6ax18+_0x9d6ax1a)+_0xc86b[93];_0x9d6ax19[_0xc86b[17]][_0xc86b[109]]=(_0x9d6axf+_0x9d6ax1a)+_0xc86b[93];_0x9d6ax19[_0xc86b[17]][_0xc86b[79]]=_0x9d6axd+_0xc86b[93];_0x9d6ax19[_0xc86b[17]][_0xc86b[81]]=_0x9d6axe+_0xc86b[93];_0x9d6ax19[_0xc86b[17]][_0xc86b[16]]=_0xc86b[105];_0x9d6ax19[_0xc86b[17]][_0xc86b[148]]=_0xc86b[105];_0x9d6ax19[_0xc86b[17]][_0xc86b[149]]=_0xc86b[105];_0x9d6ax15[_0xc86b[21]](_0x9d6ax19);if(this[_0xc86b[63]]&&_0x9d6ax9!=null){var _0x9d6ax1b=(mxClient[_0xc86b[90]])?2*this[_0xc86b[61]]+2:0;_0x9d6ax15[_0xc86b[17]][_0xc86b[81]]=(this[_0xc86b[60]]+_0x9d6ax1b+this[_0xc86b[62]]+8)+_0xc86b[93];var _0x9d6ax1c=document[_0xc86b[7]](_0xc86b[6]);_0x9d6ax1c[_0xc86b[17]][_0xc86b[150]]=this[_0xc86b[62]]+_0xc86b[93];_0x9d6ax1c[_0xc86b[17]][_0xc86b[98]]=_0xc86b[99];_0x9d6ax1c[_0xc86b[17]][_0xc86b[151]]=_0xc86b[152];if(mxClient[_0xc86b[153]]){_0x9d6ax1c[_0xc86b[17]][_0xc86b[81]]=(this[_0xc86b[62]]+12)+_0xc86b[93]};_0x9d6ax1c[_0xc86b[17]][_0xc86b[101]]=_0xc86b[154];mxUtils[_0xc86b[106]](_0x9d6ax1c,_0x9d6ax9);_0x9d6ax15[_0xc86b[21]](_0x9d6ax1c)}};Sidebar[_0xc86b[40]][_0xc86b[155]]=function(_0x9d6ax8,_0x9d6ax9,_0x9d6axa){var _0x9d6ax7=document[_0xc86b[7]](_0xc86b[128]);_0x9d6ax7[_0xc86b[123]](_0xc86b[129],_0xc86b[130]);_0x9d6ax7[_0xc86b[69]]=_0xc86b[156];_0x9d6ax7[_0xc86b[17]][_0xc86b[91]]=_0xc86b[18];var _0x9d6ax1b=(mxClient[_0xc86b[90]])?8+2*this[_0xc86b[61]]:6;_0x9d6ax7[_0xc86b[17]][_0xc86b[79]]=(this[_0xc86b[59]]+_0x9d6ax1b)+_0xc86b[93];_0x9d6ax7[_0xc86b[17]][_0xc86b[81]]=(this[_0xc86b[60]]+_0x9d6ax1b)+_0xc86b[93];_0x9d6ax7[_0xc86b[17]][_0xc86b[157]]=this[_0xc86b[61]]+_0xc86b[93];mxEvent[_0xc86b[26]](_0x9d6ax7,_0xc86b[158],function(_0x9d6ax4){mxEvent[_0xc86b[159]](_0x9d6ax4)});this[_0xc86b[132]](_0x9d6ax8,this[_0xc86b[59]],this[_0xc86b[60]],_0x9d6ax7,_0x9d6ax9,_0x9d6axa);return _0x9d6ax7};Sidebar[_0xc86b[40]][_0xc86b[160]]=function(_0x9d6ax8,_0x9d6ax1d){return function(_0x9d6ax1e,_0x9d6ax4,_0x9d6ax1f,_0x9d6ax20,_0x9d6ax21){if(_0x9d6ax1e[_0xc86b[161]]()){_0x9d6ax8=_0x9d6ax1e[_0xc86b[162]](_0x9d6ax8);if(_0x9d6ax8[_0xc86b[94]]>0){var _0x9d6ax22=(_0x9d6ax1f!=null)?_0x9d6ax1e[_0xc86b[163]](_0x9d6ax1f,_0x9d6ax8,_0x9d6ax4):false;var _0x9d6ax23=null;if(_0x9d6ax1f!=null&& !_0x9d6ax22){_0x9d6ax1f=null};if(_0x9d6ax1d&&_0x9d6ax1e[_0xc86b[164]]()&&_0x9d6ax1e[_0xc86b[165]](_0x9d6ax1f,_0x9d6ax8,_0x9d6ax4)){_0x9d6ax1e[_0xc86b[166]](_0x9d6ax1f,_0x9d6ax8,null,_0x9d6ax20,_0x9d6ax21);_0x9d6ax23=_0x9d6ax8}else {if(_0x9d6ax8[_0xc86b[94]]>0){_0x9d6ax23=_0x9d6ax1e[_0xc86b[167]](_0x9d6ax8,_0x9d6ax20,_0x9d6ax21,_0x9d6ax1f)}};if(_0x9d6ax23!=null&&_0x9d6ax23[_0xc86b[94]]>0){_0x9d6ax1e[_0xc86b[168]](_0x9d6ax23[0]);_0x9d6ax1e[_0xc86b[169]](_0x9d6ax23)}}}}};Sidebar[_0xc86b[40]][_0xc86b[170]]=function(_0x9d6axd,_0x9d6axe){var _0x9d6ax7=document[_0xc86b[7]](_0xc86b[6]);_0x9d6ax7[_0xc86b[17]][_0xc86b[171]]=_0xc86b[172];_0x9d6ax7[_0xc86b[17]][_0xc86b[79]]=_0x9d6axd+_0xc86b[93];_0x9d6ax7[_0xc86b[17]][_0xc86b[81]]=_0x9d6axe+_0xc86b[93];return _0x9d6ax7};Sidebar[_0xc86b[40]][_0xc86b[173]]=function(_0x9d6ax7,_0x9d6ax24,_0x9d6ax25){var _0x9d6ax26=mxUtils[_0xc86b[175]](_0x9d6ax7,this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]],_0x9d6ax24,_0x9d6ax25,0,0,this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]][_0xc86b[174]],true,true);_0x9d6ax26[_0xc86b[176]]=function(_0x9d6ax1e,_0x9d6ax20,_0x9d6ax21){var _0x9d6ax1f=mxDragSource[_0xc86b[40]][_0xc86b[176]][_0xc86b[177]](this,arguments);if(!_0x9d6ax1e[_0xc86b[178]](_0x9d6ax1f)){_0x9d6ax1f=null};return _0x9d6ax1f};return _0x9d6ax26};Sidebar[_0xc86b[40]][_0xc86b[179]]=function(_0x9d6ax7,_0x9d6ax27){var _0x9d6ax1e=this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]];var _0x9d6ax28=null;mxEvent[_0xc86b[182]](_0x9d6ax7,function(_0x9d6ax4){_0x9d6ax28= new mxPoint(mxEvent[_0xc86b[180]](_0x9d6ax4),mxEvent[_0xc86b[181]](_0x9d6ax4))});var _0x9d6ax29=_0x9d6ax27[_0xc86b[183]];_0x9d6ax27[_0xc86b[183]]=function(_0x9d6ax4){if(!mxEvent[_0xc86b[184]](_0x9d6ax4)&&this[_0xc86b[185]]==null&&_0x9d6ax28!=null){var _0x9d6ax2a=_0x9d6ax1e[_0xc86b[186]];if(Math[_0xc86b[187]](_0x9d6ax28[_0xc86b[111]]-mxEvent[_0xc86b[180]](_0x9d6ax4))<=_0x9d6ax2a&&Math[_0xc86b[187]](_0x9d6ax28[_0xc86b[113]]-mxEvent[_0xc86b[181]](_0x9d6ax4))<=_0x9d6ax2a){var _0x9d6ax2b=_0x9d6ax1e[_0xc86b[188]]();_0x9d6ax27[_0xc86b[189]](_0x9d6ax1e,_0x9d6ax4,null,_0x9d6ax2b,_0x9d6ax2b)}};_0x9d6ax29[_0xc86b[177]](this,arguments);_0x9d6ax28=null}};Sidebar[_0xc86b[40]][_0xc86b[190]]=function(_0x9d6ax2c,_0x9d6ax14,_0x9d6ax2d,_0x9d6ax2e){var _0x9d6ax2f=mxUtils[_0xc86b[190]]();var _0x9d6ax19=_0x9d6ax2f[_0xc86b[7]](_0x9d6ax2c);_0x9d6ax19[_0xc86b[123]](_0xc86b[191],_0x9d6ax14);_0x9d6ax2d[_0xc86b[192]](function(_0x9d6ax30,_0x9d6ax31){_0x9d6ax19[_0xc86b[123]](_0x9d6ax30,_0x9d6ax2e[_0x9d6ax31]?_0x9d6ax2e[_0x9d6ax31]:_0xc86b[105])});return _0x9d6ax19};Sidebar[_0xc86b[40]][_0xc86b[193]]=function(_0x9d6ax32,_0x9d6axd,_0x9d6axe,_0x9d6ax33,_0x9d6ax9,_0x9d6axa){var _0x9d6ax2d=[];var _0x9d6ax2e=[];switch(_0x9d6ax33){case _0xc86b[47]:_0x9d6ax2d=[_0xc86b[194],_0xc86b[195],_0xc86b[196]];_0x9d6ax2e=[_0xc86b[197],_0xc86b[105],_0xc86b[198]];break;case _0xc86b[50]:_0x9d6ax2d=[_0xc86b[194],_0xc86b[195]];_0x9d6ax2e=[_0xc86b[197],_0xc86b[105]];break;case _0xc86b[48]:_0x9d6ax2d=[_0xc86b[194],_0xc86b[48],_0xc86b[199]];_0x9d6ax2e=[_0xc86b[197],_0xc86b[105]];break;case _0xc86b[49]:_0x9d6ax2d=[_0xc86b[194],_0xc86b[48],_0xc86b[200]];_0x9d6ax2e=[_0xc86b[197],_0xc86b[105]];break;default:_0x9d6ax2d=[];_0x9d6ax2e=[];break};var _0x9d6ax19=this[_0xc86b[190]](_0x9d6ax33,_0x9d6ax9,_0x9d6ax2d,_0x9d6ax2e);var _0x9d6ax8=[ new mxCell(_0x9d6ax19, new mxGeometry(0,0,_0x9d6axd,_0x9d6axe),_0x9d6ax32)];_0x9d6ax8[0][_0xc86b[201]]=true;return this[_0xc86b[202]](_0x9d6ax8,_0x9d6axd,_0x9d6axe,_0x9d6ax9,_0x9d6axa)};Sidebar[_0xc86b[40]][_0xc86b[202]]=function(_0x9d6ax8,_0x9d6axd,_0x9d6axe,_0x9d6ax9,_0x9d6axa){var _0x9d6ax7=this[_0xc86b[155]](_0x9d6ax8,_0x9d6ax9,_0x9d6axa);var _0x9d6ax27=this[_0xc86b[173]](_0x9d6ax7,this[_0xc86b[160]](_0x9d6ax8,true),this[_0xc86b[170]](_0x9d6axd,_0x9d6axe));this[_0xc86b[179]](_0x9d6ax7,_0x9d6ax27);_0x9d6ax27[_0xc86b[203]]=mxUtils[_0xc86b[25]](this,function(){return this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]][_0xc86b[205]][_0xc86b[204]]});if(!touchStyle){mxEvent[_0xc86b[26]](_0x9d6ax7,_0xc86b[30],mxUtils[_0xc86b[25]](this,function(_0x9d6ax4){this[_0xc86b[65]](_0x9d6ax7,_0x9d6ax8,_0x9d6ax9,_0x9d6axa)}))};return _0x9d6ax7};Sidebar[_0xc86b[40]][_0xc86b[206]]=function(_0x9d6ax32,_0x9d6axd,_0x9d6axe,_0x9d6ax33,_0x9d6ax9,_0x9d6axa){var _0x9d6ax8=[ new mxCell((_0x9d6ax33!=null)?_0x9d6ax33:_0xc86b[105], new mxGeometry(0,0,_0x9d6axd,_0x9d6axe),_0x9d6ax32)];_0x9d6ax8[0][_0xc86b[208]][_0xc86b[207]]( new mxPoint(0,_0x9d6axe),true);_0x9d6ax8[0][_0xc86b[208]][_0xc86b[207]]( new mxPoint(_0x9d6axd,0),false);_0x9d6ax8[0][_0xc86b[208]][_0xc86b[76]]=true;_0x9d6ax8[0][_0xc86b[209]]=true;return this[_0xc86b[210]](_0x9d6ax8,_0x9d6axd,_0x9d6axe,_0x9d6ax9,_0x9d6axa)};Sidebar[_0xc86b[40]][_0xc86b[210]]=function(_0x9d6ax8,_0x9d6axd,_0x9d6axe,_0x9d6ax9,_0x9d6axa){var _0x9d6ax7=this[_0xc86b[155]](_0x9d6ax8,_0x9d6ax9,_0x9d6axa);this[_0xc86b[173]](_0x9d6ax7,this[_0xc86b[160]](_0x9d6ax8,false),this[_0xc86b[170]](_0x9d6axd,_0x9d6axe));var _0x9d6ax1e=this[_0xc86b[1]][_0xc86b[9]][_0xc86b[5]];mxEvent[_0xc86b[26]](_0x9d6ax7,_0xc86b[158],mxUtils[_0xc86b[25]](this,function(_0x9d6ax4){if(this[_0xc86b[56]]){_0x9d6ax1e[_0xc86b[211]](_0x9d6ax8[0])};_0x9d6ax7[_0xc86b[17]][_0xc86b[212]]=_0xc86b[213];window[_0xc86b[126]](function(){_0x9d6ax7[_0xc86b[17]][_0xc86b[212]]=_0xc86b[105]},300);mxEvent[_0xc86b[159]](_0x9d6ax4)}));touchStyle=false;if(!touchStyle){mxEvent[_0xc86b[26]](_0x9d6ax7,_0xc86b[30],mxUtils[_0xc86b[25]](this,function(_0x9d6ax4){this[_0xc86b[65]](_0x9d6ax7,_0x9d6ax8,_0x9d6ax9,_0x9d6axa)}))};return _0x9d6ax7};Sidebar[_0xc86b[40]][_0xc86b[214]]=function(_0x9d6ax34,_0x9d6ax9,_0x9d6ax35,_0x9d6ax36){var _0x9d6ax7=this[_0xc86b[127]](_0x9d6ax9);this[_0xc86b[2]][_0xc86b[21]](_0x9d6ax7);var _0x9d6ax1c=document[_0xc86b[7]](_0xc86b[6]);_0x9d6ax1c[_0xc86b[69]]=_0xc86b[215];if(_0x9d6ax35){_0x9d6ax36(_0x9d6ax1c);_0x9d6ax36=null}else {_0x9d6ax1c[_0xc86b[17]][_0xc86b[83]]=_0xc86b[110]};this[_0xc86b[216]](_0x9d6ax7,_0x9d6ax1c,_0x9d6ax36);var _0x9d6ax37=document[_0xc86b[7]](_0xc86b[6]);_0x9d6ax37[_0xc86b[21]](_0x9d6ax1c);this[_0xc86b[2]][_0xc86b[21]](_0x9d6ax37);if(_0x9d6ax34!=null){this[_0xc86b[3]][_0x9d6ax34]=[_0x9d6ax7,_0x9d6ax37]}};Sidebar[_0xc86b[40]][_0xc86b[216]]=function(_0x9d6ax9,_0x9d6ax38,_0x9d6ax39){var _0x9d6ax3a=false;_0x9d6ax9[_0xc86b[17]][_0xc86b[143]]=(_0x9d6ax38[_0xc86b[17]][_0xc86b[83]]==_0xc86b[110])?_0xc86b[144]+IMAGE_PATH+_0xc86b[217]:_0xc86b[144]+IMAGE_PATH+_0xc86b[218];_0x9d6ax9[_0xc86b[17]][_0xc86b[219]]=_0xc86b[220];_0x9d6ax9[_0xc86b[17]][_0xc86b[221]]=_0xc86b[222];mxEvent[_0xc86b[26]](_0x9d6ax9,_0xc86b[158],function(_0x9d6ax4){if(_0x9d6ax38[_0xc86b[17]][_0xc86b[83]]==_0xc86b[110]){if(!_0x9d6ax3a){_0x9d6ax3a=true;if(_0x9d6ax39!=null){_0x9d6ax9[_0xc86b[17]][_0xc86b[146]]=_0xc86b[223];window[_0xc86b[126]](function(){_0x9d6ax39(_0x9d6ax38);_0x9d6ax9[_0xc86b[17]][_0xc86b[146]]=_0xc86b[105]},0)}};_0x9d6ax9[_0xc86b[17]][_0xc86b[143]]=_0xc86b[144]+IMAGE_PATH+_0xc86b[218];_0x9d6ax38[_0xc86b[17]][_0xc86b[83]]=_0xc86b[84]}else {_0x9d6ax9[_0xc86b[17]][_0xc86b[143]]=_0xc86b[144]+IMAGE_PATH+_0xc86b[217];_0x9d6ax38[_0xc86b[17]][_0xc86b[83]]=_0xc86b[110]};mxEvent[_0xc86b[159]](_0x9d6ax4)})};Sidebar[_0xc86b[40]][_0xc86b[224]]=function(_0x9d6ax34){var _0x9d6ax3b=this[_0xc86b[3]][_0x9d6ax34];if(_0x9d6ax3b!=null){this[_0xc86b[3]][_0x9d6ax34]=null;for(var _0x9d6ax3c=0;_0x9d6ax3c<_0x9d6ax3b[_0xc86b[94]];_0x9d6ax3c++){this[_0xc86b[2]][_0xc86b[225]](_0x9d6ax3b[_0x9d6ax3c])};return true};return false};Sidebar[_0xc86b[40]][_0xc86b[51]]=function(_0x9d6ax34,_0x9d6ax9,_0x9d6ax3d,_0x9d6ax3e,_0x9d6ax3f,_0x9d6ax40){this[_0xc86b[214]](_0x9d6ax34,_0x9d6ax9,(_0x9d6ax34===_0xc86b[42]),mxUtils[_0xc86b[25]](this,function(_0x9d6ax38){var _0x9d6ax41=_0x9d6ax40!=null;for(var _0x9d6ax3c=0;_0x9d6ax3c<_0x9d6ax3f[_0xc86b[94]];_0x9d6ax3c++){var _0x9d6ax42=_0x9d6ax3d+_0x9d6ax3f[_0x9d6ax3c]+_0x9d6ax3e;_0x9d6ax38[_0xc86b[21]](this[_0xc86b[193]](_0xc86b[226]+_0x9d6ax42,80,80,_0x9d6ax3f[_0x9d6ax3c],(_0x9d6ax41)?_0x9d6ax40[_0x9d6ax3c]:null,_0x9d6ax41))}}))}
\ No newline at end of file